detectAndDecodeCurved method

(String, VecPoint, Mat) detectAndDecodeCurved(
  1. InputArray img, {
  2. VecPoint? points,
  3. Mat? straightQRcode,
})

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(() => cffi.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));
}