File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ def init(self):
4343 try :
4444 self .camera = PiCamera (resolution = (self .resolutionX , self .resolutionY ))
4545 # Below we calibrate the camera for consistent imaging
46- camera .framerate = 30
46+ self . camera .framerate = 30
4747 # Wait for the automatic gain control to settle
4848 time .sleep (2 )
4949 # Now fix the values
50- camera .shutter_speed = camera .exposure_speed
51- camera .exposure_mode = 'off'
52- g = camera .awb_gains
53- camera .awb_mode = 'off'
54- camera .awb_gains = g
50+ self . camera .shutter_speed = self . camera .exposure_speed
51+ self . camera .exposure_mode = 'off'
52+ g = self . camera .awb_gains
53+ self . camera .awb_mode = 'off'
54+ self . camera .awb_gains = g
5555 except :
5656 self .camera = PiCamera ()
5757
You can’t perform that action at this time.
0 commit comments