I have a Raspberry Pi 3 and a Pi camera (specifically, the mini "spy" variant) which captures video and outputs to a HDMI connected LCD screen. I'd like to also save the video to file, but showing it on screen is a must.
I am looking to get the highest framerate and lowest latency possible.
Currently, I use the following setup:
Code: Select all
camera = picamera.PiCamera() camera.exposure_mode = 'sports' # To reduce motion blur camera.framerate = 49 # Highest supported by mode 5 camera.start_preview(fullscreen=True) ...
Apparently, the spy camera only comes in a V1 module, not V2. (camera.revision returns 'ov5647').
However, latency is still a big problem. When I swipe my hand in front of the camera, there is a noticeable delay before it shows on the screen. I'd say about 200ms.
Is there any better settings I could use? Might it be possible to get better performance by delving into the picamera's more detailed API, or even MMAL?
I have seen some blogs and tutorials use "picamera.array", but I'm not sure if it would be of any benefit to me.
Has anyone had any experience with this, or have any tips?