27 extern BOOL_VAR_H (textord_debug_pitch_test, FALSE,
28 "Debug on fixed pitch test");
29 extern BOOL_VAR_H (textord_debug_pitch_metric, FALSE,
30 "Write full metric stuff");
31 extern BOOL_VAR_H (textord_show_row_cuts, FALSE,
"Draw row-level cuts");
32 extern BOOL_VAR_H (textord_show_page_cuts, FALSE,
"Draw page-level cuts");
34 "Use correct answer for fixed/prop");
35 extern BOOL_VAR_H (textord_blockndoc_fixed, TRUE,
36 "Attempt whole doc/block fixed pitch");
37 extern BOOL_VAR_H (textord_fast_pitch_test, FALSE,
38 "Do even faster pitch algorithm");
40 "Ding rate for mid-cuts");
42 "Ding rate for unbalanced char cells");
44 void compute_fixed_pitch(
ICOORD page_tr,
45 TO_BLOCK_LIST* port_blocks,
52 TO_BLOCK_LIST *blocks,
56 void compute_block_pitch(
TO_BLOCK* block,
60 bool compute_rows_pitch(
67 TO_BLOCK_LIST* port_blocks,
79 void print_block_counts(
83 void count_block_votes(
106 bool fixed_pitch_row(
111 bool count_pitch_stats(
121 float tune_row_pitch(
124 int16_t projection_left,
125 int16_t projection_right,
127 float& initial_pitch,
129 int16_t& best_mid_cuts,
130 ICOORDELT_LIST* best_cells,
133 float tune_row_pitch2(
136 int16_t projection_left,
137 int16_t projection_right,
139 float& initial_pitch,
141 int16_t& best_mid_cuts,
142 ICOORDELT_LIST* best_cells,
145 float compute_pitch_sd(
148 int16_t projection_left,
149 int16_t projection_right,
154 ICOORDELT_LIST* row_cells,
159 float compute_pitch_sd2(
162 int16_t projection_left,
163 int16_t projection_right,
167 ICOORDELT_LIST* row_cells,
175 int16_t projection_left,
176 int16_t projection_right,
180 void find_repeated_chars(
TO_BLOCK* block,
Definition: baseapi.cpp:94
double_VAR_H(textord_tabvector_vertical_gap_fraction, 0.5, "Max fraction of mean blob width allowed for vertical gaps in vertical text")
Definition: ocrblock.h:30
BOOL_VAR_H(textord_tabfind_find_tables, false, "run table detection")
Definition: blobbox.h:556
Definition: statistc.h:33
integer coordinate
Definition: points.h:32
Definition: blobbox.h:705