I used this code to detect people
peopleDetector = vision.PeopleDetector;[bboxes,scores] = step(peopleDetector,I);I = insertObjectAnnotation(I,'rectangle',bboxes,scores);
For some cases it gives multiple bounding boxes for one person.
I want to select largest bounding box having highest score. How can I do this. Please help.
Best Answer