如何在图像中找到重叠的对象数? [英] How to find the overlapped object count in an image?
本文介绍了如何在图像中找到重叠的对象数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用OpenCV 3.1(C ++)。我需要在图像中找到重叠的对象计数。
我尝试了什么:
我用find轮廓来获取图像中的分离对象数。
I am using OpenCV 3.1 (C++). i need to find the overlapped objects counts in an image.
What I have tried:
I used find contours to get a separated object count in an image.
推荐答案
对于简单的对象,如圆形或矩形,可能是算法可能无法使用更复杂的对象。
试试这个:
使用Watershed和Distance Transform计算和分割重叠对象OpenCV代码 [ ^ ]
It's possible for simple objects, like circles or rectangles, but algorithms may not work with more complex objects.
Try this:
Count and segment overlapping objects with Watershed and Distance Transform | OpenCV Code[^]
这篇关于如何在图像中找到重叠的对象数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文