Created
February 8, 2015 17:58
-
-
Save marjinal1st/940673f46cc8248f072c to your computer and use it in GitHub Desktop.
Revisions
-
marjinal1st created this gist
Feb 8, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ 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()