Simple python library for recognizing text from an image

I am looking for a simple python library for recognizing text from images. Images are similar to the following:

enter image description here

The image is very clean and simple - one line, numbers and hyphens, but low resolution.

I would like something like this (ideally):

text = recognize(open('image.png', 'rb').read()) 

Is there something similar? Thanks.

UPD

I know about pytesser and OCRopus. But as I understand it, they do not support Python 3.x.

+4
source share
2 answers

I used pytesser . Very easy to learn and did a great job with me. If you don't like this option, find the python OCR library

+7
source

OCRopus is another easily recognizable OCR library for python. It also seems to give (slightly) better results than pytesser. Here is a link to your site

+4
source

Source: https://habr.com/ru/post/1491263/


All Articles