Home > Database > Mysql Tutorial > body text

VS 2010配置opencv 2.4.10

WBOY
Release: 2016-06-07 15:25:19
Original
1334 people have browsed it

http://www.cnblogs.com/freedomshe/archive/2012/04/25/2470540.html http://www.cnblogs.com/cuteshongshong/p/4057193.html 结合这两篇文章进行配置, 1,配置opencv环境变量时,也要注意自己使用的VS版本,2010对应 vs10, 2,配置连接器时: 配置连接器

http://www.cnblogs.com/freedomshe/archive/2012/04/25/2470540.html

http://www.cnblogs.com/cuteshongshong/p/4057193.html


结合这两篇文章进行配置,

1,配置opencv环境变量时,也要注意自己使用的VS版本,2010对应 vs10,

2,配置连接器时:

配置连接器:项目(菜单项)->…属性->连接器->输入->附加依赖项

针对debug配置添加以下库:

opencv_calib3d240d.lib

opencv_contrib240d.lib

opencv_core240d.lib

opencv_features2d240d.lib

opencv_flann240d.lib

opencv_gpu240d.lib

opencv_highgui240d.lib

opencv_imgproc240d.lib

opencv_legacy240d.lib

opencv_ml240d.lib

opencv_objdetect240d.lib

opencv_ts240d.lib

opencv_video240d.lib

后面的数字要根据自己的opencv的版本进行相应修改,如,我的修改为 opencv_video2410d.lib

3,注意,测试的图片文件应该放在 工程test下的test文件夹下,与Cpp文件在同一个文件夹下

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!