From 347a5c62e7567e2032f4e1ac84fe6a6cf0e2b309 Mon Sep 17 00:00:00 2001 From: Nicolas Mowen Date: Wed, 18 Jun 2025 12:59:55 -0600 Subject: [PATCH] Remove tracked object update resets --- .../data_processing/common/license_plate/mixin.py | 13 ------------- frigate/data_processing/real_time/face.py | 12 ------------ 2 files changed, 25 deletions(-) diff --git a/frigate/data_processing/common/license_plate/mixin.py b/frigate/data_processing/common/license_plate/mixin.py index 55cd002a2..ae070688a 100644 --- a/frigate/data_processing/common/license_plate/mixin.py +++ b/frigate/data_processing/common/license_plate/mixin.py @@ -1579,19 +1579,6 @@ class LicensePlateProcessingMixin: if object_id in self.camera_current_cars.get(camera, []): self.camera_current_cars[camera].remove(object_id) - if len(self.camera_current_cars[camera]) == 0: - self.requestor.send_data( - "tracked_object_update", - json.dumps( - { - "type": TrackedObjectUpdateTypesEnum.lpr, - "name": None, - "plate": None, - "camera": camera, - } - ), - ) - class CTCDecoder: """ diff --git a/frigate/data_processing/real_time/face.py b/frigate/data_processing/real_time/face.py index f6a25080e..940373d3b 100644 --- a/frigate/data_processing/real_time/face.py +++ b/frigate/data_processing/real_time/face.py @@ -444,18 +444,6 @@ class FaceRealTimeProcessor(RealTimeProcessorApi): if object_id in self.camera_current_people.get(camera, []): self.camera_current_people[camera].remove(object_id) - if len(self.camera_current_people[camera]) == 0: - self.requestor.send_data( - "tracked_object_update", - json.dumps( - { - "type": TrackedObjectUpdateTypesEnum.face, - "name": None, - "camera": camera, - } - ), - ) - def weighted_average( self, results_list: list[tuple[str, float, int]], max_weight: int = 4000 ):