Fixing the camera 8

wrong var name fixed
pull/1/head
Julius Riegel 7 years ago
parent 167071ae6d
commit 9ec43e7e41

@ -41,8 +41,8 @@
<file leaf-file-name="graphiclib.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/lib/graphiclib.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="389">
<caret line="84" column="0" lean-forward="true" selection-start-line="84" selection-start-column="0" selection-end-line="84" selection-end-column="0" />
<state relative-caret-position="236">
<caret line="75" column="37" lean-forward="false" selection-start-line="75" selection-start-column="37" selection-end-line="75" selection-end-column="37" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>
@ -493,8 +493,8 @@
</entry>
<entry file="file://$PROJECT_DIR$/lib/graphiclib.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="389">
<caret line="84" column="0" lean-forward="true" selection-start-line="84" selection-start-column="0" selection-end-line="84" selection-end-column="0" />
<state relative-caret-position="236">
<caret line="75" column="37" lean-forward="false" selection-start-line="75" selection-start-column="37" selection-end-line="75" selection-end-column="37" />
<folding>
<element signature="e#0#28#0" expanded="true" />
</folding>

@ -73,7 +73,7 @@ class PiCamera(pygame.sprite.Sprite):
pygame.sprite.Sprite.__init__(self)
pygame.camera.init()
camera = picamera.PiCamera()
self.camsize = (self.size[0], int(self.size[0]/2))
self.camsize = (size[0], int(size[0]/2))
camera.resolution = self.camsize
self.camera = camera
self.output = picamera.array.PiRGBArray(camera, size=self.camsize)

Loading…
Cancel
Save