open-mmlab / mmdetection

OpenMMLab Detection Toolbox and Benchmark
https://mmdetection.readthedocs.io
Apache License 2.0
29.3k stars 9.42k forks source link

Counting the number of detections #8301

Closed David-Biggs closed 2 years ago

David-Biggs commented 2 years ago

How can I count the total number of detections made in an image which are above a specified probability (certainty) threshold?

Czm369 commented 2 years ago

Maybe you can count the results https://github.com/open-mmlab/mmdetection/blob/56e42e72cdf516bebb676e586f408b98f854d84c/mmdet/core/evaluation/eval_hooks.py#L126