mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-06 05:27:44 +03:00
clean up postprocessor
This commit is contained in:
parent
043acaeb39
commit
69f20d009d
@ -139,7 +139,7 @@ class LicensePlatePostProcessor(LicensePlateProcessingMixin, PostProcessorApi):
|
|||||||
scale_y = image.shape[0] / detect_height
|
scale_y = image.shape[0] / detect_height
|
||||||
|
|
||||||
# Determine which box to enlarge based on detection mode
|
# 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
|
# Scale and enlarge the car box
|
||||||
box = obj_data.get("box")
|
box = obj_data.get("box")
|
||||||
if not box:
|
if not box:
|
||||||
@ -189,7 +189,7 @@ class LicensePlatePostProcessor(LicensePlateProcessingMixin, PostProcessorApi):
|
|||||||
)
|
)
|
||||||
|
|
||||||
keyframe_obj_data = obj_data.copy()
|
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
|
# car box
|
||||||
keyframe_obj_data["box"] = [new_left, new_top, new_right, new_bottom]
|
keyframe_obj_data["box"] = [new_left, new_top, new_right, new_bottom]
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user