process raw input as img

This commit is contained in:
Josh Hawkins 2025-03-26 07:31:49 -05:00
parent 69f20d009d
commit c6e95fb6e6

View File

@ -262,9 +262,7 @@ class LicensePlateDetector(BaseEmbedding):
if isinstance(raw_inputs, list): if isinstance(raw_inputs, list):
raise ValueError("License plate embedding does not support batch inputs.") raise ValueError("License plate embedding does not support batch inputs.")
pil = self._process_image(raw_inputs) img = raw_inputs
# image as numpy array
img = np.array(pil)
height, width, channels = img.shape height, width, channels = img.shape
# Resize maintaining aspect ratio # Resize maintaining aspect ratio