12345678910111213141516 |
- #include <opencv2/highgui.hpp>
- #include <opencv2/aruco.hpp>
- using namespace cv;
- int main(int argc, char *argv[]) {
- Mat markerImage;
- Ptr<cv::aruco::Dictionary> dictionary = aruco::getPredefinedDictionary(cv::aruco::DICT_6X6_250);
- aruco::drawMarker(dictionary, 33, 200, markerImage, 1);
- imwrite("marker33.png", markerImage);
- }
|