Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion modules/aruco/src/aruco.cpp
Original file line number Diff line number Diff line change
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