// ArcuGenerator.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include using namespace std; using namespace cv; int main(int argc, char *argv[]) { if (argc < 4) { cout << "Not enough input arguments."; return 0; } int id = atoi(argv[1]); int size = atoi(argv[2]); char* file = argv[3]; Mat markerImage; Ptr dictionary = aruco::getPredefinedDictionary(aruco::DICT_4X4_50); aruco::drawMarker(dictionary, id, size, markerImage, 1); String name(file); imwrite(name, markerImage); cout << "Done!"; return 0; }