Created
September 30, 2014 11:33
-
-
Save suminb/8400c4390559dd9a8b43 to your computer and use it in GitHub Desktop.
Take a picture with a Raspberry Pi camera
This file contains 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 picamera | |
def test_camera(): | |
with picamera.PiCamera() as camera: | |
camera.capture('image.jpg') | |
if __name__ == '__main__': | |
test_camera() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Taking one picture:
Taking ten pictures:
Taking 100 pictures: