CascadeClassifier.fromFile constructor

CascadeClassifier.fromFile(
  1. String filename
)

Implementation

factory CascadeClassifier.fromFile(String filename) {
  final p = calloc<cvg.CascadeClassifier>();
  final cp = filename.toNativeUtf8().cast<ffi.Char>();
  cvRun(() => cffi.CascadeClassifier_NewFromFile(cp, p));
  calloc.free(cp);
  return CascadeClassifier._(p);
}