mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23: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:
@@ -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) {
|
||||
|
||||
@@ -142,6 +142,9 @@ class CV_ArucoRefine : public cvtest::BaseTest {
|
||||
params.useAruco3Detection = true;
|
||||
aruco::RefineParameters refineParams(10.f, 3.f, true);
|
||||
detector = aruco::ArucoDetector(dictionary, params, refineParams);
|
||||
detector.addDictionary(aruco::getPredefinedDictionary(aruco::DICT_5X5_250));
|
||||
detector.addDictionary(aruco::getPredefinedDictionary(aruco::DICT_4X4_250));
|
||||
detector.addDictionary(aruco::getPredefinedDictionary(aruco::DICT_7X7_250));
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user