Skip to content

Commit b8b6c15

Browse files
committed
Mark parameter 'tessedit_do_invert' as deprecated
Signed-off-by: Stefan Weil <[email protected]>
1 parent 96861b5 commit b8b6c15

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/ccmain/tesseractclass.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ Tesseract::Tesseract()
6363
"Break input into lines and remap boxes if present", this->params())
6464
, BOOL_MEMBER(tessedit_dump_pageseg_images, false,
6565
"Dump intermediate images made during page segmentation", this->params())
66-
, BOOL_MEMBER(tessedit_do_invert, true, "Try inverted line image if necessary",
66+
// TODO: remove deprecated tessedit_do_invert in release 6.
67+
, BOOL_MEMBER(tessedit_do_invert, true,
68+
"Try inverted line image if necessary (deprecated, will be "
69+
"removed in release 6, use the 'invert_threshold' parameter instead)",
6770
this->params())
6871
, double_MEMBER(invert_threshold, 0.7,
6972
"For lines with a mean confidence below this value, OCR is also tried with an inverted image",

src/ccmain/tesseractclass.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ class TESS_API Tesseract : public Wordrec {
755755
BOOL_VAR_H(tessedit_make_boxes_from_boxes);
756756
BOOL_VAR_H(tessedit_train_line_recognizer);
757757
BOOL_VAR_H(tessedit_dump_pageseg_images);
758+
// TODO: remove deprecated tessedit_do_invert in release 6.
758759
BOOL_VAR_H(tessedit_do_invert);
759760
double_VAR_H(invert_threshold);
760761
INT_VAR_H(tessedit_pageseg_mode);

0 commit comments

Comments
 (0)