GithubHelp home page GithubHelp logo

anthrax3 / solving-captchas-code-examples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rdmpage/solving-captchas-code-examples

0.0 1.0 0.0 16.93 MB

Adam Geitgey's example of using machine learning to solve CAPTCHAs

Python 100.00%

solving-captchas-code-examples's Introduction

Solving CAPTCHAs code examples

@ageitgey example of using machine learning to solve CAPTCHAs as described in How to break a CAPTCHA system in 15 minutes with Machine Learning

Installing

I followed https://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/ to install OpenCV. Note that we also need h5py which was missing from the requirements.txt file.

pip3 install h5py

Before you get started

To run these scripts, you need the following installed:

  1. Python 3
  2. OpenCV 3 w/ Python extensions
  1. The python libraries listed in requirements.txt
  • Try running "pip3 install -r requirements.txt"

Step 1: Extract single letters from CAPTCHA images

Run:

python3 extract_single_letters_from_captchas.py

The results will be stored in the "extracted_letter_images" folder.

Step 2: Train the neural network to recognize single letters

Run:

python3 train_model.py

This will write out "captcha_model.hdf5" and "model_labels.dat"

Step 3: Use the model to solve CAPTCHAs!

Run:

python3 solve_captchas_with_model.py

[Note rdmp] When running on a Mac make sure you click on the image with the CAPTCHA then press any key to get the next solution. If you have the Terminal window in the foreground nothing will happen when you press a key.

solving-captchas-code-examples's People

Contributors

rdmpage 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.