tesseract
4.0.0-1-g2a2b
|
#include <pageres.h>
Public Member Functions | |
WERD_RES () | |
WERD_RES (WERD *the_word) | |
WERD_RES (const WERD_RES &source) | |
~WERD_RES () | |
const char * | BestUTF8 (int blob_index, bool in_rtl_context) const |
const char * | 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 () |
void | ClearWordChoices () |
void | ClearRatings () |
WERD_RES & | operator= (const WERD_RES &source) |
void | CopySimpleFields (const WERD_RES &source) |
void | InitForRetryRecognition (const WERD_RES &source) |
bool | SetupForRecognition (const UNICHARSET &unicharset_in, tesseract::Tesseract *tesseract, Pix *pix, int norm_mode, const TBOX *norm_box, bool numeric_mode, bool use_body_size, bool allow_detailed_fx, ROW *row, const BLOCK *block) |
void | SetupBasicsFromChoppedWord (const UNICHARSET &unicharset_in) |
void | SetupFake (const UNICHARSET &uch) |
void | SetupWordScript (const UNICHARSET &unicharset_in) |
void | SetupBlamerBundle () |
void | SetupBlobWidthsAndGaps () |
void | InsertSeam (int blob_number, SEAM *seam) |
bool | AlternativeChoiceAdjustmentsWorseThan (float threshold) const |
bool | IsAmbiguous () |
bool | StatesAllValid () |
void | DebugWordChoices (bool debug, const char *word_to_debug) |
void | DebugTopChoice (const char *msg) const |
void | FilterWordChoices (int debug_level) |
void | ComputeAdaptionThresholds (float certainty_scale, float min_rating, float max_rating, float rating_margin, float *thresholds) |
bool | LogNewRawChoice (WERD_CHOICE *word_choice) |
bool | LogNewCookedChoice (int max_num_choices, bool debug, WERD_CHOICE *word_choice) |
void | PrintBestChoices () const |
int | GetBlobsWidth (int start_blob, int last_blob) |
int | GetBlobsGap (int blob_index) |
BLOB_CHOICE * | GetBlobChoice (int index) const |
BLOB_CHOICE_LIST * | GetBlobChoices (int index) const |
void | ConsumeWordResults (WERD_RES *word) |
void | ReplaceBestChoice (WERD_CHOICE *choice) |
void | RebuildBestState () |
void | CloneChoppedToRebuild () |
void | SetupBoxWord () |
void | SetScriptPositions () |
void | SetAllScriptPositions (tesseract::ScriptPos position) |
void | FakeClassifyWord (int blob_count, BLOB_CHOICE **choices) |
void | FakeWordFromRatings (PermuterType permuter) |
void | BestChoiceToCorrectText () |
bool | ConditionalBlobMerge (TessResultCallback2< UNICHAR_ID, UNICHAR_ID, UNICHAR_ID > *class_cb, TessResultCallback2< bool, const TBOX &, const TBOX &> *box_cb) |
void | MergeAdjacentBlobs (int index) |
UNICHAR_ID | BothQuotes (UNICHAR_ID id1, UNICHAR_ID id2) |
void | fix_quotes () |
UNICHAR_ID | BothHyphens (UNICHAR_ID id1, UNICHAR_ID id2) |
bool | HyphenBoxesOverlap (const TBOX &box1, const TBOX &box2) |
void | fix_hyphens () |
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 |
Public Member Functions inherited from ELIST_LINK | |
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) |
WERD_RES::~WERD_RES | ( | ) |
Definition at line 1096 of file pageres.cpp.
bool WERD_RES::AlternativeChoiceAdjustmentsWorseThan | ( | float | threshold | ) | const |
Definition at line 445 of file pageres.cpp.
|
inline |
Definition at line 408 of file pageres.h.
|
inline |
Definition at line 391 of file pageres.h.
void WERD_RES::BestChoiceToCorrectText | ( | ) |
Definition at line 929 of file pageres.cpp.
|
inline |
Definition at line 361 of file pageres.h.
UNICHAR_ID WERD_RES::BothHyphens | ( | UNICHAR_ID | id1, |
UNICHAR_ID | id2 | ||
) |
Definition at line 1036 of file pageres.cpp.
UNICHAR_ID WERD_RES::BothQuotes | ( | UNICHAR_ID | id1, |
UNICHAR_ID | id2 | ||
) |
Definition at line 1014 of file pageres.cpp.
UNICHAR_ID WERD_RES::BothSpaces | ( | UNICHAR_ID | id1, |
UNICHAR_ID | id2 | ||
) |
Definition at line 1065 of file pageres.cpp.
void WERD_RES::Clear | ( | ) |
Definition at line 1143 of file pageres.cpp.
void WERD_RES::ClearRatings | ( | ) |
Definition at line 1186 of file pageres.cpp.
void WERD_RES::ClearResults | ( | ) |
Definition at line 1153 of file pageres.cpp.
void WERD_RES::ClearWordChoices | ( | ) |
Definition at line 1178 of file pageres.cpp.
void WERD_RES::CloneChoppedToRebuild | ( | ) |
Definition at line 841 of file pageres.cpp.
void WERD_RES::ComputeAdaptionThresholds | ( | float | certainty_scale, |
float | min_rating, | ||
float | max_rating, | ||
float | rating_margin, | ||
float * | thresholds | ||
) |
Definition at line 567 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 | ||
) |
Definition at line 944 of file pageres.cpp.
void WERD_RES::ConsumeWordResults | ( | WERD_RES * | word | ) |
Definition at line 771 of file pageres.cpp.
void WERD_RES::CopySimpleFields | ( | const WERD_RES & | source | ) |
Definition at line 255 of file pageres.cpp.
void WERD_RES::DebugTopChoice | ( | const char * | msg | ) | const |
Definition at line 505 of file pageres.cpp.
void WERD_RES::DebugWordChoices | ( | bool | debug, |
const char * | word_to_debug | ||
) |
Definition at line 486 of file pageres.cpp.
Definition at line 649 of file pageres.h.
void WERD_RES::FakeClassifyWord | ( | int | blob_count, |
BLOB_CHOICE ** | choices | ||
) |
Definition at line 883 of file pageres.cpp.
void WERD_RES::FakeWordFromRatings | ( | PermuterType | permuter | ) |
Definition at line 904 of file pageres.cpp.
void WERD_RES::FilterWordChoices | ( | int | debug_level | ) |
Definition at line 519 of file pageres.cpp.
void WERD_RES::fix_hyphens | ( | ) |
Definition at line 1053 of file pageres.cpp.
void WERD_RES::fix_quotes | ( | ) |
Definition at line 1024 of file pageres.cpp.
BLOB_CHOICE * WERD_RES::GetBlobChoice | ( | int | index | ) | const |
Definition at line 756 of file pageres.cpp.
BLOB_CHOICE_LIST * WERD_RES::GetBlobChoices | ( | int | index | ) | const |
Definition at line 765 of file pageres.cpp.
int WERD_RES::GetBlobsGap | ( | int | blob_index | ) |
Definition at line 746 of file pageres.cpp.
int WERD_RES::GetBlobsWidth | ( | int | start_blob, |
int | last_blob | ||
) |
Definition at line 736 of file pageres.cpp.
Definition at line 1047 of file pageres.cpp.
void WERD_RES::InitForRetryRecognition | ( | const WERD_RES & | source | ) |
Definition at line 283 of file pageres.cpp.
void WERD_RES::InitNonPointers | ( | ) |
Definition at line 1100 of file pageres.cpp.
void WERD_RES::InitPointers | ( | ) |
Definition at line 1128 of file pageres.cpp.
void WERD_RES::InsertSeam | ( | int | blob_number, |
SEAM * | seam | ||
) |
Definition at line 424 of file pageres.cpp.
bool WERD_RES::IsAmbiguous | ( | ) |
Definition at line 458 of file pageres.cpp.
bool WERD_RES::LogNewCookedChoice | ( | int | max_num_choices, |
bool | debug, | ||
WERD_CHOICE * | word_choice | ||
) |
Definition at line 626 of file pageres.cpp.
bool WERD_RES::LogNewRawChoice | ( | WERD_CHOICE * | word_choice | ) |
Definition at line 610 of file pageres.cpp.
void WERD_RES::merge_tess_fails | ( | ) |
Definition at line 1073 of file pageres.cpp.
void WERD_RES::MergeAdjacentBlobs | ( | int | index | ) |
Definition at line 980 of file pageres.cpp.
Definition at line 192 of file pageres.cpp.
bool WERD_RES::PiecesAllNatural | ( | int | start, |
int | count | ||
) | const |
Definition at line 1084 of file pageres.cpp.
void WERD_RES::PrintBestChoices | ( | ) | const |
Definition at line 723 of file pageres.cpp.
|
inline |
Definition at line 374 of file pageres.h.
void WERD_RES::RebuildBestState | ( | ) |
Definition at line 814 of file pageres.cpp.
void WERD_RES::ReplaceBestChoice | ( | WERD_CHOICE * | choice | ) |
Definition at line 801 of file pageres.cpp.
void WERD_RES::SetAllScriptPositions | ( | tesseract::ScriptPos | position | ) |
Definition at line 871 of file pageres.cpp.
void WERD_RES::SetScriptPositions | ( | ) |
Definition at line 864 of file pageres.cpp.
void WERD_RES::SetupBasicsFromChoppedWord | ( | const UNICHARSET & | unicharset_in | ) |
Definition at line 349 of file pageres.cpp.
void WERD_RES::SetupBlamerBundle | ( | ) |
Definition at line 399 of file pageres.cpp.
void WERD_RES::SetupBlobWidthsAndGaps | ( | ) |
Definition at line 406 of file pageres.cpp.
void WERD_RES::SetupBoxWord | ( | ) |
Definition at line 855 of file pageres.cpp.
void WERD_RES::SetupFake | ( | const UNICHARSET & | uch | ) |
Definition at line 358 of file pageres.cpp.
bool WERD_RES::SetupForRecognition | ( | const UNICHARSET & | unicharset_in, |
tesseract::Tesseract * | tesseract, | ||
Pix * | pix, | ||
int | norm_mode, | ||
const TBOX * | norm_box, | ||
bool | numeric_mode, | ||
bool | use_body_size, | ||
bool | allow_detailed_fx, | ||
ROW * | row, | ||
const BLOCK * | block | ||
) |
Definition at line 308 of file pageres.cpp.
void WERD_RES::SetupWordScript | ( | const UNICHARSET & | unicharset_in | ) |
Definition at line 390 of file pageres.cpp.
bool WERD_RES::StatesAllValid | ( | ) |
Definition at line 464 of file pageres.cpp.
|
inline |
Definition at line 383 of file pageres.h.
WERD_CHOICE* WERD_RES::best_choice |
GenericVector<int> WERD_RES::best_state |
BlamerBundle* WERD_RES::blamer_bundle |
tesseract::BoxWord* WERD_RES::bln_boxes |
GenericVector<int> WERD_RES::blob_gaps |
GenericVector<int> WERD_RES::blob_widths |
tesseract::BoxWord* WERD_RES::box_word |
GenericVector<STRING> WERD_RES::correct_text |
WERD_CHOICE* WERD_RES::ep_choice |
WERD_CHOICE* WERD_RES::raw_choice |
GenericVector<SEAM*> WERD_RES::seam_array |
tesseract::Tesseract* WERD_RES::tesseract |
std::vector<std::vector<std::pair<const char*, float> > > WERD_RES::timesteps |
const UNICHARSET* WERD_RES::uch_set |
CRUNCH_MODE WERD_RES::unlv_crunch_mode |