From 1164a587ac4cc6ef63a905ffd6e29413c29a0eb5 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 17:33:25 +0100 Subject: [PATCH] Fixing the camera 3 Changed it --- .idea/workspace.xml | 4 ++-- lib/graphiclib.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ed23523..0111370 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 d323b73..36d4fc0 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -84,4 +84,5 @@ class PiCamera(pygame.sprite.Sprite): print('updating camera') with picamera.array.PiRGBArray(self.camera, size=self.size) as output: self.camera.capture(output, 'rgb', resize=self.size) - print('Captured %dx%d image' % (output.array.shape[1], output.array.shape[0])) \ No newline at end of file + s = pygame.surfarray.make_surface(output.array) + self.image.blit(s, (0, 0)) \ No newline at end of file