Optional grayscaleConvert to grayscale before OCR (improves contrast for printed text).
Optional resizeResize constraints. The image is scaled down proportionally so that neither dimension exceeds the specified maximum. No upscaling is performed.
Optional maxOptional maxOptional sharpenApply unsharp-mask sharpening (helps blurry scans).
Optional normalizeNormalize brightness/contrast (histogram stretching).
Preprocessing options applied to images before they enter the vision pipeline tiers. Uses
sharpunder the hood.