Tesseract
3.02
|
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 #include "notdll.h" 00025 00026 extern BOOL_VAR_H (textord_show_initial_words, FALSE, 00027 "Display separate words"); 00028 extern BOOL_VAR_H (textord_show_new_words, FALSE, "Display separate words"); 00029 extern BOOL_VAR_H (textord_show_fixed_words, FALSE, 00030 "Display forced fixed pitch words"); 00031 extern BOOL_VAR_H (textord_blocksall_fixed, FALSE, "Moan about prop blocks"); 00032 extern BOOL_VAR_H (textord_blocksall_prop, FALSE, 00033 "Moan about fixed pitch blocks"); 00034 extern BOOL_VAR_H (textord_blocksall_testing, FALSE, 00035 "Dump stats when moaning"); 00036 extern BOOL_VAR_H (textord_test_mode, FALSE, "Do current test"); 00037 extern INT_VAR_H (textord_dotmatrix_gap, 3, 00038 "Max pixel gap for broken pixed pitch"); 00039 extern INT_VAR_H (textord_debug_block, 0, "Block to do debug on"); 00040 extern INT_VAR_H (textord_pitch_range, 2, "Max range test on pitch"); 00041 extern double_VAR_H (textord_wordstats_smooth_factor, 0.05, 00042 "Smoothing gap stats"); 00043 extern double_VAR_H (textord_width_smooth_factor, 0.10, 00044 "Smoothing width stats"); 00045 extern double_VAR_H (textord_words_width_ile, 0.4, 00046 "Ile of blob widths for space est"); 00047 extern double_VAR_H (textord_words_maxspace, 4.0, "Multiple of xheight"); 00048 extern double_VAR_H (textord_words_default_maxspace, 3.5, 00049 "Max believable third space"); 00050 extern double_VAR_H (textord_words_default_minspace, 0.6, 00051 "Fraction of xheight"); 00052 extern double_VAR_H (textord_words_min_minspace, 0.3, "Fraction of xheight"); 00053 extern double_VAR_H (textord_words_default_nonspace, 0.2, 00054 "Fraction of xheight"); 00055 extern double_VAR_H (textord_words_initial_lower, 0.25, 00056 "Max inital cluster size"); 00057 extern double_VAR_H (textord_words_initial_upper, 0.15, 00058 "Min initial cluster spacing"); 00059 extern double_VAR_H (textord_words_minlarge, 0.75, 00060 "Fraction of valid gaps needed"); 00061 extern double_VAR_H (textord_words_pitchsd_threshold, 0.025, 00062 "Pitch sync threshold"); 00063 extern double_VAR_H (textord_words_def_fixed, 0.01, 00064 "Threshold for definite fixed"); 00065 extern double_VAR_H (textord_words_def_prop, 0.06, 00066 "Threshold for definite prop"); 00067 extern INT_VAR_H (textord_words_veto_power, 5, 00068 "Rows required to outvote a veto"); 00069 extern double_VAR_H (textord_pitch_rowsimilarity, 0.08, 00070 "Fraction of xheight for sameness"); 00071 extern BOOL_VAR_H (textord_pitch_scalebigwords, FALSE, 00072 "Scale scores on big words"); 00073 extern double_VAR_H (words_initial_lower, 0.5, "Max inital cluster size"); 00074 extern double_VAR_H (words_initial_upper, 0.15, 00075 "Min initial cluster spacing"); 00076 extern double_VAR_H (words_default_prop_nonspace, 0.25, 00077 "Fraction of xheight"); 00078 extern double_VAR_H (words_default_fixed_space, 0.75, "Fraction of xheight"); 00079 extern double_VAR_H (words_default_fixed_limit, 0.6, "Allowed size variance"); 00080 extern double_VAR_H (textord_words_definite_spread, 0.30, 00081 "Non-fuzzy spacing region"); 00082 extern double_VAR_H (textord_spacesize_ratiofp, 2.8, 00083 "Min ratio space/nonspace"); 00084 extern double_VAR_H (textord_spacesize_ratioprop, 2.0, 00085 "Min ratio space/nonspace"); 00086 extern double_VAR_H (textord_fpiqr_ratio, 1.5, "Pitch IQR/Gap IQR threshold"); 00087 extern double_VAR_H (textord_max_pitch_iqr, 0.20, 00088 "Xh fraction noise in pitch"); 00089 extern double_VAR_H (textord_fp_min_width, 0.5, "Min width of decent blobs"); 00090 #endif