detectAndDecodeAsync method

Future<(List<String>, VecMat)> detectAndDecodeAsync(
  1. InputArray img
)

Implementation

Future<(List<String>, VecMat)> detectAndDecodeAsync(InputArray img) async =>
    cvRunAsync2<(List<String>, VecMat)>(
        (callback) => ccontrib.WeChatQRCode_DetectAndDecode_Async(ptr, img.ref, callback), (c, p, p2) {
      final vec = VecVecChar.fromPointer(p.cast<ccontrib.VecVecChar>());
      final points = VecMat.fromPointer(p2.cast<ccontrib.VecMat>());
      final rval = vec.asStringList();
      vec.dispose();
      return c.complete((rval, points));
    });