From 523e4ba1fe43450ec367cab15b19299e585bf045 Mon Sep 17 00:00:00 2001 From: tian <11429339@qq.com> Date: Mon, 27 Jul 2026 16:33:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=8A=E8=AD=A6=E9=98=88=E5=80=BC?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E5=8E=BB=E6=8E=89=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?config=E5=B5=8C=E5=A5=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/deploy/relax-alarms.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/scripts/deploy/relax-alarms.py b/scripts/deploy/relax-alarms.py index db3be63..70f9a05 100644 --- a/scripts/deploy/relax-alarms.py +++ b/scripts/deploy/relax-alarms.py @@ -13,23 +13,15 @@ nodes = body['template']['nodes'] for n in nodes: if n.get('id') != 'alarm_violation': continue - cfg = n['config'] - cfg['cooldown_ms'] = 60000 - cfg['min_score'] = 0.5 - cfg['min_duration_ms'] = 1500 - cfg['min_hits'] = 3 - cfg['hit_window_ms'] = 3000 - # 劳保鞋 - for r in cfg.get('rules', []): + for r in n.get('rules', []): if r['name'] == 'non_compliant_workshoe': r['min_score'] = 0.5 r['cooldown_ms'] = 60000 r['min_hits'] = 3 r['min_duration_ms'] = 1500 - # 陌生人脸 - for r in cfg.get('face_rules', []): + for r in n.get('face_rules', []): if r['name'] == 'unknown_face': r['cooldown_ms'] = 30000 r['max_known_sim'] = 0.2