Extract text from a single image using Python from PIL import Image. from pytesseract import pytesseract. img = Image. open(path_to_image) text = pytesseract. image_to_string(img) print(text) 12 May 2022