Provide Pattern for Tesseract

妖精的绣舞 提交于 2019-12-13 04:53:58

问题


I'm using go and tesseract together. I have something like 2^3 or 22^55

And Tesseract is still sometimes wrong with a white list so I'm looking for a way to provide pattern I read through the FaQ and tried the suggested option with the bazaar.

My Pattern file looks like this:

\d\d^\d\d
\d^\d\d
\d^\d
\d^\d\d

But somehow It still doesnt work. Are there any tips to get it working or is the only way to realize this to generate a new language file.


回答1:


Not a developer so forgive me.

I was looking into a similar issue a while ago and found that the description in the source code is confusing as tesseract by default needs 4+ constant characters in front of the pattern. It even provides examples that would not work under default conditions.

However this is configurable as is described in: The trie.h code

kSaneNumConcreteChars I am pretty sure was the parameter you are after.

Hope this helps.



来源:https://stackoverflow.com/questions/26856349/provide-pattern-for-tesseract

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!