From a292344ac6a256a21ada77d38bde61b2d2663816 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 8 Jul 2021 15:34:38 -0400 Subject: [PATCH] Create take-photo.py --- take-photo.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 take-photo.py diff --git a/take-photo.py b/take-photo.py new file mode 100644 index 00000000..5f27f6a0 --- /dev/null +++ b/take-photo.py @@ -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')