Files
damai/scripts/captcha_solver.py
Jeason b16a782f67
Some checks failed
Deploy static content to Pages / deploy (push) Has been cancelled
new changes
2026-03-13 12:05:03 +08:00

9 lines
217 B
Python

import pytesseract
from PIL import Image
def solve_captcha(image_path):
# 使用OCR识别验证码
image = Image.open(image_path)
captcha_text = pytesseract.image_to_string(image)
return captcha_text