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