Skip to content

Instantly share code, notes, and snippets.

@cmendesce
Created September 23, 2019 15:21
Show Gist options
  • Select an option

  • Save cmendesce/d5b09b9fba3e722f0154dd6ceb8079e8 to your computer and use it in GitHub Desktop.

Select an option

Save cmendesce/d5b09b9fba3e722f0154dd6ceb8079e8 to your computer and use it in GitHub Desktop.
from time import sleep
from picamera import PiCamera
camera = PiCamera()
camera.resolution = (1024, 768)
camera.start_preview()
# Camera warm-up time
sleep(2)
ROUNDS = 120
while (True):
camera.capture('foo.jpg')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment