def CameraInit(self):
self.camera = PiCamera()
self.camera.resolution = (640, 480)
self.camera.framerate = 32
rawCapture = PiRGBArray(self.camera, size=(640, 480))
rawCapture.truncate(0)
time.sleep(2) # wait for camera starting
return self.camera, rawCapture
The above is the method I defined when initializing the camera. By the way, what is the data type of rawcapture?
No other attempt has been made. If there is another way to try when encountering this kind of problem, I will ask humbly.