如何在 YOLOv3 中显示少量正确的边界框而不是所有检测

How to show few correct bounding boxes instead of all detectiones in YOLOv3

这是我第一个用 2 classes 检测物体的 YOLOv3 项目。在结果中,我看到了很多检测结果。是否可以只显示准确率超过 70%(例如)的框,或者说每个 class 的前 3 个框?有人可以帮忙吗?

我的测试执行如下: !./darknet detector test data/obj.data cfg/yolov3_custom.cfg ~/yolov3_custom_last.weights /content/5.png

如果你想只看到置信度分数超过 70% 的框,你必须设置 0.7 的阈值。

像这样!./darknet detector test data/obj.data cfg/yolov3_custom.cfg ~/yolov3_custom_last.weights /content/5.png -thresh 0.7