fix: 统一配置参数
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user