Skip to content

text_loadOCRHMMClassifier

textfunctionOpenCV 5.0.0
import { text_loadOCRHMMClassifier } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSfilename, classifier
FUNCTIONtext_loadOCRHMMClassifier
RETURN TYPEtext_OCRHMMDecoder_ClassifierCallback | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Allow to implicitly load the default character classifier when creating an OCRHMMDecoder object.

text_loadOCRHMMClassifier(filename: EmbindString, classifier: number): text_OCRHMMDecoder_ClassifierCallback | null;
filename

The XML or YAML file with the classifier model (e.g. OCRBeamSearch_CNN_model_data.xml.gz)

classifier

Can be one of classifier_type enum values.

Returns

The text_OCRHMMDecoder_ClassifierCallback | null result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.