opencv在VS中的配置

Posted MY TIME

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了opencv在VS中的配置相关的知识,希望对你有一定的参考价值。

添加文件

(1)项目属性->VC++目录->包含目录->(D:\opencv\opencv249\opencv\build\include\opencv),(D:\opencv\opencv249\opencv\build\include\opencv2),(D:\opencv\opencv249\opencv\build\include)

(2)项目属性->VC++目录->库目录->(D:\opencv\opencv249\opencv\build\x86\vc12\lib)

添加lib

项目属性->连接器->输入->附加依赖项

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

以上是关于opencv在VS中的配置的主要内容,如果未能解决你的问题,请参考以下文章

VS2012 配置 OpenCV3.0

如何删除VS2015中的OpenCV的配置

vs2012怎么配置opencv

请问如何在vs2010下配置opencv2.2,求详细步骤,万分感谢!

VS 永久配置opencv

如何在VS2013下配置OpenCV