粗水平线检测
请建议我一些图像中粗水平线检测的方法。 请提供任何论文、图书馆等。
Please suggest me some methods on thick horizontal line detection in images.
Any papers, libraries etc please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
对图像进行二值阈值,然后使用形态学操作的组合来检测“比 N1 厚但比 N2 薄的边界”,以生成多个图像并将它们组合(逻辑与)以选择性地检测特定预期厚度的边界。
Binary threshold the image, then use a combination of morphological operations to detect "borders that are thicker then N1 but thinner than N2" to produce several images and combine (logically AND) them to selectively detect borders of a certain expected thickness.
OpenCV 是一个很好的库。您可以使用 霍夫变换< /a> 检测线路。
请注意,答案可能取决于图像的质量,某些方法可能比其他方法更有效。
OpenCV is a good library. You may use a Hough transform to detect lines.
Note that the answer may depend on the quality of your images, some methods can be more effective that other ones.
如果线条图像确实很容易检测(假设您可以在十码外找到线条),只需将图像从(宽度,高度)缩放到(1,高度)并找到最暗像素的 y 坐标。调整大小时使用 CV_INTER_AREA。
If the line images are really easy to detect (say you can find the line from ten yards away), just scale the image from (width, height) to (1, height) and find the y-coordinate of the darkest pixel. Use CV_INTER_AREA when resizing.