00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef TESSERACTMAIN_H
00021 #define TESSERACTMAIN_H
00022
00023 #include "varable.h"
00024 #include "tessclas.h"
00025 #include "notdll.h"
00026
00027 extern BOOL_VAR_H(tessedit_create_boxfile, FALSE, "Output text with boxes");
00028 extern BOOL_VAR_H(tessedit_read_image, TRUE, "Ensure the image is read");
00029 extern INT_VAR_H(tessedit_serial_unlv, 0,
00030 "0->Whole page, 1->serial no adapt, 2->serial with adapt");
00031 extern INT_VAR_H(tessedit_page_number, -1,
00032 "-1 -> All pages, else specifc page to process");
00033 extern BOOL_VAR_H(tessedit_write_images, FALSE,
00034 "Capture the image from the IPE");
00035 extern BOOL_VAR_H(tessedit_debug_to_screen, FALSE, "Dont use debug file");
00036
00042 inT32 api_main(const char *arg0,
00043 uinT16 lang);
00050 inT16 setup_info(uinT16 lang,
00051 const char *name,
00052 const char *version);
00057 inT16 read_image(IMAGE *im_out);
00058 #ifdef __MSW32__
00059
00062 int WINAPI WinMain(HINSTANCE hInstance,
00063 HINSTANCE hPrevInstance,
00064 LPSTR lpszCmdLine,
00065 int nCmdShow);
00071 LONG WINAPI WndProc(HWND hwnd,
00072 UINT msg,
00073 WPARAM wParam,
00074 LPARAM lParam);
00081 int parse_args (int argc,
00082 char *argv[],
00083 char *arglist[]);
00084 #endif
00085 #endif