CaptchaCracker
Project description
CaptchaCracker
Introduction
CaptchaCracker is an open source Python library that provides functions to create and apply deep learning models for Captcha Image recognition. You can create a deep learning model that recognizes numbers in the Captcha Image as shown below and outputs a string of numbers, or you can try the model yourself.
Input
Output
023062
Examples
- Before execution, training data image files in which the actual value of the Captcha image is indicated in the following file names should be prepared.
Train and save the model
import glob
from CaptchaCracker import CreateModel
train_img_path = glob.glob("../data/train_numbers_only/*.png")
CM = CreateModel(train_img_path)
model = CM.train_model(epochs=100)
model.save_weights("../model/weights.h5")
Load a saved model to make predictions
from CaptchaCracker import ApplyModel
target_img_path = "../data/target.png"
AM = ApplyModel(target_img_path)
AM.load_saved_weights("../model/weights.h5")
pred = AM.predict()
print(pred)
References
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
CaptchaCracker-0.0.1.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for CaptchaCracker-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef563feda2b4a6e430c84e66a1285de246e8fc23a29251ccdf9d01e9720f7b4d |
|
MD5 | 0ae11f759e5fae019c36be0f5a6f0f63 |
|
BLAKE2b-256 | 429aa62de1555c51976bf5453472e2f8d3b5dcf1c4a18bd82eccac94584109b1 |