Recognition of English numerical verification codes
Deep learning-based CAPTCHA recognition service.
This is only a basic call example. See the full docs for more parameters and advanced usage.
View DocsImage to Text API
Recognize English letters and numbers in images.
Image input
Encode the image to be recognized as Base64 and submit it.
Text output
Read the English letters and numbers from the returned text field.
Synchronous integration
Complete recognition and receive the result in a single request.
Start with your first request
Get a Key, copy the request, and see the corresponding JSON response below.
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
python3 - <<'PYCODE'
import base64, json
from pathlib import Path
image = base64.b64encode(Path("captcha.png").read_bytes()).decode()
Path("request.json").write_text(json.dumps({"image": image}))
PYCODE
curl --request POST "https://api.acedata.cloud/captcha/recognition/image2text" \
--header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
--header "Content-Type: application/json" \
--data @request.jsonThe following is an excerpt of key fields from the current API response. The task identifier, usage, and generated content depend on the values returned by your request.
{
"text": "7364",
"elapsed": 31.6
}Read the result
First, save the image to be recognized as captcha.png. Read the recognized text returned by the API and validate the result as needed for your business.
Keep the trace_id to help troubleshoot errors. Authentication and quota settings are available under application and Key management in the console.
Requests and costs
Refer to the current API and service page for request parameters and pricing. If an error occurs, keep the trace_id to help troubleshoot.
Integrate the Image to Text API into your application
Continue to the full guide for parameters, result fields, and error handling.
Deep learning-based variable-length alphanumeric CAPTCHA recognition API.
Packages
We offer various credit packages. The more you purchase, the higher the discount you receive.
up to46% OFF