使tesseract仅识别数字 [英] Make tesseract recognise numbers only
问题描述
我正在尝试改进我为读取我正在使用的某个图像的布局而制作的 OCR 程序.现在,我希望我的 OCR 程序只能识别数字 0-9.
I am trying to refine an OCR prog I made to read the layout of a certain image that I am using. Right now, I would like my OCR prog to recognise only digits 0-9.
我尝试按照问题中的解决方案进行操作:
I tried to follow the solution from the question:
但是我被困在我必须将tesseract称为:
But I got stuck in the part where I have to call tesseract as:
tesseract input.tif output nobatch letters
这去哪儿了?
推荐答案
我前段时间在 SO 中发布了一些关于 tesseract 的内容:参见 Tesseract OCR 库 - 学习字体.值得注意的是,有一个链接到tesseract培训,它将告诉您如何限制你的字符集并描述你的歧义.
I posted some things about tesseract some time ago in SO: see Tesseract OCR Library - Learning Font. There is notably a link to tesseract training which will tell you how to restrain your set of characters and describe your ambiguities.
这篇关于使tesseract仅识别数字的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!