Visual Studio 下opencv的配置方法_opencv配置方法

其他范文 时间:2020-02-28 10:09:18 收藏本文下载本文
【www.daodoc.com - 其他范文】

Visual Studio 下opencv的配置方法由刀豆文库小编整理,希望给你工作、学习、生活带来方便,猜你可能喜欢“opencv配置方法”。

OpenCV 2.1.0 with Visual Studio 2008

These instructions were tested with Visual C++ 9.0(as part of Visual Studio 2008 Profeional).These instructions should work without modification with Visual Studio 2005 and 2003.Modifications may be neceary for Visual Studio Expre editions.These instructions do not apply to Visual Studio 2010 which uses different settings(see). There exists a short walkthrough video onat

Install OpenCV

1.-“OpenCV-

2.1.0-win32-vs2008.exe”.2.Install it to a folder(without any spaces in it), say “C:OpenCV2.1”.This article will refer to this path as $openCVDir

3.During installation, enable the option “Add OpenCV to the system PATH for all users”.Configure Visual Studio

1.Open VC++ Directories configuration: Tools > Options > Projects and Solutions > VC++ Directories

2.Choose “Show directories for: Include files”

1.Add “$openCVDirincludeopencv”

3.Choose “Show directories for: Library files”

1.Add “$openCVDirlib”

4.Choose “Show directories for: Source files”

1.Add “$openCVDirsrccv”

2.Add “$openCVDirsrccvaux”

3.Add “$openCVDirsrccxcore”

4.Add “$openCVDirsrchighgui”Configure your Project

After you've created a project you'll need to add the OpenCV dependencies.1.Open Project Properties: Project > %projectName% Properties...2.Open Linker Input properties: Configuration Properties > Linker > Input

3.Open the “...” window to edit “Additional Dependencies” and on each line put:

1.“cv210.lib”

2.“cxcore210.lib”

3.“highgui210.lib”

4.And any other lib file neceary for your project

4.Your project should now build.If you get any errors try restarting Visual Studio and then doing a clean Rebuild.

下载Visual Studio 下opencv的配置方法word格式文档
下载Visual Studio 下opencv的配置方法.doc
将本文档下载到自己电脑,方便修改和收藏。
点此处下载文档

文档为doc格式

    热门文章
      整站推荐
        点击下载本文