diff options
author | Théo de la Hogue | 2023-05-24 17:57:23 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-05-24 17:57:23 +0200 |
commit | e9991ac7cdfde0d60d0dbd01ae013efc991b4416 (patch) | |
tree | 8729142d8f0ba2119a36292eadf3e2666ff0ff13 | |
parent | 92d2722beae47709492c2e622f43e9b64ac83a9f (diff) | |
download | argaze-e9991ac7cdfde0d60d0dbd01ae013efc991b4416.zip argaze-e9991ac7cdfde0d60d0dbd01ae013efc991b4416.tar.gz argaze-e9991ac7cdfde0d60d0dbd01ae013efc991b4416.tar.bz2 argaze-e9991ac7cdfde0d60d0dbd01ae013efc991b4416.tar.xz |
Using keypresed variable.
-rw-r--r-- | src/argaze/utils/demo_gaze_features_run.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/argaze/utils/demo_gaze_features_run.py b/src/argaze/utils/demo_gaze_features_run.py index 9264707..93ced82 100644 --- a/src/argaze/utils/demo_gaze_features_run.py +++ b/src/argaze/utils/demo_gaze_features_run.py @@ -487,7 +487,7 @@ def main(): enable_nni_analysis = not enable_nni_analysis # Stop calibration by pressing 'Esc' key - if cv2.waitKey(10) == 27: + if key_pressed == 27: break # Stop calibration on 'ctrl+C' interruption |