Counting amount of people in HOG/HAAR detection
Hello!!
I'm using the hog_haar_person_detect package with turtlebot and kinect for people detection, and i need to identify the number of peoples (number of detections) that the algorithm is detecting.
The main objective is to detect the medium amount of people in front of the robot and save this information in a variable (int). I'm using a classifier instead of the openni_tracker package for 2 reasons: The classifier gets the rgb image from the kinect topic and it isn't related to the max range of the sensor, the other reason is the speed, this package is faster than openni_tracker's.
I can get the people detection information from the part of the code which draws the detection rectangles on the screen, but i can't count it.
My question is: Is it possible to identify the number of people through this code? How can i do that? Is there a better/another choice to consider?
Thanks so much in advance!