opencv配置
这里用的是opencv249 如果同时想用opencv3,在CMakeLists里
set(OpenCV_DIR "/home/xy/software/opencv3/build")
vs环境变量
opencv环境变量
D:\opencv\opencv\build\x86\vc12\bin
D:\opencv\opencv\build\x64\vc12\bin
包含目录
D:\opencv\opencv\build\include
D:\opencv\opencv\build\include\opencv
D:\opencv\opencv\build\include\opencv2
库目录
D:\opencv\opencv\build\lib\X86\vc12\lib
D:\opencv\opencv\build\lib\X64\vc12\lib
附加依赖项
debug
opencv_ml249d.lib
opencv_calib3d249d.lib
opencv_contrib249d.lib
opencv_core249d.lib
opencv_features2d249d.lib
opencv_flann249d.lib
opencv_gpu249d.lib
opencv_highgui249d.lib
opencv_imgproc249d.lib
opencv_legacy249d.lib
opencv_objdetect249d.lib
opencv_ts249d.lib
opencv_video249d.lib
opencv_nonfree249d.lib
opencv_ocl249d.lib
opencv_photo249d.lib
opencv_stitching249d.lib
opencv_superres249d.lib
opencv_videostab249d.lib
release
opencv_ts249.lib
opencv_video249.lib
opencv_nonfree249.lib
opencv_ocl249.lib
opencv_photo249.lib
opencv_stitching249.lib
opencv_superres249.lib
opencv_videostab249.lib
opencv_calib3d249.lib
opencv_contrib249.lib
opencv_core249.lib
opencv_features2d249.lib
opencv_flann249.lib
opencv_gpu249.lib
opencv_highgui249.lib
opencv_imgproc249.lib
opencv_legacy249.lib
![](https://images2015.cnblogs.com/blog/896994/201610/896994-20161019150815717-1111105738.png)