16 #ifndef THIRD_PARTY_TESSERACT_CLASSIFY_ERRORCOUNTER_H_ 17 #define THIRD_PARTY_TESSERACT_CLASSIFY_ERRORCOUNTER_H_ 19 #include "genericvector.h" 31 class ShapeClassifier;
127 double* unichar_error,
128 double* scaled_error,
190 double* unichar_error,
Definition: errorcounter.h:87
GenericVector< int > multi_unichar_counts_
Definition: errorcounter.h:216
void operator+=(const Counts &other)
Definition: errorcounter.cpp:494
Definition: errorcounter.h:74
Definition: errorcounter.h:75
STATS bad_score_hist_
Definition: errorcounter.h:220
Definition: errorcounter.h:81
Definition: unicharset.h:146
Definition: errorcounter.h:77
double ReportErrors(int report_level, CountTypes boosting_mode, const FontInfoTable &fontinfo_table, const SampleIterator &it, double *unichar_error, STRING *fonts_report)
Definition: errorcounter.cpp:339
Definition: errorcounter.h:78
static bool ComputeRates(const Counts &counts, double rates[CT_SIZE])
Definition: errorcounter.cpp:475
Definition: errorcounter.h:86
Definition: errorcounter.h:82
Definition: baseapi.cpp:94
Definition: errorcounter.h:145
int n[CT_SIZE]
Definition: errorcounter.h:150
bool AccumulateErrors(bool debug, CountTypes boosting_mode, const FontInfoTable &font_table, const GenericVector< UnicharRating > &results, TrainingSample *sample)
Definition: errorcounter.cpp:173
Definition: errorcounter.h:83
Definition: errorcounter.h:84
ErrorCounter(const UNICHARSET &unicharset, int fontsize)
Definition: errorcounter.cpp:156
Definition: errorcounter.h:89
Definition: fontinfo.h:30
bool AccumulateJunk(bool debug, const GenericVector< UnicharRating > &results, TrainingSample *sample)
Definition: errorcounter.cpp:299
static double ComputeErrorRate(ShapeClassifier *classifier, int report_level, CountTypes boosting_mode, const FontInfoTable &fontinfo_table, const GenericVector< Pix *> &page_images, SampleIterator *it, double *unichar_error, double *scaled_error, STRING *fonts_report)
Definition: errorcounter.cpp:39
Definition: errorcounter.h:94
Definition: errorcounter.h:80
static void DebugNewErrors(ShapeClassifier *new_classifier, ShapeClassifier *old_classifier, CountTypes boosting_mode, const FontInfoTable &fontinfo_table, const GenericVector< Pix *> &page_images, SampleIterator *it)
Definition: errorcounter.cpp:106
GENERIC_2D_ARRAY< int > unichar_counts_
Definition: errorcounter.h:213
Definition: errorcounter.h:70
const UNICHARSET & unicharset_
Definition: errorcounter.h:222
Definition: statistc.h:33
Definition: fontinfo.h:146
double rating_epsilon_
Definition: errorcounter.h:208
Definition: shapeclassifier.h:43
static bool ReportString(bool even_if_empty, const Counts &counts, STRING *report)
Definition: errorcounter.cpp:431
Definition: errorcounter.h:79
Definition: errorcounter.h:76
GenericVector< Counts > font_counts_
Definition: errorcounter.h:210
Definition: errorcounter.h:85
STATS ok_score_hist_
Definition: errorcounter.h:218
Definition: trainingsample.h:53
CountTypes
Definition: errorcounter.h:69
Counts()
Definition: errorcounter.cpp:490
Definition: sampleiterator.h:92
double scaled_error_
Definition: errorcounter.h:206