Remove unused config variable tessedit_single_match

Replace also TRUE, FALSE by true, false.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2019-03-30 14:36:40 +01:00
parent ca2947a2c0
commit 7db25e15c0
5 changed files with 8 additions and 14 deletions

View File

@ -60,10 +60,8 @@ namespace tesseract {
Classify::Classify() Classify::Classify()
: BOOL_MEMBER(allow_blob_division, true, "Use divisible blobs chopping", : BOOL_MEMBER(allow_blob_division, true, "Use divisible blobs chopping",
this->params()), this->params()),
BOOL_MEMBER(prioritize_division, FALSE, BOOL_MEMBER(prioritize_division, false,
"Prioritize blob division over chopping", this->params()), "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", BOOL_MEMBER(classify_enable_learning, true, "Enable adaptive classifier",
this->params()), this->params()),
INT_MEMBER(classify_debug_level, 0, "Classify debug level", INT_MEMBER(classify_debug_level, 0, "Classify debug level",
@ -149,7 +147,7 @@ Classify::Classify()
INT_MEMBER(classify_adapt_feature_threshold, 230, INT_MEMBER(classify_adapt_feature_threshold, 230,
"Threshold for good features during adaptive 0-255", "Threshold for good features during adaptive 0-255",
this->params()), this->params()),
BOOL_MEMBER(disable_character_fragments, TRUE, BOOL_MEMBER(disable_character_fragments, true,
"Do not include character fragments in the" "Do not include character fragments in the"
" results of the classifier", " results of the classifier",
this->params()), this->params()),
@ -158,10 +156,10 @@ Classify::Classify()
"Exclude fragments that do not look like whole" "Exclude fragments that do not look like whole"
" characters from training and adaption", " characters from training and adaption",
this->params()), this->params()),
BOOL_MEMBER(classify_debug_character_fragments, FALSE, BOOL_MEMBER(classify_debug_character_fragments, false,
"Bring up graphical debugging windows for fragments training", "Bring up graphical debugging windows for fragments training",
this->params()), this->params()),
BOOL_MEMBER(matcher_debug_separate_windows, FALSE, BOOL_MEMBER(matcher_debug_separate_windows, false,
"Use two different windows for debugging the matching: " "Use two different windows for debugging the matching: "
"One for the protos and one for the features.", "One for the protos and one for the features.",
this->params()), this->params()),

View File

@ -424,9 +424,8 @@ class Classify : public CCStruct {
// Set during training (in lang.config) to indicate whether the divisible // Set during training (in lang.config) to indicate whether the divisible
// blobs chopper should be used in preference to chopping. Set to true for // blobs chopper should be used in preference to chopping. Set to true for
// southern Indic scripts. // southern Indic scripts.
BOOL_VAR_H(prioritize_division, FALSE, BOOL_VAR_H(prioritize_division, false,
"Prioritize blob division over chopping"); "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"); BOOL_VAR_H(classify_enable_learning, true, "Enable adaptive classifier");
INT_VAR_H(classify_debug_level, 0, "Classify debug level"); INT_VAR_H(classify_debug_level, 0, "Classify debug level");
@ -486,15 +485,15 @@ class Classify : public CCStruct {
"Threshold for good protos during adaptive 0-255"); "Threshold for good protos during adaptive 0-255");
INT_VAR_H(classify_adapt_feature_threshold, 230, INT_VAR_H(classify_adapt_feature_threshold, 230,
"Threshold for good features during adaptive 0-255"); "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" "Do not include character fragments in the"
" results of the classifier"); " results of the classifier");
double_VAR_H(classify_character_fragments_garbage_certainty_threshold, -3.0, double_VAR_H(classify_character_fragments_garbage_certainty_threshold, -3.0,
"Exclude fragments that do not match any whole character" "Exclude fragments that do not match any whole character"
" with at least this certainty"); " 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"); "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: " "Use two different windows for debugging the matching: "
"One for the protos and one for the features."); "One for the protos and one for the features.");
STRING_VAR_H(classify_learn_debug_str, "", "Class str to debug learning"); STRING_VAR_H(classify_learn_debug_str, "", "Class str to debug learning");

View File

@ -1,7 +1,6 @@
disable_character_fragments T disable_character_fragments T
file_type .bl file_type .bl
textord_fast_pitch_test T textord_fast_pitch_test T
tessedit_single_match 0
tessedit_zero_rejection T tessedit_zero_rejection T
tessedit_minimal_rejection F tessedit_minimal_rejection F
tessedit_write_rep_codes F tessedit_write_rep_codes F

View File

@ -1,7 +1,6 @@
file_type .bl file_type .bl
#tessedit_use_nn F #tessedit_use_nn F
textord_fast_pitch_test T textord_fast_pitch_test T
tessedit_single_match 0
tessedit_zero_rejection T tessedit_zero_rejection T
tessedit_minimal_rejection F tessedit_minimal_rejection F
tessedit_write_rep_codes F tessedit_write_rep_codes F

View File

@ -1,7 +1,6 @@
disable_character_fragments T disable_character_fragments T
file_type .bl file_type .bl
textord_fast_pitch_test T textord_fast_pitch_test T
tessedit_single_match 0
tessedit_zero_rejection T tessedit_zero_rejection T
tessedit_minimal_rejection F tessedit_minimal_rejection F
tessedit_write_rep_codes F tessedit_write_rep_codes F