mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-10-24 07:24:42 +03:00
LPR bugfix (#17384)
* ensure image is numpy array * clean up debugging * clean up postprocessor * process raw input as img
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user