Commit a61b7302 authored by Alexander Mordvintsev's avatar Alexander Mordvintsev

compatibility corrections

parent e0c1fb5f
...@@ -75,8 +75,9 @@ if __name__ == '__main__': ...@@ -75,8 +75,9 @@ if __name__ == '__main__':
else: else:
task = DummyTask(process_frame(frame, t)) task = DummyTask(process_frame(frame, t))
pending.append(task) pending.append(task)
ch = cv2.waitKey(1) ch = 0xFF & cv2.waitKey(1)
if ch == ord(' '): if ch == ord(' '):
threaded_mode = not threaded_mode threaded_mode = not threaded_mode
if ch == 27: if ch == 27:
break break
cv2.destroyAllWindows()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment