Merge remote-tracking branch 'origin/develop' into dev-ltx
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
All checks were successful
git commit AiDA python develop 分支构建部署 / scheduled_deploy (push) Has been skipped
This commit is contained in:
@@ -27,6 +27,15 @@ def design(request_data: DesignModel):
|
||||
- **mask_url** 非空"mask_url" -> 区域透明
|
||||
- **transpose** 镜像模式 ,:"top_bottom"或"left_right"
|
||||
- **rotate** 45,
|
||||
|
||||
- ** design 参数变更:
|
||||
design detail 请求参数中 basic -> preview_submit 替换为design_type 可选参数 default ,merge (移除preview和submit)
|
||||
design_type 参数说明:
|
||||
defuault模式下 请求参数不变
|
||||
merge模式下 items -> 每个item需要新增 merge_image_path , merge_image_path为前端处理 print color等操作后的单件结果图
|
||||
|
||||
**
|
||||
|
||||
- 创建一个具有以下参数的请求体:
|
||||
示例参数:
|
||||
```json
|
||||
@@ -61,7 +70,7 @@ def design(request_data: DesignModel):
|
||||
]
|
||||
},
|
||||
"layer_order": true,
|
||||
"preview_submit": "preview",
|
||||
"design_type": "preview",
|
||||
"scale_bag": 0.7,
|
||||
"scale_earrings": 0.16,
|
||||
"self_template": true,
|
||||
@@ -385,7 +394,10 @@ async def seg_anything(request_data: SAMRequestModel):
|
||||
通过传入图片路径和点击的点坐标,返回分割后的掩码数据。
|
||||
|
||||
### 参数说明:
|
||||
- **user_id**:用户id 用于存储分割图
|
||||
- **image_path**: 图片在服务器或云端的相对路径。
|
||||
- **type**: 推理类型
|
||||
- **box**: 框选矩形点位信息
|
||||
- **points**: 交互点的坐标列表。每个点为 [x, y] 像素格式。
|
||||
- **labels**: 坐标点的属性标签,必须与 points 长度一致:
|
||||
- 1: **前景点** (代表想要分割出的区域)
|
||||
@@ -393,11 +405,22 @@ async def seg_anything(request_data: SAMRequestModel):
|
||||
|
||||
### 请求体示例:
|
||||
```json
|
||||
point
|
||||
{
|
||||
"user_id": 1,
|
||||
"image_path": "aida-users/89/sketch/4e8fe37d-7068-400a-ac94-c01647fa5f6f.png",
|
||||
"type":"point",
|
||||
"points": [[310, 403], [493, 375], [261, 266], [404, 484]],
|
||||
"labels": [1, 1, 0, 1]
|
||||
}
|
||||
|
||||
box
|
||||
{
|
||||
"user_id": 1,
|
||||
"image_path": "aida-users/89/sketch/4e8fe37d-7068-400a-ac94-c01647fa5f6f.png",
|
||||
"type":"box",
|
||||
"box": [350, 286, 544, 520]
|
||||
}
|
||||
```
|
||||
"""
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user