mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-19 09:07:20 +01:00
9 lines
411 B
C++
9 lines
411 B
C++
#include <opencv2/opencv.hpp>
|
|
|
|
int main(int argc, char** argv) {
|
|
cv::Ptr<cv::aruco::Dictionary> dictionary = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_4X4_50);
|
|
cv::Ptr<cv::aruco::CharucoBoard> board = cv::aruco::CharucoBoard::create(5, 7, 0.04f, 0.02f, dictionary);
|
|
cv::Mat boardImage;
|
|
board->draw(cv::Size(600, 500), boardImage, 10, 1);
|
|
cv::imwrite("BoardImage.jpg", boardImage);
|
|
} |