Simple python library for recognition text from im

2020-02-29 04:00发布

I'm looking for a simple python library for text recognition from images. Images are similar to this:

enter image description here

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

I know about pytesser and OCRopus. But as far as I understand they don't support Python 3.x.

2条回答
Ridiculous、
2楼-- · 2020-02-29 04:29

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'

查看更多
霸刀☆藐视天下
3楼-- · 2020-02-29 04:48

OCRopus is another easy to learn OCR library for python. It also seems to yield (slightly) better results than pytesser. Here's the link to its site

查看更多
登录 后发表回答