From 7a455b9d564e7a303221c188331a55fdb182ef8a Mon Sep 17 00:00:00 2001 From: sladro Date: Wed, 7 Jan 2026 18:21:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=BA=E8=84=B8=E7=94=BB?= =?UTF-8?q?=E6=A1=866?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/test_cam1_face_det_rtsp_server.json | 4 ++-- include/utils/simple_json.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/test_cam1_face_det_rtsp_server.json b/configs/test_cam1_face_det_rtsp_server.json index 23932f2..9030bb4 100644 --- a/configs/test_cam1_face_det_rtsp_server.json +++ b/configs/test_cam1_face_det_rtsp_server.json @@ -36,11 +36,11 @@ "role": "filter", "enable": true, "model_path": "./models/RetinaFace_mobile320.rknn", - "conf": 0.02, + "conf": 0.002, "nms": 0.4, "max_faces": 10, "output_landmarks": true, - "input_format": "rgb", + "input_format": "bgr", "face_class_index": -1, "letterbox": true }, diff --git a/include/utils/simple_json.h b/include/utils/simple_json.h index ad4843b..875fe37 100644 --- a/include/utils/simple_json.h +++ b/include/utils/simple_json.h @@ -5,11 +5,13 @@ #pragma once #include +#include #include #include #include #include #include +#include #include #include @@ -119,6 +121,8 @@ public: return child->AsString(def); } else if constexpr (std::is_same_v) { return child->AsNumber(def); + } else if constexpr (std::is_same_v) { + return static_cast(child->AsNumber(static_cast(def))); } else if constexpr (std::is_same_v) { return child->AsInt(def); } else if constexpr (std::is_same_v) {