增加last_seen_time

This commit is contained in:
zqc
2026-03-12 10:50:27 +08:00
parent e80e88b22a
commit 4f398a6593

View File

@@ -355,6 +355,7 @@ class KadianDetector:
self.car_enter_pending[tid] = { self.car_enter_pending[tid] = {
'first_seen': self.current_frame_idx, 'first_seen': self.current_frame_idx,
'last_seen': self.current_frame_idx, 'last_seen': self.current_frame_idx,
'last_seen_time': current_time_sec,
'frames_count': 1, 'frames_count': 1,
'last_box': [x1, y1, x2, y2], 'last_box': [x1, y1, x2, y2],
} }