一、命令
sudo apt-get install cmake libgtk2.0-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.10.zip cd opencv-2.4.10 cmake . make -j 4 sudo make install
时间大约4个多小时。
二、效果