save method

void save(
  1. String filename
)

Saves the model to filename (.xml, .yml or .json).

Implementation

void save(String filename) => using(
  (arena) => cvRun(() => cml.cv_ml_EM_save(ref, filename.toNativeUtf8(allocator: arena).cast())),
);