python 验证码识别

 先写上一个简洁无脑操作的识别

"""
需要安装
pillow、pytesseract、tesseract-ocr
windows testeract-ocr安装失败方法:
https://www.cnblogs.com/hupeng1234/p/7136442.html
"""

import pytesseract
from PIL import Image
image = Image.open('wm.gif')
pytesseract.pytesseract.tesseract_cmd = r'D:Program Files (x86)Tesseract-OCR	esseract.exe'
vcode = pytesseract.image_to_string(image)
print(vcode)

 后续会补上一个专业版的

身是菩提树,心如明镜台,时时勤拂拭,勿使惹尘埃。
原文地址:https://www.cnblogs.com/birdofparadise/p/8301639.html