Supported scripts
| script | Languages | Characters |
|---|---|---|
devanagari | Hindi, Marathi, Nepali, Konkani | क ख ग … ० १ २ |
bengali | Bengali | ক খ গ … ০ ১ ২ |
assamese | Assamese (Bengali letters with ৰ and ৱ) | ক ৰ ৱ … ০ ১ ২ |
gurmukhi | Punjabi | ਕ ਖ ਗ … ੦ ੧ ੨ |
gujarati | Gujarati | ક ખ ગ … ૦ ૧ ૨ |
odia | Odia | କ ଖ ଗ … ୦ ୧ ୨ |
tamil | Tamil | க ங ச … ௦ ௧ ௨ |
telugu | Telugu | క ఖ గ … ౦ ౧ ౨ |
kannada | Kannada | ಕ ಖ ಗ … ೦ ೧ ೨ |
malayalam | Malayalam | ക ഖ ഗ … ൦ ൧ ൨ |
Vowels, consonants, vowel signs, virama, anusvara, visarga and the native digits are covered. Rare letters (vocalic R/L, nukta forms, Om) are not, since captcha generators do not use them.
Options
{"script": "bengali"}reads Bengali letters and digits.{"script": "assamese"}reads Assamese: the Bengali letters plus ৰ (ra) and ৱ (wa).{"script": "tamil", "numeric": true}reads only Tamil digits.{"script": "telugu", "color": "red"}reads only the red characters. See the colour filter.
length is ignored for these scripts, because one letter can be several Unicode code points.
Synthetic accuracy
| Captcha | Example | Correct | Right when reliable |
|---|---|---|---|
| Devanagari | Hindi, Marathi, Nepali | 74.7% | 85.5% |
| Bengali | its own Bengali-script model | 85.7% | 90.7% |
| Assamese | Bengali letters with ৰ ৱ; its own model | 87.0% | 91.6% |
| Gurmukhi | Punjabi | 80.0% | 87.9% |
| Gujarati | 75.0% | 87.1% | |
| Odia | 80.3% | 92.9% | |
| Tamil | 87.7% | 93.8% | |
| Telugu | 58.7% | 78.5% | |
| Kannada | 80.7% | 91.5% | |
| Malayalam | 89.3% | 95.5% |
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?
POST the image to /v1/solve with script set to the captcha's script, for example {"script": "tamil"}. text is returned in Unicode (NFC). Add numeric: true when the captcha is only native digits.
Are native digits converted to 0-9?
No. text keeps the characters the captcha shows, such as ௩௭. Convert on your side if the form expects ASCII.
Does it read Hindi sums?
A sum written in Hindi words, such as बीस + पाँच, is the Hindi math engine: math: true and hindi: true. script is for codes that are just letters or digits.
Can I mix script with math, uppercase or symbols?
No. Those options are for Latin captchas, and the API returns 422 if you combine them with a non-Latin script.
How accurate is it?
It is beta. The table above is from synthetic captchas. No live captchas in these scripts have been measured yet, so try a batch from your site before you rely on it.
