21 #ifndef TESSERACT_WORDREC_LM_CONSISTENCY_H_ 22 #define TESSERACT_WORDREC_LM_CONSISTENCY_H_ 32 static const char *
const XHeightConsistencyEnumName[] = {
55 if (parent_info ==
nullptr) {
71 for (
int i = 0; i <
kNumPos; i++) {
114 return static_cast<float>(INT16_MAX);
143 #endif // TESSERACT_WORDREC_LM_CONSISTENCY_H_ static const int kMaxEntropy
int NumInconsistentSpaces() const
int InconsistentXHeight() const
int16_t xht_count[kNumPos]
int16_t xht_count_punc[kNumPos]
LMConsistencyInfo(const LMConsistencyInfo *parent_info)
int NumInconsistentCase() const
int num_inconsistent_spaces
static const int kShiftThresh
int NumInconsistentPunc() const
float BodyMinXHeight() const
int NumInconsistentChartype() const
XHeightConsistencyEnum xht_decision
float BodyMaxXHeight() const
void ComputeXheightConsistency(const BLOB_CHOICE *b, bool is_punc)