ReadonlycharsetRecognizer charset (string = one codepoint per index; array = taken verbatim).
Optional ReadonlydecodeCustom decode replacing greedy CTC; receives softmaxed [1, T, V] probs.
Must be a worklet. The probs tensor is pre-allocated from the
recognizer's width-to-timesteps relation, so T always matches the run's
input width.
Optional ReadonlydetectorDetector norm on uint8 RGB. Default ImageNet; must match the model's training norm.
ReadonlyextractMaps raw detect outputs to quads: craftExtractBoxes or dbnetExtractBoxes.
Optional ReadonlyminDrop detections below this recognition confidence. Default 0. Confidence
is the mean per-timestep max probability, so this requires the recognizer
to export a softmaxed head (values in [0, 1]); on raw logits it is
meaningless.
Optional ReadonlyrecognizerRecognizer norm applied after the warp. Default (x / 255 - 0.5) / 0.5, into [-1, 1].
Optional ReadonlyrecognizerStrip padding fill: 'constant' (default) or 'cornerMean' (background-matched).
Optional ReadonlyrecognizerRecognizer canvas padding fill. Default 128 (neutral gray).
Model-specific OCR options. The pipeline validates the detect/recognize contract and resolves legal input sizes from the model metadata itself; these cover everything it cannot infer.