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 rval = cvRunAsync2<(bool, VecPoint)>(
      (callback) => cobjdetect.QRCodeDetector_Detect_Async(ref, input.ref, callback), (c, ret, points) {
    final retValue = ret.cast<ffi.Bool>().value;
    calloc.free(ret);
    return c.complete(
      (retValue, VecPoint.fromPointer(points.cast<cobjdetect.VecPoint>())),
    );
  });
  return rval;
}