mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-19 00:57:28 +01:00
opencv 4.6
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user