decodeCurvedAsync method
Implementation
Future<(String rval, Mat straightQRcode)> decodeCurvedAsync(
InputArray img,
VecPoint points,
) async {
final rval = cvRunAsync2<(String, Mat)>(
(callback) => cobjdetect.QRCodeDetector_decodeCurved_Async(
ref,
img.ref,
points.ref,
callback,
), (c, prval, pstraightQRcode) {
// prval is a char ** pointer
final rval = prval.cast<ffi.Pointer<ffi.Char>>().value.toDartString();
calloc.free(prval);
return c.complete(
(rval, Mat.fromPointer(pstraightQRcode.cast<cobjdetect.Mat>())),
);
});
return rval;
}