From 69a60baa125643a58ba9005052904eabc367bb4e Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 4 Apr 2025 12:26:09 -0500 Subject: [PATCH] don't overwrite sub labels in any situation --- frigate/data_processing/common/license_plate/mixin.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.py index 09c5300d5..5ff1ad681 100644 --- a/frigate/data_processing/common/license_plate/mixin.py +++ b/frigate/data_processing/common/license_plate/mixin.py @@ -1396,12 +1396,7 @@ class LicensePlateProcessingMixin: ) # don't overwrite sub label for objects that have a sub label - # that is not a license plate - if ( - sub_label is not None - and obj_data.get("sub_label") is not None - and id not in self.detected_license_plates - ): + if sub_label is not None and obj_data.get("sub_label") is not None: logger.debug( f"{camera}: Not overwriting sub label for recognized license plate due to existing sub label: {obj_data.get('sub_label')}." )