转至元数据结尾
转至元数据起始

正在查看旧版本。 查看 当前版本.

与当前比较 查看页面历史

« 上一页 版本 3 当前的 »

Create a recognition task through the use of the "createTask" method, and subsequently retrieve the recognition results by employing the "getTaskResult" method.

This object is intended for recognizing images containing non-fixed length English or numerical characters.

Initiating the task

Create a recognition task by utilizing the "createTask" method.

Request node: INTERNATIONAL NODE https://api.yescaptcha.com DOMESTIC NODE https://cn.yescaptcha.com

Request address: https://api.yescaptcha.com/getBalance

Request format:POST application/json

Object structure

Attributes

Type

Required

Purpose

type

string

Yes

ImageToTextTaskTest 10 POINTS ->8 POINTS BETA

ImageToTextTaskM1 15 POINTS ->10 POINTS Asynchronous task,first createTask then getResult

body

string

Yes

File body encoded in base64. Make sure to send it without line breaks.(do not data:image/*********;base64,content

Request example:

{
    "clientKey":"cc9c18d3e263515c2c072b36a7125eecc078618f",
    "task":
    {
        "type":"ImageToTextTaskTest",
        "body": "/9j/4AAQSkZJRgABA......" # BASE64_BODY_HERE
    }
}

Response example

{
    "errorId": 0,
    "errorCode": "",
    "errorDescription": "",
    "status": "ready",
    "solution": {
        "text": "44795""
    },
    "taskId": "2376919c-1863-11ec-a012-94e6f7355a0b",
}

  • 无标签