Colours
| color | Notes |
|---|---|
red | Includes crimson and dark red |
orange | |
yellow | Includes gold |
green | Light to dark green |
cyan | Teal and turquoise |
blue | Includes navy |
purple | Violet |
pink | Magenta |
black | Dark 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
{"color": "red", "length": 4}: four red letters or digits, text engine.{"color": "blue", "numeric": true}: only the blue digits.{"color": "green", "math": true}: the green sum, math engine.{"color": "red", "script": "tamil"}: red Tamil characters, other scripts.
Synthetic accuracy
| Captcha | Example | Correct | Right when reliable |
|---|---|---|---|
| Colour filter | the 3 red of 6 characters | 85.0% | 92.0% |
| Colour filter + length | with length: 3 | 84.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.
