tesseract
4.0.0-1-g2a2b
|
#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_t | xht_count [kNumPos] |
int16_t | xht_count_punc [kNumPos] |
int16_t | xht_sp |
int16_t | 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 39 of file lm_consistency.h.
|
inlineexplicit |
Definition at line 54 of file lm_consistency.h.
|
inline |
Definition at line 112 of file lm_consistency.h.
|
inline |
Definition at line 107 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 95 of file lm_consistency.h.
|
inline |
Definition at line 103 of file lm_consistency.h.
|
inline |
Definition at line 88 of file lm_consistency.h.
|
inline |
Definition at line 91 of file lm_consistency.h.
|
inline |
Definition at line 85 of file lm_consistency.h.
|
inline |
Definition at line 100 of file lm_consistency.h.
ChartypeEnum tesseract::LMConsistencyInfo::chartype |
Definition at line 122 of file lm_consistency.h.
bool tesseract::LMConsistencyInfo::inconsistent_font |
Definition at line 130 of file lm_consistency.h.
bool tesseract::LMConsistencyInfo::inconsistent_script |
Definition at line 128 of file lm_consistency.h.
bool tesseract::LMConsistencyInfo::invalid_punc |
Definition at line 124 of file lm_consistency.h.
|
static |
Definition at line 48 of file lm_consistency.h.
|
static |
Definition at line 51 of file lm_consistency.h.
|
static |
Definition at line 52 of file lm_consistency.h.
|
static |
Definition at line 44 of file lm_consistency.h.
|
static |
Definition at line 51 of file lm_consistency.h.
|
static |
Definition at line 51 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_alphas |
Definition at line 118 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_digits |
Definition at line 119 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_inconsistent_spaces |
Definition at line 129 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_lower |
Definition at line 126 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_non_first_upper |
Definition at line 125 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_other |
Definition at line 121 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::num_punc |
Definition at line 120 of file lm_consistency.h.
EDGE_REF tesseract::LMConsistencyInfo::punc_ref |
Definition at line 123 of file lm_consistency.h.
int tesseract::LMConsistencyInfo::script_id |
Definition at line 127 of file lm_consistency.h.
int16_t tesseract::LMConsistencyInfo::xht_count[kNumPos] |
Definition at line 134 of file lm_consistency.h.
int16_t tesseract::LMConsistencyInfo::xht_count_punc[kNumPos] |
Definition at line 135 of file lm_consistency.h.
XHeightConsistencyEnum tesseract::LMConsistencyInfo::xht_decision |
Definition at line 138 of file lm_consistency.h.
float tesseract::LMConsistencyInfo::xht_hi[kNumPos] |
Definition at line 133 of file lm_consistency.h.
float tesseract::LMConsistencyInfo::xht_lo[kNumPos] |
Definition at line 132 of file lm_consistency.h.
int16_t tesseract::LMConsistencyInfo::xht_sp |
Definition at line 136 of file lm_consistency.h.
int16_t tesseract::LMConsistencyInfo::xpos_entropy |
Definition at line 137 of file lm_consistency.h.