feat
fix design 用户自定义mask
This commit is contained in:
@@ -24,28 +24,28 @@ def design(request_data: DesignModel):
|
|||||||
"basic": {
|
"basic": {
|
||||||
"body_point_test": {
|
"body_point_test": {
|
||||||
"waistband_right": [
|
"waistband_right": [
|
||||||
203,
|
200,
|
||||||
249
|
241
|
||||||
],
|
],
|
||||||
"hand_point_right": [
|
"hand_point_right": [
|
||||||
229,
|
223,
|
||||||
343
|
297
|
||||||
],
|
],
|
||||||
"waistband_left": [
|
"waistband_left": [
|
||||||
119,
|
112,
|
||||||
248
|
241
|
||||||
],
|
],
|
||||||
"hand_point_left": [
|
"hand_point_left": [
|
||||||
97,
|
92,
|
||||||
343
|
305
|
||||||
],
|
],
|
||||||
"shoulder_left": [
|
"shoulder_left": [
|
||||||
108,
|
99,
|
||||||
107
|
116
|
||||||
],
|
],
|
||||||
"shoulder_right": [
|
"shoulder_right": [
|
||||||
212,
|
215,
|
||||||
107
|
116
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"layer_order": true,
|
"layer_order": true,
|
||||||
@@ -57,65 +57,33 @@ def design(request_data: DesignModel):
|
|||||||
},
|
},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"businessId": 255303,
|
"businessId": 270372,
|
||||||
"color": "139 148 156",
|
"color": "30 28 28",
|
||||||
"image_id": 95159,
|
"image_id": 69780,
|
||||||
"offset": [
|
"offset": [
|
||||||
0,
|
0,
|
||||||
0
|
0
|
||||||
],
|
],
|
||||||
"path": "aida-users/89/sketch/c89d75f3-581f-4edd-9f8e-b08e84a2cbe7-3-89.png",
|
"path": "aida-sys-image/images/female/trousers/0825000630.jpg",
|
||||||
|
"seg_mask_url": "test/result.png",
|
||||||
"print": {
|
"print": {
|
||||||
"single": {
|
"element": {
|
||||||
"location": [
|
"element_angle_list": [],
|
||||||
[
|
"element_path_list": [],
|
||||||
200.0,
|
"element_scale_list": [],
|
||||||
200.0
|
"location": []
|
||||||
]
|
|
||||||
],
|
|
||||||
"print_angle_list": [
|
|
||||||
0.0
|
|
||||||
],
|
|
||||||
"print_path_list": [
|
|
||||||
"aida-users/89/slogan_image/ce0b2423-9e5a-466f-9611-c254940a7819-1-89.png"
|
|
||||||
],
|
|
||||||
"print_scale_list": [
|
|
||||||
1.0
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"overall": {
|
"overall": {
|
||||||
"location": [
|
"location": [],
|
||||||
[
|
"print_angle_list": [],
|
||||||
512.0,
|
"print_path_list": [],
|
||||||
512.0
|
"print_scale_list": []
|
||||||
]
|
|
||||||
],
|
|
||||||
"print_angle_list": [
|
|
||||||
0.0
|
|
||||||
],
|
|
||||||
"print_path_list": [
|
|
||||||
"aida-users/89/print/468643b4-bc2d-41b2-9a16-79766606a2db-3-89.png"
|
|
||||||
],
|
|
||||||
"print_scale_list": [
|
|
||||||
1.0
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"element": {
|
"single": {
|
||||||
"element_angle_list": [
|
"location": [],
|
||||||
0.0
|
"print_angle_list": [],
|
||||||
],
|
"print_path_list": [],
|
||||||
"element_path_list": [
|
"print_scale_list": []
|
||||||
"aida-users/88/designelements/Embroidery/a4d9605a-675e-4606-93e0-77ca6baaf55f.png"
|
|
||||||
],
|
|
||||||
"element_scale_list": [
|
|
||||||
0.2731036750637755
|
|
||||||
],
|
|
||||||
"location": [
|
|
||||||
[
|
|
||||||
228.63694825464364,
|
|
||||||
406.4843844199667
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"priority": 10,
|
"priority": 10,
|
||||||
@@ -123,17 +91,91 @@ def design(request_data: DesignModel):
|
|||||||
1.0,
|
1.0,
|
||||||
1.0
|
1.0
|
||||||
],
|
],
|
||||||
"type": "Dress"
|
"type": "Trousers"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"body_path": "aida-sys-image/models/female/2e4815b9-1191-419d-94ed-5771239ca4a5.png",
|
"businessId": 270373,
|
||||||
"image_id": 67277,
|
"color": "30 28 28",
|
||||||
|
"image_id": 98243,
|
||||||
|
"offset": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"path": "aida-sys-image/images/female/blouse/0902003811.jpg",
|
||||||
|
"seg_mask_url": "test/result.png",
|
||||||
|
"print": {
|
||||||
|
"element": {
|
||||||
|
"element_angle_list": [],
|
||||||
|
"element_path_list": [],
|
||||||
|
"element_scale_list": [],
|
||||||
|
"location": []
|
||||||
|
},
|
||||||
|
"overall": {
|
||||||
|
"location": [],
|
||||||
|
"print_angle_list": [],
|
||||||
|
"print_path_list": [],
|
||||||
|
"print_scale_list": []
|
||||||
|
},
|
||||||
|
"single": {
|
||||||
|
"location": [],
|
||||||
|
"print_angle_list": [],
|
||||||
|
"print_path_list": [],
|
||||||
|
"print_scale_list": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"priority": 11,
|
||||||
|
"resize_scale": [
|
||||||
|
1.0,
|
||||||
|
1.0
|
||||||
|
],
|
||||||
|
"type": "Blouse"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"businessId": 270374,
|
||||||
|
"color": "172 68 68",
|
||||||
|
"image_id": 98244,
|
||||||
|
"offset": [
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"path": "aida-sys-image/images/female/outwear/0825000410.jpg",
|
||||||
|
"seg_mask_url": "test/result.png",
|
||||||
|
"print": {
|
||||||
|
"element": {
|
||||||
|
"element_angle_list": [],
|
||||||
|
"element_path_list": [],
|
||||||
|
"element_scale_list": [],
|
||||||
|
"location": []
|
||||||
|
},
|
||||||
|
"overall": {
|
||||||
|
"location": [],
|
||||||
|
"print_angle_list": [],
|
||||||
|
"print_path_list": [],
|
||||||
|
"print_scale_list": []
|
||||||
|
},
|
||||||
|
"single": {
|
||||||
|
"location": [],
|
||||||
|
"print_angle_list": [],
|
||||||
|
"print_path_list": [],
|
||||||
|
"print_scale_list": []
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"priority": 12,
|
||||||
|
"resize_scale": [
|
||||||
|
1.0,
|
||||||
|
1.0
|
||||||
|
],
|
||||||
|
"type": "Outwear"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"body_path": "aida-sys-image/models/female/5bdfe7ca-64eb-44e4-b03d-8e517520c795.png",
|
||||||
|
"image_id": 96090,
|
||||||
"type": "Body"
|
"type": "Body"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"process_id": "89"
|
"process_id": "83"
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
logger.info(f"design request item is : @@@@@@:{json.dumps(request_data.dict())}")
|
logger.info(f"design request item is : @@@@@@:{json.dumps(request_data.dict())}")
|
||||||
|
|||||||
Reference in New Issue
Block a user