110 {
111 tesseract::CheckSharedLibraryVersion();
117
119 FLAGS_classifier.c_str(), trainer->
unicharset(), argc, argv, &api);
120 if (shape_classifier == nullptr) {
121 fprintf(stderr, "Classifier init failed!:%s\n", FLAGS_classifier.c_str());
122 return 1;
123 }
124
125
126
127
129
131 std::max(3, static_cast<int>(FLAGS_debug_level)), false,
132 shape_classifier, nullptr);
133 delete shape_classifier;
134 delete api;
135 delete trainer;
136
137 return 0;
138}
void ParseArguments(int *argc, char ***argv)
MasterTrainer * LoadTrainingData(int argc, const char *const *argv, bool replication, ShapeTable **shape_table, STRING *file_prefix)
void ReplicateAndRandomizeSamplesIfRequired()
const UNICHARSET & unicharset() const
void TestClassifierOnSamples(CountTypes error_mode, int report_level, bool replicate_samples, ShapeClassifier *test_classifier, STRING *report_string)