Skip to content

Commit b49a43f

Browse files
committed
Merge pull request opencv#3174 from AleksandrPanov:fix_gridboard_objPoints
Fix objPoints order in GridBoard and CharucoBoard * fix gridBoard * fix charucoBoard * add rightBottomBorder * add test_aruco_utils and code refactoring/fix tests * fix axes and add charuco dict * add axes test, remove drawAxis(), update tutorial
1 parent c1ede68 commit b49a43f

File tree

4 files changed

+9
-1
lines changed

4 files changed

+9
-1
lines changed

modules/aruco/src/aruco.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,9 @@ static void _refineCandidateLines(std::vector<Point>& nContours, std::vector<Poi
875875
cntPts[group].push_back(contour2f[i]);
876876
}
877877
for (int i = 0; i < 4; i++)
878+
{
878879
CV_Assert(cornerIndex[i] != -1);
880+
}
879881
// saves extra group into corresponding
880882
if( !cntPts[4].empty() ){
881883
for( unsigned int i=0; i < cntPts[4].size() ; i++ )

modules/aruco/test/test_boarddetection.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ the use of this software, even if advised of the possibility of such damage.
4242

4343
namespace opencv_test { namespace {
4444

45+
enum class ArucoAlgParams
46+
{
47+
USE_DEFAULT = 0,
48+
USE_ARUCO3 = 1
49+
};
50+
4551
/**
4652
* @brief Check pose estimation of aruco board
4753
*/

modules/aruco/test/test_charucodetection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ TEST(Charuco, testBoardSubpixelCoords)
646646
std::vector<int> ids;
647647
std::vector<std::vector<cv::Point2f>> corners, rejected;
648648

649-
cv::aruco::detectMarkers(gray, dict, corners, ids, params, rejected, K);
649+
cv::aruco::detectMarkers(gray, dict, corners, ids, params, rejected);
650650

651651
ASSERT_EQ(ids.size(), size_t(8));
652652

0 commit comments

Comments
 (0)