opencv4.5.0 +contrib编译流程

1.下载opencv与opencv-contrib模块,国内镜像源:OpenCV/opencv_contrib国内快速下载 | 庐雪技术博客 (bzblog.online)

2.下载cmake-gui版本 安装

3.解压opencv-contrib与opencv到目标文件夹

4.打开cmake,将解压opencv文件夹作为source,新建buildfile 作为编译文件夹

5.出现错误:opencv4.5.0 +contrib编译流程

 

 解决:

一、ippicv_2020_win_intel64_20191018_general.zip下载失败
进入opencv3.4.2\sources\3rdparty\ippicv目录
将 ippicv.cmake 的https://raw.githubusercontent.com
修改为:https://raw.staticdn.net

二、opencv_videoio_ffmpeg_64.dll、opencv_videoio_ffmpeg.dll下载失败
进入opencv3.4.2\sources\3rdparty\ffmpeg目录
将 ffmpeg.cmake 的https://raw.githubusercontent.com
修改为:https://raw.staticdn.net

参考:https://blog.csdn.net/valley2013/article/details/106911688/

5.进行configure

6.编译opencv-contrib:将OPENCV-ENABLE-NONFREE使能勾选,在下一格opencv extra module path设置contrib modulle文件夹

7.configure

8.

三、boostdesc_bgm.i相关文件下载失败
进入opencv_contrib-3.4.2\modules\xfeatures2d\cmake目录
将 download_boostdesc.cmake中的https://raw.githubusercontent.com
修改为:https://raw.staticdn.net

四、vgg_generated_120.i相关文件下载失败
进入opencv_contrib-3.4.2\modules\xfeatures2d\cmake目录
将 download_vgg.cmake中的https://raw.githubusercontent.com
修改为:https://raw.staticdn.net

五、face_landmark_model.dat下载失败
修改.\opencv_contrib-3.4.2\modules\face\CMakeLists.txt,
将https://raw.githubusercontent.com
修改为:https://raw.staticdn.net
可能有时候会失败,多configure几次

9.将编译好的buildfile打开,找到install,打开opencv.sln

10.

opencv4.5.0 +contrib编译流程

上一篇:strlen、strcpy、strcat、strcmp函数编写


下一篇:unicode转中文的方法