识别率高达:99%
识别核心代码:predict.py
训练模型特征值:theta.dat (查看训练教程)
安装依赖
pip install school-api
编写 main.py 文件进行识别
# -*- coding: utf-8 -*-
import requests
from school_api.check_code import CHECK_CODE
res = requests.get('http://222.24.62.120/CheckCode.aspx')
code = CHECK_CODE.verify(res.content)
# 保存验证码
with open(code+".gif", "wb") as f:
f.write(res.content)
print (code)
github:https://github.com/dairoot/zfxfzb-code
验证码样本生成器:https://download.csdn.net/download/qq_24573659/10683651
网友评论