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