这个只针对opencv3.2ubuntu系统前提:opencv3.2安装完成。使用步骤:1:将opencv_contrib拷贝至opencv根目录2:终端进入opencv根目录下创建的build文件夹3:cmake-DOPENCV_EXTRA_MODULES_PATH=/usr/local/opencv/opencv-3.2.0/opencv_contrib/modules//usr/local/opencv/opencv-3.2.0/(注意路径,按照你的路径设置/usr/local/opencv/opencv-3.2.0/opencv_contrib/modules/是解压之后opencv_contrib/modules的路径,/usr/lo