ml_KNearest_load
import { ml_KNearest_load } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSfilepath
FUNCTIONml_KNearest_load
RETURN TYPEml_KNearest | null
Loads and creates a serialized knearest from a file
Use KNearest::save to serialize and store an KNearest to disk. Load the KNearest from this file again, by calling this function with the path to the file.
ml_KNearest_load(filepath: EmbindString): ml_KNearest | null;filepathpath to serialized KNearest
Returns
The ml_KNearest | 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.