don't overwrite sub labels in any situation

This commit is contained in:
Josh Hawkins 2025-04-04 12:26:09 -05:00
parent 4eff233479
commit 69a60baa12

View File

@ -1396,12 +1396,7 @@ class LicensePlateProcessingMixin:
) )
# don't overwrite sub label for objects that have a sub label # 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:
if (
sub_label is not None
and obj_data.get("sub_label") is not None
and id not in self.detected_license_plates
):
logger.debug( logger.debug(
f"{camera}: Not overwriting sub label for recognized license plate due to existing sub label: {obj_data.get('sub_label')}." f"{camera}: Not overwriting sub label for recognized license plate due to existing sub label: {obj_data.get('sub_label')}."
) )