Skip to content

ml_KNearest_Types

mlclassOpenCV 5.0.0
import { ml_KNearest_Types } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSml_KNearest_Types
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

Implementations of KNearest algorithm

Constructors and members

static BRUTE_FORCE

brute force constant (1), defined by OpenCV for cv::ml::KNearest.

BRUTE_FORCE: ml_KNearest_TypesValue<1>,

static KDTREE

kdtree constant (2), defined by OpenCV for cv::ml::KNearest.

KDTREE: ml_KNearest_TypesValue<2>

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.