Skip to content

Quick Start

Sepehr0Day edited this page Jun 13, 2026 · 1 revision

Quick Start

from CaptchaGenerator import CaptchaConfig, TextCaptcha

config = CaptchaConfig(width=720, height=240, random_seed=42)

answer = TextCaptcha(config).generate(
    number_gen=6,
    values_captcha="ABCDEFGHJKLMNPQRSTUVWXYZ23456789",
    name_export="captcha",
    path_export="./output",
    fonts=[],
    colors=["navy", "darkred"],
    backgrounds=[],
    difficulty="medium",
    style="modern",
)

Keep answer on the server and send only the generated public asset to the client.

For runnable examples, see:

Examples/CaptchaExamples/<CaptchaName>/
  simple.py
  interactive.py

Clone this wiki locally