From 23d9903b860f677fb5ab1fd928813dbbf58c7efd Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 7 Sep 2022 11:34:51 +0200 Subject: moving tobii parameter definition outside the replay loop. --- src/argaze/utils/export_tobii_segment_aruco_visual_scan.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 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 2b06bf9..9524f0f 100644 --- a/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py +++ b/src/argaze/utils/export_tobii_segment_aruco_visual_scan.py @@ -180,9 +180,15 @@ def main(): # Create timestamped buffer to store gaze positions in time ts_gaze_positions = GazeFeatures.TimeStampedGazePositions() - # Create timestamped buffer to store gaze precision in time + # Create timestamped buffer to store gaze accuracies in time ts_gaze_accuracies = GazeFeatures.TimeStampedGazeAccuracies() + # !!! the parameters below are specific to the TobiiGlassesPro2 !!! + # Reference : https://www.biorxiv.org/content/10.1101/299925v1 + tobii_accuracy = 1.42 # degree + tobii_precision = 0.34 # degree + tobii_camera_hfov = 82 # degree + # Video and data replay loop try: @@ -199,11 +205,6 @@ def main(): try: - # !!! the parameters below are specific to the TobiiGlassesPro2 !!! - # Reference : https://www.biorxiv.org/content/10.1101/299925v1 - tobii_accuracy = 1.42 # degree - tobii_camera_hfov = 82 # degree - # Get nearest gaze position before video timestamp and remove all gaze positions before _, nearest_gaze_position = tobii_ts_gaze_positions.pop_first_until(video_ts) -- cgit v1.1