Skip to content

ml_EM_load

mlfunctionOpenCV 5.0.0
import { ml_EM_load } from '@banou/opencv-wasm'

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

ARGUMENTSfilepath, nodeName
FUNCTIONml_EM_load
RETURN TYPEml_EM | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Loads and creates a serialized EM from a file

Use EM::save to serialize and store an EM to disk. Load the EM from this file again, by calling this function with the path to the file. Optionally specify the node for the file containing the classifier

ml_EM_load(filepath: EmbindString, nodeName: EmbindString): ml_EM | null;
2 available overloads
ml_EM_load(filepath: EmbindString): ml_EM | null;
ml_EM_load(filepath: EmbindString, nodeName: EmbindString): ml_EM | null;
filepath

path to serialized EM

nodeName

name of node containing the classifier

Returns

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