Skip to content

Commit

Permalink
Mark parameter 'tessedit_do_invert' as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Jun 26, 2022
1 parent 96861b5 commit b8b6c15
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ccmain/tesseractclass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ Tesseract::Tesseract()
"Break input into lines and remap boxes if present", this->params())
, BOOL_MEMBER(tessedit_dump_pageseg_images, false,
"Dump intermediate images made during page segmentation", this->params())
, BOOL_MEMBER(tessedit_do_invert, true, "Try inverted line image if necessary",
// TODO: remove deprecated tessedit_do_invert in release 6.
, BOOL_MEMBER(tessedit_do_invert, true,
"Try inverted line image if necessary (deprecated, will be "
"removed in release 6, use the 'invert_threshold' parameter instead)",
this->params())
, double_MEMBER(invert_threshold, 0.7,
"For lines with a mean confidence below this value, OCR is also tried with an inverted image",
Expand Down
1 change: 1 addition & 0 deletions src/ccmain/tesseractclass.h
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,7 @@ class TESS_API Tesseract : public Wordrec {
BOOL_VAR_H(tessedit_make_boxes_from_boxes);
BOOL_VAR_H(tessedit_train_line_recognizer);
BOOL_VAR_H(tessedit_dump_pageseg_images);
// TODO: remove deprecated tessedit_do_invert in release 6.
BOOL_VAR_H(tessedit_do_invert);
double_VAR_H(invert_threshold);
INT_VAR_H(tessedit_pageseg_mode);
Expand Down

0 comments on commit b8b6c15

Please sign in to comment.