From 3c78be2d71b957616bfcf6e18cf34e88164d8081 Mon Sep 17 00:00:00 2001 From: Balthasar Reuter Date: Mon, 2 Jul 2018 21:53:50 +0200 Subject: [PATCH] Reduce resolution for preview with picamera --- photobooth/camera/CameraPicamera.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photobooth/camera/CameraPicamera.py b/photobooth/camera/CameraPicamera.py index f288b96..95d502d 100644 --- a/photobooth/camera/CameraPicamera.py +++ b/photobooth/camera/CameraPicamera.py @@ -41,8 +41,8 @@ class CameraPicamera(Camera): self._cap = None self.setActive() - res_x, res_y = self._cap.resolution - self._preview_resolution = (res_x // 2, res_y // 2) + self._preview_resolution = (self._cap.resolution[0] // 2, + self._cap.resolution[1] // 2) self.setIdle() def setActive(self):