Code Monkey home page Code Monkey logo

checkcoderecognition's Introduction

正方教务系统验证码识别工具

概述

人工标记了2000个正方教务系统登录网站的验证码,利用其训练支持向量机(SVM)模型,训练后单字符识别精度达98%,验证码整体识别精度达94%。将其封装成库 ZFCheckCode,提供简单易用的验证码识别API,从而方便爬取教务网站信息。

安装和使用

下载 ZFCheckCode-0.0.1.tar.gz文件 用pip工具进行安装

pip install ZFCheckCode-0.0.1.tar.gz

API

recognizer.recognize_checkcode('验证码图片所在路径') #识别验证码,返回一个包含四个字符的字符串
from ZFCheckCode import labeller #开始人工标记
trainner.update_model() #更新模型(加入更多标记后)

注意事项

  1. 验证码图片为正方教务系统网站的CheckCode.aspx,将其下载为.png格式文件,不要修改大小或任何其他属性信息
  2. 要使用人工标记功能直接添加一行import即可,自动运行图形界面程序帮助标记

例子

from ZFCheckCode import recognizer
from ZFCheckCode import labeller #generate a gui program to help you label more checkcodes
from ZFCheckCode import trainner 
trainner.update_model() 
code = recognizer.recognize_checkcode('./checkcode.png')
print(code)

checkcoderecognition's People

Contributors

sctpan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.