fromTensorflowAsync static method
Implementation
static Future<Net> fromTensorflowAsync(String path, {String config = ""}) async {
final p = calloc<cvg.Net>();
final cpath = path.toNativeUtf8().cast<ffi.Char>();
final cconf = config.toNativeUtf8().cast<ffi.Char>();
return cvRunAsync0((callback) => cdnn.cv_dnn_Net_readNetFromTensorflow(cpath, cconf, p, callback), (c) {
calloc.free(cpath);
calloc.free(cconf);
final net = Net.fromPointer(p);
return c.complete(net);
});
}