From 71148ded16c185a9aa0306dda764f1abdbf55976 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 4 Apr 2025 12:31:18 -0500 Subject: [PATCH] always publish sub label if it's a known plate --- frigate/data_processing/common/license_plate/mixin.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.py index 5ff1ad681e..778c059214 100644 --- a/frigate/data_processing/common/license_plate/mixin.py +++ b/frigate/data_processing/common/license_plate/mixin.py @@ -1395,13 +1395,8 @@ class LicensePlateProcessingMixin: None, ) - # don't overwrite sub label for objects that have a sub label - 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')}." - ) - elif sub_label is not None: - # If it's a known plate, publish to sub_label + # If it's a known plate, publish to sub_label + if sub_label is not None: self.sub_label_publisher.publish( EventMetadataTypeEnum.sub_label, (id, sub_label, avg_confidence) )