detect method
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}) {
final pts = calloc<cvg.VecPoint>();
final ret = calloc<ffi.Bool>();
cvRun(() => cobjdetect.cv_QRCodeDetector_detect(ref, input.ref, pts, ret, ffi.nullptr));
final rval = (ret.value, VecPoint.fromPointer(pts));
calloc.free(ret);
return rval;
}