From 097c9646c8105aff7a389bad47b80b7f0831efbe Mon Sep 17 00:00:00 2001 From: Benjamin Braatz Date: Wed, 4 Aug 2021 14:05:06 +0200 Subject: [PATCH] Leave exposure_mode on 'sports' to reduce motion blur. --- controlpi_plugins/camera.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/controlpi_plugins/camera.py b/controlpi_plugins/camera.py index e136968..fe5e3be 100644 --- a/controlpi_plugins/camera.py +++ b/controlpi_plugins/camera.py @@ -59,16 +59,10 @@ class Camera(BasePlugin): try: while True: if self._capture: - camera.exposure_mode = 'auto' + camera.exposure_mode = 'sports' camera.awb_mode = 'auto' camera.start_preview() - # Wait for auto adjustment and fix settings: await asyncio.sleep(2) - camera.shutter_speed = camera.exposure_speed - camera.exposure_mode = 'off' - gains = camera.awb_gains - camera.awb_mode = 'off' - camera.awb_gains = gains while self._capture: while len(self._images) >= self.conf['keep']: file_name = self._images.popleft()[0] -- 2.34.1