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