79 prev_word_best_choice = NULL;
86 BLOCK_LIST *block_list,
136 ROW_RES(
bool merge_similar_words,
ROW *the_row);
345 const char*
BestUTF8(
int blob_index,
bool in_rtl_context)
const {
350 if (id < 0 || id >=
uch_set->
size() ||
id == INVALID_UNICHAR_ID)
353 if (in_rtl_context && mirrored > 0 && mirrored != INVALID_UNICHAR_ID)
362 if (id < 0 || id >=
uch_set->
size() ||
id == INVALID_UNICHAR_ID)
380 if (unichar_id < 0 || unichar_id >=
uch_set->
size())
397 if (unichar_id < 0 || unichar_id >=
uch_set->
size())
450 const TBOX* norm_box,
bool numeric_mode,
451 bool use_body_size,
bool allow_detailed_fx,
717 return internal_forward(
false,
false);
721 return internal_forward(
false,
true);
728 return prev_word_res;
734 return prev_block_res;
746 return next_word_res;
752 return next_block_res;
758 WERD_RES *internal_forward(
bool new_block,
bool empty_ok);
772 BLOCK_RES_IT block_res_it;
773 ROW_RES_IT row_res_it;
774 WERD_RES_IT word_res_it;
bool PiecesAllNatural(int start, int count) const
void copy_on(WERD *other)
WERD_RES * next_word() const
bool operator==(const PAGE_RES_IT &other) const
void InsertSeam(int blob_number, SEAM *seam)
void PrintBestChoices() const
CRUNCH_MODE unlv_crunch_mode
void SetupBasicsFromChoppedWord(const UNICHARSET &unicharset_in)
#define CLISTIZEH(CLASSNAME)
int cmp(const PAGE_RES_IT &other) const
WERD_RES * InsertSimpleCloneWord(const WERD_RES &clone_res, WERD *new_word)
BLOCK_RES * prev_block() const
static WERD_RES * deep_copy(const WERD_RES *src)
bool ConditionalBlobMerge(TessResultCallback2< UNICHAR_ID, UNICHAR_ID, UNICHAR_ID > *class_cb, TessResultCallback2< bool, const TBOX &, const TBOX &> *box_cb)
UNICHAR_ID unichar_id(int index) const
void DebugTopChoice(const char *msg) const
bool HyphenBoxesOverlap(const TBOX &box1, const TBOX &box2)
const FontInfo * fontinfo2
WERD_RES(const WERD_RES &source)
void ConsumeWordResults(WERD_RES *word)
void SetupBlobWidthsAndGaps()
void MergeAdjacentBlobs(int index)
UNICHAR_ID get_mirror(UNICHAR_ID unichar_id) const
Direction get_direction(UNICHAR_ID unichar_id) const
void DebugWordChoices(bool debug, const char *word_to_debug)
int GetBlobsWidth(int start_blob, int last_blob)
void ReplaceBestChoice(WERD_CHOICE *choice)
const char * BestUTF8(int blob_index, bool in_rtl_context) const
WERD_RES_LIST word_res_list
UNICHAR_ID BothSpaces(UNICHAR_ID id1, UNICHAR_ID id2)
const char * id_to_unichar_ext(UNICHAR_ID id) const
WERD_RES * forward_with_empties()
WERD_RES * restart_page()
WERD_CHOICE * best_choice
bool LogNewCookedChoice(int max_num_choices, bool debug, WERD_CHOICE *word_choice)
bool UnicharsInReadingOrder() const
void CopySimpleFields(const WERD_RES &source)
void SetScriptPositions()
PAGE_RES_IT(PAGE_RES *the_page_res)
GenericVector< SEAM * > seam_array
WERD_RES * forward_paragraph()
bool unichars_in_script_order() const
void SetupFake(const UNICHARSET &uch)
GenericVector< int > blame_reasons
WERD_RES * forward_block()
tesseract::BoxWord * box_word
UNICHAR_ID BothQuotes(UNICHAR_ID id1, UNICHAR_ID id2)
ROW_RES * next_row() const
GenericVector< STRING > misadaption_log
const FontInfo * fontinfo
bool AnyLtrCharsInWord() const
void ReplaceCurrentWord(tesseract::PointerVector< WERD_RES > *words)
BOOL8 flag(WERD_FLAGS mask) const
inT32 whole_word_rej_count
bool AnyRtlCharsInWord() const
tesseract::BoxWord * bln_boxes
GenericVector< int > blob_gaps
BlamerBundle * blamer_bundle
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)
WERD_RES * restart_page_with_empties()
void MakeCurrentWordFuzzy()
MATRIX * DeepCopy() const
void SetAllScriptPositions(tesseract::ScriptPos position)
BLOB_CHOICE * GetBlobChoice(int index) const
bool LogNewRawChoice(WERD_CHOICE *word_choice)
ROW_RES * prev_row() const
BLOB_CHOICE_LIST * GetBlobChoices(int index) const
BLOCK_RES * block() const
void InitForRetryRecognition(const WERD_RES &source)
bool AlternativeChoiceAdjustmentsWorseThan(float threshold) const
WERD_CHOICE_LIST best_choices
GenericVector< STRING > correct_text
int GetBlobsGap(int blob_index)
void FakeClassifyWord(int blob_count, BLOB_CHOICE **choices)
void SetupWordScript(const UNICHARSET &unicharset_in)
const UNICHARSET * uch_set
ELISTIZEH(BLOCK_RES) CLISTIZEH(BLOCK_RES) class ROW_RES
void FilterWordChoices(int debug_level)
UNICHAR_ID BothHyphens(UNICHAR_ID id1, UNICHAR_ID id2)
tesseract::Tesseract * tesseract
ROW_RES_LIST row_res_list
const char * RawUTF8(int blob_index) const
WERD_RES * start_page(bool empty_ok)
bool operator!=(const PAGE_RES_IT &other) const
GenericVector< int > blob_widths
void copy_on(WERD_RES *word_res)
GenericVector< int > best_state
UNICHARSET::Direction SymbolDirection(int blob_index) const
const char * id_to_unichar(UNICHAR_ID id) const
void set_flag(WERD_FLAGS mask, BOOL8 value)
void CloneChoppedToRebuild()
void ComputeAdaptionThresholds(float certainty_scale, float min_rating, float max_rating, float rating_margin, float *thresholds)
void init_to_size(int size, T t)
void FakeWordFromRatings(PermuterType permuter)
WERD_CHOICE ** prev_word_best_choice
WERD_RES * prev_word() const
void BestChoiceToCorrectText()
BLOCK_RES * next_block() const
BLOCK_RES_LIST block_res_list
WERD_RES & operator=(const WERD_RES &source)