aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/argaze/utils/export_tobii_segment_aruco_visual_scan.py13
1 files 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)