From 001ae5b10b0123b90ac2ffef7bab0284685f10a7 Mon Sep 17 00:00:00 2001 From: zhouchengrong Date: Mon, 13 Jan 2025 15:41:37 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=88=E6=96=B0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=89:=20design=20=E9=80=8F=E6=98=8E=E9=80=89=E5=8C=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E6=8E=A5=E5=8F=A3=E8=AF=B4=E6=98=8E=20fix?= =?UTF-8?q?=EF=BC=88=E4=BF=AE=E5=A4=8Dbug=EF=BC=89:=20docs=EF=BC=88?= =?UTF-8?q?=E6=96=87=E6=A1=A3=E5=8F=98=E6=9B=B4=EF=BC=89:=20refactor?= =?UTF-8?q?=EF=BC=88=E9=87=8D=E6=9E=84=EF=BC=89:=20test(=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=B5=8B=E8=AF=95):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/api_design.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/api/api_design.py b/app/api/api_design.py index ee4a651..1c77ed8 100644 --- a/app/api/api_design.py +++ b/app/api/api_design.py @@ -18,6 +18,14 @@ logger = logging.getLogger() @router.post("/design") def design(request_data: DesignModel, background_tasks: BackgroundTasks): """ + objects.items.transparent: + "transparent":{ + "mask_url":"test/transparent_test/transparent_mask.png", + "scale":0.1 + }, + mask_url 为空"" -> 单件衣服透明 + mask_url 非空"mask_url" -> 区域透明 + 创建一个具有以下参数的请求体: 示例参数: {