简体   繁体   English

检测STATIC摄像机图像中的人物的最佳方法(不使用视频流)-OpenCV中的HOG,Haar,BackgroundSubtract?

[英]Best approach to detect people in a STATIC camera images ( not using video stream ) - HOG, Haar, BackgroundSubtract in OpenCV?

So I am planning on implementing human detection static camera images - the camera never moves but the lighting conditions do change. 因此,我计划实施人类检测静态相机图像-相机永远不会移动,但照明条件会发生变化。 Humans can be upright or could be sitting. 人类可以是直立的,也可以是坐着的。

Question: 题:

What would be better in this case to detect people in such setup? 在这种情况下,以这种方式检测人员会更好吗?

Haarcascade mostly deals with faces and eyes and my images are taken from an angle where these features are extremely hard to detect especially for people with their backs toward the camera. Haarcascade主要处理人脸和眼睛,而我的图像是从很难检测到这些特征的角度拍摄的,尤其是对于背对着照相机的人。

HOG features - I am not sure on this one HOG功能 -我不确定这一点

backgroundSubtractorMOG - does not seem to provide a very good result now even using a lot of images to "run through the subtractor" to build the background backgroundSubtractorMOG-即使使用大量图像“通过减法器”构建背景,现在似乎也无法提供很好的结果

Sample image with no people in it: 没有人的示例图像: 在此处输入图片说明

Maybe it would be easier to detect anything that moves on a picture? 也许检测图片上移动的任何内容会更容易? Detecting body, that can be in different positions would be very difficult (especially if half of the body is hidden behind a table). 检测可能位于不同位置的身体非常困难(尤其是如果一半的身体隐藏在桌子后面)。 I'm writing face detection algorithm using Haarcascade at the moment - it can deal with any type of shape (not only face and eyes), but it must find some common features between those objects - bodies can vary a lot in colours, shapes and positions. 我目前正在使用Haarcascade编写人脸检测算法-它可以处理任何类型的形状(不仅是脸和眼睛),但必须找到这些对象之间的一些共同特征-物体的颜色,形状和职位。 It would also be difficult to make a cascade for that (you'll need thousands of sample images) 为此也将很难进行级联(您将需要成千上万个样本图像)

If camera is static, the only things that move would be humans. 如果相机是静态的,唯一移动的东西就是人。 Utilize that fact. 利用这一事实。 I don't have experience in that matter, but this place may give you a hint: http://www.codeproject.com/Articles/10248/Motion-Detection-Algorithms 我在这方面没有经验,但是这个地方可能会给您一个提示: http : //www.codeproject.com/Articles/10248/Motion-Detection-Algorithms

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

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