Open
Description
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
- 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
Metadata
Metadata
Assignees
Labels
No labels