Я использую opencv/4.9.0 и детектор aruco. Мой код выглядит так: [code] 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];