Skip to content
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

the cv::aruco::Board::create function does not exist? #3841

Open
1 task
guruprasadah opened this issue Dec 4, 2024 · 0 comments
Open
1 task

the cv::aruco::Board::create function does not exist? #3841

guruprasadah opened this issue Dec 4, 2024 · 0 comments

Comments

@guruprasadah
Copy link

System information (version)
  • OpenCV => 4.10.0_14
  • Operating System / Platform => macOS Apple Silicon
  • Compiler => clang++
Detailed description

I try to use the cv2::aruco::Board::create or cv2::aruco::GridBoard::create like:

std::vector<u32> v = {0, 1, 3, 2};
auto b = cv::aruco::GridBoard::create({2, 2}, 0.07, 0.2, dictionary);

where dictionary has been properly defined earlier in the file

my includes are:

#include <opencv2/objdetect/aruco_board.hpp>
#include <opencv2/aruco.hpp>
#include <opencv2/aruco/charuco.hpp>

However whatever I do, my compiler says:

/Users/guruprasadah/Documents/ocv_tests/main.cpp:38:36: error: no member named 'create' in 'cv::aruco::GridBoard'
   38 |     auto b = cv::aruco::GridBoard::create({2, 2}, 0.07, 0.2, dictionary);
      |              ~~~~~~~~~~~~~~~~~~~~~~^
1 error generated.
make[2]: *** [CMakeFiles/ocv.dir/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/ocv.dir/all] Error 2

All documentation seems to refer to this nonexistent function, and I cannot seem to use the constructor directly also, since all functions need the object as a cv::Ptr

Steps to reproduce
  1. Try to use the GridBoard::create function, which does not exist apparently.
Issue submission checklist
  • [*] I report the issue, it's not a question
  • [*] I checked the problem with documentation, FAQ, open issues,
    forum.opencv.org, Stack Overflow, etc and have not found any solution
  • [*] I updated to the latest OpenCV version and the issue is still there
  • There is reproducer code and related data files: videos, images, onnx, etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant