Replace undefined valid to markersOfBoardDetected

pull/3396/head
Sergei Shutov 2 years ago
parent 22d0e7180b
commit 8cc11b28b9
  1. 3
      modules/aruco/tutorials/aruco_board_detection/aruco_board_detection.markdown

@ -204,7 +204,8 @@ Finally, a full example of board detection:
cv::solvePnP(objPoints, imgPoints, cameraMatrix, distCoeffs, rvec, tvec);
// If at least one board marker detected
if(valid > 0)
markersOfBoardDetected = (int)objPoints.total() / 4;
if(markersOfBoardDetected > 0)
cv::drawFrameAxes(imageCopy, cameraMatrix, distCoeffs, rvec, tvec, 0.1);
}

Loading…
Cancel
Save