Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8093

Camera board • Re: RPi5 with Legacy RPiCamera and OpenCV

$
0
0
Using start_x=1 on Pi4 enabled the deprecated legacy camera stack.
That simply does not exist on Pi5, and is why it was deprecated in 2021 which was 2 years before the Pi5 was launched.

https://github.com/opencv/opencv/issues/21653 has been open on OpenCV since Feb 2022, and has gone nowhere.

There are numerous examples of using Picamera2 to capture frames and feed them into OpenCV - just because cv::VideoCapture doesn't work doesn't mean that is the only solution.
Thanks for the info.

So basically OpenCV does not support using libcamera and RPi5 only supports using libcamera, so there's no way for OpenCV to natively use any of the available Pi Cameras when run on a RPi5?

I did look at Picamera2 module to capture and feed frames to OpenCV. Unfortunately in C++, it looks to be a bit more involved than when using Python and I was hoping to get it working without refactoring the code.

Statistics: Posted by RPH — Wed Jul 09, 2025 2:30 pm



Viewing all articles
Browse latest Browse all 8093

Trending Articles