Skip to content

Commit c41a963

Browse files
authored
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.
1 parent dedce9a commit c41a963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/aruco/tutorials/aruco_detection/aruco_detection.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ A basic full example for pose estimation from single markers:
318318
if (ids.size() > 0) {
319319
cv::aruco::drawDetectedMarkers(imageCopy, corners, ids);
320320

321-
std::vector<cv::Mat> rvecs, tvecs;
321+
std::vector<cv::Vec3d> rvecs, tvecs;
322322
cv::aruco::estimatePoseSingleMarkers(corners, 0.05, cameraMatrix, distCoeffs, rvecs, tvecs);
323323
// draw axis for each marker
324324
for(int i=0; i<ids.size(); i++)

0 commit comments

Comments
 (0)