通用OCR识别
热门 识别服务 SLA 99.95%累计调用 0 次
通用文字OCR识别,支持多语言、表格、印刷体。
基于深度学习的通用文字OCR识别,支持中英文、数字、表格、印刷体,识别准确率>99%。
收费标准
按量计费
¥0.0500/次
每次调用扣费
QPS 限制
50
每秒最大并发
响应时间
10s
超时上限
对接文档
Request Description · 请求说明
请求方式 POST,参数 image 为图片URL或Base64,lang 为语言(默认chi)。
Endpoint · 接口地址
Request Params · 请求参数
| 参数名 | 类型 | 必填 | 默认值 | 说明 | 示例 |
|---|---|---|---|---|---|
| appkey | string | 必填 | - | 用户API密钥 | ak_xxx |
| image | string | 必填 | - | 图片URL或Base64编码 | https://example.com/test.jpg |
| type | string | 必填 | object | 识别类型 object/ocr | object |
Request Example · 请求示例
curl -X POST https://api.cli.cc/v1/ocr/general -H "Content-Type: application/json" -d '{"appkey":"ak_xxx","image":"https://example.com/test.jpg","lang":"chi"}'
Response Fields · 响应字段说明
{"code":"业务码","msg":"提示","data":{"text":"识别文本","blocks":[{"text":"文本块","position":"位置"}]}}
Response Example · 响应示例
{"code":0,"msg":"ok","data":{"text":"Hello 世界","blocks":[{"text":"Hello","position":"[10,20,100,50]"}]}}
Error Codes · 错误码说明
| 错误码 | 说明 |
|---|---|
| 0 | 成功 |
| 20001 | 参数错误 |
| 20007 | 图片下载失败 |