Tesseract
3.02
|
#include <pageres.h>
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_RES & | operator= (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 |
![]() | |
ELIST_LINK () | |
ELIST_LINK (const ELIST_LINK &) | |
void | operator= (const ELIST_LINK &) |
Static Public Member Functions | |
static WERD_RES * | deep_copy (const WERD_RES *src) |
|
inline |
|
inline |
|
inline |
WERD_RES::~WERD_RES | ( | ) |
Definition at line 746 of file pageres.cpp.
|
inline |
Definition at line 523 of file pageres.h.
|
inline |
Definition at line 506 of file pageres.h.
void WERD_RES::BestChoiceToCorrectText | ( | ) |
Definition at line 572 of file pageres.cpp.
|
inline |
UNICHAR_ID WERD_RES::BothHyphens | ( | UNICHAR_ID | id1, |
UNICHAR_ID | id2 | ||
) |
Definition at line 683 of file pageres.cpp.
UNICHAR_ID WERD_RES::BothQuotes | ( | UNICHAR_ID | id1, |
UNICHAR_ID | id2 | ||
) |
Definition at line 660 of file pageres.cpp.
UNICHAR_ID WERD_RES::BothSpaces | ( | UNICHAR_ID | id1, |
UNICHAR_ID | id2 | ||
) |
Definition at line 713 of file pageres.cpp.
void WERD_RES::Clear | ( | ) |
Definition at line 789 of file pageres.cpp.
void WERD_RES::ClearResults | ( | ) |
Definition at line 799 of file pageres.cpp.
void WERD_RES::CloneChoppedToRebuild | ( | ) |
Definition at line 480 of file pageres.cpp.
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 | ||
) |
Definition at line 587 of file pageres.cpp.
void WERD_RES::ConsumeWordResults | ( | WERD_RES * | word | ) |
Definition at line 411 of file pageres.cpp.
|
inline |
void WERD_RES::CopySimpleFields | ( | const WERD_RES & | source | ) |
Definition at line 234 of file pageres.cpp.
void WERD_RES::FakeClassifyWord | ( | int | blob_count, |
BLOB_CHOICE ** | choices | ||
) |
Definition at line 549 of file pageres.cpp.
void WERD_RES::fix_hyphens | ( | BLOB_CHOICE_LIST_CLIST * | blob_choices | ) |
Definition at line 700 of file pageres.cpp.
void WERD_RES::fix_quotes | ( | BLOB_CHOICE_LIST_CLIST * | blob_choices | ) |
Definition at line 670 of file pageres.cpp.
Definition at line 694 of file pageres.cpp.
void WERD_RES::InitForRetryRecognition | ( | const WERD_RES & | source | ) |
Definition at line 260 of file pageres.cpp.
void WERD_RES::InitNonPointers | ( | ) |
Definition at line 750 of file pageres.cpp.
void WERD_RES::InitPointers | ( | ) |
Definition at line 775 of file pageres.cpp.
void WERD_RES::merge_tess_fails | ( | ) |
Definition at line 721 of file pageres.cpp.
Definition at line 177 of file pageres.cpp.
bool WERD_RES::PiecesAllNatural | ( | int | start, |
int | count | ||
) | const |
Definition at line 733 of file pageres.cpp.
|
inline |
void WERD_RES::RebuildBestState | ( | ) |
Definition at line 452 of file pageres.cpp.
void WERD_RES::ReplaceBestChoice | ( | const WERD_CHOICE & | choice, |
const GenericVector< int > & | segmentation_state | ||
) |
Definition at line 436 of file pageres.cpp.
void WERD_RES::SetScriptPositions | ( | ) |
Definition at line 505 of file pageres.cpp.
void WERD_RES::SetupBlamerBundle | ( | ) |
Definition at line 379 of file pageres.cpp.
void WERD_RES::SetupBoxWord | ( | ) |
Definition at line 495 of file pageres.cpp.
void WERD_RES::SetupFake | ( | const UNICHARSET & | uch | ) |
Definition at line 340 of file pageres.cpp.
bool WERD_RES::SetupForCubeRecognition | ( | const UNICHARSET & | unicharset_in, |
tesseract::Tesseract * | tesseract, | ||
const BLOCK * | block | ||
) |
Definition at line 317 of file pageres.cpp.
bool WERD_RES::SetupForTessRecognition | ( | const UNICHARSET & | unicharset_in, |
tesseract::Tesseract * | tesseract, | ||
Pix * | pix, | ||
bool | numeric_mode, | ||
bool | use_body_size, | ||
ROW * | row, | ||
BLOCK * | block | ||
) |
Definition at line 272 of file pageres.cpp.
void WERD_RES::SetupWordScript | ( | const UNICHARSET & | unicharset_in | ) |
Definition at line 370 of file pageres.cpp.
|
inline |
|
inline |
void WERD_RES::WithoutFootnoteSpan | ( | int * | start, |
int * | end | ||
) | const |
Definition at line 510 of file pageres.cpp.
void WERD_RES::WithoutFootnoteSpan | ( | const WERD_CHOICE & | choice, |
const GenericVector< int > & | state, | ||
int * | start, | ||
int * | end | ||
) | const |
Definition at line 527 of file pageres.cpp.
GenericVector<WERD_CHOICE *> WERD_RES::alt_choices |
GenericVector<GenericVector<int> > WERD_RES::alt_states |
WERD_CHOICE* WERD_RES::best_choice |
GenericVector<inT8> WERD_RES::best_choice_fontinfo_ids |
GenericVector<int> WERD_RES::best_state |
BlamerBundle* WERD_RES::blamer_bundle |
tesseract::BoxWord* WERD_RES::bln_boxes |
tesseract::BoxWord* WERD_RES::box_word |
GenericVector<STRING> WERD_RES::correct_text |
WERD_CHOICE* WERD_RES::ep_choice |
WERD_CHOICE* WERD_RES::raw_choice |
tesseract::Tesseract* WERD_RES::tesseract |
const UNICHARSET* WERD_RES::uch_set |
CRUNCH_MODE WERD_RES::unlv_crunch_mode |