12 lines
357 B
Python
12 lines
357 B
Python
# https://picamera.readthedocs.io/en/release-1.10/recipes1.html#capturing-timelapse-sequences
|
|
|
|
import time
|
|
import picamera
|
|
|
|
with picamera.PiCamera() as camera:
|
|
camera.start_preview()
|
|
time.sleep(2)
|
|
for filename in camera.capture_continuous('img{counter:03d}.jpg'):
|
|
print('Captured %s' % filename)
|
|
time.sleep(300) # wait 5 minutes
|