粗水平线检测

发布于 2024-09-07 18:31:14 字数 40 浏览 1 评论 0原文

请建议我一些图像中粗水平线检测的方法。 请提供任何论文、图书馆等。

Please suggest me some methods on thick horizontal line detection in images.
Any papers, libraries etc please.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

澉约 2024-09-14 18:31:14

对图像进行二值阈值,然后使用形态学操作的组合来检测“比 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.

唯憾梦倾城 2024-09-14 18:31:14

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.

七婞 2024-09-14 18:31:14

如果线条图像确实很容易检测(假设您可以在十码外找到线条),只需将图像从(宽度,高度)缩放到(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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文