I'm having problems with my person detection code. I'm using the Emgucv library, and it ends up picking up objects that have nothing to do with people ... Is something missing? How can I make it better?
Rectangle[] regions;
int indexx = 0;
using (HOGDescriptor des = new HOGDescriptor())
{
des.SetSVMDetector(HOGDescriptor.GetDefaultPeopleDetector());
regions = des.DetectMultiScale(currentFrame.Copy());
}
foreach (Rectangle rect in regions)
{
indexx++;
currentFrame.Draw(rect, new Bgr(Color.Red), 2);
}
if (regions.Count() > 0)
currentFrame.Save("pedestre\\pedestre0" + indexx + ".jpg");