00001 00020 #ifndef GLOBALS_H 00021 #define GLOBALS_H 00022 00023 #include "tessclas.h" 00024 #include "const.h" 00025 00026 #include <stdio.h> 00027 00028 /*---------------------------------------------------------------------- 00029 V a r i a b l e s 00030 ----------------------------------------------------------------------*/ 00031 //extern IMAGE info; /*image info record*/ 00033 extern TBLOB *pageblobs; 00035 extern TEXTBLOCK *pageblocks; 00037 extern char classes[CLASSIZE][CLASSLENGTH]; 00039 extern int resolution; 00041 extern int acts[MAXPROC]; 00043 extern int debugs[MAXPROC]; 00045 extern int plots[MAXPROC]; 00047 extern int corners[4]; 00048 extern "C" int optind; /*option index */ 00049 extern "C" char *optarg; /*option argument */ 00050 //extern int optind; /*option index */ 00051 //extern char *optarg; /*option argument */ 00053 extern char imagefile[FILENAMESIZE]; 00055 extern char directory[FILENAMESIZE]; 00057 extern char *debugfile; 00058 00060 extern int plots_fx; 00061 extern int plots_ocr; 00062 00063 extern int debugs_fx; 00064 extern int debugs_ocr; 00065 00066 extern int acts_fx; 00067 extern int acts_ocr; 00068 00069 extern char *demodir; 00070 extern FILE *debugfp; /*debug log file */ 00071 #endif