Skip to main content
POST
OCR 服务

Authorizations

Authorization
string
header
required

标准的 HTTP Bearer 认证方式,在 API Keys 页面获取密钥。

Body

multipart/form-data
file
file
required

待识别的图片文件(如 JPG、PNG)

tool_type
enum<string>
required

OCR识别工具类型,可选 hand_write(手写体识别)

Available options:
hand_write
language_type
enum<string>

语言/识别模型类型,可选 CHN_ENG等

Available options:
CHN_ENG,
AUTO,
ENG,
JAP,
KOR,
FRE,
SPA,
POR,
GER,
ITA,
RUS,
DAN,
DUT,
MAL,
SWE,
IND,
POL,
ROM,
TUR,
GRE,
HUN,
THA,
VIE,
ARA,
HIN
probability
boolean
default:false

是否返回置信度(概率)信息。true 为返回

Example:

true

Response

结果获取成功

task_id
string
required

OCR识别任务ID

Example:

"ce2641ced3e34e67b47f3b0feeb25aee"

message
string
required

结果状态描述

Example:

"成功"

status
enum<string>
required

任务处理状态

Available options:
succeeded,
failed
Example:

"succeeded"

words_result_num
integer
required

识别到的文本块/行数

Example:

4

words_result
object[]

每个识别文本块/行的详细结果