detectMulti method

(bool, VecPoint) detectMulti(
  1. InputArray img, {
  2. VecPoint? points,
})

Detects QR codes in image and finds of the quadrangles containing the codes.

Each quadrangle would be returned as a row in the points Mat and each point is a Vecf. Returns true if QR code was detected For usage please see TestQRCodeDetector For further details, please see: https://docs.opencv.org/master/de/dc3/classcv_1_1QRCodeDetector.html#aaf2b6b2115b8e8fbc9acf3a8f68872b6

Implementation

(bool, VecPoint points) detectMulti(InputArray img, {VecPoint? points}) {
  points ??= VecPoint();
  final ret = calloc<ffi.Bool>();
  cvRun(() => cobjdetect.cv_QRCodeDetector_detectMulti(ref, img.ref, points!.ptr, ret, ffi.nullptr));
  final rval = (ret.value, points);
  calloc.free(ret);
  return rval;
}