aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThéo de la Hogue2024-03-11 09:23:41 +0100
committerThéo de la Hogue2024-03-11 09:23:41 +0100
commitaa726a828d3224a34181ae88c22111ecec6b9947 (patch)
tree8071d675dc04b25f30bed81aa49877faf0635d90
parent41f94d74aa62fc0e395ad4e581de805cf0de6bad (diff)
downloadargaze-aa726a828d3224a34181ae88c22111ecec6b9947.zip
argaze-aa726a828d3224a34181ae88c22111ecec6b9947.tar.gz
argaze-aa726a828d3224a34181ae88c22111ecec6b9947.tar.bz2
argaze-aa726a828d3224a34181ae88c22111ecec6b9947.tar.xz
Moving look under try block.
-rw-r--r--src/argaze/utils/demo_gaze_analysis_run.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/argaze/utils/demo_gaze_analysis_run.py b/src/argaze/utils/demo_gaze_analysis_run.py
index bd11ad5..06e251d 100644
--- a/src/argaze/utils/demo_gaze_analysis_run.py
+++ b/src/argaze/utils/demo_gaze_analysis_run.py
@@ -50,15 +50,15 @@ def main():
# Edit millisecond timestamp
timestamp = int((time.time() - start_time) * 1e3)
- #try:
+ try:
# Project gaze position into frame
- ar_frame.look(timestamp, GazeFeatures.GazePosition((x, y)))
+ ar_frame.look(timestamp, GazeFeatures.GazePosition((x, y)))
# Catch pipeline exception
- #except Exception as e:
+ except Exception as e:
- #print('Gaze projection error:', e)
+ print('Gaze projection error:', e)
# Attach mouse callback to window
cv2.setMouseCallback(ar_frame.name, on_mouse_event)