Skip to content

Instantly share code, notes, and snippets.

@gigafide
Last active March 12, 2016 23:16
Show Gist options
  • Save gigafide/0245b37cde40a6d22916 to your computer and use it in GitHub Desktop.
Save gigafide/0245b37cde40a6d22916 to your computer and use it in GitHub Desktop.
#import the SimpleCV library
from SimpleCV import *
#initialize the camera
cam = Camera()
#grab the image from the camera
img = cam.getImage()
#show the image in a new window
img.show()
#save the image to a file within the project folder
img.save('image.png')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment