mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
parent
5a68b7f41b
commit
3d508a65a7
@ -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()) {
|
||||
|
@ -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()),
|
||||
|
@ -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");
|
||||
|
@ -1 +1,2 @@
|
||||
tessedit_write_unlv 1
|
||||
unlv_tilde_crunching T
|
||||
|
Loading…
Reference in New Issue
Block a user