-
sudo apt-get update sudo apt-get upgrade
-
搭建C/C++编译环境:
sudo apt-get install build-essential
安装关联库:sudo apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
sudo apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-22-dev
- http://yunpan.cn/cQDsTcyKwfdxR (提取码:1a4b)
-
下载后解压,进入opencv-3.0.0-beta中,键入如下命令:
cmake .
sudo make
sudo make install
sudo /bin/bash -c 'echo "/usr/local/lib" > /etc/ld.so.conf.d/opencv.conf' sudo ldconfig
- 切换到OpenCV3.0的samples目录下面,并编译samples程序
cd opencv/opencv-3.0.0-beta/samples/ sudo cmake . sudo make -j4 cd cpp/ ./cpp-example-facedetect
会自动打开笔记本上的摄像头捕捉人脸.