Expand description
Image Preprocessing Utilities
Provides various image preprocessing functions required for OCR
Structs§
- Normalize
Params - Image normalization parameters
Functions§
- create_
gray_ image - Create grayscale image
- crop_
image - Crop image region
- get_
padded_ size - Calculate size to pad to (multiple of 32)
- preprocess_
batch_ for_ rec - Batch preprocess recognition images
- preprocess_
for_ det - Convert image to detection model input tensor
- preprocess_
for_ rec - Convert image to recognition model input tensor
- resize_
to_ height - Scale image to specified height (for recognition model)
- resize_
to_ max_ side - Scale image to specified maximum side length
- rgb_
to_ image - Create image from RGB data
- split_
into_ blocks - Split image into blocks (for high precision mode)
- threshold_
mask - Convert grayscale mask to binary mask
- to_rgb
- Convert image to RGB