Windows Vs2022 OpenCV C++开发配置

1. 下载opencv

https://opencv.org/releases/

OpenCV – 4.6.0  windows

官网下载

https://versaweb.dl.sourceforge.net/project/opencvlibrary/4.6.0/opencv-4.6.0-vc14_vc15.exe

内网高速下载

aria2c -o opencv-4.6.0-vc14_vc15.exe -x 3 -s 12 "https://bzc.idealand.xyz:8600/dl/opencv-4.6.0-vc14_vc15.exe/dl" "http://tool.idealand.xyz/opencv-4.6.0-vc14_vc15.exe" "http://108.60.212.227/Files/Software/opencv-4.6.0-vc14_vc15.exe" "https://versaweb.dl.sourceforge.net/project/opencvlibrary/4.6.0/opencv-4.6.0-vc14_vc15.exe"

2. 双击运行opencv-4.6.0-vc14_vc15.exe,解压缩出来一个opencv文件夹,放到solution\libs里面

3. 项目属性

项目属性 - C/C++ - additional include path: $(SolutionDir)libs\opencv\include\;
项目属性 - Linker - additional library directories: $(SolutionDir)libs\opencv\build\include\;
项目属性 - Linker - input - additional dependencies: opencv_world460d.lib;

#include
#include

你可能感兴趣的:(c++,visual,studio,opencv,opencv,c++,windows,visual,studio)