detectAndDecodeCurvedAsync method
Implementation
Future<(String rval, VecPoint points, Mat straightQRcode)> detectAndDecodeCurvedAsync(
InputArray img,
) async {
final rval = cvRunAsync3<(String, VecPoint, Mat)>(
(callback) => cffi.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<cvg.VecPoint>()),
Mat.fromPointer(straightQRcode.cast<cvg.Mat>()),
),
);
});
return rval;
}