0
点赞
收藏
分享

微信扫一扫

python中pytesseract的安装


1、下载tesseract-ocr-setup-3.05.02-20180621.exe然后安装

2、加环境变量

TESSDATA_PREFIX

Tesseract-OCR\tessdata对应路径

python中pytesseract的安装_无法识别

3、 Pip 安装 pytesseract

Pip install pytesseract

4、找到pytesseract.py对应路径打开

python中pytesseract的安装_重启_02


修改里面参数为tesseract.exe路径

python中pytesseract的安装_github_03


5、如果没有生效就重启电脑

6、如果脚本中出现这行代码有无法识别的字体,需要下载对应的字体,放入pytesseract安装文件夹下,下载路径参考​​https://github.com/tesseract-ocr​​

python中pytesseract的安装_重启_04


python中pytesseract的安装_github_05


举报

相关推荐

0 条评论