opencv 4.6

This commit is contained in:
ackimixs
2024-04-08 15:49:05 +02:00
parent 2dfcde4417
commit f229c2ed14

View File

@@ -1,8 +1,8 @@
#include <opencv2/aruco.hpp>
#include <opencv2/charuco.hpp>
#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::Dictionary> dictionary = cv::aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_250);
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);