set unlv_tilde_crunching to false; fixes #1449 #948

This commit is contained in:
Zdenko Podobný 2018-10-23 09:26:32 +02:00
parent 5a68b7f41b
commit 3d508a65a7
4 changed files with 4 additions and 2 deletions

View File

@ -456,6 +456,7 @@ static void PreloadRenderers(
api->GetBoolVariable("tessedit_write_unlv", &b);
if (b) {
api->SetVariable("unlv_tilde_crunching", "true");
tesseract::TessUnlvRenderer* renderer =
new tesseract::TessUnlvRenderer(outputbase);
if (renderer->happy()) {

View File

@ -271,7 +271,7 @@ Tesseract::Tesseract()
this->params()),
double_MEMBER(quality_rowrej_pc, 1.1,
"good_quality_doc gte good char limit", this->params()),
BOOL_MEMBER(unlv_tilde_crunching, true,
BOOL_MEMBER(unlv_tilde_crunching, false,
"Mark v.bad words for tilde crunch", this->params()),
BOOL_MEMBER(hocr_font_info, false, "Add font info to hocr output",
this->params()),

View File

@ -963,7 +963,7 @@ class Tesseract : public Wordrec {
BOOL_VAR_H(bland_unrej, false, "unrej potential with no checks");
double_VAR_H(quality_rowrej_pc, 1.1,
"good_quality_doc gte good char limit");
BOOL_VAR_H(unlv_tilde_crunching, true,
BOOL_VAR_H(unlv_tilde_crunching, false,
"Mark v.bad words for tilde crunch");
BOOL_VAR_H(hocr_font_info, false,
"Add font info to hocr output");

View File

@ -1 +1,2 @@
tessedit_write_unlv 1
unlv_tilde_crunching T