20# include "config_auto.h"
29static INT_PARAM_FLAG(display_cloud_font, -1,
"Display cloud of this font, canonical_class1");
31 "Display canonical sample of this font, canonical_class2");
44int main(
int argc,
char **argv) {
45 tesseract::CheckSharedLibraryVersion();
49 std::string file_prefix;
56 if (FLAGS_display_cloud_font >= 0) {
57#ifndef GRAPHICS_DISABLED
58 trainer->DisplaySamples(FLAGS_canonical_class1.c_str(), FLAGS_display_cloud_font,
59 FLAGS_canonical_class2.c_str(), FLAGS_display_canonical_font);
62 }
else if (!FLAGS_canonical_class1.empty()) {
63 trainer->DebugCanonical(FLAGS_canonical_class1.c_str(), FLAGS_canonical_class2.c_str());
66 trainer->SetupMasterShapes();
int main(int argc, char **argv)
#define INT_PARAM_FLAG(name, val, comment)
#define STRING_PARAM_FLAG(name, val, comment)
void WriteShapeTable(const std::string &file_prefix, const ShapeTable &shape_table)
void ParseArguments(int *argc, char ***argv)
std::unique_ptr< MasterTrainer > LoadTrainingData(const char *const *filelist, bool replication, ShapeTable **shape_table, std::string &file_prefix)