版本比较

密钥

  • 该行被添加。
  • 该行被删除。
  • 格式已经改变。

通过 createTask方法 创建识别任务,然后通过 getTaskResult 方法 获取识别结果

信息

此对象用于识别图片类型、不固定长度的英文或数字

创建任务

通过 createTask方法 创建识别任务

请求节点: 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:

状态
colourGreen
title国际节点INTERNATIONAL NODE
https://api.yescaptcha.com
状态
colourGreen
title国内节点DOMESTIC NODE
https://cn.yescaptcha.com

请求地址: Request address: https://api.yescaptcha.com/createTaskgetBalance

请求格式:Request format:POST application/json

...

Object structure

属性Attributes

类型Type

必须Required

说明Purpose

type

string

Yes

ImageToTextTaskTest

状态
title10 POINTS
->
状态
colourGreen
title8 POINTS
状态
colourYellow
titleBETA

ImageToTextTaskM1

状态
title15 POINTS
->
状态
colourGreen
title10 POINTS
异步任务,需要先createTask 再getResult Asynchronous task,first createTask then getResult

body

string

图片的base64编码内容(不要换行符)(不要dataYes

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

...

Request example:

代码块
languagejson
{
    "clientKey":"cc9c18d3e263515c2c072b36a7125eecc078618f",
    "task":
    {
        "type":"ImageToTextTaskTest",
        "body": "/9j/4AAQSkZJRgABA......" # base64编码后的图片BASE64_BODY_HERE
    }
}

...

Response example

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

...