From 9658b29fca1baf86e612023fd26eb9a62b821138 Mon Sep 17 00:00:00 2001 From: haotian <2421912570@qq.com> Date: Thu, 12 Mar 2026 21:21:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9D=B4=E5=AD=90=E9=A2=9C?= =?UTF-8?q?=E8=89=B2=E6=A3=80=E6=B5=8B=E7=9A=84=E9=85=8D=E7=BD=AEbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/full_pipeline_1080p.json | 2 +- plugins/logic_gate/logic_gate_node.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/configs/full_pipeline_1080p.json b/configs/full_pipeline_1080p.json index b12f867..34c35ca 100644 --- a/configs/full_pipeline_1080p.json +++ b/configs/full_pipeline_1080p.json @@ -105,7 +105,7 @@ "model_w": 768, "model_h": 768, "num_classes": 11, - "conf": 0.1, + "conf": 0.2, "nms": 0.45, "debug": { "stats": true, diff --git a/plugins/logic_gate/logic_gate_node.cpp b/plugins/logic_gate/logic_gate_node.cpp index 4251091..ef31007 100644 --- a/plugins/logic_gate/logic_gate_node.cpp +++ b/plugins/logic_gate/logic_gate_node.cpp @@ -105,10 +105,9 @@ private: config.violation_key = cfg.ValueOr("violation_key", "ppe_violation"); config.pass_through = cfg.ValueOr("pass_through", true); config.debug = cfg.ValueOr("debug", false); - config.enable_color_check = cfg.ValueOr("enable_color_check", true); - // 解析颜色配置 if (const SimpleJson* color = cfg.Find("color_check")) { + config.enable_color_check = color->ValueOr("enable", true); std::string method = color->ValueOr("method", "hsv"); if (method == "hsv") config.color.method = ColorMethod::HSV; else if (method == "rgb") config.color.method = ColorMethod::RGB;