from PIL import Image import pytesseract image = Image.open('test.png') content = pytesseract.image_to_string(image, lang='chi_sim') print(content)