load method

bool load(
  1. String name
)

Load cascade classifier from a file.

For further details, please see: http://docs.opencv.org/master/d1/de5/classcv_1_1CascadeClassifier.html#a1a5884c8cc749422f9eb77c2471958bc

Implementation

bool load(String name) {
  final cname = name.toNativeUtf8().cast<ffi.Char>();
  final p = calloc<ffi.Int>();
  cvRun(() => cobjdetect.CascadeClassifier_Load(ref, cname, p));
  calloc.free(cname);
  return p.value != 0;
}