-
Notifications
You must be signed in to change notification settings - Fork 2
Configuration
Sepehr0Day edited this page Jun 13, 2026
·
1 revision
CaptchaConfig controls shared visual and output behavior.
from CaptchaGenerator import CaptchaConfig
config = CaptchaConfig(
width=960,
height=540,
output_format="WEBP",
quality=88,
background_color="#f8fafc",
foreground_color="#172033",
accent_colors=("#ef4444", "#3b82f6", "#22c55e"),
fonts=("custom.ttf",),
font_size=42,
line_width=4,
padding=32,
accessibility_text="Accessible challenge description",
random_seed=42,
)Visual generators return ChallengeResult with path, answer, prompt,
metadata, accessibility_text and mime_type.
- Home
- Installation
- Quick-Start
- Configuration
- Core-API
- Generator-API-Reference
- Core-Utilities
- Supported-CAPTCHAs
- All-Examples
- Text-and-Media-CAPTCHAs
- Logic-CAPTCHAs
- Image-CAPTCHAs
- Selection-CAPTCHAs
- Puzzle-CAPTCHAs
- Visual-Reasoning-CAPTCHAs
- Tkinter-Examples
- Web-Integration
- Architecture
- Creating-a-Generator
- Security
- Publishing
- Migration-to-2.0
- FAQ