64 void Tesseract::set_done(
WERD_RES *word, int16_t pass) {
71 if (word->
done && (pass == 1) && (!word_from_dict || word_is_ambig) &&
72 one_ell_conflict(word,
false)) {
73 if (tessedit_rejection_debug)
tprintf(
"one_ell_conflict detected\n");
76 if (word->
done && ((!word_from_dict &&
78 if (tessedit_rejection_debug)
tprintf(
"non-dict or ambig word detected\n");
81 if (tessedit_rejection_debug) {
95 void Tesseract::make_reject_map(
WERD_RES *word,
ROW *row, int16_t pass) {
100 check_debug_pt(word, -1);
101 set_done(word, pass);
107 if (tessedit_reject_mode == 0) {
110 }
else if (tessedit_reject_mode == 5) {
119 one_ell_conflict(word,
true);
129 if (rej_use_tess_blanks &&
134 if (rej_use_good_perm) {
138 (!rej_use_sensible_wd ||
139 acceptable_word_string(*word->
uch_set,
145 if (rej_alphas_in_number_perm) {
146 for (i = 0, offset = 0;
164 tprintf(
"BAD tessedit_reject_mode\n");
168 if (tessedit_image_border > -1)
169 reject_edge_blobs(word);
171 check_debug_pt (word, 10);
172 if (tessedit_rejection_debug) {
174 tprintf(
"Certainty: %f Rating: %f\n",
180 check_debug_pt(word, 20);
const char * string() const
bool get_isalpha(UNICHAR_ID unichar_id) const
bool dangerous_ambig_found() const
const STRING & unichar_lengths() const
void flip_0O(WERD_RES *word)
void flip_hyphens(WERD_RES *word)
void rej_word_bad_permuter()
void reject_blanks(WERD_RES *word)
DLLSYM void tprintf(const char *format,...)
void rej_word_small_xht()
void reject_poor_matches(WERD_RES *word)
const UNICHARSET * uch_set
const STRING & unichar_string() const
void rej_word_not_tess_accepted()
void rej_word_contains_blanks()
WERD_CHOICE * best_choice
void initialise(int16_t length)