Skip to content

Instantly share code, notes, and snippets.

@nicknormal
Created June 24, 2014 21:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicknormal/347c18d0b27d45e33f73 to your computer and use it in GitHub Desktop.
Save nicknormal/347c18d0b27d45e33f73 to your computer and use it in GitHub Desktop.
import cv
capture = cv.CaptureFromCAM(-1)
cv.SetCaptureProperty(capture, cv.CV_CAP_PROP_FRAME_WIDTH, 960)
cv.SetCaptureProperty(capture, cv.CV_CAP_PROP_FRAME_HEIGHT, 720)
im = cv.QueryFrame(capture)
cv.SaveImage("/var/lib/cloud9/Dish-Detector/camera-test.jpg", im)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment