直接下载地址:https://digi.bib.uni-mannheim.de/tesseract/
找的最新版本:


我添加了math 跟chinese(因为是国内网络的原因吧,下载都失败,所以不用选择,后面自己下载后,添加到相应目录就好)


配置系统环境变量

在cmd下测试
tesseract -v

import pytesseract
from PIL import Image
picture_new_path=文件路径
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
image = Image.open(picture_new_path)
text = pytesseract.image_to_string(image, lang='eng', config="--psm 6")
print(text)


或者查看官方文档:Languages/Scripts supported in different versions of Tesseract | tessdoc