opencv配置

Opencv2.4.8+VS2012配置

1.成功安装Opencv2.4.8和VS2012

安装如图:
opencv配置_第1张图片

2.然后对系统的环境变量进行设置。

opencv配置_第2张图片
opencv配置_第3张图片
变量值编辑为:D:\Study\opencv2.4.8\opencv\build\x86\vc11\bin(根据自己安装opencv目录)

3.在VS2012里面分别对包含目录,库目录以及附加依赖项进行设置

opencv配置_第4张图片
其中包含目录设置为如图,库目录设置为D:\Study\opencv2.4.8\opencv\build\x86\vc11\lib。
附加依赖项为Opencv 2.4.8 Lib文件名。以下分别为Debug模式下和Release模式下的附加依赖项。

Debug:

opencv_calib3d248d.lib
opencv_contrib248d.lib
opencv_core248d.lib
opencv_features2d248d.lib
opencv_flann248d.lib
opencv_gpu248d.lib
opencv_highgui248d.lib
opencv_imgproc248d.lib
opencv_legacy248d.lib
opencv_ml248d.lib
opencv_nonfree248d.lib
opencv_objdetect248d.lib
opencv_ocl248d.lib
opencv_photo248d.lib
opencv_stitching248d.lib
opencv_superres248d.lib
opencv_ts248d.lib
opencv_video248d.lib
opencv_videostab248d.lib

Release:

opencv_calib3d248.lib
opencv_contrib248.lib
opencv_core248.lib
opencv_features2d248.lib
opencv_flann248.lib
opencv_gpu248.lib
opencv_highgui248.lib
opencv_imgproc248.lib
opencv_legacy248.lib
opencv_ml248.lib
opencv_nonfree248.lib
opencv_objdetect248.lib
opencv_ocl248.lib
opencv_photo248.lib
opencv_stitching248.lib
opencv_superres248.lib
opencv_ts248.lib
opencv_video248.lib
opencv_videostab248.lib

到这里Opencv的配置就完成了。

你可能感兴趣的:(opencv配置,vs2012,opencv)