This commit is contained in:
Nicolas Bertrand 2024-11-19 17:49:16 +01:00
parent 2a33ad0b49
commit 61c64d47fd
2 changed files with 1 additions and 4 deletions

View File

@ -2,4 +2,4 @@ Flask
pillow
gphoto2
scipy
gpiod
waitress

View File

@ -20,7 +20,6 @@ def delay_capture(cam):
def delay_save(cam, source, target):
# Measure the time it takes to save
start = time.time()
output = cam.capture()
cam.save(source, target)
delta = time.time() - start
@ -28,8 +27,6 @@ def delay_save(cam, source, target):
if config.DELAY is not None and delta < config.DELAY:
time.sleep(config.DELAY - delta)
return output
def scan(output_dir: str, on_and_off: bool = True):
os.makedirs(output_dir, exist_ok=True)