detectMultiAsync method

Future<(bool, VecPoint)> detectMultiAsync(
  1. InputArray img
)

Implementation

Future<(bool ret, VecPoint points)> detectMultiAsync(
  InputArray img,
) async {
  final rval = cvRunAsync2<(bool, VecPoint)>(
      (callback) => cffi.QRCodeDetector_DetectMulti_Async(ref, img.ref, callback), (c, ret, points) {
    final retValue = ret.cast<ffi.Bool>().value;
    calloc.free(ret);
    return c.complete((retValue, VecPoint.fromPointer(points.cast<cvg.VecPoint>())));
  });
  return rval;
}