立即下载天幕AI,一键生成专业级音视频大片!
下载APP

1简介

1.1服务能力简介

天幕「图像识别」专为解决图像识别痛点而生,通过AI特征识别解析技术,实现图片内容的精准识别。用户仅需输入一张图片,模型即可根据客户要求完成参考主体识别、参考姿势识别、参考边缘识别、参考景深识别。

1.2效果展示

输入图片

效果图片

2Prompt engine

不涉及

3API接入

3.1请求地址
https://open-api.wondershare.cc/v1/open/capacity/application/tm_reference_img2mask

3.2请求参数

Method: POST

Headers

参数名称

参数值

是否必须

示例

备注

Content-Type

application/json

Authorization

Basic xxx

安全验证信息,格式为:Basic {access_token},其中access_token为令牌,通过给的app_key和app_secret生产,生成方式为:base64(app_key:app_secret)

X-App-Key

分配的appkey

body:

名称

类型

是否必须

默认值

备注

其他信息

wsid

integer

必须

用户ID

这个的wsid必传

callback

string

非必须

算法结果回调url地址:例如 http://www.wondershare.cn/fx

params

string

非必须

透明参数

template_info

object []

必须

item 类型: object

|-input_params

object

必须

|-control_type

string

必须

输入控制类型,分别对应:0 - 轮廓控制(边缘)1 - 姿势控制2 - 角色控制(主体)3 - 景深控制

|-init_image

string

必须

需要识别的图像地址,jpg/png

|-template_id

string

必须

固定tm_reference_img2mask_template_spatial

storage_info

object

必须

这个stroage_info建议对b端隐藏, 但是必传

|-input

object

必须

|-oss

object

必须

|-type

integer

非必须

固定0

|-output

|-url

object

必须

|-expire_time

integer

必须

固定1

3.3返回数据

名称

类型

是否必须

默认值

备注

其他信息

code

number

必须

错误码

msg

string

必须

错误信息

data

object

非必须

备注:

3.4完整示例