GithubHelp home page GithubHelp logo

campuslifeceo / captcha-breaking Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lllcho/captcha-breaking

0.0 2.0 0.0 81.49 MB

DataCastle CAPTCHA-breaking Challenge

License: MIT License

Python 100.00%

captcha-breaking's Introduction

Installation

Testing environment
ubuntu14.04 + python2.7

Direct dependencies

  • keras (required version of theano : 0.7.1)
  • python-opencv

Installation pipeline recommended
1 Install Anaconda (alternative) to replace default python;

2 Configure CUDA and alter ~/.theanorc (ignore the step if not use GPU);

vim ~/.theanorc

Then add:

[global]
  device = gpu
  floatX = float32

3 Install keras: using the default or specified version (0.1.2) to avoid the problems caused by changed API of the latest version;

cd keras-master  
python setup.py install

4 Configure openCV: sudo apt-get install python-opencv, then add cv2.so to the python path.

Note: the codes work for windows as well, just make sure the python dependencies have been installed.

How to use

1 Change the input (where the CAPTCHA pictures are stored) and output path in the script;
2 run python test_type*N*.py.

Testing results

Type Accuracy
type1 0.92
type2 0.99
type3 0.99
type4 1
type5 0.74
type6 0.37

Find more testing data here


中文说明

安装

测试环境:ubuntu14.04+python2.7

直接依赖:

  • keras(theano版本要求0.7.1)
  • python-opencv

推荐安装步骤:

  1. 安装 Anaconda 或者点击这里下载安装并取代系统默认Python
  2. 配置CUDA并修改~/.theanorc文件(不使用gpu可省略这一步)

vim ~/.theanorc 然后添加: [global] device=gpu floatX=float32

  1. 由于最新版keras API发生改变,请使用自带版本,或下载指定版本(0.1.2)

cd keras-master python setup.py install

  1. 配置opencv: sudo apt-get install python-opencv 然后将cv2.so添加到PYTHON路径

代码在windows下也测试通过,安装windows版本python依赖即可

使用

  1. 打开脚本修改验证码图片所在路径以及结果输出路径
  2. 运行命令python test_type*N*.py

测试结果

类型 识别率
type1 0.92
type2 0.99
type3 0.99
type4 1
type5 0.74
type6 0.37
更多测试数据下载地址

captcha-breaking's People

Contributors

lllcho avatar

Watchers

James Cloos avatar Jensen 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.