【Windows版】opencv 和opencv_contrib配置
一、参考资料
(四十一)CMake+VS+opencv/opencv_contrib 环境配置
从源码安装OpenCV,使用python
windows+vscode+opencv源码安装配置
二、关键步骤
1. opencv与opencv_contrib版本对齐
下载 opencv
下载 opencv_contrib
opencv_contrib是opencv的扩充,需要版本对齐。
2. 配置 opencv_contrib
勾选 OPENCV_ENABLE_NONFREE
;
选择 OPENCV_EXTRA_MODULES_PATH
的路径:
D:\360Downloads\opencv\opencv_contrib-4.5.2\modules
;