Files
pibox/testprograms/camera/oneshot
2017-03-19 02:05:58 +00:00

13 lines
251 B
Python
Executable File

#!/usr/bin/python3
from picamera import PiCamera
from time import sleep
camera = PiCamera()
location = str(input("Where would you like to save this image? "))
camera.start_preview()
sleep(5)
camera.capture('pics/' + location)
camera.stop_preview()