text_loadClassifierNM2
import { text_loadClassifierNM2 } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSfilename
FUNCTIONtext_loadClassifierNM2
RETURN TYPEtext_ERFilter_Callback | null
Allow to implicitly load the default classifier when creating an ERFilter object.
text_loadClassifierNM2(filename: EmbindString): text_ERFilter_Callback | null;filenameThe XML or YAML file with the classifier model (e.g. trained_classifierNM2.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.