#include <textord.h>
tesseract::Textord::Textord | ( | CCStruct * | ccstruct | ) | [explicit] |
tesseract::Textord::~Textord | ( | ) |
void tesseract::Textord::CleanupSingleRowResult | ( | PageSegMode | pageseg_mode, | |
PAGE_RES * | page_res | |||
) |
void tesseract::Textord::find_components | ( | Pix * | pix, | |
BLOCK_LIST * | blocks, | |||
TO_BLOCK_LIST * | to_blocks | |||
) |
void tesseract::Textord::set_use_cjk_fp_model | ( | bool | flag | ) | [inline] |
void tesseract::Textord::TextordPage | ( | PageSegMode | pageseg_mode, | |
int | width, | |||
int | height, | |||
Pix * | pix, | |||
BLOCK_LIST * | blocks, | |||
TO_BLOCK_LIST * | to_blocks | |||
) |
void tesseract::Textord::to_spacing | ( | ICOORD | page_tr, | |
TO_BLOCK_LIST * | blocks | |||
) |
bool tesseract::Textord::use_cjk_fp_model | ( | ) | const [inline] |
double tesseract::Textord::textord_blob_size_bigile = 95 |
"Percentile for large blobs"
double tesseract::Textord::textord_blob_size_smallile = 20 |
"Percentile for small blobs"
double tesseract::Textord::textord_blshift_maxshift = 0.00 |
"Max baseline shift"
double tesseract::Textord::textord_blshift_xfraction = 9.99 |
"Min size of baseline shift"
double tesseract::Textord::textord_initialasc_ile = 0.90 |
"Ile of sizes for xheight guess"
double tesseract::Textord::textord_initialx_ile = 0.75 |
"Ile of sizes for xheight guess"
"Pixel size of noise"
bool tesseract::Textord::textord_no_rejects = false |
"Don't remove noise blobs"
double tesseract::Textord::textord_noise_area_ratio = 0.7 |
"Fraction of bounding box for noise"
bool tesseract::Textord::textord_noise_debug = FALSE |
"Debug row garbage detector"
double tesseract::Textord::textord_noise_hfract = 1.0/64 |
"Height fraction to discard outlines as speckle noise"
double tesseract::Textord::textord_noise_normratio = 2.0 |
"Dot to norm ratio for deletion"
bool tesseract::Textord::textord_noise_rejrows = true |
"Reject noise-like rows"
bool tesseract::Textord::textord_noise_rejwords = true |
"Reject noise-like words"
double tesseract::Textord::textord_noise_rowratio = 6.0 |
"Dot to norm ratio for deletion"
"Fraction of size for maxima"
double tesseract::Textord::textord_noise_sizelimit = 0.5 |
"Fraction of x for big t count"
"super norm blobs to save row"
double tesseract::Textord::textord_noise_sxfract = 0.4 |
"xh fract width error for norm blobs"
double tesseract::Textord::textord_noise_syfract = 0.2 |
"xh fract error for norm blobs"
"Transitions for normal blob"
bool tesseract::Textord::textord_show_blobs = false |
"Display unsorted blobs"
bool tesseract::Textord::textord_show_boxes = false |
"Display boxes"
bool tesseract::Textord::textord_single_height_mode = false |
"Script has no xheight, so use a single mode for horizontal text"
bool tesseract::Textord::tosp_all_flips_fuzzy = false |
"Pass ANY flip to context?"
bool tesseract::Textord::tosp_block_use_cert_spaces = true |
"Only stat OBVIOUS spaces"
"Debug data"
"Limit use of xht gap with odd small kns"
double tesseract::Textord::tosp_enough_small_gaps = 0.65 |
"Fract of kerns reqd for isolated row stats"
"or should we use mean"
int tesseract::Textord::tosp_few_samples = 40 |
"No.gaps reqd with 1 large gap to treat as a table"
double tesseract::Textord::tosp_flip_caution = 0.0 |
"Dont autoflip kn to sp when large separation"
bool tesseract::Textord::tosp_flip_fuzz_kn_to_sp = true |
"Default flip"
bool tesseract::Textord::tosp_flip_fuzz_sp_to_kn = true |
"Default flip"
bool tesseract::Textord::tosp_force_wordbreak_on_punct = false |
"Force word breaks on punct to break long lines in non-space " "delimited langs"
double tesseract::Textord::tosp_fuzzy_kn_fraction = 0.5 |
"New fuzzy kn alg"
bool tesseract::Textord::tosp_fuzzy_limit_all = true |
"Dont restrict kn->sp fuzzy limit to tables"
double tesseract::Textord::tosp_fuzzy_sp_fraction = 0.5 |
"New fuzzy sp alg"
double tesseract::Textord::tosp_fuzzy_space_factor = 0.6 |
"Fract of xheight for fuzz sp"
double tesseract::Textord::tosp_fuzzy_space_factor1 = 0.5 |
"Fract of xheight for fuzz sp"
double tesseract::Textord::tosp_fuzzy_space_factor2 = 0.72 |
"Fract of xheight for fuzz sp"
double tesseract::Textord::tosp_gap_factor = 0.83 |
"gap ratio to flip sp->kern"
double tesseract::Textord::tosp_ignore_big_gaps = -1 |
"xht multiplier"
double tesseract::Textord::tosp_ignore_very_big_gaps = 3.5 |
"xht multiplier"
bool tesseract::Textord::tosp_improve_thresh = false |
"Enable improvement heuristic"
double tesseract::Textord::tosp_init_guess_kn_mult = 2.2 |
"Thresh guess - mult kn by this"
double tesseract::Textord::tosp_init_guess_xht_mult = 0.28 |
"Thresh guess - mult xht by this"
double tesseract::Textord::tosp_kern_gap_factor1 = 2.0 |
"gap ratio to flip kern->sp"
double tesseract::Textord::tosp_kern_gap_factor2 = 1.3 |
"gap ratio to flip kern->sp"
double tesseract::Textord::tosp_kern_gap_factor3 = 2.5 |
"gap ratio to flip kern->sp"
double tesseract::Textord::tosp_large_kerning = 0.19 |
"Limit use of xht gap with large kns"
double tesseract::Textord::tosp_max_sane_kn_thresh = 5.0 |
"Multiplier on kn to limit thresh"
double tesseract::Textord::tosp_min_sane_kn_sp = 1.5 |
"Dont trust spaces less than this time kn"
double tesseract::Textord::tosp_narrow_aspect_ratio = 0.48 |
"narrow if w/h less than this"
bool tesseract::Textord::tosp_narrow_blobs_not_cert = true |
"Only stat OBVIOUS spaces"
double tesseract::Textord::tosp_narrow_fraction = 0.3 |
"Fract of xheight for narrow"
double tesseract::Textord::tosp_near_lh_edge = 0 |
"Dont reduce box if the top left is non blank"
double tesseract::Textord::tosp_old_sp_kn_th_factor = 2.0 |
"Factor for defining space threshold in terms of space and " "kern sizes"
bool tesseract::Textord::tosp_old_to_bug_fix = false |
"Fix suspected bug in old code"
bool tesseract::Textord::tosp_old_to_constrain_sp_kn = false |
"Constrain relative values of inter and intra-word gaps for " "old_to_method."
bool tesseract::Textord::tosp_old_to_method = false |
"Space stats use prechopping?"
bool tesseract::Textord::tosp_only_small_gaps_for_kern = false |
"Better guess"
bool tesseract::Textord::tosp_only_use_prop_rows = true |
"Block stats to use fixed pitch rows?"
bool tesseract::Textord::tosp_only_use_xht_gaps = false |
"Only use within xht gap for wd breaks"
double tesseract::Textord::tosp_pass_wide_fuzz_sp_to_context = 0.75 |
"How wide fuzzies need context"
"Use row alone when inadequate cert spaces"
"No.samples reqd to reestimate for row"
double tesseract::Textord::tosp_rep_space = 1.6 |
"rep gap multiplier for space"
bool tesseract::Textord::tosp_row_use_cert_spaces = true |
"Only stat OBVIOUS spaces"
bool tesseract::Textord::tosp_row_use_cert_spaces1 = true |
"Only stat OBVIOUS spaces"
bool tesseract::Textord::tosp_rule_9_test_punct = false |
"Dont chng kn to space next to punct"
"How to avoid being silly"
int tesseract::Textord::tosp_short_row = 20 |
"No.gaps reqd with few cert spaces to use certs"
double tesseract::Textord::tosp_silly_kn_sp_gap = 0.2 |
"Dont let sp minus kn get too small"
bool tesseract::Textord::tosp_stats_use_xht_gaps = true |
"Use within xht gap for wd breaks"
double tesseract::Textord::tosp_table_fuzzy_kn_sp_ratio = 3.0 |
"Fuzzy if less than this"
double tesseract::Textord::tosp_table_kn_sp_ratio = 2.25 |
"Min difference of kn & sp in table"
double tesseract::Textord::tosp_table_xht_sp_ratio = 0.33 |
"Expect spaces bigger than this"
double tesseract::Textord::tosp_threshold_bias1 = 0 |
"how far between kern and space?"
double tesseract::Textord::tosp_threshold_bias2 = 0 |
"how far between kern and space?"
bool tesseract::Textord::tosp_use_pre_chopping = false |
"Space stats use prechopping?"
bool tesseract::Textord::tosp_use_xht_gaps = true |
"Use within xht gap for wd breaks"
double tesseract::Textord::tosp_wide_aspect_ratio = 0.0 |
"wide if w/h less than this"
double tesseract::Textord::tosp_wide_fraction = 0.52 |
"Fract of xheight for wide"