always publish identifier

This commit is contained in:
Josh Hawkins 2025-03-12 14:46:31 -05:00
parent e292d639a7
commit 2f20e893a6

View File

@ -1062,11 +1062,10 @@ class LicensePlateProcessingMixin:
self.sub_label_publisher.publish(
EventMetadataTypeEnum.sub_label, (id, sub_label, avg_confidence)
)
# If it's not a known plate, publish to identifier instead
else:
self.sub_label_publisher.publish(
EventMetadataTypeEnum.identifier, (id, top_plate, avg_confidence)
)
self.sub_label_publisher.publish(
EventMetadataTypeEnum.identifier, (id, top_plate, avg_confidence)
)
self.detected_license_plates[id] = {
"plate": top_plate,