[Swlug] Python camera

Rhys Sage rhys_sage at yahoo.com
Sat Mar 19 16:48:02 UTC 2022


Solved!

from picamera import PiCamera
from time import sleep
camera = PiCamera()
camera.start_preview()
sleep(5)
camera.capture('/home/pi/Desktop/image.jpg')
camera.stop_preview()

I would include the very first photo taken as an attachment but as it's a selfie, I don't want to put you off your tea!

Rhys Sage



More information about the Swlug mailing list