14 #ifndef TESSERACT_TRAINING_COMMONTRAINING_H_ 15 #define TESSERACT_TRAINING_COMMONTRAINING_H_ 18 #include "config_auto.h" 22 #ifdef DISABLED_LEGACY_ENGINE 25 #include "commandlineflags.h" 28 void ParseArguments(
int* argc,
char*** argv);
40 tprintf(
"ERROR: shared library version mismatch (was %s, expected %s\n" 41 "Did you use a wrong shared tesseract library?\n",
54 #include "commandlineflags.h" 89 int NumMerged[MAX_NUM_PROTOS];
98 void ParseArguments(
int* argc,
char*** argv);
109 tprintf(
"ERROR: shared library version mismatch (was %s, expected %s\n" 110 "Did you use a wrong shared tesseract library?\n",
141 const char *GetNextFilename(
int argc,
const char*
const * argv);
143 LABELEDLIST FindList(
147 LABELEDLIST NewLabeledList(
151 const char *feature_name,
int max_samples,
153 FILE* file,
LIST* training_samples);
155 void WriteTrainingSamples(
159 const char *program_feature_type);
161 void FreeTrainingSamples(
164 void FreeLabeledList(
165 LABELEDLIST LabeledList);
167 void FreeLabeledClassList(
172 LABELEDLIST CharSample,
173 const char *program_feature_type);
175 LIST RemoveInsignificantProtos(
178 bool KeepInsigProtos,
181 void CleanUpUnusedData(
184 void MergeInsignificantProtos(
197 void FreeTrainingSamples(
201 LIST LabeledClassList);
206 void FreeNormProtoList(
209 void AddToNormProtosList(
217 bool CountInsigProtos);
220 void allocNormProtos();
222 #endif // def DISABLED_LEGACY_ENGINE 224 #endif // TESSERACT_TRAINING_COMMONTRAINING_H_ Definition: mastertrainer.h:69
char * Label
Definition: commontraining.h:88
ShapeTable * LoadShapeTable(const STRING &file_prefix)
Definition: commontraining.cpp:162
MasterTrainer * LoadTrainingData(int argc, const char *const *argv, bool replication, ShapeTable **shape_table, STRING *file_prefix)
Definition: commontraining.cpp:219
char * Label
Definition: commontraining.h:79
Definition: commontraining.h:77
static const char * Version()
Definition: baseapi.cpp:223
Definition: unicharset.h:146
Definition: baseapi.cpp:94
Definition: featdefs.h:46
static void CheckSharedLibraryVersion()
Definition: commontraining.h:105
Definition: commontraining.h:86
Definition: shapetable.h:262
int SampleCount
Definition: commontraining.h:80
Definition: oldlist.h:124
int font_sample_count
Definition: commontraining.h:81
LIST List
Definition: commontraining.h:82
CLASS_TYPE Class
Definition: commontraining.h:90
void WriteShapeTable(const STRING &file_prefix, const ShapeTable &shape_table)
Definition: commontraining.cpp:187