diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.py index a1605c10e..8dea639d6 100644 --- a/frigate/data_processing/common/license_plate/mixin.py +++ b/frigate/data_processing/common/license_plate/mixin.py @@ -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, diff --git a/frigate/data_processing/real_time/face.py b/frigate/data_processing/real_time/face.py index 0f960e0fa..d91ab9b80 100644 --- a/frigate/data_processing/real_time/face.py +++ b/frigate/data_processing/real_time/face.py @@ -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: