From d3192d62c659347de50ea3a5caca0c9cc7caf5c5 Mon Sep 17 00:00:00 2001 From: TiboDM Date: Sat, 6 Aug 2022 13:45:18 +0200 Subject: [PATCH] readded break key --- process_video.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/process_video.py b/process_video.py index 2249d15..480bfa2 100644 --- a/process_video.py +++ b/process_video.py @@ -351,6 +351,14 @@ def main(): analyse(min_values, peak, f_name, not args.no_gui) break + ####################### + # Wait for keypresses # + ####################### + key = cv2.waitKey(1) + # Press esc or 'q' to close the image window + if key & 0xFF == ord('q') or key == 27: + break + finally: pipeline.stop()