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) {
return using<(VecVecPoint2f, VecI32, VecVecPoint2f)>((arena) {
final pCorners = calloc<cvg.VecVecPoint2f>();
final pRejected = calloc<cvg.VecVecPoint2f>();
final pIds = calloc<cvg.VecI32>();
cvRun(
() => cffi.ArucoDetector_DetectMarkers(
ref,
image.ref,
pCorners,
pIds,
pRejected,
),
);
return (
VecVecPoint2f.fromPointer(pCorners),
VecI32.fromPointer(pIds),
VecVecPoint2f.fromPointer(pRejected)
);
});
}