更新时间:2025-05-26 GMT+08:00
分享

2D图像场景识别

功能介绍

用户可使用该api得到图片的标签

URI

POST https://{host_url}/v1.0/{project_id}/admodel/images/scene_understanding

表1 路径参数

参数

是否必选

参数类型

描述

project_id

String

项目id

请求参数

表2 请求Body参数

参数

是否必选

参数类型

描述

image

String

图像base64编码,图片分辨率最大1000万。

响应参数

状态码:200

表3 响应Body参数

参数

参数类型

描述

predicted_tags

String

检测到的tag信息

confidences

Array of Confidence objects

检测到的对象信息

表4 Confidence

参数

参数类型

描述

type

String

类型

tag

String

标签

confidence

Number

置信度

状态码:400

表5 响应Body参数

参数

参数类型

描述

error_code

String

错误码

error_name

String

错误名称

error_msg

String

错误信息

error_suggestion

String

错误恢复建议

error_context

String

错误描述

current_time

String

当前时间

请求示例

2D图像场景识别请求体

POST https://{endpoint}/v1.0/{project_id}/admodel/images/2d-scenario-identification

响应示例

状态码:400

Bad Request

{
  "error_code" : "000003",
  "error_name" : "octopus_request_param_error",
  "error_msg" : "Request params [image] is invalid.",
  "error_suggestion" : "Please confirm that the request params [image] is correct.",
  "error_context" : "Field error on field: [image]; Message: Value is not valid.",
  "current_time" : "2023-12-13T09:56:21Z"
}

状态码

状态码

描述

200

OK

400

Bad Request

403

权限校验失败

500

系统内部错误

错误码

请参见错误码

相关文档