1 安装CMAKE
sudo apt-get install cmake
2 安装python及其所依赖的软件包
sudo apt-get install build-essential
sudo apt-get install git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python3-dev python3-numpy libtbb2 libtbb-dev libjpeg-dev libpng12-dev libtiff5-dev libjasper-dev libdc1394-22-dev
3 从opencv官网下载opencv源码
wget -c https://github.com/opencv/opencv/archive/3.2.0.zip
unzip .

本文详细介绍了如何在Ubuntu 16.04系统上通过Cmake编译安装OpenCV3.2.0,同时涵盖Python3的集成,包括安装CMAKE,准备Python环境,下载OpenCV源码,编译过程,安装Contrib模块以及验证安装成功和运行摄像头示例。
最低0.47元/天 解锁文章
534





