Commit 7c0d89b3 authored by Pietro Saccardi's avatar Pietro Saccardi

Added option to change resolution.

parent 8c4d5848
......@@ -10,7 +10,8 @@
"framerate": 30,
"buffer": 2.0,
"clip_length_tolerance": 1.0,
"jpeg_quality": 0.5
"jpeg_quality": 0.5,
"resolution": "1640x922"
},
"detector": {
"trigger_thresholds": [80, 20],
......
......@@ -99,6 +99,7 @@ class PiCameraRootPlugin(PluginProcessBase):
self._camera = PiCamera()
self._bitrate = SETTINGS.camera.get('bitrate', cast_to_type=int, default=750000, ge=100)
self.framerate = SETTINGS.camera.get('framerate', cast_to_type=float, default=30., ge=0.1, le=90.)
self.resolution = SETTINGS.camera.get('resolution', cast_to_type=str, default='720p')
self._warmup_thread = Thread(target=self._warmup, name='PiCamera warmup thread')
def __enter__(self):
......
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