mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Remove add/removeDictionary and retain ABI of set/getDictionary
functions
This commit is contained in:
@@ -134,17 +134,17 @@ class CV_ArucoRefine : public cvtest::BaseTest {
|
||||
public:
|
||||
CV_ArucoRefine(ArucoAlgParams arucoAlgParams)
|
||||
{
|
||||
aruco::Dictionary dictionary = aruco::getPredefinedDictionary(aruco::DICT_6X6_250);
|
||||
vector<aruco::Dictionary> dictionaries = {aruco::getPredefinedDictionary(aruco::DICT_6X6_250),
|
||||
aruco::getPredefinedDictionary(aruco::DICT_5X5_250),
|
||||
aruco::getPredefinedDictionary(aruco::DICT_4X4_250),
|
||||
aruco::getPredefinedDictionary(aruco::DICT_7X7_250)};
|
||||
aruco::DetectorParameters params;
|
||||
params.minDistanceToBorder = 3;
|
||||
params.cornerRefinementMethod = (int)aruco::CORNER_REFINE_SUBPIX;
|
||||
if (arucoAlgParams == ArucoAlgParams::USE_ARUCO3)
|
||||
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));
|
||||
detector = aruco::ArucoDetector(dictionaries, params, refineParams);
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user