注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

dp: 生活的脚步,进步的点滴...

Cam、DSP、FPGA、PM、Life、More ...

 
 
 

日志

 
 

使用OpenCV开发视觉项目  

2015-05-19 11:55:19|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Install OpenCV

This document describes the steps for OpenCV version 2.4.6, but it also applies to newer versions. For best results, download the latest version.

  1. Download the latest version of OpenCV from http://opencv.org/downloads.html.
  2. Extract OpenCV in C:\
  3. From the Start Menu, right-click on Computer and select Properties.
  4. In the System window left pane, click Advanced system settings.
  5. In the System Properties dialog, from the Advanced tab, click Environment Variables.
  6. From the System variables list, select the Variable called Path and click Edit.
  7. At the end of the Variable value field, enter
    ;C:\opencv\build\x64\vc10\bin
    For 32-bit OpenCV version, replace x64 with x86.
  8. Click OK.

Configure OpenCV in Visual Studio

Add OpenCV to Visual Studio projects to perform image processing. The steps below outline how to prepare the Visual Studio settings in order to use OpenCV with Point Grey’s FlyCapture2 SDK.

  1. Download and install FlyCapture2 SDK available from http://www.ptgrey.com/support/downloads.
  2. Open one of the example source code solutions in Visual Studio. This document uses FlyCapture2Test with Visual Studio 2010 as an example.
  3. Ensure Debug is selected in the Solution Explorer’s configuration.
  4. Right-click on the project and select Build.
  5. Right-click on FlyCapture2Test and select Properties.
  6. In the Property Pages window, select VC++ Directories and from the Include Directories drop-down select Edit.
  7. Add C:\opencv\build\include and click OK.
  8. From the Property Pages window, from the Library Directories drop-down select Edit.
  9. Add C:\opencv\build\x64\vc10\lib and click OK.
    Note: For 32-bit systems, replace x64 with x86.
  10. From the Property Pages window, select Linker→Input, and from the Additional Dependencies drop-down select Edit.
  11. Add the following library files and click OK.
    opencv_calib3d246.lib
    opencv_contrib246.lib
    opencv_core246.lib
    opencv_features2d246.lib
    opencv_flann246.lib
    opencv_gpu246.lib
    opencv_highgui246.lib
    opencv_imgproc246.lib
    opencv_legacy246.lib
    opencv_ml246.lib
    opencv_nonfree246.lib
    opencv_objdetect246.lib
    opencv_photo246.lib
    opencv_stitching246.lib
    opencv_ts246.lib
    opencv_video246.lib
    opencv_videostab246.lib
    Note: If you are using a different OpenCV version, replace 246 with your version.
  12. Click OK to save all project settings.
  13. Open FlyCapture2Test.cpp and add #include “cv.h.”

You can now add you own OpenCV code in FlyCapture2Test.cpp.

Sample Code for OpenCV

These examples demonstrate how to convert images from Camera to OpenCV images.


  评论这张
 
阅读(314)| 评论(0)
推荐

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2016