P
P
petrushik2021-11-06 17:25:17
Python
petrushik, 2021-11-06 17:25:17

Why doesn't Pytesseract recognize the simplest black and white number?

It is necessary to recognize the number from the picture, processed the picture as much as possible, the result:
From this:
61868e3c40705443736083.png
Got this:
61868eabaa5be527461138.png

With these configurations (changed oem, psm, lang, removed and added whitelist):

num1 = pytesseract.image_to_string(black_white, lang=None, config=' --psm 10 --oem 3 -c tessedit_char_whitelist=0123456789')

required number was not output

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question