mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 04:57:42 +03:00
don't overwrite sub labels in any situation
This commit is contained in:
parent
4eff233479
commit
69a60baa12
@ -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')}."
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user