I am working on a project which requires detection of people in a scene.
Initially after running the HOG detector on the original frames a particular background object was being detected as a person on all the frames, giving me 3021 false positive detections.
So I took the logical step to remove the static background by applying a background subtracter (BackgroundSubtractorMOG2) to all the frames. The resulting frames looked like this:
Then these mask images were added (using bitwise_and) to the original image so the white pixels are replaced the pixels constituting the person.
Sample:
Then I ran the HOG detector on these images which gave the results like this:
As you can see there are a lot of false positive detections for some reason. I thought doing background subtraction will give me better results than using HOG on the original images.
Can someone please tell me why there are so many false positives in this method? And what can be done to improve the detection on background subtracted images?