7段显示OCR [英] 7-Segment Display OCR
问题描述
我正在使用Tesseract(一个OCR库)构建一个iOS应用程序(拍照并在其上运行OCR),它使用写得好的数字和字符(使用常用字体)非常好用。
I'm building an iOS application (take a picture and run OCR on it) using Tesseract (an OCR library) and it is working very well with well written numbers and characters (using usual fonts).
我遇到的问题是如果我在7段显示器上试用它会产生非常糟糕的结果。
The problem I am having is that if I try it on a 7-Segment Display, it gives very very bad results.
所以我的问题是:有谁知道我怎么能解决这个问题? Tesseract有没有办法识别这些字符?
So my question is: Does anyone know how I can approach this problem? Is there a way for Tesseract to recognize these characters?
推荐答案
我也很难让tesseract识别图像中的数字液晶显示器。
I too had great difficulty in getting tesseract to recognize digits from images of LCD displays.
通过使用ImageMagick对图像进行预处理,将图像副本叠加在自身上,并略微垂直移动以填充段之间的间隙,我获得了一些微不足道的成功:
I had some marginal success by preprocessing the images with ImageMagick to overlay a copy of the image on itself with a slight vertical shift to fill in the gaps between segments:
$ composite -compose Multiply -geometry +0+3 foo.tif foo.tif foo2.png
最后,我的优点是七段光学字符识别二进制: http://www.unix-ag.uni-kl .de / ~aurswal / ssocr /
非常感谢作者Erik Auerswald的代码!
Many thanks to the author, Erik Auerswald, for this code!
这篇关于7段显示OCR的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!