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) {