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<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));
}