fixed typo in tutorial

rvecs and tvecs should be of type std::vector<cv::Vec3d> as used in the detect_markers.cpp. Otherwise an exception is thrown.
pull/1385/head
Felix Wehnert 8 years ago committed by GitHub
parent dedce9a345
commit c41a963f17
  1. 2
      modules/aruco/tutorials/aruco_detection/aruco_detection.markdown

@ -318,7 +318,7 @@ A basic full example for pose estimation from single markers:
if (ids.size() > 0) {
cv::aruco::drawDetectedMarkers(imageCopy, corners, ids);
std::vector<cv::Mat> rvecs, tvecs;
std::vector<cv::Vec3d> rvecs, tvecs;
cv::aruco::estimatePoseSingleMarkers(corners, 0.05, cameraMatrix, distCoeffs, rvecs, tvecs);
// draw axis for each marker
for(int i=0; i<ids.size(); i++)

Loading…
Cancel
Save