detectAndDecodeAsync method

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

Implementation

Future<(List<String>, VecMat)> detectAndDecodeAsync(InputArray img, [VecMat? points]) async {
  points ??= VecMat();
  final strs = VecVecChar();
  return cvRunAsync0(
    (callback) => ccontrib.cv_wechat_qrcode_WeChatQRCode_detectAndDecode(
      ref,
      img.ref,
      points!.ptr,
      strs.ptr,
      callback,
    ),
    (c) {
      final rval = (strs.asStringList(), points!);
      strs.dispose();
      return c.complete(rval);
    },
  );
}