https://blog.csdn.net/jiahao1186/article/details/90207881
pip install Pillow
pip install pytesseract
目录:D:\Programs\Python\Lib\site-packages\pytesseract
文件:pytesseract.py
from PIL import Image
import pytesseract
imageObject = Image.open('E:/IMG/timg.jpg')
print(imageObject)
print(pytesseract.image_to_string(imageObject))
N 9 A m
如果有异常,应该是之前的配置尚未生效,请尝试重启,再试之。
说明:该工具类对简单验证码解析成功,负责的,可能会有困难,还需补充算法实现。
常见问题:
https://blog.csdn.net/qq_39208536/article/details/80763972