20 #include "config_auto.h" 23 #ifdef GOOGLE_TESSERACT 24 #include "base/commandlineflags.h" 32 "Display cloud of this font, canonical_class1");
34 "Display canonical sample of this font, canonical_class2");
47 int main(
int argc,
char **argv) {
48 tesseract::CheckSharedLibraryVersion();
59 if (FLAGS_display_cloud_font >= 0) {
60 #ifndef GRAPHICS_DISABLED 62 FLAGS_display_cloud_font,
63 FLAGS_canonical_class2.c_str(),
64 FLAGS_display_canonical_font);
65 #endif // GRAPHICS_DISABLED 67 }
else if (!FLAGS_canonical_class1.empty()) {
69 FLAGS_canonical_class2.c_str());
void DisplaySamples(const char *unichar_str1, int cloud_font, const char *unichar_str2, int canonical_font)
void ParseArguments(int *argc, char ***argv)
STRING_PARAM_FLAG(canonical_class1, "", "Class to show ambigs for")
void DebugCanonical(const char *unichar_str1, const char *unichar_str2)
INT_PARAM_FLAG(display_cloud_font, -1, "Display cloud of this font, canonical_class1")
void WriteShapeTable(const STRING &file_prefix, const ShapeTable &shape_table)
const ShapeTable & master_shapes() const
int main(int argc, char **argv)
MasterTrainer * LoadTrainingData(int argc, const char *const *argv, bool replication, ShapeTable **shape_table, STRING *file_prefix)