Skip to content

Commit

Permalink
Remove unused config variable tessedit_single_match
Browse files Browse the repository at this point in the history
Replace also TRUE, FALSE by true, false.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
  • Loading branch information
stweil committed Mar 31, 2019
1 parent ca2947a commit 7db25e1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 14 deletions.
10 changes: 4 additions & 6 deletions src/classify/classify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ namespace tesseract {
Classify::Classify()
: BOOL_MEMBER(allow_blob_division, true, "Use divisible blobs chopping",
this->params()),
BOOL_MEMBER(prioritize_division, FALSE,
BOOL_MEMBER(prioritize_division, false,
"Prioritize blob division over chopping", this->params()),
INT_MEMBER(tessedit_single_match, FALSE, "Top choice only from CP",
this->params()),
BOOL_MEMBER(classify_enable_learning, true, "Enable adaptive classifier",
this->params()),
INT_MEMBER(classify_debug_level, 0, "Classify debug level",
Expand Down Expand Up @@ -149,7 +147,7 @@ Classify::Classify()
INT_MEMBER(classify_adapt_feature_threshold, 230,
"Threshold for good features during adaptive 0-255",
this->params()),
BOOL_MEMBER(disable_character_fragments, TRUE,
BOOL_MEMBER(disable_character_fragments, true,
"Do not include character fragments in the"
" results of the classifier",
this->params()),
Expand All @@ -158,10 +156,10 @@ Classify::Classify()
"Exclude fragments that do not look like whole"
" characters from training and adaption",
this->params()),
BOOL_MEMBER(classify_debug_character_fragments, FALSE,
BOOL_MEMBER(classify_debug_character_fragments, false,
"Bring up graphical debugging windows for fragments training",
this->params()),
BOOL_MEMBER(matcher_debug_separate_windows, FALSE,
BOOL_MEMBER(matcher_debug_separate_windows, false,
"Use two different windows for debugging the matching: "
"One for the protos and one for the features.",
this->params()),
Expand Down
9 changes: 4 additions & 5 deletions src/classify/classify.h
Original file line number Diff line number Diff line change
Expand Up @@ -424,9 +424,8 @@ class Classify : public CCStruct {
// Set during training (in lang.config) to indicate whether the divisible
// blobs chopper should be used in preference to chopping. Set to true for
// southern Indic scripts.
BOOL_VAR_H(prioritize_division, FALSE,
BOOL_VAR_H(prioritize_division, false,
"Prioritize blob division over chopping");
INT_VAR_H(tessedit_single_match, FALSE, "Top choice only from CP");
BOOL_VAR_H(classify_enable_learning, true, "Enable adaptive classifier");
INT_VAR_H(classify_debug_level, 0, "Classify debug level");

Expand Down Expand Up @@ -486,15 +485,15 @@ class Classify : public CCStruct {
"Threshold for good protos during adaptive 0-255");
INT_VAR_H(classify_adapt_feature_threshold, 230,
"Threshold for good features during adaptive 0-255");
BOOL_VAR_H(disable_character_fragments, TRUE,
BOOL_VAR_H(disable_character_fragments, true,
"Do not include character fragments in the"
" results of the classifier");
double_VAR_H(classify_character_fragments_garbage_certainty_threshold, -3.0,
"Exclude fragments that do not match any whole character"
" with at least this certainty");
BOOL_VAR_H(classify_debug_character_fragments, FALSE,
BOOL_VAR_H(classify_debug_character_fragments, false,
"Bring up graphical debugging windows for fragments training");
BOOL_VAR_H(matcher_debug_separate_windows, FALSE,
BOOL_VAR_H(matcher_debug_separate_windows, false,
"Use two different windows for debugging the matching: "
"One for the protos and one for the features.");
STRING_VAR_H(classify_learn_debug_str, "", "Class str to debug learning");
Expand Down
1 change: 0 additions & 1 deletion tessdata/configs/box.train
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
disable_character_fragments T
file_type .bl
textord_fast_pitch_test T
tessedit_single_match 0
tessedit_zero_rejection T
tessedit_minimal_rejection F
tessedit_write_rep_codes F
Expand Down
1 change: 0 additions & 1 deletion tessdata/configs/box.train.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
file_type .bl
#tessedit_use_nn F
textord_fast_pitch_test T
tessedit_single_match 0
tessedit_zero_rejection T
tessedit_minimal_rejection F
tessedit_write_rep_codes F
Expand Down
1 change: 0 additions & 1 deletion tessdata/configs/lstm.train
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
disable_character_fragments T
file_type .bl
textord_fast_pitch_test T
tessedit_single_match 0
tessedit_zero_rejection T
tessedit_minimal_rejection F
tessedit_write_rep_codes F
Expand Down

0 comments on commit 7db25e1

Please sign in to comment.