Skip to content

ml_SVM_create

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

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

Creates empty model. Use StatModel::train to train the model. Since %SVM has several parameters, you may want to find the best parameters for your problem, it can be done with SVM::trainAuto.

ml_SVM_create(): ml_SVM | null;
Returns

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