目录
1 下载官方OpenCV库
进入官网https://opencv.org,点击releases下载需要的openCV版本并解压
2 Windows配置
2.1 配置系统环境变量
按以下步骤进行:
- 点击
计算机
,右键属性
->高级系统设置
->环境变量
,在系统变量
中选择PATH
- 点击
编辑
,添加D:\Opencv\opencv24\opencv\build\x64\vc14\bin
,这里路径对应自己的安装目录
2.2 在Visual Studio中配置环境
新建工程,用属性管理器
配置debug|x64
的属性。第一次配置时,点击添加新项目属