detectDiamondsAsync method
Future<(VecVecPoint2f, VecVec4i, VecVecPoint2f, VecI32)>
detectDiamondsAsync(
- InputArray image, {
- VecVecPoint2f? markerCorners,
- VecI32? markerIds,
Implementation
Future<(VecVecPoint2f diamondCorners, VecVec4i diamondIds, VecVecPoint2f markerCorners, VecI32 markerIds)>
detectDiamondsAsync(InputArray image, {VecVecPoint2f? markerCorners, VecI32? markerIds}) async {
final diamondCorners = VecVecPoint2f();
final diamondIds = VecVec4i();
markerCorners ??= VecVecPoint2f();
markerIds ??= VecI32();
return cvRunAsync0(
(callback) => ccontrib.cv_aruco_charucoDetector_detectDiamonds(
ref,
image.ref,
diamondCorners.ptr,
diamondIds.ptr,
markerCorners!.ptr,
markerIds!.ptr,
callback,
),
(c) => c.complete((diamondCorners, diamondIds, markerCorners!, markerIds!)),
);
}