tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
20 #ifndef TESSERACT_WORDREC_LM_CONSISTENCY_H_
21 #define TESSERACT_WORDREC_LM_CONSISTENCY_H_
31 static const char *
const XHeightConsistencyEnumName[] = {
54 if (parent_info ==
nullptr) {
70 for (
int i = 0; i <
kNumPos; i++) {
113 return static_cast<float>(INT16_MAX);
142 #endif // TESSERACT_WORDREC_LM_CONSISTENCY_H_
static const int kShiftThresh
int NumInconsistentSpaces() const
int16_t xht_count_punc[kNumPos]
LMConsistencyInfo(const LMConsistencyInfo *parent_info)
float BodyMinXHeight() const
XHeightConsistencyEnum xht_decision
static const int kMaxEntropy
int NumInconsistentCase() const
int16_t xht_count[kNumPos]
int num_inconsistent_spaces
float BodyMaxXHeight() const
void ComputeXheightConsistency(const BLOB_CHOICE *b, bool is_punc)
int InconsistentXHeight() const
int NumInconsistentChartype() const
int NumInconsistentPunc() const