灵闪机器视觉社区 有图就有答案
Questions Tags Users Badges

如何根据卡片侧面堆叠图识别卡片数量?

大饼土博 322
Created Oct 31, 2025 Edited Nov 13, 2025
Viewed 144

原图:
image.png

参考结果:
image.png

source: https://www.51halcon.com/forum.php?mod=viewthread&tid=6829

半月报精选 数量识别
Share
2 Answers

多模板定位找到了。(多直线定位,有些粗有些细,没调出来
image.png

edited Jan 1, 1970
wind46
answered Nov 6, 2025

思路:阈值分割后找缝
1.腐蚀
image.png
2.双阈值-拉伸
image.png
3.闭操作
image.png
4.斑点定位-找缝隙,按长轴过滤
image.png
效果如下:
image.png

edited Jan 1, 1970
chen.yu21
answered Nov 7, 2025
Related
在灵闪中导入本地图片时,会在图片文件夹下自动生成一个.cache缩略图文件夹,是否可以选择不生成
1 answers
如何判断旺仔牛奶包装盒上是否有吸管?
1 answers
如何提取所有方格内的文字?
2 answers
如何找图中的鸡蛋
1 answers
有什么简单的消高光的方法吗?
3 answers
螺丝槽十字缺陷检测
1 answers

Terms of service Privacy policy

Powered by Answer - the open-source software that powers Q&A communities.

© 2025 杭州利珀科技股份有限公司 All Rights Reserved | 浙ICP备18003692号 | 浙公网安备33018502001926号