官网下载对应版本安装配置环境变量Visual Studio下配置OpenCV官网Home - OpenCVOpenCV provides a real-time optimized Computer Vision library, tools, and hardware. It also supports model execution for Machine Learning (ML) and Artificial Intelligence (AI).https://opencv.org/下载对应版本我这里下载是目前最新的4.6.0下载完成是一个exe文件,点击运行安装解压到D盘安装完成后,文件夹包含的目录如下:其中build是OpenCV使用时要用到的一些库文件,而sources中则是OpenCV官方为我们提供的一些demo示例源码。配置环境变量右键此电脑—>属性—>高级系统设置—>环境变量,找到Path变量,选中并点击新建找到OpenCV文件夹,依次选择build—>x64—>vc15—>binVisual Studio下配置OpenCV blog.csdn.nethttps://blog.csdn.net/didi_ya/article/details/112697046