You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/take-photo.py

12 lines
333 B

import time
from picamera import PiCamera
camera = PiCamera()
#camera.resolution = (3280,2464)
camera.resolution = (2592,1944)
camera.start_preview()
current_time = time.strftime("%H;%M;%S", time.localtime())
current_time = time.strftime("%m-%d-%H%M%S", time.localtime())
camera.capture('/home/pi/payload/img'+current_time+'.jpg')

Powered by TurnKey Linux.