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