Skip to content

ml_SampleTypes

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

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

ARGUMENTSConstructor or factory
CLASSml_SampleTypes
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.

ml_SampleTypes: Sample types

Constructors and members

static ROW_SAMPLE

each training sample is a row of samples

ROW_SAMPLE: ml_SampleTypesValue<0>,

static COL_SAMPLE

each training sample occupies a column of samples

COL_SAMPLE: ml_SampleTypesValue<1>

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.