From 5567959c0ac88f678b8ac393a4252fc6e97fba8c Mon Sep 17 00:00:00 2001 From: joregan Date: Wed, 26 May 2010 22:14:36 +0000 Subject: [PATCH] fix issue 309 git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@372 d0cd1f9f-072b-0410-8dd7-cf729c803f20 --- api/tesseractmain.cpp | 4 ++-- api/tesseractmain.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/tesseractmain.cpp b/api/tesseractmain.cpp index 13650767c..c8f84a266 100644 --- a/api/tesseractmain.cpp +++ b/api/tesseractmain.cpp @@ -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()); diff --git a/api/tesseractmain.h b/api/tesseractmain.h index 9cc91d82c..508d8bb51 100644 --- a/api/tesseractmain.h +++ b/api/tesseractmain.h @@ -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");