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