Leave exposure_mode on 'sports' to reduce motion blur.
authorBenjamin Braatz <benjamin.braatz@graph-it.com>
Wed, 4 Aug 2021 12:05:06 +0000 (14:05 +0200)
committerBenjamin Braatz <benjamin.braatz@graph-it.com>
Wed, 4 Aug 2021 12:05:06 +0000 (14:05 +0200)
controlpi_plugins/camera.py

index e13696862d76fcc1e3793b7f77cf255888e14b13..fe5e3be9dd2656f932be9db6459fd4f99c1ae0e9 100644 (file)
@@ -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]