Go to the source code of this file.
◆ compute_reject_threshold()
Definition at line 225 of file reject.cpp.
231 float bestgap = 0.0f;
234 int blob_count = word->
length();
237 for (
int i = 0; i < blob_count; ++i) {
241 gapstart = ratings[0] - 1;
242 if (blob_count >= 3) {
243 for (
int index = 0; index < blob_count - 1; index++) {
244 if (ratings[index + 1] - ratings[index] > bestgap) {
245 bestgap = ratings[index + 1] - ratings[index];
247 gapstart = ratings[index];
◆ dont_allow_1Il()
◆ flip_0O()
◆ flip_hyphens()
◆ non_0_digit()
bool non_0_digit |
( |
const char * |
str, |
|
|
int |
length |
|
) |
| |
◆ reject_blanks()
◆ reject_poor_matches()
void reject_poor_matches |
( |
WERD_RES * |
word | ) |
|
◆ word_contains_non_1_digit()
bool word_contains_non_1_digit |
( |
const char * |
word, |
|
|
const char * |
word_lengths |
|
) |
| |