​​

 



#include <opencv2/opencv.hpp>
//#include <opencv2/aruco.hpp>
#include <opencv2/aruco/charuco.hpp>
#include <vector>
#include <iostream>

using namespace std;
using namespace cv;

void createCharucoBoard(cv::Mat &boardImage)
{
cv::Ptr<cv::aruco::Dictionary> dictionary = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_250);
cv::Ptr<cv::aruco::CharucoBoard> board = cv::aruco::CharucoBoard::create(5, 7, 0.04, 0.02, dictionary);
board->draw(cv::Size(600, 500), boardImage, 10, 1);
}

int main()
{

cv::Mat charuco_boardImage;
createCharucoBoard(charuco_boardImage);

return 0;