1:opencv的官网直接下载相应的版本,一般下载最新的版本;
2:安装opencv
3:visual studio配置opencv的路径(4.4的版本)
debug:
D:\opencv4.4\opencv\build\include
D:\opencv4.4\opencv\build\include\opencv2
D:\opencv4.4\opencv\build\x64\vc14\lib
opencv_world440d.lib
release:
D:\opencv4.4\opencv\build\include
D:\opencv4.4\opencv\build\include\opencv2
D:\opencv4.4\opencv\build\x64\vc14\lib
opencv_world440.lib
注意配置的版本是64位还是32位,本人配置的是64位。