Created
February 8, 2015 17:58
-
-
Save marjinal1st/940673f46cc8248f072c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
camera = cv2.VideoCapture(0) | |
camera.set(3, 1280) | |
camera.set(4, 720) | |
while True: | |
ret, image = camera.read() | |
cv2.imshow('Webcam', image) | |
if cv2.waitKey(0) & 0xFF == ord('q'): | |
break | |
camera.release() | |
cv2.destroyAllWindows() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can see the green light next to the camera but no output in the monitior.