OpenCV WaitKey Beispiel
if cv2.waitKey(1) & 0xFF == ord('q'): # wait for 1 millisecond
break
Weary Wryneck
if cv2.waitKey(1) & 0xFF == ord('q'): # wait for 1 millisecond
break