Skip to content

Image CAPTCHAs

Sepehr0Day edited this page Jun 13, 2026 · 2 revisions

Image CAPTCHAs

ImageRandomCaptcha

Selects a random image and returns answer choices derived from filenames.

Returns: (selected_filename, selected_name, extension, choice_names).

The source folder must contain PNG or JPEG images with meaningful filenames.

Example: Examples/CaptchaExamples/ImageRandomCaptcha/

ImageDirectionCaptcha

Selects an image and infers its direction from the filename.

Supported names include Up, Down, Left, Right and diagonal variants.

Returns: (filename, direction).

Example: Examples/CaptchaExamples/ImageDirectionCaptcha/

ImageGridCaptcha

Builds a grid containing target images and distractors.

Returns: ChallengeResult; answer is a zero-based list of matching cells.

Key parameters: path_folder, target_name, grid_size.

Client UI should allow multiple tile selection.

Example: Examples/CaptchaExamples/ImageGridCaptcha/

RotateImageCaptcha

Rotates an upright source image and asks how to restore it.

Returns: ChallengeResult; answers are clockwise, counterclockwise or 180.

Metadata includes the applied rotation and answer options.

Example: Examples/CaptchaExamples/RotateImageCaptcha/

UpsideDownObjectCaptcha

Displays repeated objects with one rotated object.

Returns: ChallengeResult; answer is a zero-based item index.

Key parameters: image_path, item_count, rotation.

Example: Examples/CaptchaExamples/UpsideDownObjectCaptcha/

Clone this wiki locally