From b8b439c460ae97e501108376cbfef843e65b3c78 Mon Sep 17 00:00:00 2001 From: Julius Riegel Date: Sat, 13 Jan 2018 17:09:20 +0100 Subject: [PATCH] Fixing the camera 2 Print out array to see what happens. Fixed list dude. --- .idea/workspace.xml | 8 ++++---- lib/graphiclib.py | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ee69ff0..ed23523 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -29,7 +29,7 @@ - + @@ -42,7 +42,7 @@ - + @@ -483,7 +483,7 @@ - + @@ -494,7 +494,7 @@ - + diff --git a/lib/graphiclib.py b/lib/graphiclib.py index b129672..d323b73 100644 --- a/lib/graphiclib.py +++ b/lib/graphiclib.py @@ -55,6 +55,7 @@ class List(pygame.sprite.Sprite): def update(self, *args): if self.updated: height = 0 + self.image.fill((0, 0, 0)) for key in self.dict.keys(): line = '{}: {}'.format(key, self.dict[key]) @@ -83,4 +84,4 @@ 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(output) \ No newline at end of file + print('Captured %dx%d image' % (output.array.shape[1], output.array.shape[0])) \ No newline at end of file