1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

have two detectMarkers functions for python backwards compatibility

using multiple dictionaries for refinement (function split not necessary
as it's backwards compatible)
This commit is contained in:
Benjamin Knecht
2025-02-19 18:37:49 +01:00
parent 9ae23a7f51
commit f212c163e3
5 changed files with 394 additions and 278 deletions
@@ -708,7 +708,7 @@ TEST(CV_ArucoMultiDict, multiMarkerDetection)
vector<int> markerIds;
vector<vector<Point2f> > rejectedImgPts;
vector<int> dictIds;
detector.detectMarkers(img, markerCorners, markerIds, rejectedImgPts, dictIds);
detector.detectMarkersMultiDict(img, markerCorners, markerIds, rejectedImgPts, dictIds);
ASSERT_EQ(markerIds.size(), 4u);
ASSERT_EQ(dictIds.size(), 4u);
for (size_t i = 0; i < dictIds.size(); ++i) {