tesseract v5.3.3.20231005
commontraining.h File Reference
#include "commandlineflags.h"
#include "export.h"
#include "tprintf.h"
#include <tesseract/baseapi.h>
#include <memory>
#include "cluster.h"
#include "featdefs.h"
#include "intproto.h"
#include "oldlist.h"

Go to the source code of this file.

Classes

struct  tesseract::LABELEDLISTNODE
 
struct  tesseract::MERGE_CLASS_NODE
 

Namespaces

namespace  tesseract
 

Typedefs

using tesseract::LABELEDLIST = LABELEDLISTNODE *
 
using tesseract::MERGE_CLASS = MERGE_CLASS_NODE *
 

Functions

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::WriteTrainingSamples (const tesseract::FEATURE_DEFS_STRUCT &FeatureDefs, char *Directory, tesseract::LIST CharList, const char *program_feature_type)
 
void tesseract::FreeTrainingSamples (LIST CharList)
 
void tesseract::FreeLabeledList (LABELEDLIST LabeledList)
 
void tesseract::FreeLabeledClassList (LIST ClassList)
 
CLUSTERER * tesseract::SetUpForClustering (const FEATURE_DEFS_STRUCT &FeatureDefs, LABELEDLIST char_sample, const char *program_feature_type)
 
LIST tesseract::RemoveInsignificantProtos (LIST ProtoList, bool KeepSigProtos, bool KeepInsigProtos, int N)
 
void tesseract::CleanUpUnusedData (LIST ProtoList)
 
void tesseract::MergeInsignificantProtos (LIST ProtoList, const char *label, CLUSTERER *Clusterer, CLUSTERCONFIG *clusterconfig)
 
MERGE_CLASS tesseract::FindClass (LIST List, const std::string &Label)
 
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)
 
void tesseract::allocNormProtos ()