Expand description
Greyscale image preprocessing for OCR models.
Structs§
- Image
Source - Input image for
crate::OcrEngine::prepare_input.
Enums§
- DimOrder
- Pixel layout for image tensors.
- Image
Source Error - Errors when constructing an
ImageSource.
Constants§
- BLACK_
VALUE - Normalized greyscale background value used by ocrs models (matches
ocrs0.12.x).
Functions§
- prepare_
image - Convert an image to a normalized greyscale CHW tensor
[1, H, W].