diff options
-rw-r--r-- | src/argaze/utils/tobii_segment_aruco_aoi_edit.py | 6 |
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) |