diff --git a/cv_pubsubs/window_sub/cv_window_sub.py b/cv_pubsubs/window_sub/cv_window_sub.py index 49ac64b..bc42703 100644 --- a/cv_pubsubs/window_sub/cv_window_sub.py +++ b/cv_pubsubs/window_sub/cv_window_sub.py @@ -25,6 +25,7 @@ def sub_win_loop( frames = frame_dict[input_vid_global_names[i]] for f in range(len(frames)): cv2.imshow(names[f % len(names)], frames[f]) + if cv2.waitKey(1) & 0xFF == ord('q'): for name in names: cv2.destroyWindow(name)