mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-05-05 13:07:44 +03:00
process raw input as img
This commit is contained in:
parent
69f20d009d
commit
c6e95fb6e6
@ -262,9 +262,7 @@ class LicensePlateDetector(BaseEmbedding):
|
||||
if isinstance(raw_inputs, list):
|
||||
raise ValueError("License plate embedding does not support batch inputs.")
|
||||
|
||||
pil = self._process_image(raw_inputs)
|
||||
# image as numpy array
|
||||
img = np.array(pil)
|
||||
img = raw_inputs
|
||||
height, width, channels = img.shape
|
||||
|
||||
# Resize maintaining aspect ratio
|
||||
|
||||
Loading…
Reference in New Issue
Block a user