From 45e650d3db424d5803e171468b0ec4d4d8456d17 Mon Sep 17 00:00:00 2001 From: fuyangchenghu <1015138540@qq.com> Date: Thu, 8 Feb 2024 09:38:58 +0800 Subject: [PATCH] commit change --- Samples/YOLOV5MultiInput/src/main.cpp | 2 +- Samples/YOLOV5USBCamera/src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Samples/YOLOV5MultiInput/src/main.cpp b/Samples/YOLOV5MultiInput/src/main.cpp index b549214..7f18600 100644 --- a/Samples/YOLOV5MultiInput/src/main.cpp +++ b/Samples/YOLOV5MultiInput/src/main.cpp @@ -145,7 +145,7 @@ void GetResult(std::vector& inferOutputs, for (uint32_t i = 0; i < totalBox; i++) { cv::Point p1, p2; uint32_t score = uint32_t(detectData[totalBox * SCORE + i] * 100); - if (score < 70) { + if (score < 30) { continue; } p1.x = detectData[totalBox * TOPLEFTX + i] * widthScale; diff --git a/Samples/YOLOV5USBCamera/src/main.cpp b/Samples/YOLOV5USBCamera/src/main.cpp index fe46de0..c0db1ae 100644 --- a/Samples/YOLOV5USBCamera/src/main.cpp +++ b/Samples/YOLOV5USBCamera/src/main.cpp @@ -156,7 +156,7 @@ void GetResult(std::vector& inferOutputs, int half = 2; for (size_t i = 0; i < result.size(); ++i) { - if (result[i].score < 0.7) { + if (result[i].score < 0.3) { continue; } cv::Point leftUpPoint, rightBottomPoint; -- Gitee