tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/textord/tovars.h
Go to the documentation of this file.
00001 /**********************************************************************
00002  * File:        tovars.h  (Formerly to_vars.h)
00003  * Description: Variables used by textord.
00004  * Author:              Ray Smith
00005  * Created:             Tue Aug 24 16:55:02 BST 1993
00006  *
00007  * (C) Copyright 1993, Hewlett-Packard Ltd.
00008  ** Licensed under the Apache License, Version 2.0 (the "License");
00009  ** you may not use this file except in compliance with the License.
00010  ** You may obtain a copy of the License at
00011  ** http://www.apache.org/licenses/LICENSE-2.0
00012  ** Unless required by applicable law or agreed to in writing, software
00013  ** distributed under the License is distributed on an "AS IS" BASIS,
00014  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00015  ** See the License for the specific language governing permissions and
00016  ** limitations under the License.
00017  *
00018  **********************************************************************/
00019 
00020 #ifndef           TOVARS_H
00021 #define           TOVARS_H
00022 
00023 #include          "params.h"
00024 
00025 extern BOOL_VAR_H (textord_show_initial_words, FALSE,
00026 "Display separate words");
00027 extern BOOL_VAR_H (textord_show_new_words, FALSE, "Display separate words");
00028 extern BOOL_VAR_H (textord_show_fixed_words, FALSE,
00029 "Display forced fixed pitch words");
00030 extern BOOL_VAR_H (textord_blocksall_fixed, FALSE, "Moan about prop blocks");
00031 extern BOOL_VAR_H (textord_blocksall_prop, FALSE,
00032 "Moan about fixed pitch blocks");
00033 extern BOOL_VAR_H (textord_blocksall_testing, FALSE,
00034 "Dump stats when moaning");
00035 extern BOOL_VAR_H (textord_test_mode, FALSE, "Do current test");
00036 extern INT_VAR_H (textord_dotmatrix_gap, 3,
00037 "Max pixel gap for broken pixed pitch");
00038 extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on");
00039 extern INT_VAR_H (textord_pitch_range, 2, "Max range test on pitch");
00040 extern double_VAR_H (textord_wordstats_smooth_factor, 0.05,
00041 "Smoothing gap stats");
00042 extern double_VAR_H (textord_width_smooth_factor, 0.10,
00043 "Smoothing width stats");
00044 extern double_VAR_H (textord_words_width_ile, 0.4,
00045 "Ile of blob widths for space est");
00046 extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight");
00047 extern double_VAR_H (textord_words_default_maxspace, 3.5,
00048 "Max believable third space");
00049 extern double_VAR_H (textord_words_default_minspace, 0.6,
00050 "Fraction of xheight");
00051 extern double_VAR_H (textord_words_min_minspace, 0.3, "Fraction of xheight");
00052 extern double_VAR_H (textord_words_default_nonspace, 0.2,
00053 "Fraction of xheight");
00054 extern double_VAR_H (textord_words_initial_lower, 0.25,
00055 "Max inital cluster size");
00056 extern double_VAR_H (textord_words_initial_upper, 0.15,
00057 "Min initial cluster spacing");
00058 extern double_VAR_H (textord_words_minlarge, 0.75,
00059 "Fraction of valid gaps needed");
00060 extern double_VAR_H (textord_words_pitchsd_threshold, 0.025,
00061 "Pitch sync threshold");
00062 extern double_VAR_H (textord_words_def_fixed, 0.01,
00063 "Threshold for definite fixed");
00064 extern double_VAR_H (textord_words_def_prop, 0.06,
00065 "Threshold for definite prop");
00066 extern INT_VAR_H (textord_words_veto_power, 5,
00067 "Rows required to outvote a veto");
00068 extern double_VAR_H (textord_pitch_rowsimilarity, 0.08,
00069 "Fraction of xheight for sameness");
00070 extern BOOL_VAR_H (textord_pitch_scalebigwords, FALSE,
00071 "Scale scores on big words");
00072 extern double_VAR_H (words_initial_lower, 0.5, "Max inital cluster size");
00073 extern double_VAR_H (words_initial_upper, 0.15,
00074 "Min initial cluster spacing");
00075 extern double_VAR_H (words_default_prop_nonspace, 0.25,
00076 "Fraction of xheight");
00077 extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight");
00078 extern double_VAR_H (words_default_fixed_limit, 0.6, "Allowed size variance");
00079 extern double_VAR_H (textord_words_definite_spread, 0.30,
00080 "Non-fuzzy spacing region");
00081 extern double_VAR_H (textord_spacesize_ratiofp, 2.8,
00082 "Min ratio space/nonspace");
00083 extern double_VAR_H (textord_spacesize_ratioprop, 2.0,
00084 "Min ratio space/nonspace");
00085 extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold");
00086 extern double_VAR_H (textord_max_pitch_iqr, 0.20,
00087 "Xh fraction noise in pitch");
00088 extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs");
00089 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines