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

Camera board • Unable to use Pi camera with OpenCV 4 C++ on Bookworm

$
0
0
I used to run some 2019 OS and OpenCV 3 on my Pi 3B+ with my Pi camera V2.1 just fine. Then I updated to Bookworm and OpenCV 4. libcamera- still works fine but if I try to open the camera with

VideoCapture cap(0);

I get 3 warnings and no capture from modules/videoio/src/cap_gtstreamer.cpp about Failed to allocate required memory. And, pipeline have not been created.

I looked at lots of complaints and solutions on the web but most say to use Python or to run in compatibility mode which does not seem to be an option in Bookworm.

I did not see another way to access the camera so thought I would ask how to get this to work.

I suffered through vc4.force_hot plug to get my monitor to work. Is there also some magic to get my camera working again?

Thanks for any help.

Statistics: Posted by trossin — Mon Jun 10, 2024 10:09 pm



Viewing all articles
Browse latest Browse all 4848

Trending Articles