Expand description
Image pre-processing and model-output post-processing.
Structs§
- Plate
Prediction - Per-image plate prediction returned by the recognizer.
Functions§
- image_
to_ hwc - Convert a
DynamicImageinto a flatVec<u8>in(H, W, C)order. - images_
to_ batch - Build the ONNX-ready
u8tensor(N, H, W, C)from a batch of images. - postprocess_
output - Decode the raw plate-head output tensor into
PlatePredictionvalues. - read_
and_ resize_ plate_ image - Convenience wrapper: read an image from disk and resize it.
- read_
plate_ image - Read an image from disk in the colour mode specified by
config. - resize_
image - Resize a dynamic image to
(target_w, target_h), honouring the config options.