detectAndDecodeCurved method
(String, VecPoint, Mat)
detectAndDecodeCurved(
- InputArray img, {
- VecPoint? points,
- Mat? straightQRcode,
Both detects and decodes QR code on a curved surface.
https://docs.opencv.org/4.x/de/dc3/classcv_1_1QRCodeDetector.html#a9166527f6e20b600ed6a53ab3dd61f51
Implementation
(String rval, VecPoint points, Mat straightQRcode) detectAndDecodeCurved(
InputArray img, {
VecPoint? points,
Mat? straightQRcode,
}) {
final p = points?.ptr ?? calloc<cobjdetect.VecPoint>();
final s = straightQRcode?.ptr ?? calloc<cobjdetect.Mat>();
final v = calloc<ffi.Pointer<ffi.Char>>();
cvRun(() => cobjdetect.QRCodeDetector_detectAndDecodeCurved(ref, img.ref, p, s, v));
final ss = v.value.cast<Utf8>().toDartString();
calloc.free(v);
return (ss, points ?? VecPoint.fromPointer(p), Mat.fromPointer(s));
}