Build the perceiver for an OCR mode, ready to use.
off is strict mode — no model on the line, scanned documents abstain — and
takes no options: one given there would be ignored, so it is refused. The other
two are the sanctioned narrow perceptual case and must be runnable here: the
binary on PATH, or the optional tesseract.js module loaded. An engine that is
not there is an OpenKaError now, not a corpus full of "not installed"
abstentions — and not a ka verify that reports a false non-reproduction.
Throws OpenKaValidationError for an unknown mode or a blank option.
Build the perceiver for an OCR mode, ready to use.
offis strict mode — no model on the line, scanned documents abstain — and takes no options: one given there would be ignored, so it is refused. The other two are the sanctioned narrow perceptual case and must be runnable here: the binary on PATH, or the optionaltesseract.jsmodule loaded. An engine that is not there is anOpenKaErrornow, not a corpus full of "not installed" abstentions — and not aka verifythat reports a false non-reproduction. ThrowsOpenKaValidationErrorfor an unknown mode or a blank option.