diff options
author | Théo de la Hogue | 2023-05-10 16:11:25 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-05-10 16:11:25 +0200 |
commit | 2d98ac67326dff680feb05ff38df7174503ebccb (patch) | |
tree | ebffd37c2b93489b1ac2afe7070113f18fd30ca0 | |
parent | 0f9ab55a50c1442460a2ef6e34ff77fae356c05c (diff) | |
download | argaze-2d98ac67326dff680feb05ff38df7174503ebccb.zip argaze-2d98ac67326dff680feb05ff38df7174503ebccb.tar.gz argaze-2d98ac67326dff680feb05ff38df7174503ebccb.tar.bz2 argaze-2d98ac67326dff680feb05ff38df7174503ebccb.tar.xz |
Writing visual scan path.
-rw-r--r-- | src/argaze/utils/demo_gaze_features_run.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/argaze/utils/demo_gaze_features_run.py b/src/argaze/utils/demo_gaze_features_run.py index 3eaa79f..b83d60d 100644 --- a/src/argaze/utils/demo_gaze_features_run.py +++ b/src/argaze/utils/demo_gaze_features_run.py @@ -185,6 +185,14 @@ def main(): # Draw movement from start to next cv2.line(aoi_matrix, start_gaze_position, next_gaze_position, (0, 0, 255), 1) + # Write last 5 steps of visual scan path + path = '' + for step in visual_scan_path[-5:]: + path += f'> {step.aoi} ' + path += f'> {visual_scan_path.current_aoi}' + + cv2.putText(aoi_matrix, path, (20, args.window_size[1]-40), cv2.FONT_HERSHEY_SIMPLEX, 1, (255, 255, 255), 1, cv2.LINE_AA) + # Unlock gaze movement identification gaze_movement_lock.release() |