setInputAsync method

Future<void> setInputAsync(
  1. InputArray blob, {
  2. String name = "",
})

Implementation

Future<void> setInputAsync(InputArray blob, {String name = ""}) async {
  final cname = name.toNativeUtf8().cast<ffi.Char>();
  await cvRunAsync0<void>(
    (callback) => cffi.Net_SetInput_Async(ref, blob.ref, cname, callback),
    (c) {
      return c.complete();
    },
  );
  calloc.free(cname);
}