Select largest bounding box

2 次查看(过去 30 天)
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.

采纳的回答

MathReallyWorks
MathReallyWorks 2017-5-25
Hello nataliya,
Find the area of all the bounding box. Take out the bounding box having maximum area.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by