KNearest.load constructor

KNearest.load(
  1. String filepath
)

Loads a model saved with save from filepath. Throws CvException when the file does not hold a valid model.

Implementation

factory KNearest.load(String filepath) => using(
  (arena) =>
      KNearest._make((p) => cml.cv_ml_KNearest_load(filepath.toNativeUtf8(allocator: arena).cast(), p)),
);