fromFileAsync static method
Implementation
static Future<CascadeClassifier> fromFileAsync(String filename) async {
final cp = filename.toNativeUtf8().cast<ffi.Char>();
final rval = await cvRunAsync<CascadeClassifier>(
(callback) => cobjdetect.CascadeClassifier_NewFromFile_Async(cp, callback), (c, p) {
return c.complete(CascadeClassifier.fromPointer(p.cast<cobjdetect.CascadeClassifier>()));
});
calloc.free(cp);
return rval;
}