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.

 Respuesta aceptada

MathReallyWorks
MathReallyWorks el 25 de Mayo de 2017

1 voto

Hello nataliya,
Find the area of all the bounding box. Take out the bounding box having maximum area.

Más respuestas (0)

Categorías

Más información sobre Linear Algebra en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 25 de Mayo de 2017

Editada:

el 25 de Mayo de 2017

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by