-
Notifications
You must be signed in to change notification settings - Fork 2
Logic CAPTCHAs
Creates a plain arithmetic expression.
Returns: (expression, integer_answer).
Use this when the UI should render the expression itself.
Example: Examples/CaptchaExamples/MathCaptcha/
Renders an arithmetic expression into an image.
Returns: ChallengeResult.
Key parameters: fonts, difficulty, style.
Example: Examples/CaptchaExamples/MathImageCaptcha/
Creates a valid arithmetic or geometric sequence and asks for the next number.
Returns: ChallengeResult.
Metadata:
-
sequence: displayed values -
rule:arithmeticorgeometric -
rule_value: step or ratio
Never send rule metadata to an untrusted client.
Example: Examples/CaptchaExamples/SequenceCaptcha/
Generates a compact logic question such as comparisons or numeric reasoning.
Returns: ChallengeResult.
Key parameters: fonts, difficulty.
Example: Examples/CaptchaExamples/LogicChallengeCaptcha/
Renders application-defined questions.
Provide one of:
-
questionandanswer questions=[(question, answer), ...]provider=lambda: (question, answer)
Returns: ChallengeResult; metadata includes the question and answer type.
Example: Examples/CaptchaExamples/CustomQuestionCaptcha/
- 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