文件名称:Corners

  • 所属分类:
  • 其他小程序
  • 资源属性:
  • [Text]
  • 上传时间:
  • 2013-01-25
  • 文件大小:
  • 1kb
  • 下载次数:
  • 0次
  • 提 供 者:
  • cl***
  • 相关连接:
  • 下载说明:
  • 别用迅雷下载,失败请重下,重下不扣分!

介绍说明--下载内容均来自于网络,请自行研究使用

首先,请检查/样品在你的OpenCV的分布/ C/ squares.c的。这个例子提供了一个方形的检测,如何检测角落类似的功能,它应该是一个不错的开始。然后,一起来看看在OpenCV的功能,导向功能,如cvCornerHarris()和cvGoodFeaturesToTrack()。



上述方法可以返回许多角落类似的功能 - 最不会“真正的角落”你正在寻找。在我的应用程序,我只好检测,旋转或倾斜的广场(透视)。我的检测流水线包括:



从RGB转换为灰度级(cvCvtColor)

平滑(cvSmooth)

阈值(cvThreshold)

检测边缘(cvCanny)

查找轮廓(cvFindContours的)

线性特征的大致轮廓与(cvApproxPoly)

查找“矩形”,这是结构:已经拥有4个点的polygonalized轮廓,有足够的面积,相邻的边〜 90度,“对面的”顶点之间的距离足够大,等等。



第7步是必要的,因为稍微嘈杂的图像可以产生许多结构出现矩形后polygonalization。在我的应用程序中,我也有处理方状结构,内出现,或重叠所需的平方。我发现轮廓的区域属性和重心是有帮助的挑剔适当的矩形。-First, check out /samples/c/squares.c in your OpenCV distribution. This example provides a square detector, and it should be a pretty good start on how to detect corner-like features. Then, take a look at OpenCV s feature-oriented functions like cvCornerHarris() and cvGoodFeaturesToTrack().



The above methods can return many corner-like features- most will not be the "true corners" you are looking for. In my application, I had to detect squares that had been rotated or skewed (due to perspective). My detection pipeline consisted of:



  Convert from RGB to grayscale (cvCvtColor)

  Smooth (cvSmooth)

  Threshold (cvThreshold)

  Detect edges (cvCanny)

  Find contours (cvFindContours)

  Approximate contours with linear features (cvApproxPoly)

  Find "rectangles" which were structures that: had polygonalized contours possessing 4 points, were of sufficient area, had adjacent edges were ~90 degrees, had distance between "opposite" vertices was of sufficient size, etc.

(系统自动生成,下载前可以参看下载内容)

下载文件列表





Corners.txt

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度更多...
  • 请直接用浏览器下载本站内容,不要使用迅雷之类的下载软件,用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.

相关评论

暂无评论内容.

发表评论

*主  题:
*内  容:
*验 证 码:

源码中国 www.ymcn.org