aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThéo de la Hogue2023-11-30 04:57:17 +0100
committerThéo de la Hogue2023-11-30 04:57:17 +0100
commit7a1341aa35cdb5236f751ce44d7d3c7b93594e7f (patch)
treed027dca6c1e4c2cdf809d37c66bd12805409f28f /src
parente99c458feb05d2ef9e65d8e0c53f85324c332d10 (diff)
downloadargaze-7a1341aa35cdb5236f751ce44d7d3c7b93594e7f.zip
argaze-7a1341aa35cdb5236f751ce44d7d3c7b93594e7f.tar.gz
argaze-7a1341aa35cdb5236f751ce44d7d3c7b93594e7f.tar.bz2
argaze-7a1341aa35cdb5236f751ce44d7d3c7b93594e7f.tar.xz
Fixing demo scripts.
Diffstat (limited to 'src')
-rw-r--r--src/argaze/utils/demo_aruco_markers_run.py2
-rw-r--r--src/argaze/utils/demo_gaze_analysis_run.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/argaze/utils/demo_aruco_markers_run.py b/src/argaze/utils/demo_aruco_markers_run.py
index 5e1ac2e..ce81da4 100644
--- a/src/argaze/utils/demo_aruco_markers_run.py
+++ b/src/argaze/utils/demo_aruco_markers_run.py
@@ -73,7 +73,7 @@ def main():
# Unpack look data
if look_data:
- gaze_movement, scan_step_analysis, layer_analysis, execution_times, exception = look_data
+ gaze_position, gaze_movement, scan_step_analysis, layer_analysis, execution_times, exception = look_data
# Assess gaze analysis
gaze_analysis_time += execution_times['total']
diff --git a/src/argaze/utils/demo_gaze_analysis_run.py b/src/argaze/utils/demo_gaze_analysis_run.py
index 9856d90..d1c796c 100644
--- a/src/argaze/utils/demo_gaze_analysis_run.py
+++ b/src/argaze/utils/demo_gaze_analysis_run.py
@@ -50,10 +50,10 @@ def main():
timestamp = int((time.time() - start_time) * 1e3)
# Project gaze position into frame
- movement, scan_step_analysis, layer_analysis, execution_times, exception = ar_frame.look(timestamp, GazeFeatures.GazePosition((x, y)))
+ look_data = ar_frame.look(timestamp, GazeFeatures.GazePosition((x, y)))
# Do something with look data
- # ...
+ gaze_position, gaze_movement, scan_step_analysis, layer_analysis, execution_times, exception = look_data
# Attach mouse callback to window
cv2.setMouseCallback(ar_frame.name, on_mouse_event)