Fixed camera settings read
This commit is contained in:
parent
a065bc643e
commit
25d3b15d4e
2 changed files with 14 additions and 25 deletions
|
|
@ -136,17 +136,13 @@ class MissingCamera(BaseCamera):
|
||||||
"""
|
"""
|
||||||
|
|
||||||
# Get config items from the base class
|
# Get config items from the base class
|
||||||
conf_dict = BaseCamera.read_settings(self)
|
conf_dict = {
|
||||||
|
"stream_resolution": self.stream_resolution,
|
||||||
|
"image_resolution": self.image_resolution,
|
||||||
|
"numpy_resolution": self.numpy_resolution,
|
||||||
|
"jpeg_quality": self.jpeg_quality,
|
||||||
|
}
|
||||||
|
|
||||||
# Include device-specific config items
|
|
||||||
conf_dict.update(
|
|
||||||
{
|
|
||||||
"stream_resolution": self.stream_resolution,
|
|
||||||
"image_resolution": self.image_resolution,
|
|
||||||
"numpy_resolution": self.numpy_resolution,
|
|
||||||
"jpeg_quality": self.jpeg_quality,
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
return conf_dict
|
return conf_dict
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -127,21 +127,14 @@ class PiCameraStreamer(BaseCamera):
|
||||||
"""
|
"""
|
||||||
Return config dictionary of the PiCameraStreamer.
|
Return config dictionary of the PiCameraStreamer.
|
||||||
"""
|
"""
|
||||||
|
conf_dict = {
|
||||||
# Get config items from the base class
|
"stream_resolution": self.stream_resolution,
|
||||||
conf_dict = BaseCamera.read_settings(self)
|
"image_resolution": self.image_resolution,
|
||||||
|
"numpy_resolution": self.numpy_resolution,
|
||||||
# Include device-specific config items
|
"jpeg_quality": self.jpeg_quality,
|
||||||
conf_dict.update(
|
"mjpeg_quality": self.mjpeg_quality,
|
||||||
{
|
"picamera": {},
|
||||||
"stream_resolution": self.stream_resolution,
|
}
|
||||||
"image_resolution": self.image_resolution,
|
|
||||||
"numpy_resolution": self.numpy_resolution,
|
|
||||||
"jpeg_quality": self.jpeg_quality,
|
|
||||||
"mjpeg_quality": self.mjpeg_quality,
|
|
||||||
"picamera": {},
|
|
||||||
}
|
|
||||||
)
|
|
||||||
|
|
||||||
# Include a subset of picamera properties. Excludes lens shading table
|
# Include a subset of picamera properties. Excludes lens shading table
|
||||||
for key in PiCameraStreamer.picamera_settings_keys:
|
for key in PiCameraStreamer.picamera_settings_keys:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue