defaultName property

String get defaultName

The name used when saving the model, opencv_ml_dtree.

Implementation

String get defaultName {
  final p = calloc<ffi.Pointer<ffi.Char>>();
  try {
    cvRun(() => cml.cv_ml_DTrees_getDefaultName(ref, p));
    final rval = p.value.cast<Utf8>().toDartString();
    calloc.free(p.value);
    return rval;
  } finally {
    calloc.free(p);
  }
}