update to new syntax of picamera

This commit is contained in:
Tyler 2025-06-29 16:36:08 -04:00
parent 36c89797ce
commit 64843c8338
Signed by: tyler
GPG Key ID: 03B27509E17EFDC8

View File

@ -25,7 +25,9 @@ def get_image():
data = io.BytesIO()
picam2.start()
picam2.capture_image(data)
image = picam2.capture_image()
image.save(data, format="jpeg")
picam2.stop()
picam2.close()