#include "mfcpch.h"#include <string.h>#include <ctype.h>#include "varable.h"#include "tessvars.h"#include "control.h"#include "reject.h"#include "fixxht.h"#include "secname.h"#include "tesseractclass.h"Namespaces | |
| namespace | tesseract |
Defines | |
| #define | EXTERN |
Functions | |
| void | re_estimate_x_ht (WERD_RES *word_res, float *trial_x_ht) |
| void | check_blob_occ (char *proposed_char, inT16 blob_ht_above_baseline, float x_ht, float caps_ht, char *confirmed_char) |
| float | estimate_from_stats (STATS &stats) |
| void | improve_estimate (WERD_RES *word_res, float &est_x_ht, float &est_caps_ht, STATS &x_ht, STATS &caps_ht) |
| void | reject_ambigs (WERD_RES *word) |
| void | est_ambigs (WERD_RES *word_res, STATS &stats, float *ambig_lc_x_est, float *ambig_uc_caps_est) |
| BOOL8 | dodgy_blob (PBLOB *blob) |
Variables | |
| EXTERN double | x_ht_fraction_of_caps_ht = 0.7 |
| EXTERN double | x_ht_variation = 0.35 |
| EXTERN double | x_ht_sub_variation = 0.5 |
| EXTERN bool | rej_trial_ambigs = TRUE |
| EXTERN bool | x_ht_conservative_ambigs = FALSE |
| EXTERN bool | x_ht_check_est = TRUE |
| EXTERN bool | x_ht_case_flip = FALSE |
| EXTERN bool | x_ht_include_dodgy_blobs = TRUE |
| EXTERN bool | x_ht_limit_flip_trials = TRUE |
| EXTERN bool | rej_use_check_block_occ = TRUE |
| EXTERN char * | chs_non_ambig_caps_ht = "!#$%&()/12346789?ABDEFGHIKLNQRT[]\\bdfhkl" |
| EXTERN char * | chs_x_ht = "acegmnopqrsuvwxyz" |
| EXTERN char * | chs_non_ambig_x_ht = "aenqr" |
| EXTERN char * | chs_ambig_caps_x = "cCmMoO05sSuUvVwWxXzZ" |
| EXTERN char * | chs_bl_ambig_caps_x = "pPyY" |
| EXTERN char * | chs_caps_ht = "!#$%&()/0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]\\bdfhkl{|}" |
| EXTERN char * | chs_desc = "gjpqy" |
| EXTERN char * | chs_non_ambig_bl = "!#$%&01246789?ABCDEFGHIKLMNORSTUVWXYZabcdehiklmnorstuvwxz" |
| EXTERN char * | chs_odd_top = "ijt" |
| EXTERN char * | chs_odd_bot = "()35JQ[]\\/{}|" |
| EXTERN char * | chs_bl = "!#$%&()/01246789?ABCDEFGHIJKLMNOPRSTUVWXYZ[]\\abcdefhiklmnorstuvwxz{}" |
| EXTERN char * | chs_non_ambig_desc = "gq" |
| #define EXTERN |
| void check_blob_occ | ( | char * | proposed_char, | |
| inT16 | blob_ht_above_baseline, | |||
| float | x_ht, | |||
| float | caps_ht, | |||
| char * | confirmed_char | |||
| ) |
| void est_ambigs | ( | WERD_RES * | word_res, | |
| STATS & | stats, | |||
| float * | ambig_lc_x_est, | |||
| float * | ambig_uc_caps_est | |||
| ) |
| float estimate_from_stats | ( | STATS & | stats | ) |
| void improve_estimate | ( | WERD_RES * | word_res, | |
| float & | est_x_ht, | |||
| float & | est_caps_ht, | |||
| STATS & | x_ht, | |||
| STATS & | caps_ht | |||
| ) |
| void re_estimate_x_ht | ( | WERD_RES * | word_res, | |
| float * | trial_x_ht | |||
| ) |
| void reject_ambigs | ( | WERD_RES * | word | ) |
| EXTERN char* chs_ambig_caps_x = "cCmMoO05sSuUvVwWxXzZ" |
"X ht or caps ht chars"
| EXTERN char* chs_bl = "!#$%&()/01246789?ABCDEFGHIJKLMNOPRSTUVWXYZ[]\\abcdefhiklmnorstuvwxz{}" |
"Baseline chars"
| EXTERN char* chs_bl_ambig_caps_x = "pPyY" |
" Caps or descender ambigs"
| EXTERN char* chs_caps_ht = "!#$%&()/0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]\\bdfhkl{|}" |
"Ascender chars"
| EXTERN char* chs_desc = "gjpqy" |
"Descender chars"
| EXTERN char* chs_non_ambig_bl = "!#$%&01246789?ABCDEFGHIKLMNORSTUVWXYZabcdehiklmnorstuvwxz" |
"Reliable baseline chars"
| EXTERN char* chs_non_ambig_caps_ht = "!#$%&()/12346789?ABDEFGHIKLNQRT[]\\bdfhkl" |
"Reliable ascenders"
| EXTERN char* chs_non_ambig_desc = "gq" |
"Reliable descender chars"
| EXTERN char* chs_non_ambig_x_ht = "aenqr" |
"reliable X height chars"
| EXTERN char* chs_odd_bot = "()35JQ[]\\/{}|" |
"Chars with funny base"
| EXTERN char* chs_odd_top = "ijt" |
"Chars with funny ascender region"
| EXTERN char* chs_x_ht = "acegmnopqrsuvwxyz" |
"X height chars"
| EXTERN bool rej_trial_ambigs = TRUE |
"reject x-ht ambigs when under trial"
| EXTERN bool rej_use_check_block_occ = TRUE |
"Analyse rejection behaviour"
| EXTERN bool x_ht_case_flip = FALSE |
"Flip or reject suspect case"
| EXTERN bool x_ht_check_est = TRUE |
"Cross check estimates"
| EXTERN bool x_ht_conservative_ambigs = FALSE |
"Dont rely on ambigs + maxht"
| EXTERN double x_ht_fraction_of_caps_ht = 0.7 |
"Fract of cps ht est of xht"
| EXTERN bool x_ht_include_dodgy_blobs = TRUE |
"Include blobs with possible noise?"
| EXTERN bool x_ht_limit_flip_trials = TRUE |
"Dont do trial flips when ambigs are close to xht?"
| EXTERN double x_ht_sub_variation = 0.5 |
"Err band as fract of caps/xht dist"
| EXTERN double x_ht_variation = 0.35 |
"Err band as fract of caps/xht dist"
1.6.3