Added a useful read_config method to BaseCamera
This commit is contained in:
parent
33af3bf48c
commit
1c67b96895
3 changed files with 20 additions and 7 deletions
|
|
@ -75,12 +75,16 @@ class MockStreamer(BaseCamera):
|
|||
Return config dictionary of the PiCameraStreamer.
|
||||
"""
|
||||
|
||||
conf_dict = {
|
||||
# Get config items from the base class
|
||||
conf_dict = BaseCamera.read_config(self)
|
||||
|
||||
# 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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue