From b36944281fa987d5d40fd23afdbd21233d8b5dcb Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 24 Mar 2023 20:31:20 +0100 Subject: [PATCH] Updated package meta zeug --- picamburst.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/picamburst.py b/picamburst.py index 567b5b7..1baed0b 100644 --- a/picamburst.py +++ b/picamburst.py @@ -24,10 +24,9 @@ def get_exposure_stack(factor: int = 2): start = picam2.capture_metadata() exposure_start = start["ExposureTime"] gain_start = start["AnalogueGain"] - if exposure_start > 117000: + if exposure_start > 117000 or exposure_start < factor: print("Low Light levels out of range, can't make HDR") - if exposure_start < factor: - print("HIgh Light levels out of range, cant make HDR") + exit() picam2.set_controls({"AeEnable": 0}) confirmed = picam2.capture_metadata()["AeLocked"]