如題,獲取到的驗(yàn)證碼只有字母+數(shù)字,簡(jiǎn)單得不能再簡(jiǎn)單了,上代碼:
# -*- coding: UTF-8 -*_
import pytesseract
from PIL import Image
image = Image.open('11.jpg')
vcode = pytesseract.image_to_string(image)
print(vcode)
運(yùn)行結(jié)果:

如題,獲取到的驗(yàn)證碼只有字母+數(shù)字,簡(jiǎn)單得不能再簡(jiǎn)單了,上代碼:
# -*- coding: UTF-8 -*_
import pytesseract
from PIL import Image
image = Image.open('11.jpg')
vcode = pytesseract.image_to_string(image)
print(vcode)
運(yùn)行結(jié)果: