ml_DTrees_load
import { ml_DTrees_load } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSfilepath, nodeName
FUNCTIONml_DTrees_load
RETURN TYPEml_DTrees | null
Loads and creates a serialized DTrees from a file
Use DTree::save to serialize and store an DTree to disk. Load the DTree 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_DTrees_load(filepath: EmbindString, nodeName: EmbindString): ml_DTrees | null;2 available overloads
ml_DTrees_load(filepath: EmbindString): ml_DTrees | null;ml_DTrees_load(filepath: EmbindString, nodeName: EmbindString): ml_DTrees | null;filepathpath to serialized DTree
nodeNamename of node containing the classifier
Returns
The ml_DTrees | 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.