Skip to content

Commit b19f69e

Browse files
committed
press space to quit video window
1 parent 4565548 commit b19f69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webcam.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
# Display the resulting frame
4242
cv2.imshow("frame", gray)
43-
if cv2.waitKey(1) & 0xFF == ord("q"):
43+
if cv2.waitKey(1) & 0xFF == ord(" "):
4444
break
4545

4646
# When everything is done, release the capture and video writer

0 commit comments

Comments
 (0)