Select largest bounding box

5 ビュー (過去 30 日間)
Nataliya
Nataliya 2017 年 5 月 25 日
編集済み: Nataliya 2017 年 5 月 25 日
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 Center および File ExchangeMATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by