aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2022-09-07 11:34:51 +0200
committerThéo de la Hogue2022-09-07 11:34:51 +0200
commit23d9903b860f677fb5ab1fd928813dbbf58c7efd (patch)
treeb031fa7ed04954c0633af10e71c53be7ea9ec193
parentdae1b2cf419bb9079f6d13f8a16c95d4b73adb33 (diff)
downloadargaze-23d9903b860f677fb5ab1fd928813dbbf58c7efd.zip
argaze-23d9903b860f677fb5ab1fd928813dbbf58c7efd.tar.gz
argaze-23d9903b860f677fb5ab1fd928813dbbf58c7efd.tar.bz2
argaze-23d9903b860f677fb5ab1fd928813dbbf58c7efd.tar.xz
moving tobii parameter definition outside the replay loop.
-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)