如题,获取到的验证码只有字母+数字,简单得不能再简单了,上代码:
# -*- 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)
运行结果: