GithubHelp home page GithubHelp logo

zeynelsamak / captcha-decoder Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 363 KB

A captcha solver that using machine learning and deep learning

License: MIT License

Python 5.89% Jupyter Notebook 94.11%

captcha-decoder's Introduction

Capthca-Decoder

A captcha solver that using machine learning(Nearest Neigbour) and deep learning(CNN,keras)

Decoding Steps

  • Data Collection
    • Collecting the captcha images with the ground truth text
  • Preprocessing
    • Extract the letter from the captcha images by using opencv methods (threshold > erode/dilate > countour)
    • Save the each letter to related the file - For example: All 0s to the the 0, all 9 letters to the 9 file
  • Training
    • Build the CNN network by using keras or use scikit-learn to model NNeigbour classifier
    • Train the model with the extracted letters
    • When the model performance reach the optimum level, save the model weights for inference
  • Testing
    • Use local file, url or base64 based captcha image
    • Extract the letter as in preprocessing stage
    • Run the inference model on each letter that extracted
    • Combine the letter prediction in order, and return the final result

Result

alt text

TODO

  • Extend the explanation of the work
  • Train the network without to parsing the letter. Feed whole image into the netwokr and predict the captcha text

Acknowledgement

This work was inspired by work of Adam Geitgey's medium post

captcha-decoder's People

Contributors

zeynelsamak avatar

Stargazers

Marius Karnauskas avatar James Watson avatar Sunil Thapa avatar

Watchers

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