为了方便阅读源码,最近在windows上安装了vs,并配置了Opencv的环境
1.首先下载,visual studio 2013 community(免费的),然后安装,过程不详细赘述(不造为什么用vs2015,总是各种bug,sign)
2.下载opencv,注意,由于我需要用到opencv代码,包括提取图像特征方面的,如sift,surf等,需要opencv中的nonfree模块,然而,新版的opencv3.0并没有包括nonfree模块以及legacy模块。因此我下载的是opencv2.4.11
3.在vs中新建一个win32控制台空文件项目,然后开始配置该项目进行配置,主要是
1)VC++里面的包含目录(%opencv%表示opencv的提取目录,操作的时候需要替换成自己的):
%opencv%\build\include;
%opencv%\build\include\opencv;
%opencv%\build\include\opencv2;
包含库:
%opencv%\build\x86\vc12\lib;
%opencv%\build\x86\vc12\staticlib;
2)链接项,输入:
opencv_calib3d2411.lib
opencv_contrib2411.lib
opencv_core2411.lib
opencv_features2d2411.lib
opencv_flann2411.lib
opencv_gpu2411.lib
opencv_highgui2411.lib
opencv_imgproc2411
VS2013+opencv2.4.11
最新推荐文章于 2023-11-04 18:32:58 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)