Skip to main content

Module process

Module process 

Source
Expand description

Image pre-processing and model-output post-processing.

Structs§

PlatePrediction
Per-image plate prediction returned by the recognizer.

Functions§

image_to_hwc
Convert a DynamicImage into a flat Vec<u8> in (H, W, C) order.
images_to_batch
Build the ONNX-ready u8 tensor (N, H, W, C) from a batch of images.
postprocess_output
Decode the raw plate-head output tensor into PlatePrediction values.
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.