Tesseract  3.02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tovars.h
Go to the documentation of this file.
1 /**********************************************************************
2  * File: tovars.h (Formerly to_vars.h)
3  * Description: Variables used by textord.
4  * Author: Ray Smith
5  * Created: Tue Aug 24 16:55:02 BST 1993
6  *
7  * (C) Copyright 1993, Hewlett-Packard Ltd.
8  ** Licensed under the Apache License, Version 2.0 (the "License");
9  ** you may not use this file except in compliance with the License.
10  ** You may obtain a copy of the License at
11  ** http://www.apache.org/licenses/LICENSE-2.0
12  ** Unless required by applicable law or agreed to in writing, software
13  ** distributed under the License is distributed on an "AS IS" BASIS,
14  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  ** See the License for the specific language governing permissions and
16  ** limitations under the License.
17  *
18  **********************************************************************/
19 
20 #ifndef TOVARS_H
21 #define TOVARS_H
22 
23 #include "params.h"
24 #include "notdll.h"
25 
27 "Display separate words");
28 extern BOOL_VAR_H (textord_show_new_words, FALSE, "Display separate words");
30 "Display forced fixed pitch words");
31 extern BOOL_VAR_H (textord_blocksall_fixed, FALSE, "Moan about prop blocks");
33 "Moan about fixed pitch blocks");
35 "Dump stats when moaning");
36 extern BOOL_VAR_H (textord_test_mode, FALSE, "Do current test");
38 "Max pixel gap for broken pixed pitch");
39 extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on");
40 extern INT_VAR_H (textord_pitch_range, 2, "Max range test on pitch");
42 "Smoothing gap stats");
44 "Smoothing width stats");
46 "Ile of blob widths for space est");
47 extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight");
49 "Max believable third space");
51 "Fraction of xheight");
52 extern double_VAR_H (textord_words_min_minspace, 0.3, "Fraction of xheight");
54 "Fraction of xheight");
56 "Max inital cluster size");
58 "Min initial cluster spacing");
60 "Fraction of valid gaps needed");
62 "Pitch sync threshold");
64 "Threshold for definite fixed");
66 "Threshold for definite prop");
68 "Rows required to outvote a veto");
70 "Fraction of xheight for sameness");
72 "Scale scores on big words");
73 extern double_VAR_H (words_initial_lower, 0.5, "Max inital cluster size");
74 extern double_VAR_H (words_initial_upper, 0.15,
75 "Min initial cluster spacing");
77 "Fraction of xheight");
78 extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight");
79 extern double_VAR_H (words_default_fixed_limit, 0.6, "Allowed size variance");
81 "Non-fuzzy spacing region");
83 "Min ratio space/nonspace");
85 "Min ratio space/nonspace");
86 extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
88 "Xh fraction noise in pitch");
89 extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs");
90 #endif