Revert "Removed unused explicit LST handler"
This reverts commit 89e8d041a8.
This commit is contained in:
parent
89e8d041a8
commit
8152d1dccd
1 changed files with 12 additions and 0 deletions
|
|
@ -212,6 +212,18 @@ class PiCameraStreamer(BaseCamera):
|
|||
config["picamera"], pause_for_effect=True
|
||||
)
|
||||
|
||||
# Handle lens shading if camera supports it
|
||||
if (
|
||||
hasattr(self.camera, "lens_shading_table")
|
||||
and "lens_shading_table" in config["picamera"]
|
||||
):
|
||||
try:
|
||||
self.camera.lens_shading_table = json_to_ndarray(
|
||||
config["picamera"].get("lens_shading_table")
|
||||
)
|
||||
except KeyError as e:
|
||||
logging.error(e)
|
||||
|
||||
# PiCameraStreamer parameters
|
||||
for key, value in config.items(): # For each provided setting
|
||||
if (key != "picamera") and hasattr(self, key):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue