diff --git a/frigate/embeddings/onnx/lpr_embedding.py b/frigate/embeddings/onnx/lpr_embedding.py index c3b9a8771..1aaf15f80 100644 --- a/frigate/embeddings/onnx/lpr_embedding.py +++ b/frigate/embeddings/onnx/lpr_embedding.py @@ -261,8 +261,10 @@ 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) + + pil = self._process_image(raw_inputs) + # image as numpy array + img = np.array(pil) height, width, channels = img.shape # Resize maintaining aspect ratio