如题,获取到的验证码只有字母+数字,简单得不能再简单了,上代码:
# -*- coding: UTF-8 -*_
import pytesseract
from PIL import Image
image = Image.open('11.jpg')
vcode = pytesseract.image_to_string(image)
print(vcode)
运行结果:
如题,获取到的验证码只有字母+数字,简单得不能再简单了,上代码:
# -*- coding: UTF-8 -*_
import pytesseract
from PIL import Image
image = Image.open('11.jpg')
vcode = pytesseract.image_to_string(image)
print(vcode)
运行结果:
本文标题:Python:简单的验证码识别
本文链接:https://www.haomeiwen.com/subject/iihtdftx.html
网友评论