Skip to content

ArUco tutorial should contain camera parameters of example images #3045

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
friederwC opened this issue Sep 21, 2021 · 1 comment · Fixed by #3120
Closed

ArUco tutorial should contain camera parameters of example images #3045

friederwC opened this issue Sep 21, 2021 · 1 comment · Fixed by #3120
Assignees
Labels
category: aruco category: documentation Documentation fix or update, does not affect code category: samples

Comments

@friederwC
Copy link

System information (version)
  • OpenCV > 3.0
Detailed description

The tutorial comes with great code examples and the marker detection example can easily be tested with the image provided by the tutorial: https://docs.opencv.org/4.5.3/singlemarkersoriginal.jpg
However, for the pose estimation example, the camera parameters are required. Here it would be great if they were provided for the example image. The tutorial assumes, that one takes and uses their own image and calibrates their camera, but it would be nice if it was possible to follow the tutorial without taking pictures.

Steps to reproduce

Go to https://docs.opencv.org/4.5.3/d5/dae/tutorial_aruco_detection.html

@AleksandrPanov AleksandrPanov self-assigned this Nov 17, 2021
@AleksandrPanov
Copy link
Contributor

These camera parameters (from test_arucodetection.cpp) can be used:

    Size imgSize = inputImage.size();

    Mat cameraMatrix = Mat::eye(3, 3, CV_64FC1);
    cameraMatrix.at< double >(0, 0) = cameraMatrix.at< double >(1, 1) = 650;
    cameraMatrix.at< double >(0, 2) = imgSize.width / 2;
    cameraMatrix.at< double >(1, 2) = imgSize.height / 2;
    Mat distCoeffs(5, 1, CV_64FC1, Scalar::all(0));

image

repr_acuco.cpp.txt

It remains to add the code to the tutorial and open PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: aruco category: documentation Documentation fix or update, does not affect code category: samples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants