detectMarkersAsync method

Future<(VecVecPoint2f, VecI32, VecVecPoint2f)> detectMarkersAsync(
  1. InputArray image
)

Implementation

Future<(VecVecPoint2f, VecI32, VecVecPoint2f)> detectMarkersAsync(
  InputArray image,
) async =>
    cvRunAsync3<(VecVecPoint2f, VecI32, VecVecPoint2f)>(
        (callback) => cffi.ArucoDetector_DetectMarkers_Async(ref, image.ref, callback), (c, p, p2, p3) {
      final corners = VecVecPoint2f.fromPointer(p.cast<cvg.VecVecPoint2f>());
      final ids = VecI32.fromPointer(p2.cast<cvg.VecI32>());
      final rejected = VecVecPoint2f.fromPointer(p3.cast<cvg.VecVecPoint2f>());
      return c.complete((corners, ids, rejected));
    });