update to new syntax of picamera

This commit is contained in:
2025-06-29 16:36:08 -04:00
parent 36c89797ce
commit 64843c8338

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()