标签:
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
下载后解压,进入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
cd opencv/opencv-3.0.0-beta/samples/ sudo cmake . sudo make -j4 cd cpp/ ./cpp-example-facedetect
会自动打开笔记本上的摄像头捕捉人脸.
标签:
原文地址:http://www.cnblogs.com/biglucky/p/4616419.html