Skip to content

Commit f7663c6

Browse files
committed
Added detailed value description for glyph_confidences parameter
Signed-off-by: Noah Metzger <[email protected]>
1 parent d8237f3 commit f7663c6

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/ccmain/tesseractclass.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,10 @@ Tesseract::Tesseract()
509509
"Page separator (default is form feed control character)",
510510
this->params()),
511511
INT_MEMBER(glyph_confidences, 0,
512-
"Allows to include glyph confidences in the hOCR output",
512+
"Allows to include glyph confidences in the hOCR output. "
513+
"Valid input values are 0, 1 and 2. 0 is the default value. "
514+
"With 1 the glyph confidences of all timesteps are included. "
515+
"With 2 the glyph confidences are accumulated per charakter.",
513516
this->params()),
514517

515518
backup_config_file_(nullptr),

src/ccmain/tesseractclass.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,10 @@ class Tesseract : public Wordrec {
11151115
STRING_VAR_H(page_separator, "\f",
11161116
"Page separator (default is form feed control character)");
11171117
INT_VAR_H(glyph_confidences, 0,
1118-
"Allows to include glyph confidences in the hOCR output");
1118+
"Allows to include glyph confidences in the hOCR output. "
1119+
"Valid input values are 0, 1 and 2. 0 is the default value. "
1120+
"With 1 the glyph confidences of all timesteps are included. "
1121+
"With 2 the glyph confidences are accumulated per charakter.");
11191122

11201123
//// ambigsrecog.cpp /////////////////////////////////////////////////////////
11211124
FILE *init_recog_training(const STRING &fname);

0 commit comments

Comments
 (0)