https://github.com/storopoli/solving-captchas
Tensorflow Keras CNN to solve Captchas
https://github.com/storopoli/solving-captchas
captcha computer-vision keras keras-tensorflow tensorflow
Last synced: about 1 year ago
JSON representation
Tensorflow Keras CNN to solve Captchas
- Host: GitHub
- URL: https://github.com/storopoli/solving-captchas
- Owner: storopoli
- License: mit
- Created: 2019-02-22T12:15:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-22T12:17:44.000Z (over 7 years ago)
- Last Synced: 2025-03-25T11:49:23.620Z (over 1 year ago)
- Topics: captcha, computer-vision, keras, keras-tensorflow, tensorflow
- Language: Python
- Size: 20 MB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Solving Captchas
First retrieved from: https://medium.com/@ageitgey/how-to-break-a-captcha-system-in-15-minutes-with-machine-learning-dbebb035a710
Updated to use only Keras as a TensorFlow module
### Before you get started
To run these scripts, you need the following installed:
1. Python 3
2. OpenCV 3 w/ Python extensions
- I highly recommend these OpenCV installation guides:
https://www.pyimagesearch.com/opencv-tutorials-resources-guides/
3. 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