opencvpython图像中的点检测

2024-05-15 03:44:06 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个来自Petri培养皿的图像,我想检测黑色圆点(数量和位置),最好是python+opencv。 我在python opencv中尝试了不同的方法,但没有成功,例如hough circle、findContours等

我使用了How to count number of dots in an image using python and Opencv?count colored dots in image。这两种方法的问题在于,它们也会将右侧部分检测为点(从盘子外部)。因此,检测到的点的数量非常高~2K enter image description hereinput

期望输出: desired output


Tags: 方法in图像image数量countopencvdots

热门问题