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 
)
BOOL8 dodgy_blob ( PBLOB blob  ) 
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  ) 

Variable Documentation

char* chs_ambig_caps_x = "cCmMoO05sSuUvVwWxXzZ"

"X ht or caps ht chars"

char* chs_bl = "!#$%&()/01246789?ABCDEFGHIJKLMNOPRSTUVWXYZ[]\\abcdefhiklmnorstuvwxz{}"

"Baseline chars"

char* chs_bl_ambig_caps_x = "pPyY"

" Caps or descender ambigs"

char* chs_caps_ht = "!#$%&()/0123456789?ABCDEFGHIJKLMNOPQRSTUVWXYZ[]\\bdfhkl{|}"

"Ascender chars"

char* chs_desc = "gjpqy"

"Descender chars"

char* chs_non_ambig_bl = "!#$%&01246789?ABCDEFGHIKLMNORSTUVWXYZabcdehiklmnorstuvwxz"

"Reliable baseline chars"

char* chs_non_ambig_caps_ht = "!#$%&()/12346789?ABDEFGHIKLNQRT[]\\bdfhkl"

"Reliable ascenders"

char* chs_non_ambig_desc = "gq"

"Reliable descender chars"

char* chs_non_ambig_x_ht = "aenqr"

"reliable X height chars"

char* chs_odd_bot = "()35JQ[]\\/{}|"

"Chars with funny base"

char* chs_odd_top = "ijt"

"Chars with funny ascender region"

char* chs_x_ht = "acegmnopqrsuvwxyz"

"X height chars"

"reject x-ht ambigs when under trial"

"Analyse rejection behaviour"

"Flip or reject suspect case"

"Cross check estimates"

"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?"

double x_ht_sub_variation = 0.5

"Err band as fract of caps/xht dist"

double x_ht_variation = 0.35

"Err band as fract of caps/xht dist"

Generated on Sun Jul 18 17:10:49 2010 for Tesseract by  doxygen 1.6.3