简体   繁体   English

减少行人检测中的错误检测

[英]Reduce false detection in Pedestrian Detection

I am using OpenCV sample code “peopledetect.cpp” to detect pedestrians. 我正在使用OpenCV示例代码“ peopledetect.cpp”来检测行人。 The code uses HoG for feature extraction and SVM for classification. 该代码使用HoG进行特征提取,并使用SVM进行分类。 Please find the reference paper used here. 请在此处找到参考纸。

The camera is mounted on the wall at a height of 10 feet and 45o down. 摄像机安装在墙壁上,高度为10英尺,向下45o。 There is no restriction on the pedestrian movement within the frame. 框架内的行人移动没有任何限制。 I am satisfied with the true positive rate (correctly detecting pedestrians) but false positive rate is very high. 我对正确的阳性率(正确检测行人)感到满意,但错误的阳性率非常高。

Some of the false detections I observed are moving car, tree, and wall among others. 我观察到的一些错误检测包括正在移动的汽车,树木和墙壁。 Can anyone suggest me how to improve the existing code to reduce false detection rate. 谁能建议我如何改进现有代码以减少错误检测率。 Any reference to blogs/codes is very helpful. 对博客/代码的任何引用都是非常有帮助的。

You could apply a background subtraction algorithm on your video stream. 您可以在视频流上应用背景减影算法。 I had some success on a similar project using BackgroundSubtractorMOG2 . 我在使用BackgroundSubtractorMOG2进行的类似项目中取得了一些成功。

Another trick I used is to eliminate all "moving pixels" that are too small or with a wrong aspect ratio. 我使用的另一个技巧是消除所有太小或纵横比不正确的“运动像素”。 I did this by doing a blob/contour analysis of the background subtraction output image. 我通过对背景减法输出图像进行斑点/轮廓分析来做到这一点。 You need to be careful with the aspect ratio to make sure you support overlapping pedestrians. 您需要注意长宽比,以确保您支持重叠的行人。

Note that the model you're using (not sure which) is probably trained on a front faced pedestrian and not with a 45 degrees angle down. 请注意,您正在使用的模型(不确定哪个模型)可能是在正面的行人上训练的,而不是向下倾斜45度。 This will obviously affect your accuracy. 这显然会影响您的准确性。

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

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