from PIL import Image im = Image.open('C:\\Program Files\\Python38\\Lib\\site-packages\\pytesser\\phototest.tif') from pytesseract import image_to_string text = image_to_string(im) print(text)