Skip to content

Commit 738fe4f

Browse files
sundarcftfmorris
authored andcommitted
Adds BoolParam tessedit_create_hocrtsv in class Tesseract.
1 parent 937ceb2 commit 738fe4f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ccmain/tesseractclass.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,8 @@ Tesseract::Tesseract()
385385
this->params()),
386386
BOOL_MEMBER(tessedit_create_hocr, false, "Write .html hOCR output file",
387387
this->params()),
388+
BOOL_MEMBER(tessedit_create_hocrtsv, false, "Write .hocr.tsv TSV output file",
389+
this->params()),
388390
BOOL_MEMBER(tessedit_create_pdf, false, "Write .pdf output file",
389391
this->params()),
390392
STRING_MEMBER(unrecognised_char, "|",
@@ -510,6 +512,7 @@ Tesseract::Tesseract()
510512
"Page separator (default is form feed control character)",
511513
this->params()),
512514

515+
513516
// The following parameters were deprecated and removed from their
514517
// original
515518
// locations. The parameters are temporarily kept here to give Tesseract

ccmain/tesseractclass.h

+1
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,7 @@ class Tesseract : public Wordrec {
10031003
BOOL_VAR_H(tessedit_write_unlv, false, "Write .unlv output file");
10041004
BOOL_VAR_H(tessedit_create_txt, false, "Write .txt output file");
10051005
BOOL_VAR_H(tessedit_create_hocr, false, "Write .html hOCR output file");
1006+
BOOL_VAR_H(tessedit_create_hocrtsv, false, "Write .hocr.tsv hOCR-tsv output file");
10061007
BOOL_VAR_H(tessedit_create_pdf, false, "Write .pdf output file");
10071008
STRING_VAR_H(unrecognised_char, "|",
10081009
"Output char for unidentified blobs");

0 commit comments

Comments
 (0)