detectAndDecodeMultiAsync method

Future<(bool, List<String>, VecPoint, VecMat)> detectAndDecodeMultiAsync(
  1. InputArray img
)

Implementation

Future<(bool, List<String>, VecPoint, VecMat)> detectAndDecodeMultiAsync(InputArray img) async {
  final info = calloc<cvg.VecVecChar>();
  final points = calloc<cvg.VecPoint>();
  final codes = calloc<cvg.VecMat>();
  final rval = calloc<ffi.Bool>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_QRCodeDetector_detectAndDecodeMulti(
      ref,
      img.ref,
      info,
      points,
      codes,
      rval,
      callback,
    ),
    (c) {
      final ret = (
        rval.value,
        VecVecChar.fromPointer(info).asStringList(),
        VecPoint.fromPointer(points),
        VecMat.fromPointer(codes),
      );
      calloc.free(rval);
      return c.complete(ret);
    },
  );
}