fix: 统一配置参数

This commit is contained in:
2026-01-22 15:53:31 +08:00
parent 6fc17ccf64
commit 2d5ada2909
4 changed files with 11 additions and 10 deletions

View File

@@ -205,6 +205,7 @@ class IntrusionAlgorithm:
def process(
self,
roi_id: str,
camera_id: str,
tracks: List[Dict],
current_time: Optional[datetime] = None,
@@ -236,7 +237,7 @@ class IntrusionAlgorithm:
for track_data in tracked:
x1, y1, x2, y2, track_id = track_data
cooldown_key = f"{camera_id}_{int(track_id)}"
cooldown_key = f"{roi_id}_{int(track_id)}"
if cooldown_key not in self.alert_cooldowns or (
now - self.alert_cooldowns[cooldown_key]