tessteract tessteract-ocr import pytesseract from PIL import Image def demo(): # 打开要识别的图片 image = Image.open('captcha.jpg') # 使用pytesseract调用image_to_string方法进行识别,传入要识别的图片,lang='chi_sim'是设置为中文识别,