P
P
pimanov32021-04-17 09:29:58
Python
pimanov3, 2021-04-17 09:29:58

What configs to set Tesseract for text recognition?

I went through a lot of parameters, but I still couldn’t get all the text from the image.

pytesseract.image_to_string('time.jpg', lang='rus', config='--oem 3 --psm 13')

607a80388eda5804702700.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Mirilaczvili, 2021-04-17
@pimanov3

I won’t tell you about the configuration, but if you divide the area into 2 lines and apply filters to the bottom one, you can easily get the desired result.
Thresholding first, then invert:
607ab1095df55703689081.png
And if you only need the bottom line, then you don’t even need to divide into regions.
On the web resource https://tesseract.projectnaptha.com/ it is successfully defined as "5 m."

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question