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