detectAndDecodeAsync method

Future<(List<String>, VecMat)> detectAndDecodeAsync(
  1. InputArray img, [
  2. VecMat? points
])

Implementation

Future<(List<String>, VecMat)> detectAndDecodeAsync(
  InputArray img, [
  VecMat? points,
]) async {
  final p = calloc<cvg.VecMat>();
  final rval = calloc<cvg.VecVecChar>();
  return cvRunAsync0(
      (callback) => ccontrib.cv_wechat_qrcode_WeChatQRCode_detectAndDecode(ref, img.ref, p, rval, callback),
      (c) {
    final vec = VecVecChar.fromPointer(rval);
    final points = VecMat.fromPointer(p);
    return c.complete((vec.asStringList(), points));
  });
}