/* -*-C-*-
 ********************************************************************************
 *
 * File:        globals.h  (Formerly globals.h)
 * Description:  Global Variables for Wise Owl
 * Author:       Mark Seaman, OCR Technology
 * Created:      Thu Dec 21 11:38:36 1989
 * Modified:     Thu Jan  4 17:13:00 1990 (Mark Seaman) marks@hpgrlt
 * Language:     C
 * Package:      N/A
 * Status:       Experimental (Do Not Distribute)
 *
 * (c) Copyright 1989, Hewlett-Packard Company.
 ** Licensed under the Apache License, Version 2.0 (the "License");
 ** you may not use this file except in compliance with the License.
 ** You may obtain a copy of the License at
 ** http://www.apache.org/licenses/LICENSE-2.0
 ** Unless required by applicable law or agreed to in writing, software
 ** distributed under the License is distributed on an "AS IS" BASIS,
 ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ** See the License for the specific language governing permissions and
 ** limitations under the License.
 *
 *********************************************************************************/
#ifndef GLOBALS_H
#define GLOBALS_H

#include "tessclas.h"
#include "const.h"
#include "unicharset.h"
#include "strngs.h"

#include <stdio.h>

/*----------------------------------------------------------------------
              V a r i a b l e s
----------------------------------------------------------------------*/
//extern IMAGE            info;                                                 /*image info record*/
extern TBLOB *pageblobs;         /*first blob on page */
extern TEXTBLOCK *pageblocks;    /*first block on page */
                                 /*class definitions */
/* extern char classes[CLASSIZE][CLASSLENGTH]; */
extern int resolution;           /*scanner res in dpi */
extern int acts[MAXPROC];        /*action flags */
extern int debugs[MAXPROC];      /*debug flags */
extern int plots[MAXPROC];       /*plot flags */
extern int corners[4];           /*corners of scan window */
                                 /*image file name */
extern char imagefile[FILENAMESIZE];
                                 /* main directory */
extern char directory[FILENAMESIZE];
extern char *debugfile;          /* debug file name */

extern int plots_fx;
extern int plots_ocr;

extern int debugs_fx;
extern int debugs_ocr;

extern int acts_fx;
extern int acts_ocr;

extern char *demodir;
extern FILE *debugfp;            /*debug log file */

extern UNICHARSET unicharset; /* The UNICHARSET variable that Tesseract uses internally */

extern STRING language_data_path_prefix;

#endif
