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) => cobjdetect.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<cobjdetect.VecPoint>())));
  });
  return rval;
}