建设网站的基本技术,设计房子装修效果图软件,成都抖音seo,个人小程序开发多少钱直接下载地址#xff1a;https://digi.bib.uni-mannheim.de/tesseract/
找的最新版本#xff1a; 我添加了math 跟chinese#xff08;因为是国内网络的原因吧#xff0c;下载都失败#xff0c;所以不用选择#xff0c;后面自己下载后#xff0c;添加到相应目录就好https://digi.bib.uni-mannheim.de/tesseract/
找的最新版本 我添加了math 跟chinese因为是国内网络的原因吧下载都失败所以不用选择后面自己下载后添加到相应目录就好 配置系统环境变量 在cmd下测试 tesseract -v import pytesseract
from PIL import Imagepicture_new_path文件路径
pytesseract.pytesseract.tesseract_cmd rC:\Program Files\Tesseract-OCR\tesseract.exe
image Image.open(picture_new_path)
text pytesseract.image_to_string(image, langeng, config--psm 6)
print(text) 或者查看官方文档Languages/Scripts supported in different versions of Tesseract | tessdoc