I am using raspberry pi camera on CSI2 interface on Pi3. I have performance problems. I simplified the code to only capture module and it takes around 0.5 sec. What is the solution?
import time import picamera import numpy with picamera.PiCamera() as camera: camera.resolution = (640, 480) camera.framerate = 24 camera.raw_format='rgb' time.sleep(2) output = numpy.empty((480, 640, 3), dtype=numpy.uint8) while 1: a=time.time() camera.capture(output, 'raw') b=time.time() print(b-a)