简体   繁体   English

OpenCV更新弄乱了Raspberry Pi上的CaptureFromCAM

[英]OpenCV update messing up CaptureFromCAM on Raspberry Pi

I recently updated my opencv to version 2.4.6.1 . 我最近将opencv更新到版本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. 我的Pi有uv4l驱动程序,就捕获而言,它们可以在以前的版本中正常工作。 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 . 它们都是-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. 我进行更新的主要原因是因为我从先前版本的opencv捕获中仅获得64x64缩略图。 Suggest me a way. 给我建议一种方法。 And also could it be related to raspberry pi (Is a firmware update necessary after updating opencv ?) 并且也可能与树莓派有关(更新opencv之后是否需要固件更新?)

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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