From 29f3ebb70ecda5062568b2994aa779e28fe53c76 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 17:38:36 +0100 Subject: [PATCH] Rotating image now --- .idea/workspace.xml | 4 ++-- lib/graphiclib.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 0111370..16b22a8 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -42,7 +42,7 @@ - + @@ -494,7 +494,7 @@ - + diff --git a/lib/graphiclib.py b/lib/graphiclib.py index 36d4fc0..838550b 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -83,6 +83,6 @@ class PiCamera(pygame.sprite.Sprite): def update(self, *args): print('updating camera') with picamera.array.PiRGBArray(self.camera, size=self.size) as output: - self.camera.capture(output, 'rgb', resize=self.size) - s = pygame.surfarray.make_surface(output.array) + self.camera.capture(output, 'rgb') + s = pygame.transform.rotate(pygame.surfarray.make_surface(output.array), 90) self.image.blit(s, (0, 0)) \ No newline at end of file