opencv3.4.1做surf特征检测及人脸识别时,需要opencv-contrib3.4.1编译外置的库,
具体教程网上一大把:https://blog.csdn.net/childbor/article/details/82984853
https://blog.csdn.net/weixin_38285131/article/details/80342025
但是实际配置很容易出错!!!!!!我自己配置了1天才弄好。
使用Cmake安装环境时出错如下所示:安装时由于网络连接问题,几个主要的文件opencv_ffmpeg.dll,IPPICV: Download: ippicv_2017u3_win_intel64_general_20170822.zip等没下下来
Found PythonInterp: F:/wp/anacaonda3wp/python.exe (found suitable version "3.7.4", minimum required is "2.7")
AVX_512F is not supported by C++ compiler
AVX512_SKX is not supported by C++ compiler
Dispatch optimization AVX512_SKX is not available, skipped
FFMPEG: Download: opencv_ffmpeg.dll
CMake Warning at cmake/OpenCVDownload.cmake:190 (message):
FFMPEG: Download failed: 35;"SSL connect error"
IPPICV: Download: ippicv_2017u3_win_intel64_general_20170822.zip
CMake Warning at cmake/OpenCVDownload.cmake:190 (message):
IPPICV: Download failed: 35;"SSL connect error"
For details please refer to the download log file:
F:/wp/openCV3_4/opencv/newbuild/CMakeDownloadLog.txt
Call Stack (most recent call first):
3rdparty/ippicv/ippicv.cmake:42 (ocv_download)
cmake/OpenCVFindIPP.cmake:243 (download_ippicv)
cmake/OpenCVFindLibsPerf.cmake:12 (include)
CMakeLists.txt:637 (include)
这就需要我们自己下载好,再反复configure,直到不报错为止,在进行generate生成库文件。
自己下载过程:
一、根据报错,解读信息:
1的地址打开出错文件CMakeDownloadlog.txt。文件为止参照下图,也可以直接在安装目录搜索文件。。
4的地址下载,自己要加上哈希值或者修改之类的在网上下
3哈希值
2文件具体名字,后面有版本号,一定要一一对应!!!
下好的文件我们要3+4重命名,放在.catch下对应目录,替换掉以前的未下载成功的文件。
例如打开F:\wp\openCV3_4\opencv\sources\.cache\ffmpeg,我的安装路径,将下载好的缺失文件替换进去就行.cache\ffmpeg文件夹就行。
我一共有四个文件没下载成功:
一、ffmpeg文件夹下的ffmpeg_version.cmake、opencv_ffmpeg.dll、opencv_ffmpeg_64.dll文件
下载地址:
其他的一些文件太大了,并且很杂,我会更新在百度云盘。
最后看看运行效果: