补充抠图模式调用说明
说明complex语义分割与flat纯色背景抠图 明确纯色背景优先使用flat并移除内部实现术语
This commit is contained in:
@@ -1122,7 +1122,7 @@
|
||||
"tags": ["Editor Images"],
|
||||
"operationId": "removeExternalEditorImageBackground",
|
||||
"summary": "去除编辑器图片背景",
|
||||
"description": "提交已有静态图片素材的异步去背景任务。sourceImageSrc 只接受当前账号拥有的稳定 objectKey、项目资源 ID 或素材 ID;禁止 Data URL、Blob URL 和临时 signed URL。assetKind 只能表达静态图片,并且存在权威来源记录时必须与其类型一致;视频、音频、动画和图片序列在入队前返回 400。服务端固定使用 complex 去背景模式,不会在失败时切换到其它 provider。需要写入画布时提供 projectId 与 canvasCompletion;仅需原位替换既有图层时提供 projectId 与 targetLayerId,且来源与目标必须指向同一权威对象。",
|
||||
"description": "提交已有静态图片素材的异步去背景任务。sourceImageSrc 只接受当前账号拥有的稳定 objectKey、项目资源 ID 或素材 ID;禁止 Data URL、Blob URL 和临时 signed URL。assetKind 只能表达静态图片,并且存在权威来源记录时必须与其类型一致;视频、音频、动画和图片序列在入队前返回 400。complex 使用语义分割识别前景,flat 用于纯色背景抠图;确定背景为纯色时优先使用 flat。需要写入画布时提供 projectId 与 canvasCompletion;仅需原位替换既有图层时提供 projectId 与 targetLayerId,且来源与目标必须指向同一权威对象。",
|
||||
"security": [
|
||||
{
|
||||
"ExternalApiKey": []
|
||||
@@ -3215,12 +3215,12 @@
|
||||
"type": ["string", "null"],
|
||||
"enum": ["complex", "flat", null],
|
||||
"default": "complex",
|
||||
"description": "抠图模式。不填按 complex 处理;flat 使用纯色背景管线。"
|
||||
"description": "抠图模式。不填按 complex 处理;complex 使用语义分割识别前景,flat 用于纯色背景抠图。确定背景为纯色时优先使用 flat。"
|
||||
},
|
||||
"screenColor": {
|
||||
"type": ["string", "null"],
|
||||
"pattern": "^(auto|#[0-9A-Fa-f]{6})$",
|
||||
"description": "仅 flat 模式使用。可传 auto、#RRGGBB 或省略;auto 和省略由 BgFilter 自动检测背景色。complex 搭配此字段返回 400。"
|
||||
"description": "仅 flat 模式使用。可传 auto、#RRGGBB 或省略;auto 和省略由服务自动检测背景色。complex 搭配此字段返回 400。"
|
||||
},
|
||||
"projectId": {
|
||||
"type": ["string", "null"],
|
||||
|
||||
Reference in New Issue
Block a user