Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 44 of file shapeclustering.cpp.
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();
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)