detectMarkersAsync method

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

Implementation

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