Skip to content

Commit

Permalink
Merge pull request #3269 from alalek:aruco_merge_fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Jun 5, 2022
2 parents 442085f + 2e3f918 commit db16caf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/aruco/src/aruco.cpp
Expand Up @@ -894,7 +894,10 @@ static void _refineCandidateLines(std::vector<Point>& nContours, std::vector<Poi
cntPts[group].push_back(contour2f[i]);
}
for (int i = 0; i < 4; i++)
{
CV_Assert(cornerIndex[i] != -1);
}

// saves extra group into corresponding
if( !cntPts[4].empty() ){
for( unsigned int i=0; i < cntPts[4].size() ; i++ )
Expand Down Expand Up @@ -1240,7 +1243,7 @@ void estimatePoseSingleMarkers(InputArrayOfArrays _corners, float markerLength,

for (int i = begin; i < end; i++) {
solvePnP(markerObjPoints, _corners.getMat(i), _cameraMatrix, _distCoeffs, rvecs.at<Vec3d>(i),
tvecs.at<Vec3d>(i));
tvecs.at<Vec3d>(i), estimateParameters->solvePnPMethod);
}
});

Expand Down

0 comments on commit db16caf

Please sign in to comment.