识别图片中的文字。
任务类型
ImageToTextTask
处理方式
异步 + 轮询 /getTaskResult
参数
| Field | Type | Required | Notes |
|---|---|---|---|
type |
string | yes | ImageToTextTask |
body |
string | yes | Base64 image; data:image/...;base64, prefix allowed |
最小请求
{
"clientKey": "YOUR_API_KEY",
"task": {"type":"ImageToTextTask","body":"BASE64_IMAGE"}
}成功 solution
{"text":"abc123"}典型失败
ERROR_CAPTCHA_UNSOLVABLE, ERROR_BAD_REQUEST, ERROR_TASK_NOT_SUPPORTED