detectMarkers method

(VecVecPoint2f, VecI32, VecVecPoint2f) detectMarkers(
  1. InputArray image
)

DetectMarkers does basic marker detection.

For further details, please see: https://docs.opencv.org/master/d9/d6a/group__aruco.html#ga3bc50d61fe4db7bce8d26d56b5a6428a

Implementation

(VecVecPoint2f corners, VecI32 ids, VecVecPoint2f rejectedImgPoints) detectMarkers(InputArray image) {
  final pCorners = calloc<cvg.VecVecPoint2f>();
  final pRejected = calloc<cvg.VecVecPoint2f>();
  final pIds = calloc<cvg.VecI32>();
  cvRun(
    () => ccontrib.cv_aruco_arucoDetector_detectMarkers(
      ref,
      image.ref,
      pCorners,
      pIds,
      pRejected,
      ffi.nullptr,
    ),
  );
  return (
    VecVecPoint2f.fromPointer(pCorners),
    VecI32.fromPointer(pIds),
    VecVecPoint2f.fromPointer(pRejected)
  );
}