tesseract 4.1.1
Loading...
Searching...
No Matches
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");
27extern BOOL_VAR_H (textord_show_new_words, false, "Display separate words");
29"Display forced fixed pitch words");
30extern BOOL_VAR_H (textord_blocksall_fixed, false, "Moan about prop blocks");
32"Moan about fixed pitch blocks");
34"Dump stats when moaning");
35extern BOOL_VAR_H (textord_test_mode, false, "Do current test");
37"Max pixel gap for broken pixed pitch");
38extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on");
39extern 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");
46extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight");
48"Max believable third space");
50"Fraction of xheight");
51extern 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");
72extern double_VAR_H(words_initial_lower, 0.5, "Max initial cluster size");
74"Min initial cluster spacing");
76"Fraction of xheight");
77extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight");
78extern 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");
85extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
87"Xh fraction noise in pitch");
88extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs");
89#endif
#define BOOL_VAR_H(name, val, comment)
Definition: params.h:297
#define INT_VAR_H(name, val, comment)
Definition: params.h:295
#define double_VAR_H(name, val, comment)
Definition: params.h:301
double textord_words_initial_lower
Definition: tovars.cpp:51
bool textord_pitch_scalebigwords
Definition: tovars.cpp:67
double words_default_fixed_space
Definition: tovars.cpp:71
double textord_max_pitch_iqr
Definition: tovars.cpp:80
double textord_words_default_maxspace
Definition: tovars.cpp:44
double words_initial_upper
Definition: tovars.cpp:69
double words_default_fixed_limit
Definition: tovars.cpp:72
bool textord_blocksall_prop
Definition: tovars.cpp:29
bool textord_show_fixed_words
Definition: tovars.cpp:26
double words_initial_lower
Definition: tovars.cpp:68
double textord_fp_min_width
Definition: tovars.cpp:81
int textord_pitch_range
Definition: tovars.cpp:35
bool textord_show_initial_words
Definition: tovars.cpp:23
double textord_words_maxspace
Definition: tovars.cpp:42
int textord_words_veto_power
Definition: tovars.cpp:63
double textord_pitch_rowsimilarity
Definition: tovars.cpp:65
bool textord_blocksall_testing
Definition: tovars.cpp:30
double textord_width_smooth_factor
Definition: tovars.cpp:39
bool textord_show_new_words
Definition: tovars.cpp:24
double textord_spacesize_ratioprop
Definition: tovars.cpp:78
double textord_spacesize_ratiofp
Definition: tovars.cpp:76
double textord_words_default_nonspace
Definition: tovars.cpp:49
int textord_dotmatrix_gap
Definition: tovars.cpp:33
double textord_fpiqr_ratio
Definition: tovars.cpp:79
double textord_wordstats_smooth_factor
Definition: tovars.cpp:37
double words_default_prop_nonspace
Definition: tovars.cpp:70
double textord_words_def_fixed
Definition: tovars.cpp:59
double textord_words_definite_spread
Definition: tovars.cpp:74
double textord_words_min_minspace
Definition: tovars.cpp:47
int textord_debug_block
Definition: tovars.cpp:34
double textord_words_pitchsd_threshold
Definition: tovars.cpp:57
double textord_words_width_ile
Definition: tovars.cpp:41
double textord_words_minlarge
Definition: tovars.cpp:55
double textord_words_def_prop
Definition: tovars.cpp:61
double textord_words_default_minspace
Definition: tovars.cpp:46
bool textord_test_mode
Definition: tovars.cpp:31
bool textord_blocksall_fixed
Definition: tovars.cpp:27
double textord_words_initial_upper
Definition: tovars.cpp:53