From a61b7302385c020fdba9fa397cec2cb2f80eb084 Mon Sep 17 00:00:00 2001 From: Alexander Mordvintsev Date: Mon, 28 May 2012 09:25:08 +0000 Subject: [PATCH] compatibility corrections --- samples/python2/video_threaded.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/python2/video_threaded.py b/samples/python2/video_threaded.py index 6f92d06..bf15da1 100644 --- a/samples/python2/video_threaded.py +++ b/samples/python2/video_threaded.py @@ -75,8 +75,9 @@ if __name__ == '__main__': else: task = DummyTask(process_frame(frame, t)) pending.append(task) - ch = cv2.waitKey(1) + ch = 0xFF & cv2.waitKey(1) if ch == ord(' '): threaded_mode = not threaded_mode if ch == 27: break +cv2.destroyAllWindows() -- 2.7.4