第一
安装OpenCV
yum install cmake python-devel numpy gcc gcc-c++ gtk2-devel libdc1394-devel libv4l-devel ffmpeg-devel gstreamer-plugins-base-devel libpng-devel libjpeg-turbo-devel jasper-devel openexr-devel libtiff-devel libwebp-devel opencv opencv-python opencv-devel
第二
安装C++11
sudo yum install devtoolset-2-gcc devtoolset-2-binutils devtoolset-2-gcc-c++
第三
安装 boost
yum install boost
yum install boost-devel
yum install boost-doc
第四
安装Dlib
pip install dlib
完成
备注:
每个系统的依赖和版本安装的情况都不一样,不能直接套用。