59 {
60void Tesseract::set_done(
WERD_RES *word, int16_t pass) {
67 if (word->
done && (pass == 1) && (!word_from_dict || word_is_ambig) &&
68 one_ell_conflict(word, false)) {
69 if (tessedit_rejection_debug)
tprintf(
"one_ell_conflict detected\n");
71 }
72 if (word->
done && ((!word_from_dict &&
74 if (tessedit_rejection_debug)
tprintf(
"non-dict or ambig word detected\n");
76 }
77 if (tessedit_rejection_debug) {
80 }
81}
82
83
84
85
86
87
88
89
90
91void Tesseract::make_reject_map(
WERD_RES *word,
ROW *row, int16_t pass) {
92 int i;
93 int offset;
94
96 check_debug_pt(word, -1);
97 set_done(word, pass);
100
101
102
103 if (tessedit_reject_mode == 0) {
106 } else if (tessedit_reject_mode == 5) {
107
108
109
110
111
114 } else {
115 one_ell_conflict(word, true);
116
117
118
119
120
121
124
125 if (rej_use_tess_blanks &&
128
130 if (rej_use_good_perm) {
134 (!rej_use_sensible_wd ||
135 acceptable_word_string(*word->
uch_set,
139
141 if (rej_alphas_in_number_perm) {
142 for (i = 0, offset = 0;
150
151 }
152 }
153 } else {
155 }
156 }
157
158 }
159 } else {
160 tprintf(
"BAD tessedit_reject_mode\n");
161 ASSERT_HOST(
"Fatal error encountered!" ==
nullptr);
162 }
163
164 if (tessedit_image_border > -1)
165 reject_edge_blobs(word);
166
167 check_debug_pt (word, 10);
168 if (tessedit_rejection_debug) {
170 tprintf(
"Certainty: %f Rating: %f\n",
173 }
174
176 check_debug_pt(word, 20);
177}
178}
@ AC_UNACCEPTABLE
Unacceptable word.
void reject_blanks(WERD_RES *word)
void reject_poor_matches(WERD_RES *word)
void flip_hyphens(WERD_RES *word)
void flip_0O(WERD_RES *word)
DLLSYM void tprintf(const char *format,...)
const UNICHARSET * uch_set
WERD_CHOICE * best_choice
const STRING & unichar_string() const
bool dangerous_ambig_found() const
const STRING & unichar_lengths() const
void rej_word_bad_permuter()
void rej_word_not_tess_accepted()
void initialise(int16_t length)
void rej_word_small_xht()
void rej_word_contains_blanks()
const char * string() const
bool get_isalpha(UNICHAR_ID unichar_id) const