diff options
author | Théo de la Hogue | 2022-08-09 11:19:37 +0200 |
---|---|---|
committer | Théo de la Hogue | 2022-08-09 11:19:37 +0200 |
commit | 7cd90bd18f09dd60f5893b284628c8ff9adf7d23 (patch) | |
tree | ccc93c1c45f165ca07fe778bf32f84e12f041fa2 | |
parent | 134c03a7e2362866e73a4ffe395ddf96c419238e (diff) | |
download | argaze-7cd90bd18f09dd60f5893b284628c8ff9adf7d23.zip argaze-7cd90bd18f09dd60f5893b284628c8ff9adf7d23.tar.gz argaze-7cd90bd18f09dd60f5893b284628c8ff9adf7d23.tar.bz2 argaze-7cd90bd18f09dd60f5893b284628c8ff9adf7d23.tar.xz |
Changing variable name. Improving console output.
-rw-r--r-- | src/argaze/utils/export_tobii_segment_aruco_visual_scan.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 04e21d6..9ca836b 100644 --- a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py +++ b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py @@ -41,7 +41,7 @@ def main(): if args.marker_id_scene == None: print(f'Track any Aruco markers from the {args.marker_dictionary} dictionary') else: - print(f'Track Aruco markers {args.marker_id_scene.keys()} from the {args.marker_dictionary} dictionary') + print(f'Track Aruco markers {list(args.marker_id_scene.keys())} from the {args.marker_dictionary} dictionary') # Manage destination path destination_path = '.' @@ -187,11 +187,11 @@ def main(): try: - # Get closest gaze position before video timestamp and remove all gaze positions before - closest_gaze_ts, closest_gaze_position = tobii_ts_gaze_positions.pop_first_until(video_ts) + # Get nearest gaze position before video timestamp and remove all gaze positions before + nearest_gaze_ts, nearest_gaze_position = tobii_ts_gaze_positions.pop_first_until(video_ts) # Draw gaze position - video_gaze_pixel = (int(closest_gaze_position.value[0] * video_frame.width), int(closest_gaze_position.value[1] * video_frame.height)) + video_gaze_pixel = (int(nearest_gaze_position.value[0] * video_frame.width), int(nearest_gaze_position.value[1] * video_frame.height)) cv.circle(video_frame.matrix, video_gaze_pixel, 4, (0, 255, 255), -1) # Store gaze position at this time in millisecond |