简单的python库,用于从图像中识别文本 [英] Simple python library for recognition text from image
问题描述
我正在寻找一个简单的python库,用于从图像中识别文本.图像与此类似:
I'm looking for a simple python library for text recognition from images. Images are similar to this:
图像包含非常简单的内容-一行,数字和连字符,但分辨率很低.
The image contains a very pure and simple - one line, numbers and hyphens, but the resolution is low.
我想要类似的东西(理想情况下):
I would like something similar (in an ideal):
text = recognize(open('image.png', 'rb').read())
是否存在类似的东西? 谢谢.
Does something similar exists? Thanks.
UPD
我了解pytesser和OCRopus.但据我了解,他们不支持Python 3.x.
I know about pytesser and OCRopus. But as far as I understand they don't support Python 3.x.
推荐答案
我使用了 pytesser .非常容易学习,为我做得很好. 如果您不喜欢此选项,请搜索"python OCR库"
I used pytesser. Very easy to learn, and did a great job for me. If you don't like this option, search for 'python OCR library'
这篇关于简单的python库,用于从图像中识别文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!