From 69f20d009de3cb93128c0eb0066b660574e71078 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Wed, 26 Mar 2025 07:13:15 -0500 Subject: [PATCH] clean up postprocessor --- frigate/data_processing/post/license_plate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frigate/data_processing/post/license_plate.py b/frigate/data_processing/post/license_plate.py index e5c8a29a8..c78e56b9d 100644 --- a/frigate/data_processing/post/license_plate.py +++ b/frigate/data_processing/post/license_plate.py @@ -139,7 +139,7 @@ class LicensePlatePostProcessor(LicensePlateProcessingMixin, PostProcessorApi): scale_y = image.shape[0] / detect_height # Determine which box to enlarge based on detection mode - if self.requires_license_plate_detection: + if "license_plate" not in self.config.cameras[camera_name].objects.track: # Scale and enlarge the car box box = obj_data.get("box") if not box: @@ -189,7 +189,7 @@ class LicensePlatePostProcessor(LicensePlateProcessingMixin, PostProcessorApi): ) keyframe_obj_data = obj_data.copy() - if self.requires_license_plate_detection: + if "license_plate" not in self.config.cameras[camera_name].objects.track: # car box keyframe_obj_data["box"] = [new_left, new_top, new_right, new_bottom] else: