ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Hi Phelipe!

To count the number of detections from the HOG detector use:

int num_detected_persons = detected_person.size();

To count the number of detections from the HAAR detector use:

int num_detected_faces = detected_faces.size();

An alternative for the kinect which I would recommended trying out is the ground-based RGBD detection in the PCL by Matteo Munaro