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