#include "mfcpch.h"#include <ctype.h>#include "applybox.h"#include "control.h"#include "tessvars.h"#include "tessedit.h"#include "baseapi.h"#include "thresholder.h"#include "pageres.h"#include "imgs.h"#include "varabled.h"#include "tprintf.h"#include "tesseractmain.h"#include "stderr.h"#include "notdll.h"#include "mainblk.h"#include "output.h"#include "globals.h"#include "helpers.h"#include "blread.h"#include "tfacep.h"#include "callnet.h"Defines | |
| #define | VARDIR "configs/" |
| #define | API_CONFIG "configs/api_config" |
| #define | EXTERN |
Functions | |
| void | TesseractImage (const char *input_file, IMAGE *image, Pix *pix, int page_index, tesseract::TessBaseAPI *api, STRING *text_out) |
| int | main (int argc, char **argv) |
Variables | |
| bool | tessedit_create_boxfile = FALSE |
| bool | tessedit_create_hocr = FALSE |
| bool | tessedit_read_image = TRUE |
| int | tessedit_serial_unlv = 0 |
| int | tessedit_page_number = -1 |
| bool | tessedit_write_images = FALSE |
| bool | tessedit_debug_to_screen = FALSE |
| const int | kMaxIntSize = 22 |
| char | szAppName [] = "Tessedit" |
| #define API_CONFIG "configs/api_config" |
| #define EXTERN |
| #define VARDIR "configs/" |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
---------------------------------------------------------------------------- Public Code ----------------------------------------------------------------------------
| void TesseractImage | ( | const char * | input_file, | |
| IMAGE * | image, | |||
| Pix * | pix, | |||
| int | page_index, | |||
| tesseract::TessBaseAPI * | api, | |||
| STRING * | text_out | |||
| ) |
| const int kMaxIntSize = 22 |
| char szAppName[] = "Tessedit" |
| bool tessedit_create_boxfile = FALSE |
"Output text with boxes"
| bool tessedit_create_hocr = FALSE |
"Output HTML with hOCR markup"
| bool tessedit_debug_to_screen = FALSE |
"Dont use debug file"
| int tessedit_page_number = -1 |
"-1 -> All pages, else specific page to process"
"Ensure the image is read"
| int tessedit_serial_unlv = 0 |
"0->Whole page, 1->serial no adapt, 2->serial with adapt"
| bool tessedit_write_images = FALSE |
"Capture the image from the IPE"
1.6.3