decodeCurvedAsync method
Future<(String, Mat)>
decodeCurvedAsync(
- InputArray img,
- VecPoint points, {
- OutputArray? straightQRcode,
Implementation
Future<(String rval, Mat straightQRcode)> decodeCurvedAsync(
InputArray img,
VecPoint points, {
OutputArray? straightQRcode,
}) {
final s = straightQRcode?.ptr ?? calloc<cvg.Mat>();
final v = calloc<ffi.Pointer<ffi.Char>>();
return cvRunAsync0(
(callback) => cobjdetect.cv_QRCodeDetector_decodeCurved(ref, img.ref, points.ref, s, v, callback),
(c) {
final ss = v.value.cast<Utf8>().toDartString();
calloc.free(v);
return c.complete((ss, Mat.fromPointer(s)));
},
);
}