python - 在树莓派上升级 opencv

标签 python opencv raspberry-pi raspbian

我目前在我的 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/

相关文章:

python - 在Python中总结小时和分钟的列

python - 预测排名的 ML 模型(列表的任意排序)

opencv - 根据实际尺寸计算物体的图像尺寸

opencv - 使用opencv查找对象旋转/比例/位置的方法

mongodb - 服务运行时无法连接到mongodb,raspbian

android - 将 Raspberry-Pi 无线连接到 Android 手机

raspberry-pi - 无法使用 systemctl 在 raspbian jessie 上启动 mosquitto

python - 安装具有 SYCL 支持的 Tensorflow

python - 动态输出CSV文件

java - javacv 中的 LineSegmentDetector (openCV 3)