- Ability
- File
- Generic
- Request
- Group
- Info
- Message
OCR图像识别
POST
/ocr_image
请求参数
Body 参数application/json
image
string
必需
示例
{
"image": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/ocr_image' \
--header 'Content-Type: application/json' \
--data-raw '{
"image": "string"
}'
返回响应
🟢200成功
application/json
Body
status
enum<string>
状态
枚举值:
ok
retcode
integer
返回代码
data
object
返回数据
texts
array [object {3}]
文本信息列表
language
string
语言
示例
{
"status": "ok",
"retcode": 0,
"data": {
"texts": [
{
"text": "string",
"confidence": 0,
"coordinates": [
{
"x": 0,
"y": 0
}
]
}
],
"language": "string"
}
}