概述
下载安装Opencv,去官网http://opencv.org/即可下载最新版本的Opencv,此处用的是Opencv 2.4.10
安装时傻瓜式的,最新版本的安装就是相当于解压到你指定的安装目录.
配置环境变量,我的电脑—>属性—>高级—>环境变量
编辑PTAH:对于32位系统,添加:
“; xx你的安装目录xxopencvbuildx86vc10bin”(用“;”进行分隔)
而对于64位系统,可以两个都添加上:
”; xx你的安装目录xxopencvbuildx86vc10bin”
和”; xx你的安装目录xxopencvbuildx64vc10bin”
Vs2010中的配置
A.工程包含目录配置
通用属性—>VC++目录 —>包含目录 这个流程添加,注意根据自己不同的路径修改:
E:opencvopencvopencvbuildinclude
E:opencvopencvopencvbuildincludeopencv
E:opencvopencvopencvbuildincludeopencv2B. 工程库目录配置
在通用属性 —>VC++目录 —>库目录这个流程中添加
E:opencvopencvbuildx86vc10lib
C. 链接库配置
通用属性 —>链接器—>输入—>附加的依赖项这个流程中添加如下内容:
opencv_ml2410d.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_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.libopencv_objdetect2410.lib
opencv_ts2410.lib
opencv_video2410.lib
opencv_nonfree2410.lib
opencv_ocl2410.lib
opencv_photo2410.lib
opencv_stitching2410.lib
opencv_superres2410.lib
opencv_videostab2410.lib
opencv_calib3d2410.lib
opencv_contrib2410.lib
opencv_core2410.lib
opencv_features2d2410.lib
opencv_flann2410.lib
opencv_gpu2410.lib
opencv_highgui2410.lib
opencv_imgproc2410.lib
opencv_legacy2410.lib
opencv_ml2410.lib4 OpenCv环境配置到这一步已经完成,可以从网上找一段简单的测试代码代码,打开本地一张图片然后显示。如果显示成功,则代表环境配置大功告成。
最后
以上就是落寞季节为你收集整理的OpenCv2.4.10配置Vs2010过程的全部内容,希望文章能够帮你解决OpenCv2.4.10配置Vs2010过程所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
发表评论 取消回复