tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
27 "Do not include character fragments in the"
28 " results of the classifier");
31 "Integer Matcher Multiplier 0-255: ");
55 #define SE_TABLE_BITS 9
56 #define SE_TABLE_SIZE 512
92 int AdaptFeatureThreshold,
94 bool SeparateDebugWindows);
99 int normalization_factor,
int matcher_multiplier);
107 int AdaptProtoThreshold,
116 int AdaptFeatureThreshold,
120 int UpdateTablesForFeature(
129 int FindBestMatch(
INT_CLASS ClassTemplate,
133 #ifndef GRAPHICS_DISABLED
134 void DebugFeatureProtoError(
142 void DisplayProtoDebugInfo(
146 bool SeparateDebugWindows);
148 void DisplayFeatureDebugInfo(
154 int AdaptFeatureThreshold,
156 bool SeparateDebugWindows);
162 uint32_t evidence_table_mask_;
163 uint32_t mult_trunc_shift_bits_;
164 uint32_t table_trunc_shift_bits_;
165 uint32_t evidence_mult_mask_;
void Match(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, int16_t NumFeatures, const INT_FEATURE_STRUCT *Features, tesseract::UnicharRating *Result, int AdaptFeatureThreshold, int Debug, bool SeparateDebugWindows)
void ClearFeatureEvidence(const INT_CLASS class_template)
float ApplyCNCorrection(float rating, int blob_length, int normalization_factor, int matcher_multiplier)
static const int kEvidenceTableBits
uint8_t feature_evidence_[MAX_NUM_CONFIGS]
static const int kIntEvidenceTruncBits
int FindGoodProtos(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, int16_t NumFeatures, INT_FEATURE_ARRAY Features, PROTO_ID *ProtoArray, int AdaptProtoThreshold, int Debug)
int classify_integer_matcher_multiplier
void NormalizeSums(INT_CLASS ClassTemplate, int16_t NumFeatures)
IntegerMatcher(tesseract::IntParam *classify_debug_level)
static const float kSimilarityCenter
void UpdateSumOfProtoEvidences(INT_CLASS ClassTemplate, BIT_VECTOR ConfigMask)
void Clear(const INT_CLASS class_template)
#define INT_VAR_H(name, val, comment)
int sum_feature_evidence_[MAX_NUM_CONFIGS]
INT_FEATURE_STRUCT INT_FEATURE_ARRAY[MAX_NUM_INT_FEATURES]
#define BOOL_VAR_H(name, val, comment)
int FindBadFeatures(INT_CLASS ClassTemplate, BIT_VECTOR ProtoMask, BIT_VECTOR ConfigMask, int16_t NumFeatures, INT_FEATURE_ARRAY Features, FEATURE_ID *FeatureArray, int AdaptFeatureThreshold, int Debug)
static const int kIntThetaFudge
static const float kSEExponentialMultiplier
bool disable_character_fragments
uint8_t proto_evidence_[MAX_NUM_PROTOS][MAX_PROTO_INDEX]