BoundingBox
段落文本框位置:x,y代表左上顶点,width和height代表宽高
被如下接口引用:ImageTranslateLLM。
名称 | 类型 | 描述 |
---|---|---|
X | Integer | 左上顶点x坐标 示例值:0 |
Y | Integer | 左上顶点y坐标 示例值:0 |
Width | Integer | 宽 示例值:10 |
Height | Integer | 高 示例值:10 |
GetFileTranslateData
文件翻译任务结果
被如下接口引用:GetFileTranslate。
名称 | 类型 | 描述 |
---|---|---|
TaskId | String | 任务ID 示例值:"12132323" |
Status | String | 任务状态 - init:任务已初始化 - wait:任务等待执行 - success:任务执行成功 - fail:任务执行失败 示例值:success |
FileData | String | 文件数据,目标文件必须小于50M,否则请通过回调方式请求文件翻译接口 注意:此字段可能返回 null,表示取不到有效值。 示例值:eGNmYXNkZmFzZmFzZGZhc2RmCg== |
Message | String | 错误提示 注意:此字段可能返回 null,表示取不到有效值。 示例值:error: 404 - Not Found |
Progress | Integer | 任务进度 示例值:100 |
UsedAmount | Integer | 本次翻译消耗的字符数 示例值:10 |
ImageRecord
图片翻译结果
被如下接口引用:ImageTranslate。
名称 | 类型 | 描述 |
---|---|---|
Value | Array of ItemValue | 图片翻译结果 |
ItemValue
翻译结果
被如下接口引用:ImageTranslate。
名称 | 类型 | 描述 |
---|---|---|
SourceText | String | 识别出的源文 |
TargetText | String | 翻译后的译文 |
X | Integer | X坐标 |
Y | Integer | Y坐标 |
W | Integer | 宽度 |
H | Integer | 高度 |
Task
文件翻译请求的返回数据
被如下接口引用:FileTranslate。
名称 | 类型 | 描述 |
---|---|---|
TaskId | String | 任务ID,可通过此ID在轮询接口获取识别状态与结果。注意:TaskId数据类型为字符串类型 示例值:"12132323" |
TransDetail
大模型图片翻译详情信息
被如下接口引用:ImageTranslateLLM。
名称 | 类型 | 描述 |
---|---|---|
SourceLineText | String | 当前行的原文本 示例值:你好 |
TargetLineText | String | 当前行的译文 示例值:hello |
BoundingBox | BoundingBox | 段落文本框位置 示例值:{ "Height": 26, "Width": 356, "X": 527, "Y": 25 } |
LinesCount | Integer | 行数 示例值:1 |
LineHeight | Integer | 行高 示例值:10 |
SpamCode | Integer | 正常段落spam_code字段为0;如果存在spam_code字段且值大于0(1: 命中垃圾检查;2: 命中安全策略;3: 其他。),则命中安全检查被过滤。 示例值:0 |