1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

fix bug different marker ordering with findChessboardCornersSBWithMeta and CALIB_CB_LARGER flag

This commit is contained in:
tho
2025-01-27 08:36:59 +01:00
parent df5da4abcd
commit 9dde7790cf
2 changed files with 15 additions and 1 deletions
+2 -1
View File
@@ -3720,10 +3720,11 @@ Chessboard::Board Chessboard::detectImpl(const Mat& gray,std::vector<cv::Mat> &f
continue;
}
iter_boards->normalizeOrientation(false);
if(iter_boards->getSize() == parameters.chessboard_size ||
iter_boards->getSize() == chessboard_size2)
{
iter_boards->normalizeOrientation(false);
if(iter_boards->getSize() != parameters.chessboard_size)
{
if(iter_boards->isCellBlack(0,0) == iter_boards->isCellBlack(0,int(iter_boards->colCount())-1))