From 39272035aff22bfc827e9ab93d1b1b03579ae7d2 Mon Sep 17 00:00:00 2001 From: Alberto Fanjul Date: Sun, 31 Jan 2021 10:58:37 +0100 Subject: [PATCH] Close test using Close window button --- src/cli/test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/test.py b/src/cli/test.py index c62fcef..20a10a1 100644 --- a/src/cli/test.py +++ b/src/cli/test.py @@ -80,7 +80,7 @@ rec_tm = 0 # Wrap everything in an keyboard interupt handler try: - while True: + while cv2.getWindowProperty("Howdy Test", cv2.WND_PROP_VISIBLE) > 0: frame_tm = time.time() # Increment the frames