tesseract  4.1.1
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");
double textord_words_def_fixed
Definition: tovars.cpp:59
bool textord_pitch_scalebigwords
Definition: tovars.cpp:67
bool textord_show_fixed_words
Definition: tovars.cpp:26
int textord_pitch_range
Definition: tovars.cpp:35
double words_initial_upper
Definition: tovars.cpp:69
bool textord_show_new_words
Definition: tovars.cpp:24
double textord_words_pitchsd_threshold
Definition: tovars.cpp:57
bool textord_test_mode
Definition: tovars.cpp:31
double textord_words_width_ile
Definition: tovars.cpp:41
double textord_pitch_rowsimilarity
Definition: tovars.cpp:65
double textord_words_def_prop
Definition: tovars.cpp:61
#define double_VAR(name, val, comment)
Definition: params.h:312
double textord_words_definite_spread
Definition: tovars.cpp:74
double textord_words_minlarge
Definition: tovars.cpp:55
#define BOOL_VAR(name, val, comment)
Definition: params.h:306
int textord_words_veto_power
Definition: tovars.cpp:63
double textord_wordstats_smooth_factor
Definition: tovars.cpp:37
double textord_words_min_minspace
Definition: tovars.cpp:47
double words_default_fixed_limit
Definition: tovars.cpp:72
double textord_fpiqr_ratio
Definition: tovars.cpp:79
double textord_words_default_maxspace
Definition: tovars.cpp:44
int textord_dotmatrix_gap
Definition: tovars.cpp:33
double words_default_fixed_space
Definition: tovars.cpp:71
double textord_words_default_nonspace
Definition: tovars.cpp:49
double textord_max_pitch_iqr
Definition: tovars.cpp:80
double textord_words_initial_lower
Definition: tovars.cpp:51
bool textord_blocksall_fixed
Definition: tovars.cpp:27
double words_initial_lower
Definition: tovars.cpp:68
int textord_debug_block
Definition: tovars.cpp:34
double words_default_prop_nonspace
Definition: tovars.cpp:70
bool textord_blocksall_prop
Definition: tovars.cpp:29
double textord_fp_min_width
Definition: tovars.cpp:81
double textord_words_initial_upper
Definition: tovars.cpp:53
bool textord_blocksall_testing
Definition: tovars.cpp:30
double textord_spacesize_ratiofp
Definition: tovars.cpp:76
#define INT_VAR(name, val, comment)
Definition: params.h:303
double textord_words_default_minspace
Definition: tovars.cpp:46
double textord_spacesize_ratioprop
Definition: tovars.cpp:78
double textord_words_maxspace
Definition: tovars.cpp:42
bool textord_show_initial_words
Definition: tovars.cpp:23
double textord_width_smooth_factor
Definition: tovars.cpp:39