tesseract  5.0.0-alpha-619-ge9db
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 
26 "Display separate words");
27 extern BOOL_VAR_H (textord_show_new_words, false, "Display separate words");
29 "Display forced fixed pitch words");
30 extern BOOL_VAR_H (textord_blocksall_fixed, false, "Moan about prop blocks");
31 extern BOOL_VAR_H (textord_blocksall_prop, false,
32 "Moan about fixed pitch blocks");
34 "Dump stats when moaning");
35 extern BOOL_VAR_H (textord_test_mode, false, "Do current test");
37 "Max pixel gap for broken pixed pitch");
38 extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on");
39 extern INT_VAR_H (textord_pitch_range, 2, "Max range test on pitch");
41 "Smoothing gap stats");
43 "Smoothing width stats");
45 "Ile of blob widths for space est");
46 extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight");
48 "Max believable third space");
50 "Fraction of xheight");
51 extern double_VAR_H (textord_words_min_minspace, 0.3, "Fraction of xheight");
53 "Fraction of xheight");
55  "Max initial cluster size");
57 "Min initial cluster spacing");
59 "Fraction of valid gaps needed");
61 "Pitch sync threshold");
63 "Threshold for definite fixed");
65 "Threshold for definite prop");
67 "Rows required to outvote a veto");
69 "Fraction of xheight for sameness");
71 "Scale scores on big words");
72 extern double_VAR_H(words_initial_lower, 0.5, "Max initial cluster size");
73 extern double_VAR_H (words_initial_upper, 0.15,
74 "Min initial cluster spacing");
76 "Fraction of xheight");
77 extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight");
78 extern double_VAR_H (words_default_fixed_limit, 0.6, "Allowed size variance");
80 "Non-fuzzy spacing region");
82 "Min ratio space/nonspace");
84 "Min ratio space/nonspace");
85 extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
87 "Xh fraction noise in pitch");
88 extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs");
89 #endif
textord_words_width_ile
double textord_words_width_ile
Definition: tovars.cpp:40
words_initial_lower
double words_initial_lower
Definition: tovars.cpp:67
textord_words_veto_power
int textord_words_veto_power
Definition: tovars.cpp:62
textord_words_def_prop
double textord_words_def_prop
Definition: tovars.cpp:60
textord_spacesize_ratiofp
double textord_spacesize_ratiofp
Definition: tovars.cpp:75
textord_fp_min_width
double textord_fp_min_width
Definition: tovars.cpp:80
textord_debug_block
int textord_debug_block
Definition: tovars.cpp:33
params.h
textord_words_initial_lower
double textord_words_initial_lower
Definition: tovars.cpp:50
double_VAR_H
#define double_VAR_H(name, val, comment)
Definition: params.h:298
textord_words_pitchsd_threshold
double textord_words_pitchsd_threshold
Definition: tovars.cpp:56
words_default_fixed_limit
double words_default_fixed_limit
Definition: tovars.cpp:71
words_default_fixed_space
double words_default_fixed_space
Definition: tovars.cpp:70
textord_words_minlarge
double textord_words_minlarge
Definition: tovars.cpp:54
textord_test_mode
bool textord_test_mode
Definition: tovars.cpp:30
textord_pitch_rowsimilarity
double textord_pitch_rowsimilarity
Definition: tovars.cpp:64
textord_words_default_nonspace
double textord_words_default_nonspace
Definition: tovars.cpp:48
textord_pitch_scalebigwords
bool textord_pitch_scalebigwords
Definition: tovars.cpp:66
textord_dotmatrix_gap
int textord_dotmatrix_gap
Definition: tovars.cpp:32
textord_words_def_fixed
double textord_words_def_fixed
Definition: tovars.cpp:58
INT_VAR_H
#define INT_VAR_H(name, val, comment)
Definition: params.h:292
textord_words_default_minspace
double textord_words_default_minspace
Definition: tovars.cpp:45
textord_words_definite_spread
double textord_words_definite_spread
Definition: tovars.cpp:73
textord_fpiqr_ratio
double textord_fpiqr_ratio
Definition: tovars.cpp:78
textord_blocksall_testing
bool textord_blocksall_testing
Definition: tovars.cpp:29
textord_pitch_range
int textord_pitch_range
Definition: tovars.cpp:34
textord_words_initial_upper
double textord_words_initial_upper
Definition: tovars.cpp:52
words_default_prop_nonspace
double words_default_prop_nonspace
Definition: tovars.cpp:69
textord_words_default_maxspace
double textord_words_default_maxspace
Definition: tovars.cpp:43
BOOL_VAR_H
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:294
textord_show_fixed_words
bool textord_show_fixed_words
Definition: tovars.cpp:25
textord_words_maxspace
double textord_words_maxspace
Definition: tovars.cpp:41
words_initial_upper
double words_initial_upper
Definition: tovars.cpp:68
textord_words_min_minspace
double textord_words_min_minspace
Definition: tovars.cpp:46
textord_blocksall_fixed
bool textord_blocksall_fixed
Definition: tovars.cpp:26
textord_max_pitch_iqr
double textord_max_pitch_iqr
Definition: tovars.cpp:79
textord_wordstats_smooth_factor
double textord_wordstats_smooth_factor
Definition: tovars.cpp:36
textord_spacesize_ratioprop
double textord_spacesize_ratioprop
Definition: tovars.cpp:77
textord_width_smooth_factor
double textord_width_smooth_factor
Definition: tovars.cpp:38
textord_blocksall_prop
bool textord_blocksall_prop
Definition: tovars.cpp:28
textord_show_new_words
bool textord_show_new_words
Definition: tovars.cpp:23
textord_show_initial_words
bool textord_show_initial_words
Definition: tovars.cpp:22