【问题标题】:Is there any method for finding the number of detected corners using Harris Corner Detector有没有什么方法可以使用 Harris Corner Detector 找到检测到的角的数量
【发布时间】:2019-05-16 22:00:38
【问题描述】:

我正在尝试使用 Harris Corner Detector 实时查找 python 中检测到的多个角。我搜索了整个互联网,但找不到任何链接,也找不到单个帖子。您可以建议任何其他更好的方法来检测角点和计算检测到的角点。提前感谢您的帮助。

【问题讨论】:

标签: python cv2 corner-detection


【解决方案1】:

Harris Corner Detector 是一种图像过滤器,可在图像的角点处产生高响应。

如果您查看有关 Harris 的 OpenCV 教程,您会注意到以下代码用于在这些高响应周围画圈:

# Drawing a circle around corners
for i in range(dst_norm.shape[0]):
    for j in range(dst_norm.shape[1]):
        if int(dst_norm[i,j]) > thresh:
            cv.circle(dst_norm_scaled, (j,i), 5, (0), 2)

您可以使用相同的代码对计数器进行计数,而不是画一个圆圈。如您所见,这涉及到提出适合您的特定图像数据的阈值。

【讨论】:

    猜你喜欢
    • 2020-10-31
    • 2012-11-16
    • 1970-01-01
    • 2018-10-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多