NEWStandard createTask and in.php APIs. Change the address and you are connected.View API docs
GATESOLVER

CAPTCHA basics

AI image recognition and CAPTCHAs

Visual CAPTCHAs were built on problems computers could not solve. Modern recognition models solve most of them, and the way they do it explains both how solving APIs work and why sites now lean on invisible checks.

Why visual puzzles were hard, and why they stopped being hard

Early CAPTCHAs depended on a gap between human and machine vision. People read warped letters and recognize a storefront in a blurry photo without effort; the software of the early 2000s could not. Each visual CAPTCHA family was a bet that a particular perception task would stay out of reach.

Deep learning closed most of those gaps. Convolutional networks, and later transformer-based vision models, learned to read text in the wild, classify objects in cluttered scenes and locate shapes precisely, given enough labeled examples. CAPTCHA images are a narrow, repetitive domain, so models trained on them become very good at them. That is the foundation of AI-based solving and the reason visible puzzles now act mainly as a fallback behind risk scoring.

Text CAPTCHAs: reading as a sequence

A distorted text image is treated as a sequence recognition problem, the same family as reading street signs or scanned receipts. A typical pipeline has three parts:

  • Preprocessing. Normalize size and contrast, and sometimes remove known noise patterns such as crossing lines or dotted backgrounds.
  • Feature extraction. A convolutional backbone turns the image into a sequence of feature columns from left to right.
  • Sequence decoding. A recurrent or attention-based head reads that sequence and emits characters, often trained with a loss such as CTC that does not require knowing where each character begins.

The hard parts are not the letters themselves but the variations: overlapping characters, rotated glyphs, mixed fonts, similar shapes such as 0 and O, and case sensitivity. Training on many styles, or picking a model tuned to a style, handles most of it. On GateSolver this is the Image to Text type: you send the image in the body field, optionally a module for the text style, and receive text. The OCR glossary entry covers the general technique.

Image grids: classification per tile

Grid challenges such as "select all images with a bicycle" are object classification problems. The image arrives as a 3 by 3 or 4 by 4 grid, either as one picture cut into tiles or as separate pictures. A classifier decides for each tile whether it contains the target class, and the answer is the list of positive tiles.

Several details make it harder than textbook classification:

  • Partial objects. In split-image grids, a traffic light may cover a corner of one tile and most of another. Models must decide whether a sliver counts.
  • Low resolution and noise. Tiles are small and sometimes deliberately degraded.
  • Fixed vocabulary. The target classes come from a known list, identified in reCAPTCHA by codes such as /m/015qff for traffic lights. A model trained on exactly those classes outperforms a general one.

GateSolver's reCAPTCHA Image Classification task takes the image and the question and returns objects, the zero-based indexes of the tiles to click. The AWS WAF Image Classification task does the same for AWS WAF's image puzzles, taking an array of images and a question such as aws:grid:bed. Your browser automation then clicks those tiles; the image grid classification guide shows the clicking side.

Sliders and rotations: localization

Slider puzzles show a background with a cut-out gap and a loose piece; you drag the piece into place. The solving problem is localization: find the horizontal position of the gap. Approaches range from classic edge detection and template matching, which works when the gap has crisp edges, to trained detection models that cope with shadows, noise and decoy shapes designed to fool simple matching.

Rotation puzzles ask you to turn an image upright. The model estimates the current angle, often by regression or by classifying into angle bins, and returns how far to rotate.

GateSolver handles these through Vision Engine: you send the module (such as slider_1 or rotate_1), the image and, where available, the imageBackground, and you receive a value such as distance in pixels. The Vision Engine guide covers the dragging side, including why a perfectly straight, instant drag can still fail on sites that watch the movement.

Where recognition stops being the problem

For token widgets such as reCAPTCHA v3 or Cloudflare Turnstile, recognition is not the main problem at all. There is often no image to read. The widget scores the environment, and the solving service must produce a token the vendor accepts, which is a question of running the check in an environment the vendor trusts rather than seeing anything. Even for reCAPTCHA v2, the image grid is only a part of the decision; the checkbox's background signals carry much of the weight.

This is the clearest sign of how far recognition has come. Vendors have moved the decisive checks away from what can be seen, because seeing is no longer the hard part.

Accuracy, and what it depends on

Recognition quality depends on things you can partly control:

  • Send the original image. Screenshots that are scaled or compressed lose detail. Capture the element at its natural size, or read the image source directly when it is stable.
  • Send it fresh. Many challenge images expire or change on reload; recognizing an old image gives a correct answer to the wrong question.
  • Respect case. If the site is case-sensitive, enter the text exactly as returned.
  • Pass the right question. A grid answer for "bicycle" will be wrong if the page asked for "motorcycle".

When a model cannot produce a confident answer, the task ends as unsolvable and is not charged; create a new task with a fresh image rather than retrying the same one.

Speed and cost

Recognition tasks are fast and inexpensive compared with token tasks, because they are a single inference on a small image. Text images usually return under 1 seconds at $0.28 per 1,000, and grid classification at $0.28. Poll image tasks about once a second rather than every three seconds, since they finish quickly.

What this means for sites and for automation

For website owners, the lesson of the last decade is that a visual puzzle alone does not stop a determined program. It still raises costs and filters casual abuse, which is why it remains as a fallback, but real protection now comes from scoring and rate limits. For legitimate automation, such as accessibility tooling, testing your own forms or monitoring public data, recognition models make visual CAPTCHAs a solvable step in a workflow rather than a dead end. The same models must not be used for fraud, spam or account takeover, which is what these checks are meant to stop.

Common questions

What kind of model reads text CAPTCHAs?

Usually a convolutional network that extracts features from left to right, followed by a sequence decoder that outputs characters without needing their exact positions.

How does a solver know which grid tiles to click?

A classifier scores each tile for the requested object class, and the tiles above its threshold are returned as zero-based indexes.

Why do slider answers sometimes fail even when the distance is right?

Some sites also watch how the piece is dragged. An instant, perfectly straight move can be rejected even at the correct position.

Is a screenshot good enough as input?

Yes, if it is taken at natural size without scaling. Compressed or resized images lose detail and lower accuracy.

Are token CAPTCHAs solved with image recognition too?

Mostly not. Token widgets score the browser environment, so the service has to produce an accepted token rather than read an image.

Keep reading