使用 opencv 检测框中的自定义徽标或正方形的问题

发布于 2025-01-15 05:24:38 字数 679 浏览 0 评论 0原文

例如,我试图检测图像中有多少个带有给定徽标“N”的框。我该如何解决这个问题。我的主要目标是使用 opencv 对每个不同的产品进行计数。 到目前为止,我尝试了与“N”徽标匹配的模板。 输入图片这里的描述

用这个来计数下面。 输入图片这里的描述

来自我使用不同级联模型进行 haar 级联分类器训练的示例。 输入图片此处描述输入图片此处描述

I am trying to detect how many boxes in an image with given logo 'N' for example. How can i approach this problem. My main goal is to count each different product using opencv.
So far I tried template matching with 'N' logo.
enter image description here

used this to count below.
enter image description here

From my example with haar cascade classifier training with different cascade models.
enter image description here
enter image description here

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文