我在哪里可以找到tesseract-> setvariable函数的第一个参数的可用属性名称列表? [英] Where I can find the list of available property name for tesseract->setvariable function's first parameter?

查看:901
本文介绍了我在哪里可以找到tesseract-> setvariable函数的第一个参数的可用属性名称列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从大量的护目镜中我只能找到其中的几个作为以下示例的tesseract的setVariable(第一个参数,第二个参数)

From the lots of goggling I am able to find only few of them as the below example for tesseract's setVariable(1st param, 2nd param)

tesseract->SetVariable("tessedit_char_whitelist", "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ");
tesseract->SetVariable("language_model_penalty_non_freq_dict_word", "0");
tesseract->SetVariable("language_model_penalty_non_dict_word", "0");
tesseract->SetVariable("tessedit_char_blacklist", "xyz");
tesseract->SetVariable("classify_bln_numeric_mode", "1");

我想知道他们中有多少人?

I would like to know how much more of them are there?

有没有可用的清单?如果有的话请给我链接。

Is there any list available? If any please give me the link to it.

推荐答案

这段代码应该为iOS做的诀窍...可能需要一点调整。

This code should do the trick for iOS... might need a bit of tweaking.

bool verboseOut = true;

if (verboseOut) {        //Write to console current Settings
   char buffer [256];
   FILE * pFile = tmpfile();
   tesseract->PrintVariables(pFile);
   rewind(pFile);
   while (!feof(pFile)) {
      if (fgets (buffer,256,pFile))
            fputs (buffer,stdout);
   } fclose(pFile);
}

这篇关于我在哪里可以找到tesseract-> setvariable函数的第一个参数的可用属性名称列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