Skip to content

Commit

Permalink
Remove duplicate parameter certainty_scale
Browse files Browse the repository at this point in the history
It was also declared in class Dict and mostly used from that class.
Setting it via API or command line never changed that used value.

Signed-off-by: Stefan Weil <[email protected]>
  • Loading branch information
stweil committed Dec 30, 2021
1 parent 86158d3 commit e879690
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/classify/adaptmatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ void Classify::LearnWord(const char *fontname, WERD_RES *word) {
tprintf("\n\nAdapting to word = %s\n", word->best_choice->debug_string().c_str());
}
thresholds = new float[word_len];
word->ComputeAdaptionThresholds(certainty_scale, matcher_perfect_threshold,
word->ComputeAdaptionThresholds(getDict().certainty_scale, matcher_perfect_threshold,
matcher_good_threshold, matcher_rating_margin, thresholds);
}
int start_blob = 0;
Expand Down
1 change: 0 additions & 1 deletion src/classify/classify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ Classify::Classify()
"its expected textline position",
this->params())
, double_MEMBER(rating_scale, 1.5, "Rating scaling factor", this->params())
, double_MEMBER(certainty_scale, 20.0, "Certainty scaling factor", this->params())
, double_MEMBER(tessedit_class_miss_scale, 0.00390625, "Scale factor for features not used",
this->params())
, double_MEMBER(classify_adapted_pruning_factor, 2.5,
Expand Down
1 change: 0 additions & 1 deletion src/classify/classify.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,6 @@ class TESS_API Classify : public CCStruct {
double_VAR_H(matcher_clustering_max_angle_delta);
double_VAR_H(classify_misfit_junk_penalty);
double_VAR_H(rating_scale);
double_VAR_H(certainty_scale);
double_VAR_H(tessedit_class_miss_scale);
double_VAR_H(classify_adapted_pruning_factor);
double_VAR_H(classify_adapted_pruning_threshold);
Expand Down

0 comments on commit e879690

Please sign in to comment.