aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-09-21 17:09:29 +0200
committerThéo de la Hogue2022-09-21 17:09:29 +0200
commit2dcca878a0bdb08dbab77d59bdadf6fb6a6653a2 (patch)
treea26bf931d2aca65ceeaae08b100fbe8a51ec6e27 /src
parent6a3c68ec42ae0eb196cea7fe1330d88b8eca322a (diff)
downloadargaze-2dcca878a0bdb08dbab77d59bdadf6fb6a6653a2.zip
argaze-2dcca878a0bdb08dbab77d59bdadf6fb6a6653a2.tar.gz
argaze-2dcca878a0bdb08dbab77d59bdadf6fb6a6653a2.tar.bz2
argaze-2dcca878a0bdb08dbab77d59bdadf6fb6a6653a2.tar.xz
Using draw_raycast method.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/tobii_segment_aruco_aoi_edit.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/argaze/utils/tobii_segment_aruco_aoi_edit.py b/src/argaze/utils/tobii_segment_aruco_aoi_edit.py
index 61d695d..469e61a 100644
--- a/src/argaze/utils/tobii_segment_aruco_aoi_edit.py
+++ b/src/argaze/utils/tobii_segment_aruco_aoi_edit.py
@@ -302,8 +302,8 @@ def main():
# This hack isn't realistic but as the gaze will mainly focus on centered AOI, where the distorsion is low, it is acceptable.
aoi2D_video_scene = aoi3D_scene_edited.project(aruco_tracker.get_marker_translation(selected_marker_index), aruco_tracker.get_marker_rotation(selected_marker_index), aruco_camera.get_K())
- # Draw scene
- aoi2D_video_scene.draw(visu_frame.matrix, gaze_position, exclude=['Visualisation_Plan'])
+ # Draw aoi scene
+ aoi2D_video_scene.draw_raycast(visu_frame.matrix, gaze_position)
# Write warning related to marker pose processing
except UserWarning as e:
@@ -324,7 +324,7 @@ def main():
cv.line(visu_frame.matrix, (int(visu_frame.width/2), int(visu_frame.height/2) - 50), (int(visu_frame.width/2), int(visu_frame.height/2) + 50), (255, 150, 150), 1)
# Draw pointer
- cv.circle(visu_frame.matrix, gaze_position, gaze_position.accuracy, (0, 255, 255), -1)
+ gaze_position.draw(visu_frame.matrix)
# Write segment timing
cv.rectangle(visu_frame.matrix, (0, 0), (550, 50), (63, 63, 63), -1)