Public Member Functions |
| Classify () |
| ~Classify () |
Dict & | getDict () |
ADAPT_TEMPLATES | NewAdaptedTemplates (bool InitFromUnicharset) |
int | ClassPruner (INT_TEMPLATES IntTemplates, inT16 NumFeatures, INT_FEATURE_ARRAY Features, CLASS_NORMALIZATION_ARRAY NormalizationFactors, CLASS_CUTOFF_ARRAY ExpectedNumFeatures, CLASS_PRUNER_RESULTS Results, int Debug) |
void | ReadNewCutoffs (FILE *CutoffFile, inT64 end_offset, CLASS_CUTOFF_ARRAY Cutoffs) |
void | PrintAdaptedTemplates (FILE *File, ADAPT_TEMPLATES Templates) |
void | WriteAdaptedTemplates (FILE *File, ADAPT_TEMPLATES Templates) |
ADAPT_TEMPLATES | ReadAdaptedTemplates (FILE *File) |
FLOAT32 | ComputeNormMatch (CLASS_ID ClassId, FEATURE Feature, BOOL8 DebugMatch) |
void | FreeNormProtos () |
NORM_PROTOS * | ReadNormProtos (FILE *File, inT64 end_offset) |
void | ReadClassFile () |
INT_TEMPLATES | CreateIntTemplates (CLASSES FloatProtos, const UNICHARSET &target_unicharset) |
void | AdaptToWord (TWERD *Word, TEXTROW *Row, const WERD_CHOICE &BestChoice, const WERD_CHOICE &BestRawChoice, const char *rejmap) |
void | InitAdaptiveClassifier () |
void | InitAdaptedClass (TBLOB *Blob, LINE_STATS *LineStats, CLASS_ID ClassId, ADAPT_CLASS Class, ADAPT_TEMPLATES Templates) |
void | AdaptToPunc (TBLOB *Blob, LINE_STATS *LineStats, CLASS_ID ClassId, FLOAT32 Threshold) |
void | AmbigClassifier (TBLOB *Blob, LINE_STATS *LineStats, INT_TEMPLATES Templates, UNICHAR_ID *Ambiguities, ADAPT_RESULTS *Results) |
void | MasterMatcher (INT_TEMPLATES templates, inT16 num_features, INT_FEATURE_ARRAY features, CLASS_NORMALIZATION_ARRAY norm_factors, ADAPT_CLASS *classes, int debug, int num_classes, CLASS_PRUNER_RESULTS results, ADAPT_RESULTS *final_results) |
void | ConvertMatchesToChoices (ADAPT_RESULTS *Results, BLOB_CHOICE_LIST *Choices) |
void | AddNewResult (ADAPT_RESULTS *Results, CLASS_ID ClassId, FLOAT32 Rating, int ConfigId) |
void | DebugAdaptiveClassifier (TBLOB *Blob, LINE_STATS *LineStats, ADAPT_RESULTS *Results) |
void | GetAdaptThresholds (TWERD *Word, LINE_STATS *LineStats, const WERD_CHOICE &BestChoice, const WERD_CHOICE &BestRawChoice, FLOAT32 Thresholds[]) |
int | MakeNewTemporaryConfig (ADAPT_TEMPLATES Templates, CLASS_ID ClassId, int NumFeatures, INT_FEATURE_ARRAY Features, FEATURE_SET FloatFeatures) |
void | MakePermanent (ADAPT_TEMPLATES Templates, CLASS_ID ClassId, int ConfigId, TBLOB *Blob, LINE_STATS *LineStats) |
void | PrintAdaptiveMatchResults (FILE *File, ADAPT_RESULTS *Results) |
void | RemoveExtraPuncs (ADAPT_RESULTS *Results) |
void | RemoveBadMatches (ADAPT_RESULTS *Results) |
void | ShowBestMatchFor (TBLOB *Blob, LINE_STATS *LineStats, CLASS_ID ClassId, BOOL8 AdaptiveOn, BOOL8 PreTrainedOn) |
UNICHAR_ID * | BaselineClassifier (TBLOB *Blob, LINE_STATS *LineStats, ADAPT_TEMPLATES Templates, ADAPT_RESULTS *Results) |
int | CharNormClassifier (TBLOB *Blob, LINE_STATS *LineStats, INT_TEMPLATES Templates, ADAPT_RESULTS *Results) |
UNICHAR_ID * | GetAmbiguities (TBLOB *Blob, LINE_STATS *LineStats, CLASS_ID CorrectClass) |
void | DoAdaptiveMatch (TBLOB *Blob, LINE_STATS *LineStats, ADAPT_RESULTS *Results) |
void | AdaptToChar (TBLOB *Blob, LINE_STATS *LineStats, CLASS_ID ClassId, FLOAT32 Threshold) |
int | AdaptableWord (TWERD *Word, const WERD_CHOICE &BestChoiceWord, const WERD_CHOICE &RawChoiceWord) |
void | EndAdaptiveClassifier () |
void | PrintAdaptiveStatistics (FILE *File) |
void | SettupPass1 () |
void | SettupPass2 () |
void | AdaptiveClassifier (TBLOB *Blob, TBLOB *DotBlob, TEXTROW *Row, BLOB_CHOICE_LIST *Choices, CLASS_PRUNER_RESULTS cp_results) |
void | ClassifyAsNoise (ADAPT_RESULTS *Results) |
void | ResetAdaptiveClassifier () |
FLOAT32 | GetBestRatingFor (TBLOB *Blob, LINE_STATS *LineStats, CLASS_ID ClassId) |
int | GetCharNormFeatures (TBLOB *Blob, LINE_STATS *LineStats, INT_TEMPLATES Templates, INT_FEATURE_ARRAY IntFeatures, CLASS_NORMALIZATION_ARRAY CharNormArray, inT32 *BlobLength) |
int | GetIntCharNormFeatures (TBLOB *Blob, LINE_STATS *LineStats, INT_TEMPLATES Templates, INT_FEATURE_ARRAY IntFeatures, CLASS_NORMALIZATION_ARRAY CharNormArray, inT32 *BlobLength) |
void | ComputeIntCharNormArray (FEATURE NormFeature, INT_TEMPLATES Templates, CLASS_NORMALIZATION_ARRAY CharNormArray) |
INT_TEMPLATES | ReadIntTemplates (FILE *File) |
void | WriteIntTemplates (FILE *File, INT_TEMPLATES Templates, const UNICHARSET &target_unicharset) |
CLASS_ID | GetClassToDebug (const char *Prompt) |
UnicityTable< FontInfo > & | get_fontinfo_table () |
UnicityTable< FontSet > & | get_fontset_table () |
Public Attributes |
int | tessedit_single_match = FALSE |
INT_TEMPLATES | PreTrainedTemplates |
ADAPT_TEMPLATES | AdaptedTemplates |
bool | inttemp_loaded_ |
BIT_VECTOR | AllProtosOn |
BIT_VECTOR | PrunedProtos |
BIT_VECTOR | AllConfigsOn |
BIT_VECTOR | AllProtosOff |
BIT_VECTOR | AllConfigsOff |
BIT_VECTOR | TempProtoMask |
bool | classify_enable_learning = true |
bool | classify_recog_devanagari = false |
bool | EnableLearning |
NORM_PROTOS * | NormProtos |
UnicityTable< FontInfo > | fontinfo_table_ |
UnicityTable< FontSet > | fontset_table_ |