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}) {
  return cvRunArena<(bool, VecPoint)>((arena) {
    final p = points?.ptr ?? calloc<cobjdetect.VecPoint>();
    final ret = arena<ffi.Bool>();
    cvRun(() => cobjdetect.QRCodeDetector_DetectMulti(ref, img.ref, p, ret));
    return (ret.value, VecPoint.fromPointer(p));
  });
}