Skip to content

Commit

Permalink
Update camera resolution and JPEG quality for
Browse files Browse the repository at this point in the history
faster preview stream
  • Loading branch information
infinitel8p committed Nov 15, 2023
1 parent a0fc86c commit d7b0fce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
# Initialize the camera
camera = picamera.PiCamera()
camera.annotate_background = picamera.Color('black')
jpeg_quality = 85
camera.resolution = (1920, 1080)

jpeg_quality = 10 # cut down on bandwidth for faster preview stream
stream = io.BytesIO()
recording = False
streaming = True
Expand Down

0 comments on commit d7b0fce

Please sign in to comment.