3.0安装脚本下载地址:
https://github.com/cmayet/docker_python2.7_opencv3.0.0
3.1安装地址:
代码地址:https://github.com/willGuimont/Install-OpenCV-3-linux
下面是3.1脚本,另存为sh文件,执行即可
sudo apt-get --assume-yes update |
sudo apt-get --assume-yes upgrade |
sudo apt-get --assume-yes install build-essential git cmake pkg-config |
sudo apt-get --assume-yes install libjpeg8-dev libtiff4-dev libjasper-dev libpng12-dev |
sudo apt-get --assume-yes install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev |
sudo apt-get --assume-yes install libgtk2.0-dev |
sudo apt-get --assume-yes install libatlas-base-dev gfortran |
git clone https://github.com/Itseez/opencv.git |
git clone https://github.com/Itseez/opencv_contrib.git |
sudo --assume-yes apt-get install python2.7-dev python-pip |
sudo --assume-yes apt-get install python3-dev python3-pip |
sudo pip-3.2 install numpy |
cmake -D CMAKE_BUILD_TYPE=RELEASE \ |
-D CMAKE_INSTALL_PREFIX=/usr/local \ |
-D INSTALL_C_EXAMPLES=OFF \ |
-D INSTALL_PYTHON_EXAMPLES=OFF \ |
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \ |
echo -e"change include to : #include\"/usr/include/hdf5/serial/hdf5.h\"\n" |
echo
"in /opencv_contrib-3.1.0/modules/hdf/include/opencv2/hdf/hdf5.hpp"
这个是3.x安装脚本,分两步执行,感兴趣的可以下载。
https://github.com/ThibaudKieffer/installation-shellscript-opencv-3.x-for-linux-mint-and-ubuntu
文章来源: blog.csdn.net,作者:网奇,版权归原作者所有,如需转载,请联系作者。
原文链接:blog.csdn.net/jacke121/article/details/54425649
【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
cloudbbs@huaweicloud.com
评论(0)