完成警告消息对应中文显示
This commit is contained in:
@@ -371,12 +371,12 @@ class KadianDetector:
|
||||
|
||||
# 情况1:通过时间太短 -> Ignore (Too Fast)
|
||||
if duration_frames < self.frame_thresh_car_min_duration:
|
||||
print(f"ALARM: Car {car_id} passed too fast -> Regarded as Ignore Checked!")
|
||||
logger.info(f"ALARM: Car {car_id} passed too fast -> Regarded as Ignore Checked!")
|
||||
self.fast_pass_alerts[car_id] = self.current_frame_idx + int(self.ignore_show_seconds * self.fps)
|
||||
|
||||
# 情况2:时间够长,但没检查后备箱 -> Unchecked Trunk
|
||||
elif not car_info['is_checked']:
|
||||
print(f"ALARM: Car {car_id} left without checking trunk!")
|
||||
logger.info(f"ALARM: Car {car_id} left without checking trunk!")
|
||||
self.unchecked_trunk_alerts[car_id] = self.current_frame_idx + int(
|
||||
self.openTrunk_show_seconds * self.fps)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user