From f29ee53fb4276da06fd42aefb67704abaab2f22c Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Fri, 13 Mar 2026 07:02:42 -0600 Subject: [PATCH] Add handler for license plate which is not expected to be stationary (#22416) --- frigate/track/stationary_classifier.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frigate/track/stationary_classifier.py b/frigate/track/stationary_classifier.py index 832df5d31..bea37f641 100644 --- a/frigate/track/stationary_classifier.py +++ b/frigate/track/stationary_classifier.py @@ -55,6 +55,14 @@ DYNAMIC_OBJECT_THRESHOLDS = StationaryThresholds( motion_classifier_enabled=True, ) +# Thresholds for objects that are not expected to be stationary +NON_STATIONARY_OBJECT_THRESHOLDS = StationaryThresholds( + objects=["license_plate"], + known_active_iou=0.9, + stationary_check_iou=0.9, + max_stationary_history=4, +) + def get_stationary_threshold(label: str) -> StationaryThresholds: """Get the stationary thresholds for a given object label.""" @@ -65,6 +73,9 @@ def get_stationary_threshold(label: str) -> StationaryThresholds: if label in DYNAMIC_OBJECT_THRESHOLDS.objects: return DYNAMIC_OBJECT_THRESHOLDS + if label in NON_STATIONARY_OBJECT_THRESHOLDS.objects: + return NON_STATIONARY_OBJECT_THRESHOLDS + return StationaryThresholds()