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<cvg.VecPoint>();
final s = straightQRcode?.ptr ?? calloc<cvg.Mat>();
final v = calloc<ffi.Pointer<ffi.Char>>();
cvRun(() => cobjdetect.cv_QRCodeDetector_detectAndDecodeCurved(ref, img.ref, p, s, v, ffi.nullptr));
final ss = v.value.cast<Utf8>().toDartString();
calloc.free(v);
return (ss, points ?? VecPoint.fromPointer(p), Mat.fromPointer(s));
}