mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-01-18 06:30:14 +08:00
fix issue 309
git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@372 d0cd1f9f-072b-0410-8dd7-cf729c803f20
This commit is contained in:
parent
791f86b15a
commit
5567959c0a
@ -68,7 +68,7 @@ BOOL_VAR(tessedit_read_image, TRUE, "Ensure the image is read");
|
||||
INT_VAR(tessedit_serial_unlv, 0,
|
||||
"0->Whole page, 1->serial no adapt, 2->serial with adapt");
|
||||
INT_VAR(tessedit_page_number, -1,
|
||||
"-1 -> All pages, else specifc page to process");
|
||||
"-1 -> All pages, else specific page to process");
|
||||
BOOL_VAR(tessedit_write_images, FALSE, "Capture the image from the IPE");
|
||||
BOOL_VAR(tessedit_debug_to_screen, FALSE, "Dont use debug file");
|
||||
|
||||
@ -333,7 +333,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
bool output_hocr = tessedit_create_hocr;
|
||||
outfile = argv[2];
|
||||
outfile += output_hocr ? ".html" : ".txt";
|
||||
outfile += output_hocr ? ".html" : tessedit_create_boxfile ? ".box" : ".txt";
|
||||
fp = fopen(outfile.string(), "w");
|
||||
if (fp == NULL) {
|
||||
tprintf("Cannot create output file %s\n", outfile.string());
|
||||
|
@ -29,7 +29,7 @@ extern BOOL_VAR_H(tessedit_read_image, TRUE, "Ensure the image is read");
|
||||
extern INT_VAR_H(tessedit_serial_unlv, 0,
|
||||
"0->Whole page, 1->serial no adapt, 2->serial with adapt");
|
||||
extern INT_VAR_H(tessedit_page_number, -1,
|
||||
"-1 -> All pages, else specifc page to process");
|
||||
"-1 -> All pages, else specific page to process");
|
||||
extern BOOL_VAR_H(tessedit_write_images, FALSE,
|
||||
"Capture the image from the IPE");
|
||||
extern BOOL_VAR_H(tessedit_debug_to_screen, FALSE, "Dont use debug file");
|
||||
|
Loading…
Reference in New Issue
Block a user