import pytesseract from PIL import Image im = Image.open('C:\\Users\\Administrator\\Desktop\\1.png') string = pytesseract.image_to_string(im) print(string)