Skip to content

text_loadClassifierNM1

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

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

ARGUMENTSfilename
FUNCTIONtext_loadClassifierNM1
RETURN TYPEtext_ERFilter_Callback | 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 classifier when creating an ERFilter object.

text_loadClassifierNM1(filename: EmbindString): text_ERFilter_Callback | null;
filename

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

returns a pointer to ERFilter::Callback.

Returns

The text_ERFilter_Callback | 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.