Code Monkey home page Code Monkey logo

captcharecognition's Introduction

CaptchaRecognition

End-to-end variable length Captcha recognition using CNN+RNN+Attention or CTC. 端到端的不定长验证码识别

encoder: CNN+RNN or CNN

decoder: two types of attention +no attention

目前encoder端可以选择使用CNN+RNN或CNN;decoder端有两种attention方式+不使用attention。

update(2017-10-27)

  • RNN+CTC added. 新增了 CNN+RNN + CTC 的验证码识别。

Usage

Put your font file in fonts directory, and change the font file's name in line 173 of GenCaptcha.py.

To generate training data in data/, run python GenCaptcha.py.

Run python main.py to train.

把字体文件放入fonts文件夹,并修改GenCaptcha.py中第173行的字体文件名。

运行 python GenCaptcha.py ,在data/下生成数据集captcha.npz和captcha.vocab_dict。

(GenCaptcha.py中还提供了生成tfrecord文件的函数。)

运行 python main.py训练。

Using CTC

Install warp_ctc for pytorch, and run python ctcmain.py.

安装pytorch下的warp_ctc,

按照上一节的步骤生成数据后,运行 python ctcmain.py.

Results

results of using CTC (accuracy reaches 0.95 on test set):

captcharecognition's People

Contributors

airaria avatar

Stargazers

 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.