setInputAsync method

Future<void> setInputAsync(
  1. InputArray blob, {
  2. String name = "",
  3. double scalefactor = 1.0,
  4. Scalar? mean,
})

Implementation

Future<void> setInputAsync(
  InputArray blob, {
  String name = "",
  double scalefactor = 1.0,
  Scalar? mean,
}) async {
  mean ??= Scalar();
  final cname = name.toNativeUtf8();
  return cvRunAsync0(
    (callback) => cdnn.cv_dnn_Net_setInput(ref, blob.ref, cname.cast(), scalefactor, mean!.ref, callback),
    (c) {
      calloc.free(cname);
      c.complete();
    },
  );
}