Best method to train Tesseract 3.02

。_饼干妹妹 提交于 2019-12-10 09:52:32

问题


i'm wondering what is the best method to train Tesseract (kind of text/TIFF and so on) for a particular kind of documents, with these particularities:

  • the structure and main text of the documents is always the same
  • the only things that change are 5 alphanumeric codes (THIS ARE THE REAL IMPORTANT THING TO DETECT!)
  • Some of thes codes are bold

At the moment I used standard trained datas, I detect the entire text and I extrapolate the codes with some regular expressions. It's okay, but I've got errors sometimes, for example:

0 / O

L / I / 1

Please someone knowns some "tricks" to improve precision?

Thanks!


回答1:


during training part of Tesseract, you have to make a file manually to give to the engine in order to specify ambiguous characters.

For more information look at the "unicharambigs" part of the Tesseract documentation.

Best Regards.



来源:https://stackoverflow.com/questions/27170153/best-method-to-train-tesseract-3-02

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