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_
int InconsistentXHeight() const
int16_t xht_count[kNumPos]
int16_t xht_count_punc[kNumPos]
LMConsistencyInfo(const LMConsistencyInfo *parent_info)
float BodyMinXHeight() const
float BodyMaxXHeight() const
static const int kMaxEntropy
int NumInconsistentChartype() const
static const int kShiftThresh
int NumInconsistentSpaces() const
int num_inconsistent_spaces
int NumInconsistentPunc() const
void ComputeXheightConsistency(const BLOB_CHOICE *b, bool is_punc)
int NumInconsistentCase() const
XHeightConsistencyEnum xht_decision