我目前在我的 rapsberry pi 上安装了 opencv 2.4.1,并且一直在寻找将其升级到最新稳定版本 2.4.10 的方法。我必须进行全新安装还是有升级方法?
最佳答案
您必须下载源代码并编译:
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/opencv-2.4.10.zip
来自 docs 的 linux 说明基本上是:
Create a temporary directory, which we denote as <cmake_binary_dir>, where you want to put the generated Makefiles, project files as well the object files and output binaries.
Enter the <cmake_binary_dir> and type
cmake [<some optional parameters>] <path to the OpenCV source directory>
For example
cd ~/opencv
mkdir release
cd release
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local ..
Enter the created temporary directory (<cmake_binary_dir>) and proceed with:
make
sudo make install
有一个彻底的tutorial对于 ubuntu 14.04 也可能有用。
关于python - 在树莓派上升级 opencv,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28285040/