tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::LMConsistencyInfo Struct Reference

#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
 

Member Enumeration Documentation

◆ ChartypeEnum

Enumerator
CT_NONE 
CT_ALPHA 
CT_DIGIT 
CT_OTHER 

Constructor & Destructor Documentation

◆ LMConsistencyInfo()

tesseract::LMConsistencyInfo::LMConsistencyInfo ( const LMConsistencyInfo parent_info)
inlineexplicit

Member Function Documentation

◆ BodyMaxXHeight()

float tesseract::LMConsistencyInfo::BodyMaxXHeight ( ) const
inline

◆ BodyMinXHeight()

float tesseract::LMConsistencyInfo::BodyMinXHeight ( ) const
inline

◆ ComputeXheightConsistency()

void tesseract::LMConsistencyInfo::ComputeXheightConsistency ( const BLOB_CHOICE b,
bool  is_punc 
)

◆ Consistent()

bool tesseract::LMConsistencyInfo::Consistent ( ) const
inline

◆ InconsistentXHeight()

int tesseract::LMConsistencyInfo::InconsistentXHeight ( ) const
inline

◆ NumInconsistentCase()

int tesseract::LMConsistencyInfo::NumInconsistentCase ( ) const
inline

◆ NumInconsistentChartype()

int tesseract::LMConsistencyInfo::NumInconsistentChartype ( ) const
inline

◆ NumInconsistentPunc()

int tesseract::LMConsistencyInfo::NumInconsistentPunc ( ) const
inline

◆ NumInconsistentSpaces()

int tesseract::LMConsistencyInfo::NumInconsistentSpaces ( ) const
inline

Member Data Documentation

◆ chartype

ChartypeEnum tesseract::LMConsistencyInfo::chartype

◆ inconsistent_font

bool tesseract::LMConsistencyInfo::inconsistent_font

◆ inconsistent_script

bool tesseract::LMConsistencyInfo::inconsistent_script

◆ invalid_punc

bool tesseract::LMConsistencyInfo::invalid_punc

◆ kMaxEntropy

const int tesseract::LMConsistencyInfo::kMaxEntropy = 1
static

◆ kNORM

const int tesseract::LMConsistencyInfo::kNORM = 1
static

◆ kNumPos

const int tesseract::LMConsistencyInfo::kNumPos = 3
static

◆ kShiftThresh

const int tesseract::LMConsistencyInfo::kShiftThresh = 1
static

◆ kSUB

const int tesseract::LMConsistencyInfo::kSUB = 0
static

◆ kSUP

const int tesseract::LMConsistencyInfo::kSUP = 2
static

◆ num_alphas

int tesseract::LMConsistencyInfo::num_alphas

◆ num_digits

int tesseract::LMConsistencyInfo::num_digits

◆ num_inconsistent_spaces

int tesseract::LMConsistencyInfo::num_inconsistent_spaces

◆ num_lower

int tesseract::LMConsistencyInfo::num_lower

◆ num_non_first_upper

int tesseract::LMConsistencyInfo::num_non_first_upper

◆ num_other

int tesseract::LMConsistencyInfo::num_other

◆ num_punc

int tesseract::LMConsistencyInfo::num_punc

◆ punc_ref

EDGE_REF tesseract::LMConsistencyInfo::punc_ref

◆ script_id

int tesseract::LMConsistencyInfo::script_id

◆ xht_count

int16_t tesseract::LMConsistencyInfo::xht_count[kNumPos]

◆ xht_count_punc

int16_t tesseract::LMConsistencyInfo::xht_count_punc[kNumPos]

◆ xht_decision

XHeightConsistencyEnum tesseract::LMConsistencyInfo::xht_decision

◆ xht_hi

float tesseract::LMConsistencyInfo::xht_hi[kNumPos]

◆ xht_lo

float tesseract::LMConsistencyInfo::xht_lo[kNumPos]

◆ xht_sp

int16_t tesseract::LMConsistencyInfo::xht_sp

◆ xpos_entropy

int16_t tesseract::LMConsistencyInfo::xpos_entropy

The documentation for this struct was generated from the following files: