fromTFLiteAsync static method

Future<Net> fromTFLiteAsync(
  1. String path
)

Implementation

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