Commit 6ebd7029 authored by Daniel Kolibár's avatar Daniel Kolibár
Browse files

Update camera.py

parent 8d280f7b
......@@ -24,6 +24,7 @@ def on_message(client, userdata, msg):
photo = io.BytesIO()
with picamera.PiCamera() as camera:
camera.resolution = (320, 200)
camera.rotation = 180
camera.start_preview()
time.sleep(2)
camera.capture(photo, 'jpeg')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment