简体   繁体   English

在灰度图像上创建边界框

[英]Creating bounding boxes on grayscale image

I have an image with persons(grayscale and segmented) and I would like to draw bounding boxes for each of the persons in an image.我有一个带有人的图像(灰度和分段),我想为图像中的每个人绘制边界框。 My input image is我的输入图像是

在此处输入图片说明

And I tried this solution and this will give me a bounding boxes as shown below我尝试了这个解决方案,这会给我一个如下所示的边界框在此处输入图片说明

When persons are close to each other it seems to give one bounding box here.当人们彼此靠近时,它似乎在这里给出了一个边界框。 Is there any approach where I can distinguish even if they are close to each other.有什么方法可以区分即使它们彼此靠近。

Thanks in advance for your help!在此先感谢您的帮助!

Many solutions exists for this, like "human shape recognition" using some algorithm, or using some AI为此存在许多解决方案,例如使用某些算法或使用某些 AI 的“人体形状识别”

there are no "easy methods" for this, but you can look at this:没有“简单的方法”,但你可以看看这个:

https://data-flair.training/blogs/python-project-real-time-human-detection-counting/ https://data-flair.training/blogs/python-project-real-time-human-detection-counting/

https://www.thepythoncode.com/article/detect-shapes-hough-transform-opencv-python https://www.thepythoncode.com/article/detect-shapes-hough-transform-opencv-python

or some AI https://towardsdatascience.com/object-detection-with-10-lines-of-code-d6cb4d86f606或一些人工智能https://towardsdatascience.com/object-detection-with-10-lines-of-code-d6cb4d86f606

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM