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