1. 接口描述
接口请求域名: trro.tencentcloudapi.com 。
查询单个处理项的标注结果详情,返回结果的完整 JSON 原文。仅处理成功(或需确认场景)返回内容。
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeAnnotationResults。 |
| Version | 是 | String | 公共参数,本接口取值:2022-03-25。 |
| Region | 否 | String | 公共参数,本接口不需要传递此参数。 |
| TaskId | 是 | String | 处理项 ID 示例值:3uimegtqfkfv_1 |
3. 输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| TaskId | String | 处理项 ID 示例值:3uimegtqfkfv_1 |
| FileName | String | 视频文件名 示例值:1qLIfbvfNo_0003.mp4 |
| Status | Integer | 处理项状态:1 未处理,2 处理中,3 超时,4 异常,5待确认,6 成功 枚举值:
示例值:6 |
| ErrorMsg | String | 失败原因,成功为空 示例值:manual set for retry test |
| Result | String | 标注结果 JSON 原文,非成功状态为空 示例值:{schema,overview:{video_id,task_goal,duration_s,fps,key_objects,injected_context{task_goal,key_objects,atomic_verbs},scenes[]},subtasks[{idx,title,actions[{verb,object_labels,desc_hand_centric,desc_object_centric,atomic_actions[{verb,relations[]}]}]}]} |
| ResultSize | Integer | 标注结果字节数 示例值:2741 |
| CreateTime | String | 创建时间,Unix 时间戳(秒) 示例值:1788345644 |
| FinishTime | String | 完成时间,Unix 时间戳(秒),进行中为 0 示例值:1788345702 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 调用示例1
输入示例
POST / HTTP/1.1
Host: trro.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAnnotationResults
<公共请求参数>
{
"TaskId": "3uimegtqfkfv_1"
}
输出示例
{
"Response": {
"CreateTime": "1788345644",
"ErrorMsg": "",
"FileName": "1qLIfbvfNo_0003.mp4",
"FinishTime": "1788345702",
"Result": "{\"schema\": \"fine4.semantic\", \"version\": \"1.0\", \"overview\": {\"video_id\": \"1qLIfbvfNo_0003\", \"video_path\": \"/data/ann_videos/3uimegtqfkfv_1/1qLIfbvfNo_0003.mp4\", \"task_goal\": \"检查并手动旋转自行车脚踏板以测试传动系统\", \"duration_s\": 8.133, \"fps\": 30.0, \"w\": 1280, \"h\": 720, \"n_subtasks\": 2, \"n_actions\": 3, \"n_atomic\": 4, \"n_scenes\": 1, \"key_objects\": [\"手\", \"工具\", \"自行车\", \"脚踏板\"], \"injected_context\": {\"task_goal\": \"标注视频中的手部操作动作\", \"key_objects\": [\"手\", \"工具\"], \"atomic_verbs\": [\"拿取\", \"放置\"]}, \"scenes\": [{\"scene_idx\": 0, \"start\": 0.0, \"end\": 8.133, \"start_frame\": 0, \"end_frame\": 244, \"n_frames\": 244}]}, \"subtasks\": [{\"idx\": 0, \"title\": \"伸手接近并接触自行车脚踏板\", \"start\": 0.0, \"end\": 0.8, \"actions\": [{\"idx\": 0, \"verb\": \"reach\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手快速伸向脚踏板,左手在旁辅助移动\", \"desc_object_centric\": \"手部接近静止的自行车脚踏板\", \"start\": 0.0, \"end\": 0.8, \"atomic_actions\": [{\"idx\": 0, \"start\": 0.0, \"end\": 0.8, \"verb\": \"reach\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手快速伸向脚踏板,左手在旁辅助移动\", \"desc_object_centric\": \"手部接近静止的自行车脚踏板\", \"relations\": [], \"relation_events\": []}]}]}, {\"idx\": 1, \"title\": \"抓握并旋转脚踏板进行测试\", \"start\": 0.8, \"end\": 8.133, \"actions\": [{\"idx\": 0, \"verb\": \"grasp\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手抓住脚踏板,左手在画面外或未参与\", \"desc_object_centric\": \"脚踏板被手抓握准备旋转\", \"start\": 0.8, \"end\": 4.0, \"atomic_actions\": [{\"idx\": 1, \"start\": 0.8, \"end\": 2.0, \"verb\": \"grasp\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手抓住脚踏板,左手在画面外或未参与\", \"desc_object_centric\": \"脚踏板被手抓握准备旋转\", \"relations\": [], \"relation_events\": []}, {\"idx\": 2, \"start\": 2.0, \"end\": 4.0, \"verb\": \"rotate\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手持续转动脚踏板,带动链条运动\", \"desc_object_centric\": \"脚踏板在手作用下旋转,后轮随之转动\", \"relations\": [], \"relation_events\": []}]}, {\"idx\": 1, \"verb\": \"rotate\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手持续转动脚踏板,带动链条运动\", \"desc_object_centric\": \"脚踏板在手作用下旋转,后轮随之转动\", \"start\": 4.0, \"end\": 8.133, \"atomic_actions\": [{\"idx\": 3, \"start\": 4.0, \"end\": 8.133, \"verb\": \"release\", \"object_labels\": [\"脚踏板\"], \"desc_hand_centric\": \"右手松开脚踏板,双手逐渐移出画面\", \"desc_object_centric\": \"脚踏板停止旋转,恢复静止状态\", \"relations\": [], \"relation_events\": []}]}]}]}",
"ResultSize": 2741,
"Status": 6,
"TaskId": "3uimegtqfkfv_1",
"RequestId": "3ec3f1d6-300d-4ef4-9d79-02ed43290167"
}
}
示例2 调用示例2
输入示例
POST / HTTP/1.1
Host: trro.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeAnnotationResults
<公共请求参数>
{
"TaskId": "3ufx9vwq22ms_1"
}
输出示例
{
"Response": {
"CreateTime": "1788182323",
"ErrorMsg": "manual set for retry test",
"FileName": "1qLIfbvfNo_0003.mp4",
"FinishTime": "1788182330",
"Result": "",
"ResultSize": 0,
"Status": 4,
"TaskId": "3ufx9vwq22ms_1",
"RequestId": "3588b486-116c-43cf-9267-b337c09465f0"
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Java: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for PHP: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Go: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Node.js: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for .NET: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for C++: CNB, GitHub, Gitee
- Tencent Cloud SDK 3.0 for Ruby: CNB, GitHub, Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
| 错误码 | 描述 |
|---|---|
| InternalError | 内部错误。 |
| ResourceNotFound | 资源不存在。 |