拉取单个或多个OCR图片识别结果.
基本信息
Path: /ocr/batch
Method: POST
接口描述:
请求示例:
**注:测试环境域名 **http://ai-api.ttmap-devx.zuzuche.net
curl --location --request POST 'https://ai-api.tantu.com/ocr/batch'
--header 'Content-Type: application/json'
--data-raw '{"imageUrls": ["https://imgcdn5.zuzuche.com/static/17/07/f042c003dbb6323c07aa06840fd42d0d.png"]}'
请求参数
Headers
| 参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
|---|---|---|---|---|
| Content-Type | application/json | 是 | ||
| Body |
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| imageUrls | string [] | 非必须 | 图片地址数组 | item 类型: string | |
| ├─ | 非必须 |
返回数据
| 名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
|---|---|---|---|---|---|
| code | number | 非必须 | 状态码,0-正常返回,非0时为服务异常,1xxx-为网关接口异常,2xxx-为大数据AI接口服务异常 | ||
| data | object | 非必须 | 识别结果对象 | ||
| ├─ translatedText | string | 必须 | |||
| ├─ costTime | string | 必须 | |||
| ├─ stateCode | string | 必须 | |||
| ├─ stateInfo | string | 必须 | |||
| ├─ submitResult | string | 必须 | |||
| ├─ submitReqNo | string | 必须 | |||
| ├─ origin | string | 必须 | |||
| ├─ imageUrl | string | 必须 | |||
| ├─ message | string | 必须 | |||
| msg | string | 必须 | 相关异常消息 |
粤公网安备 44010602000444号