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 corners = VecVecPoint2f();
  final rejected = VecVecPoint2f();
  final ids = VecI32();
  cvRun(
    () => ccontrib.cv_aruco_arucoDetector_detectMarkers(
      ref,
      image.ref,
      corners.ptr,
      ids.ptr,
      rejected.ptr,
      ffi.nullptr,
    ),
  );
  return (corners, ids, rejected);
}