From d5608238870e14b88b7b3755cf7844803d0b5a3c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 27 Jun 2020 13:55:18 +0200 Subject: [PATCH] Replaced deprecated options in PiCamera module --- platypush/plugins/camera/pi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platypush/plugins/camera/pi.py b/platypush/plugins/camera/pi.py index 28a5dede3..de96bdb90 100644 --- a/platypush/plugins/camera/pi.py +++ b/platypush/plugins/camera/pi.py @@ -30,7 +30,7 @@ class CameraPiPlugin(CameraPlugin): def __init__(self, resolution=(_default_resolution[0], _default_resolution[1]), framerate=24, hflip=False, vflip=False, sharpness=0, contrast=0, brightness=50, video_stabilization=False, iso=0, exposure_compensation=0, exposure_mode='auto', meter_mode='average', awb_mode='auto', - image_effect='none', color_effects=None, rotation=0, crop=(0.0, 0.0, 1.0, 1.0), + image_effect='none', color_effects=None, rotation=0, zoom=(0.0, 0.0, 1.0, 1.0), listen_port: int = _default_listen_port, **kwargs): """ See https://www.raspberrypi.org/documentation/usage/camera/python/README.md @@ -49,7 +49,7 @@ class CameraPiPlugin(CameraPlugin): 'contrast': contrast, 'brightness': brightness, 'video_stabilization': video_stabilization, - 'ISO': iso, + 'iso': iso, 'exposure_compensation': exposure_compensation, 'exposure_mode': exposure_mode, 'meter_mode': meter_mode, @@ -57,7 +57,7 @@ class CameraPiPlugin(CameraPlugin): 'image_effect': image_effect, 'color_effects': color_effects, 'rotation': rotation, - 'crop': tuple(crop), + 'zoom': tuple(zoom), } self._camera = None