tesseract  5.0.0
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 namespace tesseract {
24 
25 BOOL_VAR(textord_show_initial_words, false, "Display separate words");
26 BOOL_VAR(textord_blocksall_fixed, false, "Moan about prop blocks");
27 BOOL_VAR(textord_blocksall_prop, false, "Moan about fixed pitch blocks");
28 INT_VAR(textord_dotmatrix_gap, 3, "Max pixel gap for broken pixed pitch");
29 INT_VAR(textord_debug_block, 0, "Block to do debug on");
30 INT_VAR(textord_pitch_range, 2, "Max range test on pitch");
31 double_VAR(textord_wordstats_smooth_factor, 0.05, "Smoothing gap stats");
32 double_VAR(textord_words_maxspace, 4.0, "Multiple of xheight");
33 double_VAR(textord_words_default_maxspace, 3.5, "Max believable third space");
34 double_VAR(textord_words_default_minspace, 0.6, "Fraction of xheight");
35 double_VAR(textord_words_min_minspace, 0.3, "Fraction of xheight");
36 double_VAR(textord_words_default_nonspace, 0.2, "Fraction of xheight");
37 double_VAR(textord_words_initial_lower, 0.25, "Max initial cluster size");
38 double_VAR(textord_words_initial_upper, 0.15, "Min initial cluster spacing");
39 double_VAR(textord_words_minlarge, 0.75, "Fraction of valid gaps needed");
40 double_VAR(textord_words_pitchsd_threshold, 0.040, "Pitch sync threshold");
41 double_VAR(textord_words_def_fixed, 0.016, "Threshold for definite fixed");
42 double_VAR(textord_words_def_prop, 0.090, "Threshold for definite prop");
43 INT_VAR(textord_words_veto_power, 5, "Rows required to outvote a veto");
44 double_VAR(textord_pitch_rowsimilarity, 0.08, "Fraction of xheight for sameness");
45 BOOL_VAR(textord_pitch_scalebigwords, false, "Scale scores on big words");
46 double_VAR(words_initial_lower, 0.5, "Max initial cluster size");
47 double_VAR(words_initial_upper, 0.15, "Min initial cluster spacing");
48 double_VAR(words_default_prop_nonspace, 0.25, "Fraction of xheight");
49 double_VAR(words_default_fixed_space, 0.75, "Fraction of xheight");
50 double_VAR(words_default_fixed_limit, 0.6, "Allowed size variance");
51 double_VAR(textord_words_definite_spread, 0.30, "Non-fuzzy spacing region");
52 double_VAR(textord_spacesize_ratioprop, 2.0, "Min ratio space/nonspace");
53 double_VAR(textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
54 double_VAR(textord_max_pitch_iqr, 0.20, "Xh fraction noise in pitch");
55 
56 } // namespace tesseract
#define BOOL_VAR(name, val, comment)
Definition: params.h:359
#define INT_VAR(name, val, comment)
Definition: params.h:356
#define double_VAR(name, val, comment)
Definition: params.h:365
int textord_dotmatrix_gap
Definition: tovars.cpp:28
double words_initial_upper
Definition: tovars.cpp:47
bool textord_blocksall_prop
Definition: tovars.cpp:27
double textord_wordstats_smooth_factor
Definition: tovars.cpp:31
double words_initial_lower
Definition: tovars.cpp:46
int textord_words_veto_power
Definition: tovars.cpp:43
double textord_words_default_nonspace
Definition: tovars.cpp:36
double words_default_fixed_space
Definition: tovars.cpp:49
int textord_pitch_range
Definition: tovars.cpp:30
int textord_debug_block
Definition: tovars.cpp:29
double textord_words_def_fixed
Definition: tovars.cpp:41
double textord_words_default_maxspace
Definition: tovars.cpp:33
bool textord_pitch_scalebigwords
Definition: tovars.cpp:45
double textord_words_min_minspace
Definition: tovars.cpp:35
bool textord_blocksall_fixed
Definition: tovars.cpp:26
double textord_words_initial_upper
Definition: tovars.cpp:38
double textord_words_maxspace
Definition: tovars.cpp:32
double textord_words_initial_lower
Definition: tovars.cpp:37
double words_default_prop_nonspace
Definition: tovars.cpp:48
double textord_words_definite_spread
Definition: tovars.cpp:51
double textord_fpiqr_ratio
Definition: tovars.cpp:53
double textord_words_pitchsd_threshold
Definition: tovars.cpp:40
bool textord_show_initial_words
Definition: tovars.cpp:25
double words_default_fixed_limit
Definition: tovars.cpp:50
double textord_max_pitch_iqr
Definition: tovars.cpp:54
double textord_words_def_prop
Definition: tovars.cpp:42
double textord_words_default_minspace
Definition: tovars.cpp:34
double textord_spacesize_ratioprop
Definition: tovars.cpp:52
double textord_pitch_rowsimilarity
Definition: tovars.cpp:44
double textord_words_minlarge
Definition: tovars.cpp:39