tesseract v5.3.3.20231005
commontraining.cpp File Reference
#include "commontraining.h"
#include <allheaders.h>
#include "ccutil.h"
#include "classify.h"
#include "cluster.h"
#include "clusttool.h"
#include "featdefs.h"
#include "fontinfo.h"
#include "intfeaturespace.h"
#include "mastertrainer.h"
#include "mf.h"
#include "oldlist.h"
#include "params.h"
#include "shapetable.h"
#include "tessdatamanager.h"
#include "tprintf.h"
#include "unicity_table.h"

Go to the source code of this file.

Namespaces

namespace  tesseract
 

Macros

#define _USE_MATH_DEFINES
 

Functions

 tesseract::INT_PARAM_FLAG (debug_level, 0, "Level of Trainer debugging")
 
 tesseract::STRING_PARAM_FLAG (D, "", "Directory to write output files to")
 
 tesseract::STRING_PARAM_FLAG (F, "font_properties", "File listing font properties")
 
 tesseract::STRING_PARAM_FLAG (X, "", "File listing font xheights")
 
 tesseract::STRING_PARAM_FLAG (U, "unicharset", "File to load unicharset from")
 
 tesseract::STRING_PARAM_FLAG (O, "", "File to write unicharset to")
 
 tesseract::STRING_PARAM_FLAG (output_trainer, "", "File to write trainer to")
 
 tesseract::STRING_PARAM_FLAG (test_ch, "", "UTF8 test character string")
 
 tesseract::STRING_PARAM_FLAG (fonts_dir, "", "")
 
 tesseract::STRING_PARAM_FLAG (fontconfig_tmpdir, "", "")
 
void tesseract::ParseArguments (int *argc, char ***argv)
 
ShapeTable * tesseract::LoadShapeTable (const std::string &file_prefix)
 
void tesseract::WriteShapeTable (const std::string &file_prefix, const ShapeTable &shape_table)
 
std::unique_ptr< MasterTrainer > tesseract::LoadTrainingData (const char *const *filelist, bool replication, ShapeTable **shape_table, std::string &file_prefix)
 
LABELEDLIST tesseract::FindList (LIST List, const std::string &Label)
 
void tesseract::ReadTrainingSamples (const FEATURE_DEFS_STRUCT &feature_definitions, const char *feature_name, int max_samples, UNICHARSET *unicharset, FILE *file, LIST *training_samples)
 
void tesseract::FreeTrainingSamples (LIST CharList)
 
void tesseract::FreeLabeledList (LABELEDLIST LabeledList)
 
CLUSTERER * tesseract::SetUpForClustering (const FEATURE_DEFS_STRUCT &FeatureDefs, LABELEDLIST char_sample, const char *program_feature_type)
 
void tesseract::MergeInsignificantProtos (LIST ProtoList, const char *label, CLUSTERER *Clusterer, CLUSTERCONFIG *clusterconfig)
 
void tesseract::CleanUpUnusedData (LIST ProtoList)
 
LIST tesseract::RemoveInsignificantProtos (LIST ProtoList, bool KeepSigProtos, bool KeepInsigProtos, int N)
 
MERGE_CLASS tesseract::FindClass (LIST List, const std::string &Label)
 
void tesseract::FreeLabeledClassList (LIST ClassList)
 
CLASS_STRUCT * tesseract::SetUpForFloat2Int (const UNICHARSET &unicharset, LIST LabeledClassList)
 
void tesseract::Normalize (float *Values)
 
void tesseract::FreeNormProtoList (LIST CharList)
 
void tesseract::AddToNormProtosList (LIST *NormProtoList, LIST ProtoList, const std::string &CharName)
 
int tesseract::NumberOfProtos (LIST ProtoList, bool CountSigProtos, bool CountInsigProtos)
 

Variables

CLUSTERCONFIG tesseract::Config = {elliptical, 0.625, 0.05, 1.0, 1e-6, 0}
 
FEATURE_DEFS_STRUCT tesseract::feature_defs
 

Macro Definition Documentation

◆ _USE_MATH_DEFINES

#define _USE_MATH_DEFINES

Definition at line 14 of file commontraining.cpp.