WERD_RES Class Reference

#include <pageres.h>

Inheritance diagram for WERD_RES:
ELIST_LINK

List of all members.

Public Member Functions

 WERD_RES ()
 WERD_RES (WERD *the_word)
 WERD_RES (const WERD_RES &source)
 ~WERD_RES ()
const char *const BestUTF8 (int blob_index, bool in_rtl_context) const
const char *const RawUTF8 (int blob_index) const
UNICHARSET::Direction SymbolDirection (int blob_index) const
bool AnyRtlCharsInWord () const
bool AnyLtrCharsInWord () const
bool UnicharsInReadingOrder () const
void InitNonPointers ()
void InitPointers ()
void Clear ()
void ClearResults ()
WERD_RESoperator= (const WERD_RES &source)
void CopySimpleFields (const WERD_RES &source)
void InitForRetryRecognition (const WERD_RES &source)
bool SetupForTessRecognition (const UNICHARSET &unicharset_in, tesseract::Tesseract *tesseract, Pix *pix, bool numeric_mode, bool use_body_size, ROW *row, BLOCK *block)
bool SetupForCubeRecognition (const UNICHARSET &unicharset_in, tesseract::Tesseract *tesseract, const BLOCK *block)
void SetupFake (const UNICHARSET &uch)
void SetupWordScript (const UNICHARSET &unicharset_in)
void SetupBlamerBundle ()
void ConsumeWordResults (WERD_RES *word)
void ReplaceBestChoice (const WERD_CHOICE &choice, const GenericVector< int > &segmentation_state)
void RebuildBestState ()
void CloneChoppedToRebuild ()
void SetupBoxWord ()
void SetScriptPositions ()
void WithoutFootnoteSpan (int *start, int *end) const
void WithoutFootnoteSpan (const WERD_CHOICE &choice, const GenericVector< int > &state, int *start, int *end) const
void FakeClassifyWord (int blob_count, BLOB_CHOICE **choices)
void BestChoiceToCorrectText ()
bool ConditionalBlobMerge (TessResultCallback2< UNICHAR_ID, UNICHAR_ID, UNICHAR_ID > *class_cb, TessResultCallback2< bool, const TBOX &, const TBOX & > *box_cb, BLOB_CHOICE_LIST_CLIST *blob_choices)
UNICHAR_ID BothQuotes (UNICHAR_ID id1, UNICHAR_ID id2)
void fix_quotes (BLOB_CHOICE_LIST_CLIST *blob_choices)
UNICHAR_ID BothHyphens (UNICHAR_ID id1, UNICHAR_ID id2)
bool HyphenBoxesOverlap (const TBOX &box1, const TBOX &box2)
void fix_hyphens (BLOB_CHOICE_LIST_CLIST *blob_choices)
UNICHAR_ID BothSpaces (UNICHAR_ID id1, UNICHAR_ID id2)
void merge_tess_fails ()
void copy_on (WERD_RES *word_res)
bool PiecesAllNatural (int start, int count) const

Static Public Member Functions

static WERD_RESdeep_copy (const WERD_RES *src)

Public Attributes

WERDword
tesseract::BoxWordbln_boxes
DENORM denorm
const UNICHARSETuch_set
TWERDchopped_word
SEAMS seam_array
WERD_CHOICEbest_choice
WERD_CHOICEraw_choice
GenericVector< WERD_CHOICE * > alt_choices
GenericVector< GenericVector
< int > > 
alt_states
BlamerBundleblamer_bundle
TWERDrebuild_word
tesseract::BoxWordbox_word
GenericVector< int > best_state
GenericVector< STRINGcorrect_text
tesseract::Tesseracttesseract
WERD_CHOICEep_choice
REJMAP reject_map
BOOL8 tess_failed
BOOL8 tess_accepted
BOOL8 tess_would_adapt
BOOL8 done
bool small_caps
inT8 italic
inT8 bold
const FontInfofontinfo
const FontInfofontinfo2
inT8 fontinfo_id_count
inT8 fontinfo_id2_count
BOOL8 guessed_x_ht
BOOL8 guessed_caps_ht
CRUNCH_MODE unlv_crunch_mode
float x_height
float caps_height
BOOL8 combination
BOOL8 part_of_combo
BOOL8 reject_spaces
GenericVector< inT8best_choice_fontinfo_ids

Constructor & Destructor Documentation

