mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
Formatting
This commit is contained in:
parent
aefb080920
commit
05392142c6
@ -1514,15 +1514,17 @@ class LicensePlateProcessingMixin:
|
|||||||
# always publish to recognized_license_plate field
|
# always publish to recognized_license_plate field
|
||||||
self.requestor.send_data(
|
self.requestor.send_data(
|
||||||
"tracked_object_update",
|
"tracked_object_update",
|
||||||
json.dumps({
|
json.dumps(
|
||||||
"type": TrackedObjectUpdateTypesEnum.lpr,
|
{
|
||||||
"name": sub_label,
|
"type": TrackedObjectUpdateTypesEnum.lpr,
|
||||||
"plate": top_plate,
|
"name": sub_label,
|
||||||
"score": avg_confidence,
|
"plate": top_plate,
|
||||||
"id": id,
|
"score": avg_confidence,
|
||||||
"camera": camera,
|
"id": id,
|
||||||
"timestamp": start,
|
"camera": camera,
|
||||||
}),
|
"timestamp": start,
|
||||||
|
}
|
||||||
|
),
|
||||||
)
|
)
|
||||||
self.sub_label_publisher.publish(
|
self.sub_label_publisher.publish(
|
||||||
EventMetadataTypeEnum.recognized_license_plate,
|
EventMetadataTypeEnum.recognized_license_plate,
|
||||||
|
|||||||
@ -164,7 +164,6 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
self.metrics.face_rec_fps.value = self.faces_per_second.eps()
|
self.metrics.face_rec_fps.value = self.faces_per_second.eps()
|
||||||
camera = obj_data["camera"]
|
camera = obj_data["camera"]
|
||||||
|
|
||||||
|
|
||||||
if not self.config.cameras[camera].face_recognition.enabled:
|
if not self.config.cameras[camera].face_recognition.enabled:
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -295,14 +294,16 @@ class FaceRealTimeProcessor(RealTimeProcessorApi):
|
|||||||
|
|
||||||
self.requestor.send_data(
|
self.requestor.send_data(
|
||||||
"tracked_object_update",
|
"tracked_object_update",
|
||||||
json.dumps({
|
json.dumps(
|
||||||
"type": TrackedObjectUpdateTypesEnum.face,
|
{
|
||||||
"name": weighted_sub_label,
|
"type": TrackedObjectUpdateTypesEnum.face,
|
||||||
"score": weighted_score,
|
"name": weighted_sub_label,
|
||||||
"id": id,
|
"score": weighted_score,
|
||||||
"camera": camera,
|
"id": id,
|
||||||
"timestamp": start,
|
"camera": camera,
|
||||||
}),
|
"timestamp": start,
|
||||||
|
}
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
if weighted_score >= self.face_config.recognition_threshold:
|
if weighted_score >= self.face_config.recognition_threshold:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user