Код: Выделить всё
const auto image = cv::imread('tagfile.png', IMREAD_GRAYSCALE);
const auto family = cv::aruco::PredefinedDictionaryType::;
cv::aruco::ArucoDetector detector {cv::aruco::getPredefinedDictionary(family)};
auto ids = std::vector{};
auto markers = std::vector{};
detector.detectMarkers(image, markers, ids);
for (const auto& marker : markers) {
const auto top_left = marker[0];
const auto top_right = marker[1];
const auto bottom_right = marker[2];
const auto bottom_left = marker[3];
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79044142/why-is-the-order-of-the-incoming-corners-different-between-apriltag-and-aruco-ma[/url]