detectMarkersAsync method

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

Implementation

Future<(VecVecPoint2f, VecI32, VecVecPoint2f)> detectMarkersAsync(InputArray image) async {
  final pCorners = calloc<cvg.VecVecPoint2f>();
  final pRejected = calloc<cvg.VecVecPoint2f>();
  final pIds = calloc<cvg.VecI32>();
  return cvRunAsync0(
      (callback) => ccontrib.cv_aruco_arucoDetector_detectMarkers(
            ref,
            image.ref,
            pCorners,
            pIds,
            pRejected,
            callback,
          ), (c) {
    return c.complete(
      (VecVecPoint2f.fromPointer(pCorners), VecI32.fromPointer(pIds), VecVecPoint2f.fromPointer(pRejected)),
    );
  });
}