LPR bugfix (#17384)

* ensure image is numpy array

* clean up debugging

* clean up postprocessor

* process raw input as img
This commit is contained in:
Josh Hawkins
2025-03-26 07:41:00 -05:00
committed by GitHub
parent 4ccf61a6d7
commit 4edf0d8cd3
3 changed files with 30 additions and 30 deletions
+2 -2
View File
@@ -261,8 +261,8 @@ class LicensePlateDetector(BaseEmbedding):
def _preprocess_inputs(self, raw_inputs):
if isinstance(raw_inputs, list):
raise ValueError("License plate embedding does not support batch inputs.")
# Get image as numpy array
img = self._process_image(raw_inputs)
img = raw_inputs
height, width, channels = img.shape
# Resize maintaining aspect ratio