暂停检测没穿制服
This commit is contained in:
@@ -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)
|
||||
# ------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user