美文网首页
验证码识别

验证码识别

作者: rookieyu | 来源:发表于2024-03-29 13:42 被阅读0次

1、pip install pillow

2、安装tesseract-ocr

3、书写代码

pip install pytesseract==0.1.8
from pytesseract import image_to_string
from PIL import Image
img = Image.open(r"GetValidateCode.jpg")
# print(img)
print(image_to_string(img))

报错:

image.png image.png image.png

相关文章

网友评论

      本文标题:验证码识别

      本文链接:https://www.haomeiwen.com/subject/zotptjtx.html