Create take-photo.py

bp
alanbjohnston 5 years ago committed by GitHub
parent 7ce490a198
commit a292344ac6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -0,0 +1,9 @@
import time
from picamera import PiCamera
camera = PiCamera()
camera.resolution = (3280,2464)
camera.start_preview()
current_time = time.strftime("%H;%M;%S", time.localtime())
camera.capture('/home/pi/payload/img'+current_time+'.jpg')
Loading…
Cancel
Save

Powered by TurnKey Linux.