项目作者: dukn

项目描述 :
Recognize captcha using deep learning
高级语言: Python
项目地址: git://github.com/dukn/Captcha-recognition-TF.git
创建时间: 2017-02-05T10:24:11Z
项目社区:https://github.com/dukn/Captcha-recognition-TF

开源协议:

下载


Captcha-recognition-TF

A cool project using deep learning to decaptcha

Getting Started

Project using deep learing with tensorflow framework to recognition 5 digits captcha.
Using convolutional neural network, this project is so powerful but also requires a lot of data.
Data is captchas generated by Captcha-php.

In this project, I have 2 main file:

  • training_captcha.py: Training model
  • recognition.py: Recognition captcha

Prerequisites

You must have knowledge of deep learning and tensorflow to understand it.
Also you need to install the following libs:

  1. python2.7
  2. tensorflow
  3. numpy
  4. pickle
  5. matplotlib
  6. scipy

Installing

Here I will direct you to install on linux (Ubuntu).
You can do the same on Windows and MacOS yourself.

Install tensorflow, you can follow the detailed instructions here
or below:

  1. $ sudo apt-get install python-pip python-dev # for Python 2.7
  2. $ sudo pip install tensorflow # Python 2.7; CPU support (no GPU support)

Install numpy and scipy

  1. $ sudo pip install numpy scipy

Install cpickle :

  1. $ sudo pip install cpickle

Install matplotlib:

  1. $ sudo apt-get install python-matplotlib

It’s so easy!

Running the tests

Generated Captchas and put them at ./Captcha/lv3/ and lable at ./Captcha/pass3.txt.

Train model by run training_captcha.py:

  1. $ python training_captcha.py

And supervise youself.
You can break with Ctrl + C whenever you want.

Recognition by run recognition.py:

  1. $ python recognition.py

Authors

  • Dukn - Initial work - Dukn

TOOLS

  • Deep leaning for computer vision
  • Tensorflow framework
  • python