detectMarkers method
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)
);
}