update to new syntax of picamera
This commit is contained in:
parent
36c89797ce
commit
64843c8338
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user