|
tesseract
4.00.00dev
|
#include <lm_consistency.h>
Public Types | |
| enum | ChartypeEnum { CT_NONE, CT_ALPHA, CT_DIGIT, CT_OTHER } |
Public Member Functions | |
| LMConsistencyInfo (const LMConsistencyInfo *parent_info) | |
| int | NumInconsistentPunc () const |
| int | NumInconsistentCase () const |
| int | NumInconsistentChartype () const |
| bool | Consistent () const |
| int | NumInconsistentSpaces () const |
| int | InconsistentXHeight () const |
| void | ComputeXheightConsistency (const BLOB_CHOICE *b, bool is_punc) |
| float | BodyMinXHeight () const |
| float | BodyMaxXHeight () const |
Public Attributes | |
| int | num_alphas |
| int | num_digits |
| int | num_punc |
| int | num_other |
| ChartypeEnum | chartype |
| EDGE_REF | punc_ref |
| bool | invalid_punc |
| int | num_non_first_upper |
| int | num_lower |
| int | script_id |
| bool | inconsistent_script |
| int | num_inconsistent_spaces |
| bool | inconsistent_font |
| float | xht_lo [kNumPos] |
| float | xht_hi [kNumPos] |
| inT16 | xht_count [kNumPos] |
| inT16 | xht_count_punc [kNumPos] |
| inT16 | xht_sp |
| inT16 | xpos_entropy |
| XHeightConsistencyEnum | xht_decision |
Static Public Attributes | |
| static const int | kShiftThresh = 1 |
| static const int | kMaxEntropy = 1 |
| static const int | kSUB = 0 |
| static const int | kNORM = 1 |
| static const int | kSUP = 2 |
| static const int | kNumPos = 3 |
Definition at line 38 of file lm_consistency.h.
|
inlineexplicit |
Definition at line 53 of file lm_consistency.h.
|
inline |
Definition at line 111 of file lm_consistency.h.
|
inline |
Definition at line 106 of file lm_consistency.h.
| void tesseract::LMConsistencyInfo::ComputeXheightConsistency | ( | const BLOB_CHOICE * | b, |
| bool | is_punc | ||
| ) |
Definition at line 29 of file lm_consistency.cpp.
|
inline |
Definition at line 94 of file lm_consistency.h.
|
inline |
Definition at line 102 of file lm_consistency.h.
|
inline |
Definition at line 87 of file lm_consistency.h.
|
inline |
Definition at line 90 of file lm_consistency.h.
|
inline |
Definition at line 84 of file lm_consistency.h.
|
inline |
Definition at line 99 of file lm_consistency.h.
| ChartypeEnum tesseract::LMConsistencyInfo::chartype |
Definition at line 121 of file lm_consistency.h.
| bool tesseract::LMConsistencyInfo::inconsistent_font |
Definition at line 129 of file lm_consistency.h.
| bool tesseract::LMConsistencyInfo::inconsistent_script |
Definition at line 127 of file lm_consistency.h.
| bool tesseract::LMConsistencyInfo::invalid_punc |
Definition at line 123 of file lm_consistency.h.
|
static |
Definition at line 47 of file lm_consistency.h.
|
static |
Definition at line 50 of file lm_consistency.h.
|
static |
Definition at line 51 of file lm_consistency.h.
|
static |
Definition at line 43 of file lm_consistency.h.
|
static |
Definition at line 50 of file lm_consistency.h.
|
static |
Definition at line 50 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_alphas |
Definition at line 117 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_digits |
Definition at line 118 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_inconsistent_spaces |
Definition at line 128 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_lower |
Definition at line 125 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_non_first_upper |
Definition at line 124 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_other |
Definition at line 120 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::num_punc |
Definition at line 119 of file lm_consistency.h.
| EDGE_REF tesseract::LMConsistencyInfo::punc_ref |
Definition at line 122 of file lm_consistency.h.
| int tesseract::LMConsistencyInfo::script_id |
Definition at line 126 of file lm_consistency.h.
Definition at line 133 of file lm_consistency.h.
Definition at line 134 of file lm_consistency.h.
| XHeightConsistencyEnum tesseract::LMConsistencyInfo::xht_decision |
Definition at line 137 of file lm_consistency.h.
| float tesseract::LMConsistencyInfo::xht_hi[kNumPos] |
Definition at line 132 of file lm_consistency.h.
| float tesseract::LMConsistencyInfo::xht_lo[kNumPos] |
Definition at line 131 of file lm_consistency.h.
| inT16 tesseract::LMConsistencyInfo::xht_sp |
Definition at line 135 of file lm_consistency.h.
| inT16 tesseract::LMConsistencyInfo::xpos_entropy |
Definition at line 136 of file lm_consistency.h.