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