From 005f77942f9fbc8c707cc70d2e3b8737ffc1d21f Mon Sep 17 00:00:00 2001 From: zqc <835569504@qq.com> Date: Wed, 4 Mar 2026 16:20:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=81=9C=E6=A3=80=E6=B5=8B=E6=B2=A1?= =?UTF-8?q?=E7=A9=BF=E5=88=B6=E6=9C=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- biz/checkpoint/checkpoint_biz.py | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/biz/checkpoint/checkpoint_biz.py b/biz/checkpoint/checkpoint_biz.py index aae97bc..b1a893c 100644 --- a/biz/checkpoint/checkpoint_biz.py +++ b/biz/checkpoint/checkpoint_biz.py @@ -747,19 +747,19 @@ class KadianDetector: self.draw_alert(frame, "Playing Phone", (255, 0, 0), None, offset_y=alert_offset) alert_offset += 100 - # E. 新增:显示 Unvaild Uniform!! - if self.uniform_alert_active: - # 显示具体数量差异 - # diff = self.pose_person_count - current_roi_person_count - #sub_text = f"Missing {diff} uniform(s)" - current_frame_alerts.append( - { - 'time': current_time_sec, - 'action': "Unvaild Uniform!!", - } - ) - self.draw_alert(frame, "Unvaild Uniform!!", (255, 165, 0), None, offset_y=alert_offset) - alert_offset += 100 + # # E. 新增:显示 Unvaild Uniform!! + # if self.uniform_alert_active: + # # 显示具体数量差异 + # # diff = self.pose_person_count - current_roi_person_count + # #sub_text = f"Missing {diff} uniform(s)" + # current_frame_alerts.append( + # { + # 'time': current_time_sec, + # 'action': "Unvaild Uniform!!", + # } + # ) + # self.draw_alert(frame, "Unvaild Uniform!!", (255, 165, 0), None, offset_y=alert_offset) + # alert_offset += 100 # 第二层:离场违规 (Post-Event Alerts) # ------------------------------------------------