detect method

(bool, VecPoint) detect(
  1. InputArray input, {
  2. VecPoint? points,
})

Detect detects QR code in image and returns the quadrangle containing the code.

For further details, please see: https://docs.opencv.org/master/de/dc3/classcv_1_1QRCodeDetector.html#a64373f7d877d27473f64fe04bb57d22b

Implementation

(bool ret, VecPoint points) detect(InputArray input, {VecPoint? points}) {
  return cvRunArena<(bool, VecPoint)>((arena) {
    final pts = calloc<cvg.VecPoint>();
    final ret = arena<ffi.Bool>();
    cvRun(() => cffi.QRCodeDetector_Detect(ref, input.ref, pts, ret));
    return (ret.value, VecPoint.fromPointer(pts));
  });
}