00001
00020 #ifndef TESSEDIT_H
00021 #define TESSEDIT_H
00022
00023 #include "tessclas.h"
00024 #include "ocrclass.h"
00025 #include "pgedit.h"
00026 #include "notdll.h"
00027
00028
00029 #ifdef HAVE_LIBTIFF
00030 #ifdef GOOGLE3
00031 #include "third_party/tiff/tiffio.h"
00032 #else
00033 #include "tiffio.h"
00034 #endif
00035 #endif
00036
00037 extern ETEXT_DESC *global_monitor;
00038
00039 int init_tesseract(const char *arg0,
00040 const char *textbase,
00041 const char *configfile,
00042 int configc,
00043 const char *const *configv);
00044 void recognize_page(STRING& image_name);
00045 void end_tesseract();
00046
00047 #ifdef _TIFFIO_
00048 void read_tiff_image(TIFF* tif, IMAGE* image);
00049 #endif
00050
00051
00052 void extend_menu(RADIO_MENU *modes_menu,
00053 INT16 modes_id_base,
00054 NON_RADIO_MENU *other_menu,
00055 INT16 other_id_base
00056 );
00057
00058 void extend_moded_commands(INT32 mode,
00059 BOX selection_box
00060 );
00061
00062 void extend_unmoded_commands(INT32 cmd_event,
00063 char *new_value
00064 );
00065 void set_tess_tweak_vars();
00066 #endif