Picamera

Here import time import picamera VIDEO_DAYS = 1 FRAMES_PER_HOUR = 360 FRAMES = FRAMES_PER_HOUR * 3 * VIDEO_DAYS file = ‘/home/pi/camera/frame_%04d.jpg’ def capture_frame(frame):    with picamera.PiCamera() as cam:      time.sleep(2) cam.capture(file [ . . . ]