detectAsync method

Future<(bool, VecPoint)> detectAsync(
  1. InputArray input, {
  2. VecPoint? points,
})

Implementation

Future<(bool ret, VecPoint points)> detectAsync(InputArray input, {VecPoint? points}) async {
  final pts = calloc<cvg.VecPoint>();
  final ret = calloc<ffi.Bool>();
  return cvRunAsync0(
    (callback) => cobjdetect.cv_QRCodeDetector_detect(ref, input.ref, pts, ret, callback),
    (c) {
      final rval = (ret.value, VecPoint.fromPointer(pts));
      calloc.free(ret);
      return c.complete(rval);
    },
  );
}