generate-captcha

Crates.iogenerate-captcha
lib.rsgenerate-captcha
version0.1.0
sourcesrc
created_at2021-08-31 03:18:59.301192
updated_at2021-08-31 03:18:59.301192
descriptionGenerate a training dataset of captchas. But do it really really fast.
homepagehttps://github.com/aalekhpatel07/captcha-generator/
repositoryhttps://github.com/aalekhpatel07/captcha-generator/
max_upload_size
id444829
size25,027
Aalekh Patel (aalekhpatel07)

documentation

README

captcha-generator

Generate large amounts of captchas (in parallel) with a simple binary written in Rust.

Note: It is really FAST. (Generates 1500 captcha per second which is about 12 x faster compared to 125 captchas per second of a previous Numpythonic implementation.)

Usage

Download the binary from the recent release.

Then:

captcha-generator [number-of-captchas] [path/to/output/dir]

The text of the captcha will be stored in the filename.

Examples

  1. Generate 100 random captchas to a data directory inside your current working directory.
captcha-generator 100 ./data
  1. Generate 1 random captcha to a './data/train' directory inside your current working directory.
captcha-generator 1 ./data/train

produces ./data/train/qgC6z.png

qgC6z.png

Commit count: 8

cargo fmt