通过头顶摄像头检测顶部头部
我在天花板上安装了一个摄像头,捕捉排队的人们。我需要数一下人数。目前我通过背景减法和霍夫变换来做到这一点。该检测器对于对比头效果很好,但如果头发颜色接近布料颜色,则性能较差。任何建议将不胜感激。此处的示例图片 http://old.nabble.com/file/p32380283/1.png
I have a camera set up on a ceiling , capturing people standing in line. I need to count the amount of people. Currently I do that with background subtraction and Hough transform. The detector works well for contrast heads, but if hair color is close to the cloth color, the performance is poor. Any advices would be greatly appreciated. Example image here http://old.nabble.com/file/p32380283/1.png
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
霍夫变换通常适用于部分模糊的几何形状 - 不会是我的头部首选。
假设相机已修复,我将从与存储的背景图像不匹配的任何内容开始。
然后我会寻找边缘并找到每个斑点的重心和面积。如果斑点足够大,可以成为头部,并且它的 c 或 g 的移动速度对于一个人来说大约是正确的(即,它一次不能保持几分钟的亚像素稳定性,或者移动米/秒),那么我会算出作为一个人。
Hough transform is generally good for geometric shapes that are partly obscured - wouldn't be my first choice for heads.
Assuming the camera is fixed I would start with anything that doesn't match a stored background image.
Then I would just look for edges and find a center of gravity and area of each blob. If the blob is large enough to be a head and it's c of g moves at about the right rate for a person (ie it isn't sub-pixel stable for minutes at a time or moves metres/second) then I would count that as a person.