WERD_RES::WERD_RES (  )  [inline]
WERD_RES::WERD_RES ( WERD the_word  )  [inline]
WERD_RES::WERD_RES ( const WERD_RES source  )  [inline]
WERD_RES::~WERD_RES (  ) 

Member Function Documentation

bool WERD_RES::AnyLtrCharsInWord (  )  const [inline]
bool WERD_RES::AnyRtlCharsInWord (  )  const [inline]
void WERD_RES::BestChoiceToCorrectText (  ) 
const char* const WERD_RES::BestUTF8 ( int  blob_index,
bool  in_rtl_context 
) const [inline]
UNICHAR_ID WERD_RES::BothHyphens ( UNICHAR_ID  id1,
UNICHAR_ID  id2 
)
UNICHAR_ID WERD_RES::BothQuotes ( UNICHAR_ID  id1,
UNICHAR_ID  id2 
)
UNICHAR_ID WERD_RES::BothSpaces ( UNICHAR_ID  id1,
UNICHAR_ID  id2 
)
void WERD_RES::Clear (  ) 
void WERD_RES::ClearResults (  ) 
void WERD_RES::CloneChoppedToRebuild (  ) 
bool WERD_RES::ConditionalBlobMerge ( TessResultCallback2< UNICHAR_ID, UNICHAR_ID, UNICHAR_ID > *  class_cb,
TessResultCallback2< bool, const TBOX &, const TBOX & > *  box_cb,
BLOB_CHOICE_LIST_CLIST *  blob_choices 
)
void WERD_RES::ConsumeWordResults ( WERD_RES word  ) 
void WERD_RES::copy_on ( WERD_RES word_res  )  [inline]
void WERD_RES::CopySimpleFields ( const WERD_RES source  ) 
static WERD_RES* WERD_RES::deep_copy ( const WERD_RES src  )  [inline, static]
void WERD_RES::FakeClassifyWord ( int  blob_count,
BLOB_CHOICE **  choices 
)
void WERD_RES::fix_hyphens ( BLOB_CHOICE_LIST_CLIST *  blob_choices  ) 
void WERD_RES::fix_quotes ( BLOB_CHOICE_LIST_CLIST *  blob_choices  ) 
bool WERD_RES::HyphenBoxesOverlap ( const TBOX box1,
const TBOX box2 
)
void WERD_RES::InitForRetryRecognition ( const WERD_RES source  ) 
void WERD_RES::InitNonPointers (  ) 
void WERD_RES::InitPointers (  ) 
void WERD_RES::merge_tess_fails (  ) 
WERD_RES & WERD_RES::operator= ( const WERD_RES source  ) 
bool WERD_RES::PiecesAllNatural ( int  start,
int  count 
) const
const char* const WERD_RES::RawUTF8 ( int  blob_index  )  const [inline]
void WERD_RES::RebuildBestState (  ) 
void WERD_RES::ReplaceBestChoice ( const WERD_CHOICE choice,
const GenericVector< int > &  segmentation_state 
)
void WERD_RES::SetScriptPositions (  ) 
void WERD_RES::SetupBlamerBundle (  ) 
void WERD_RES::SetupBoxWord (  ) 
void WERD_RES::SetupFake ( const UNICHARSET uch  ) 
bool WERD_RES::SetupForCubeRecognition ( const UNICHARSET unicharset_in,
tesseract::Tesseract tesseract,
const BLOCK block 
)
bool WERD_RES::SetupForTessRecognition ( const UNICHARSET unicharset_in,
tesseract::Tesseract tesseract,
Pix *  pix,
bool  numeric_mode,
bool  use_body_size,
ROW row,
BLOCK block 
)
void WERD_RES::SetupWordScript ( const UNICHARSET unicharset_in  ) 
UNICHARSET::Direction WERD_RES::SymbolDirection ( int  blob_index  )  const [inline]
bool WERD_RES::UnicharsInReadingOrder (  )  const [inline]
void WERD_RES::WithoutFootnoteSpan ( const WERD_CHOICE choice,
const GenericVector< int > &  state,
int *  start,
int *  end 
) const
void WERD_RES::WithoutFootnoteSpan ( int *  start,
int *  end 
) const

Member Data Documentation


The documentation for this class was generated from the following files:
Generated on Thu Feb 2 08:19:25 2012 for Tesseract by  doxygen 1.6.3