aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-09-13 08:21:19 +0200
committerThéo de la Hogue2022-09-13 08:21:19 +0200
commit90cae9444b0e0d7f2bf8760394671ddb0c739c52 (patch)
tree22a3216a08f255a276e740943e35698dad0d3ed2 /src
parent449db6afcad246b7f7a27c2e0cebed99ac3feb85 (diff)
downloadargaze-90cae9444b0e0d7f2bf8760394671ddb0c739c52.zip
argaze-90cae9444b0e0d7f2bf8760394671ddb0c739c52.tar.gz
argaze-90cae9444b0e0d7f2bf8760394671ddb0c739c52.tar.bz2
argaze-90cae9444b0e0d7f2bf8760394671ddb0c739c52.tar.xz
Drawing focus area center.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/edit_tobii_segment_aruco_pose.py6
-rw-r--r--src/argaze/utils/export_tobii_segment_aruco_visual_scan.py4
-rw-r--r--src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py6
3 files changed, 14 insertions, 2 deletions
diff --git a/src/argaze/utils/edit_tobii_segment_aruco_pose.py b/src/argaze/utils/edit_tobii_segment_aruco_pose.py
index fa0675d..8748b83 100644
--- a/src/argaze/utils/edit_tobii_segment_aruco_pose.py
+++ b/src/argaze/utils/edit_tobii_segment_aruco_pose.py
@@ -176,7 +176,11 @@ def main():
# Draw focus area
cv.circle(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2)), int(video_frame.width/3), (255, 150, 150), 1)
-
+
+ # Draw focus area center
+ cv.line(video_frame.matrix, (int(video_frame.width/2) - 50, int(video_frame.height/2)), (int(video_frame.width/2) + 50, int(video_frame.height/2)), (255, 150, 150), 1)
+ cv.line(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2) - 50), (int(video_frame.width/2), int(video_frame.height/2) + 50), (255, 150, 150), 1)
+
# Draw pointer
cv.circle(video_frame.matrix, pointer, 2, (0, 255, 255), -1)
diff --git a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py
index eb317d5..640c602 100644
--- a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py
+++ b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py
@@ -243,6 +243,10 @@ def main():
# Draw focus area
cv.circle(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2)), int(video_frame.width/3), (255, 150, 150), 1)
+ # Draw focus area center
+ cv.line(video_frame.matrix, (int(video_frame.width/2) - 50, int(video_frame.height/2)), (int(video_frame.width/2) + 50, int(video_frame.height/2)), (255, 150, 150), 1)
+ cv.line(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2) - 50), (int(video_frame.width/2), int(video_frame.height/2) + 50), (255, 150, 150), 1)
+
# Project 3D scene on each video frame and the visualisation frame
if aruco_tracker.get_markers_number():
diff --git a/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py b/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py
index 41bd7b5..654a46d 100644
--- a/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py
+++ b/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py
@@ -137,7 +137,11 @@ def main():
continue
# Draw focus area
- cv.circle(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2)), int(video_frame.width/3), (255, 150, 150), 1)
+ cv.circle(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2)), int(video_frame.width/3), (255, 150, 150), 1)
+
+ # Draw focus area center
+ cv.line(video_frame.matrix, (int(video_frame.width/2) - 50, int(video_frame.height/2)), (int(video_frame.width/2) + 50, int(video_frame.height/2)), (255, 150, 150), 1)
+ cv.line(video_frame.matrix, (int(video_frame.width/2), int(video_frame.height/2) - 50), (int(video_frame.width/2), int(video_frame.height/2) + 50), (255, 150, 150), 1)
# Project 3D scenes related to each aruco markers
if aruco_tracker.get_markers_number():