简体   繁体   中英

OpenCV update messing up CaptureFromCAM on Raspberry Pi

I recently updated my opencv to version 2.4.6.1 . and i installed with following commands and settings on my raspberry pi.

wget downloads.sourceforge.net/project/opencvlibrary/opencv-unix/2.3.1/OpenCV-2.4.6.1.tar.gz
tar -xvf OpenCV-2.4.6.1.tar.gz
cd OpenCV-2.4.6.1/
cmake -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON ..
make
sudo make install

I have uv4l drivers for my Pi and they worked properly for previous version as far as capture is concerned. Now the same program which worked fine is not working in the updated version. I checked the width and height of the capture . They are both -1 . What should I do to make the camera capture work?. The main reason I did the update is because I was getting only 64x64 thumbnails from my previous version of opencv capture. Suggest me a way. And also could it be related to raspberry pi (Is a firmware update necessary after updating opencv ?)

我听过很多人说通过执行rpi-update更新固件可以解决此问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM