1 /****************************************************************************** 2 ** Filename: adaptmatch.h 3 ** Purpose: Interface to high-level adaptive matcher 4 ** Author: Dan Johnson 5 ** History: Mon Mar 11 11:48:48 1991, DSJ, Created. 6 ** 7 ** (c) Copyright Hewlett-Packard Company, 1988. 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 #ifndef ADAPTMATCH_H 19 #define ADAPTMATCH_H 20 21 /**---------------------------------------------------------------------------- 22 Include Files and Type Defines 23 ----------------------------------------------------------------------------**/ 24 #include "oldlist.h" 25 #include "tessclas.h" 26 #include "fxdefs.h" 27 #include "matchdefs.h" 28 #include "adaptive.h" 29 #include "ocrfeatures.h" 30 #include "ratngs.h" 31 32 /*--------------------------------------------------------------------------- 33 Variables 34 ----------------------------------------------------------------------------*/ 35 extern double_VAR_H(matcher_good_threshold, 0.125, "Good Match (0-1)"); 36 extern double_VAR_H(matcher_great_threshold, 0.0, "Great Match (0-1)"); 37 extern INT_VAR_H(matcher_failed_adaptations_before_reset, 150, 38 "Number of failed adaptions before adapted templates reset"); 39 extern INT_VAR_H(matcher_min_examples_for_prototyping, 2, 40 "Reliable Config Threshold"); 41 extern BOOL_VAR_H(tess_cn_matching, 0, "Character Normalized Matching"); 42 extern BOOL_VAR_H(tess_bn_matching, 0, "Baseline Normalized Matching"); 43 extern INT_VAR_H(classify_learning_debug_level, 0, "Learning Debug Level: "); 44 45 /**---------------------------------------------------------------------------- 46 Public Function Prototypes 47 ----------------------------------------------------------------------------**/ 48 int GetAdaptiveFeatures(TBLOB *Blob, 49 LINE_STATS *LineStats, 50 INT_FEATURE_ARRAY IntFeatures, 51 FEATURE_SET *FloatFeatures); 52 53 /**---------------------------------------------------------------------------- 54 Global Data Definitions and Declarations 55 ----------------------------------------------------------------------------**/ 56 #endif 57