Hi, I’m trying to get the rated frame rate out of my Arducam 100fps Mono Global Shutter USB Camera (the 720P OV9281 UVC module) on a Raspberry Pi 5. I’m using Python with OpenCV and capturing 1280x720 with MJPG, but I’m only seeing around 30fps. The spec says this camera should do 100/120fps. Is this an OpenCV limitation or am I missing something?
Thanks for the report. Just to confirm what I’m looking at: Arducam 100fps Mono Global Shutter USB Camera (OV9281, 720P UVC) on a Raspberry Pi 5, captured via Python OpenCV with MJPG at 1280x720, and you’re getting roughly 30fps. The camera should be able to reach 100/120fps on the Pi, so before debugging the OpenCV code let’s verify the raw capture rate directly. Can you run the camera with v4l2-ctl and check the FPS it reports?
v4l2-ctl --device /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=MJPG --stream-mmap --stream-count=-1
This bypasses OpenCV entirely and streams from the UVC device directly. Please share the output.
Here’s the environment for reference:
- Raspberry Pi 5
- Arducam 100fps Mono Global Shutter USB Camera, 720P OV9281 UVC Webcam Module
- I followed this guide: Access UVC Cameras using OpenCV, Python, and GStreamer on Linux - Arducam Wiki
I also attached my test script (fps_test.py) — it just opens the camera with OpenCV and reads/displays the frames, nothing else.
I ran the v4l2-ctl command and it shows 120fps. But in OpenCV I’m still seeing around 30ms per frame, so ~33fps.
Good, the v4l2-ctl result tells us the camera and the UVC path on the Pi are fine. Since OpenCV is adding its own overhead, can you isolate the display step? Try the same OpenCV loop with imshow disabled so it only grabs/reads frames, and let me know the per-frame time. That will tell us whether the display is the bottleneck or the read loop itself.
Done. With imshow on I get around 30ms per frame (~33fps). With imshow turned off so it only reads frames, it drops to around 15ms per frame (~66fps). So the display does add overhead, but even without displaying anything I’m still stuck around 66fps, not 120fps.
Those numbers point to the right conclusion. The v4l2-ctl test hitting 120fps confirms the camera hardware and the USB/UVC capture path are capable of the full rate. The drop to ~33fps with imshow and ~66fps without it is coming from the OpenCV-side pipeline, not the camera.
So the key insight here: the low FPS you’re seeing in OpenCV doesn’t reflect the camera’s true capability. Validating the raw streaming performance with v4l2-ctl is the first troubleshooting step, and that passes at 120fps. From here the remaining bottleneck is in the application layer — the ~66fps read loop is the OpenCV path, and further improvement would be on the code side (splitting capture and display into separate threads, using a GStreamer pipeline as in the guide, etc.). The camera itself is performing to spec.