I've this python code which i use to convert a text written in a picture to a string, it does work for certain images whom have large characters, but not for the one i'm trying right now which contains only digits.
There is my code:
from PIL import Image
img = Image.open('img.png')
pytesseract.pytesseract.tesseract_cmd = 'C:/Program Files (x86)/Tesseract-OCR/tesseract'
result = pytesseract.image_to_string(img)
print (result)
Why is it failing recognising this specific image and how can i solve this problem ? thank you.
There is the picture:
from pytesseract fail to recognise digits from image
No comments:
Post a Comment