aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2022-09-07 11:35:22 +0200
committerThéo de la Hogue2022-09-07 11:35:22 +0200
commit2323ff9aec813d087ea589be63e0f360d754b265 (patch)
treeefb4bf21f3429b1a8eb3d0b2c3671e60eb480ca2 /src
parent23d9903b860f677fb5ab1fd928813dbbf58c7efd (diff)
downloadargaze-2323ff9aec813d087ea589be63e0f360d754b265.zip
argaze-2323ff9aec813d087ea589be63e0f360d754b265.tar.gz
argaze-2323ff9aec813d087ea589be63e0f360d754b265.tar.bz2
argaze-2323ff9aec813d087ea589be63e0f360d754b265.tar.xz
moving tobii parameter definition outside the replay loop.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py b/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py
index 4966d7d..308c1f5 100644
--- a/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py
+++ b/src/argaze/utils/live_tobii_aruco_aoi_ivy_controller.py
@@ -79,6 +79,12 @@ def main():
def aoi3D_scene_selector(marker_id):
return aoi3D_scenes.get(marker_id, None)
+ # !!! 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
+
# Start streaming
tobii_controller.start_streaming()
@@ -99,10 +105,6 @@ def main():
# Store received gaze positions
past_gaze_positions.append(data_stream['GazePosition'])
- # !!! the parameters below are specific to the TobiiGlassesPro2 !!!
- tobii_accuracy = 1.5
- tobii_camera_hfov = 82
-
# 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)