mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-06 17:27:49 +08:00
49 lines
2.1 KiB
C
49 lines
2.1 KiB
C
|
/**********************************************************************
|
||
|
* File: mainblk.h (Formerly main.h)
|
||
|
* Description: Function to call from main() to setup.
|
||
|
* Author: Ray Smith
|
||
|
* Created: Tue Oct 22 11:09:40 BST 1991
|
||
|
*
|
||
|
* (C) Copyright 1991, Hewlett-Packard Ltd.
|
||
|
** 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 MAINBLK_H
|
||
|
#define MAINBLK_H
|
||
|
|
||
|
#include "varable.h"
|
||
|
#include "notdll.h"
|
||
|
|
||
|
//#ifndef BLOB_MATCHING_ON
|
||
|
//class BLOB;
|
||
|
//class ROW;
|
||
|
// float compare_blobs(BLOB*,ROW*,BLOB*,ROW*)
|
||
|
//{
|
||
|
// return (float)MAX_INT32;
|
||
|
//}
|
||
|
//#endif
|
||
|
|
||
|
extern DLLSYM STRING datadir; //dir for data files
|
||
|
//name of image
|
||
|
extern DLLSYM STRING imagebasename;
|
||
|
extern BOOL_VAR_H (m_print_variables, FALSE,
|
||
|
"Print initial values of all variables");
|
||
|
extern STRING_VAR_H (m_data_sub_dir, "data/", "Directory for data files");
|
||
|
extern INT_VAR_H (memgrab_size, 13000000, "Preallocation size for batch use");
|
||
|
void main_setup( /*main demo program */
|
||
|
const char *argv0, //program name
|
||
|
const char *basename, //name of image
|
||
|
int argc, /*argument count */
|
||
|
const char *const *argv /*arguments */
|
||
|
);
|
||
|
#endif
|