一、命令
sudo apt-get install cmake libgtk2.-dev libv4l-dev libavcodec-dev libavformat-dev libswscale-dev
cd
wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.10/opencv-2.4.10.zip
unzip opencv-2.4..zip
cd opencv-2.4.
cmake .
make -j
sudo make install
时间大约4个多小时。
二、效果