date: 2016-12-16 10:48:50
可处理简单的数字验证码。
例如:

import pytesseract
from PIL import Image
image = Image.open('vcode.gif')
vcode = pytesseract.image_to_string(image)
print(vcode)
结果:

对于复杂的字母等不可识别。
date: 2016-12-16 10:48:50
可处理简单的数字验证码。
例如:
import pytesseract
from PIL import Image
image = Image.open('vcode.gif')
vcode = pytesseract.image_to_string(image)
print(vcode)
结果:
本文标题:【爬虫】(三)爬虫之处理简单验证码
本文链接:https://www.haomeiwen.com/subject/iaagfxtx.html
网友评论