diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/argaze/utils/demo_aruco_markers_run.py | 2 | ||||
-rw-r--r-- | src/argaze/utils/demo_gaze_analysis_run.py | 4 |
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) |