tesseract-doxygen/ccmain/fixxht.h File Reference
#include "varable.h"
#include "statistc.h"
#include "pageres.h"
#include "notdll.h"
Go to the source code of this file.
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 |
double | x_ht_fraction_of_caps_ht = 0.7 |
double | x_ht_variation = 0.35 |
double | x_ht_sub_variation = 0.5 |
bool | rej_trial_ambigs = TRUE |
bool | x_ht_conservative_ambigs = FALSE |
bool | x_ht_check_est = TRUE |
bool | x_ht_case_flip = FALSE |
bool | x_ht_include_dodgy_blobs = TRUE |
bool | x_ht_limit_flip_trials = TRUE |
bool | rej_use_check_block_occ = TRUE |
char * | chs_non_ambig_caps_ht = "!#$%&()/12346789?ABDEFGHIKLNQRT[]\\bdfhkl" |
char * | chs_x_ht = "acegmnopqrsuvwxyz" |
char * | chs_non_ambig_x_ht = "aenqr" |
char * | chs_ambig_caps_x = "cCmMoO05sSuUvVwWxXzZ" |
char * | chs_bl_ambig_caps_x = "pPyY" |
char * | chs_caps_ht = "!#$%&()/0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]\\bdfhkl{|}" |
char * | chs_desc = "gjpqy" |
char * | chs_non_ambig_bl = "!#$%&01246789?ABCDEFGHIKLMNORSTUVWXYZabcdehiklmnorstuvwxz" |
char * | chs_odd_top = "ijt" |
char * | chs_odd_bot = "()35JQ[]\\/{}|" |
char * | chs_bl = "!#$%&()/01246789?ABCDEFGHIJKLMNOPRSTUVWXYZ[]\\abcdefhiklmnorstuvwxz{}" |
char * | chs_non_ambig_desc = "gq" |
Function Documentation
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 | |
|
) |
| | |
Variable Documentation
char* chs_bl = "!#$%&()/01246789?ABCDEFGHIJKLMNOPRSTUVWXYZ[]\\abcdefhiklmnorstuvwxz{}" |
" Caps or descender ambigs"
char* chs_caps_ht = "!#$%&()/0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]\\bdfhkl{|}" |
char* chs_non_ambig_bl = "!#$%&01246789?ABCDEFGHIKLMNORSTUVWXYZabcdehiklmnorstuvwxz" |
"Reliable baseline chars"
"Reliable descender chars"
"reliable X height chars"
"Chars with funny ascender region"
"reject x-ht ambigs when under trial"
"Analyse rejection behaviour"
"Flip or reject suspect case"
"Dont rely on ambigs + maxht"
"Fract of cps ht est of xht"
"Include blobs with possible noise?"
"Dont do trial flips when ambigs are close to xht?"
"Err band as fract of caps/xht dist"
"Err band as fract of caps/xht dist"