Skip to content

text_createERFilterNM21

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

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

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

Reads an Extremal Region Filter for the 2nd stage classifier of N&M algorithm from the provided path e.g. /path/to/cpp/trained_classifierNM2.xml

text_createERFilterNM21(filename: EmbindString, minProbability: number): text_ERFilter | null;
2 available overloads
text_createERFilterNM21(filename: EmbindString): text_ERFilter | null;
text_createERFilterNM21(filename: EmbindString, minProbability: number): text_ERFilter | null;
filename

filename argument (EmbindString).

minProbability

min probability argument (number).

Returns

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