detectMultiAsync method

Future<(bool, VecPoint)> detectMultiAsync(
  1. InputArray img, {
  2. VecPoint? points,
})

Implementation

Future<(bool ret, VecPoint points)> detectMultiAsync(InputArray img, {VecPoint? points}) async {
  final p = points?.ptr ?? calloc<cvg.VecPoint>();
  final ret = calloc<ffi.Bool>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_QRCodeDetector_detectMulti(ref, img.ref, p, ret, callback),
    (c) {
      final rval = (ret.value, VecPoint.fromPointer(p));
      calloc.free(ret);
      return c.complete(rval);
    },
  );
}