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;