先写上一个简洁无脑操作的识别
""" 需要安装 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)
后续会补上一个专业版的