From 73e37c0c84b14c0f161eaf3f1935e1d0e3c78587 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 17:45:51 +0100 Subject: [PATCH] Fixing the camera 5 --- .idea/workspace.xml | 8 ++++---- lib/graphiclib.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 1326bad..5a8b4b8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -41,8 +41,8 @@ - - + + @@ -493,8 +493,8 @@ - - + + diff --git a/lib/graphiclib.py b/lib/graphiclib.py index 0882056..54cfbc2 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -84,6 +84,6 @@ class PiCamera(pygame.sprite.Sprite): def update(self, *args): print('updating camera') self.output.truncate(0) - self.camera.capture(self.output, 'rgb') + self.camera.capture(self.output, 'rgb', resize=self.size) s = pygame.transform.rotate(pygame.surfarray.make_surface(self.output.array), 90) self.image.blit(s, (0, 0)) \ No newline at end of file