Skip to content
Captcha OCR

Colour captcha solverbeta

The prompt says type only the red characters. Send {"color": "red"} and every pixel that is not red is cleared before the image is read, so the answer has only the red characters.

Captcha with red and blue characters

Colours

colorNotes
redIncludes crimson and dark red
orange
yellowIncludes gold
greenLight to dark green
cyanTeal and turquoise
blueIncludes navy
purpleViolet
pinkMagenta
blackDark grey to black, low saturation

The filter works on hue and saturation, so brightness and the background colour do not matter as long as the background is not itself the target colour. Lines and noise in the target colour stay, as they would for a person.

Combine it with any engine

Synthetic accuracy

CaptchaExampleCorrectRight when reliable
Colour filterthe 3 red of 6 characters85.0%92.0%
Colour filter + lengthwith length: 384.3%92.0%

300 fresh synthetic captchas per row, scored end to end through the solver. No live captchas of this kind have been measured yet, so treat these as an upper bound for clean images. Test on your own site first.

Send a request

Swap the sample options for the ones above. Install steps are on the SDK pages.

curl -s https://captchaocr.allvoraz.com/v1/solve \
  -H "Authorization: Bearer $CAPTCHA_API_KEY" \
  -H 'Content-Type: application/json' \
  -d "{\"image\": \"$(base64 < captcha.png | tr -d '\n')\", \"numeric\": true, \"length\": 6}"

Questions

What do I send?

The usual options plus color, for example {"color": "red"} or {"color": "blue", "numeric": true}. The other characters are removed before the image is read.

Which colours?

red, orange, yellow, green, cyan, blue, purple, pink and black. Anything else returns 422.

Does it work with sums?

Yes. color runs before any engine, so {"color": "green", "math": true} reads only the green sum.

Should I set length?

If the prompt says how many characters to type, yes. It improves the read and marks a wrong count as unreliable.

How accurate is it?

It is beta. The table above is from synthetic captchas where the target colour is clearly saturated. Pale or near-grey text can drop out of the mask.