Formatting

This commit is contained in:
Nicolas Mowen 2025-04-28 16:30:47 -06:00
parent aefb080920
commit 05392142c6
2 changed files with 21 additions and 18 deletions

View File

@ -1514,15 +1514,17 @@ class LicensePlateProcessingMixin:
# always publish to recognized_license_plate field
self.requestor.send_data(
"tracked_object_update",
json.dumps({
"type": TrackedObjectUpdateTypesEnum.lpr,
"name": sub_label,
"plate": top_plate,
"score": avg_confidence,
"id": id,
"camera": camera,
"timestamp": start,
}),
json.dumps(
{
"type": TrackedObjectUpdateTypesEnum.lpr,
"name": sub_label,
"plate": top_plate,
"score": avg_confidence,
"id": id,
"camera": camera,
"timestamp": start,
}
),
)
self.sub_label_publisher.publish(
EventMetadataTypeEnum.recognized_license_plate,

View File

@ -164,7 +164,6 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
self.metrics.face_rec_fps.value = self.faces_per_second.eps()
camera = obj_data["camera"]
if not self.config.cameras[camera].face_recognition.enabled:
return
@ -295,14 +294,16 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
self.requestor.send_data(
"tracked_object_update",
json.dumps({
"type": TrackedObjectUpdateTypesEnum.face,
"name": weighted_sub_label,
"score": weighted_score,
"id": id,
"camera": camera,
"timestamp": start,
}),
json.dumps(
{
"type": TrackedObjectUpdateTypesEnum.face,
"name": weighted_sub_label,
"score": weighted_score,
"id": id,
"camera": camera,
"timestamp": start,
}
),
)
if weighted_score >= self.face_config.recognition_threshold: