feat design 透明和选取透明

fix
This commit is contained in:
zhouchengrong
2024-11-19 10:20:25 +08:00
parent 4cc993cf27
commit 26be5279df
3 changed files with 7 additions and 3 deletions

View File

@@ -164,6 +164,10 @@ def design(request_data: DesignModel):
1.0,
1.0
],
"transparent":{
"mask_url":"test/transparent_test/transparent_mask.png",
"scale":0.1
},
"type": "Outwear"
},
{

View File

@@ -20,7 +20,7 @@ class Settings(BaseSettings):
OSS = "minio"
DEBUG = True
DEBUG = False
if DEBUG:
LOGS_PATH = "logs/"
CATEGORY_PATH = "service/attribute/config/descriptor/category/category_dis.csv"

View File

@@ -82,7 +82,7 @@ if __name__ == '__main__':
# url = "aida-users/89/sketchboard/female/Dress/e6724ab7-8d3f-4677-abe0-c3e42ab7af85.jpeg"
# url = "aida-users/87/print/956614a2-7e75-4fbe-9ed0-c1831e37a2c9-4-87.png"
# url = "aida-users/89/single_logo/123-89.png"
url = "aida-results/result_94d3fc82-a560-11ef-b2c1-0826ae3ad6b3.png"
url ="aida-results/result_91559b60-a61c-11ef-af8e-0242ac150002.png"
# url = "aida-collection-element/12148/Sketchboard/95ea577b-305b-4a62-b30a-39c0dd3ddb3f.png"
read_type = "2"
@@ -92,4 +92,4 @@ if __name__ == '__main__':
cv2.waitKey(0)
else:
img = oss_get_image(oss_client=minio_client, bucket=url.split('/')[0], object_name=url[url.find('/') + 1:], data_type=read_type)
img.save("原图.png")
img.show()