标签:
1. 下载opencv,解压到某目录
2. 在系统环境变量path中添加64位的OpenCV:C:\opencv\build\x64\vc12\bin
3. 新建VS工程,右击项目(非解决方案),打开属性,在VC++目录条目中的包含目录中添加C:\opencv\build\include;C:\opencv\build\include\opencv;C:\opencv\build\include\opencv2;
在库目录中添加C:\opencv\build\x64\vc12\lib;
在连接器条目下的输入条目中的附加依赖项中添加opencv_objdetect2410d.lib;opencv_ts2410d.lib;opencv_video2410d.lib;opencv_nonfree2410d.lib;opencv_ocl2410d.lib;opencv_photo2410d.lib;opencv_stitching2410d.lib;opencv_superres2410d.lib;opencv_videostab2410d.lib;opencv_calib3d2410d.lib;opencv_contrib2410d.lib;opencv_core2410d.lib;opencv_features2d2410d.lib;opencv_flann2410d.lib;opencv_gpu2410d.lib;opencv_highgui2410d.lib;opencv_imgproc2410d.lib;opencv_legacy2410d.lib;opencv_ml2410d.lib;
标签:
原文地址:http://my.oschina.net/451526451/blog/520697