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