4 #include <opencv2/highgui/highgui.hpp> 8 int main(
int argc,
char **argv){
11 cerr <<
"Usage: dictionary outdir [bit_image_size: 75 default] " << endl;
13 cerr<<
"\t\tDictionaries: ";
14 for(
auto dict:dict_names) cerr<<dict<<
" ";cerr<<endl;
19 if (argc>=4) pixSize = std::stoi( argv[3]);
22 std::transform(dict_name.begin(), dict_name.end(), dict_name.begin(), ::tolower);
25 string number=std::to_string(m.second);
26 while(number.size()!=5) number=
"0"+number;
28 name<<argv[2]<<
"/"+dict_name+
"_"<<number<<
".png";
29 cout<<name.str()<<endl;
cv::Mat getMarkerImage_id(int id, int bit_size, bool addWaterMark=true)
Dictionary::getMarkerImage_id.
DICT_TYPES getType() const
static std::vector< std::string > getDicTypes()
int main(int argc, char **argv)
const std::map< uint64_t, uint16_t > & getMapCode() const
static std::string getTypeString(DICT_TYPES t)
static Dictionary loadPredefined(DICT_TYPES type)