VC++OpenCV配置
说明
- 安装目录
E:\repo-c\opencv\build
VC++目录
- 包含目录
E:\repo-c\opencv\build\include\opencv2
E:\repo-c\opencv\build\include
- 库目录
E:\repo-c\opencv\build\x64\vc15\lib
链接器→输入
- 附加依赖项
opencv_world454d.lib
注:Debug就用d结尾的,Release就用没有d的,不要同时添加
环境变量
Path += E:\repo-c\opencv\build\x64\vc15\bin
DLL拷贝
COPY E:\repo-c\opencv\build\x64\vc15\bin\*.dll C:\Windows\System32\
测试代码