Skip to content

Commit d88ee7c

Browse files
committed
Release GenerateCosplayImage.
1 parent 37d4df7 commit d88ee7c

14 files changed

+415
-0
lines changed

aliyun-python-sdk-aigen/ChangeLog.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2024-02-20 Version: 1.0.0
2+
- Release GenerateCosplayImage.
3+
- Release GenerateTextDeformation.
4+
- Release GenerateTextTexture.
5+
- Release InteractiveFullSegmentation.
6+
- Release InteractiveScribbleSegmentation.
7+

aliyun-python-sdk-aigen/LICENSE

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Copyright 1999-present Alibaba Group Holding Ltd.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License");
4+
you may not use this file except in compliance with the License.
5+
You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software
10+
distributed under the License is distributed on an "AS IS" BASIS,
11+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
See the License for the specific language governing permissions and
13+
limitations under the License.

aliyun-python-sdk-aigen/MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
include LICENSE README.rst ChangeLog.txt

aliyun-python-sdk-aigen/README.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
=============================================================
2+
aliyun-python-sdk-aigen
3+
=============================================================
4+
5+
.. This is the aigen module of Aliyun Python SDK.
6+
7+
Aliyun Python SDK is the official software development kit. It makes things easy to integrate your Python application, library, or script with Aliyun services.
8+
9+
This module works on Python versions:
10+
11+
2.6.5 and greater
12+
13+
**Documentation:**
14+
15+
Please visit `http://develop.aliyun.com/sdk/python <http://develop.aliyun.com/sdk/python>`_
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__version__ = '1.0.0'

aliyun-python-sdk-aigen/aliyunsdkaigen/request/__init__.py

Whitespace-only changes.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class GenerateCosplayImageRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'aigen', '2024-01-11', 'GenerateCosplayImage')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_TemplateImageUrl(self): # String
30+
return self.get_body_params().get('TemplateImageUrl')
31+
32+
def set_TemplateImageUrl(self, TemplateImageUrl): # String
33+
self.add_body_params('TemplateImageUrl', TemplateImageUrl)
34+
def get_FaceImageUrl(self): # String
35+
return self.get_body_params().get('FaceImageUrl')
36+
37+
def set_FaceImageUrl(self, FaceImageUrl): # String
38+
self.add_body_params('FaceImageUrl', FaceImageUrl)
39+
def get_Style(self): # Long
40+
return self.get_body_params().get('Style')
41+
42+
def set_Style(self, Style): # Long
43+
self.add_body_params('Style', Style)
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class GenerateTextDeformationRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'aigen', '2024-01-11', 'GenerateTextDeformation')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_TextContent(self): # String
30+
return self.get_body_params().get('TextContent')
31+
32+
def set_TextContent(self, TextContent): # String
33+
self.add_body_params('TextContent', TextContent)
34+
def get_FontName(self): # String
35+
return self.get_body_params().get('FontName')
36+
37+
def set_FontName(self, FontName): # String
38+
self.add_body_params('FontName', FontName)
39+
def get_TtfUrl(self): # String
40+
return self.get_body_params().get('TtfUrl')
41+
42+
def set_TtfUrl(self, TtfUrl): # String
43+
self.add_body_params('TtfUrl', TtfUrl)
44+
def get_N(self): # Long
45+
return self.get_body_params().get('N')
46+
47+
def set_N(self, N): # Long
48+
self.add_body_params('N', N)
49+
def get_Async(self): # Boolean
50+
return self.get_body_params().get('Async')
51+
52+
def set_Async(self, _Async): # Boolean
53+
self.add_body_params('Async', _Async)
54+
def get_Prompt(self): # String
55+
return self.get_body_params().get('Prompt')
56+
57+
def set_Prompt(self, Prompt): # String
58+
self.add_body_params('Prompt', Prompt)
59+
def get_OutputImageRatio(self): # String
60+
return self.get_body_params().get('OutputImageRatio')
61+
62+
def set_OutputImageRatio(self, OutputImageRatio): # String
63+
self.add_body_params('OutputImageRatio', OutputImageRatio)
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class GenerateTextTextureRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'aigen', '2024-01-11', 'GenerateTextTexture')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_TextContent(self): # String
30+
return self.get_body_params().get('TextContent')
31+
32+
def set_TextContent(self, TextContent): # String
33+
self.add_body_params('TextContent', TextContent)
34+
def get_TextureStyle(self): # String
35+
return self.get_query_params().get('TextureStyle')
36+
37+
def set_TextureStyle(self, TextureStyle): # String
38+
self.add_query_param('TextureStyle', TextureStyle)
39+
def get_FontName(self): # String
40+
return self.get_body_params().get('FontName')
41+
42+
def set_FontName(self, FontName): # String
43+
self.add_body_params('FontName', FontName)
44+
def get_TtfUrl(self): # String
45+
return self.get_body_params().get('TtfUrl')
46+
47+
def set_TtfUrl(self, TtfUrl): # String
48+
self.add_body_params('TtfUrl', TtfUrl)
49+
def get_N(self): # Long
50+
return self.get_body_params().get('N')
51+
52+
def set_N(self, N): # Long
53+
self.add_body_params('N', N)
54+
def get_AlphaChannel(self): # Boolean
55+
return self.get_body_params().get('AlphaChannel')
56+
57+
def set_AlphaChannel(self, AlphaChannel): # Boolean
58+
self.add_body_params('AlphaChannel', AlphaChannel)
59+
def get_ImageUrl(self): # String
60+
return self.get_body_params().get('ImageUrl')
61+
62+
def set_ImageUrl(self, ImageUrl): # String
63+
self.add_body_params('ImageUrl', ImageUrl)
64+
def get_ImageShortSize(self): # Long
65+
return self.get_body_params().get('ImageShortSize')
66+
67+
def set_ImageShortSize(self, ImageShortSize): # Long
68+
self.add_body_params('ImageShortSize', ImageShortSize)
69+
def get_Prompt(self): # String
70+
return self.get_body_params().get('Prompt')
71+
72+
def set_Prompt(self, Prompt): # String
73+
self.add_body_params('Prompt', Prompt)
74+
def get_OutputImageRatio(self): # String
75+
return self.get_body_params().get('OutputImageRatio')
76+
77+
def set_OutputImageRatio(self, OutputImageRatio): # String
78+
self.add_body_params('OutputImageRatio', OutputImageRatio)
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class InteractiveFullSegmentationRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'aigen', '2024-01-11', 'InteractiveFullSegmentation')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_ReturnFormat(self): # String
30+
return self.get_body_params().get('ReturnFormat')
31+
32+
def set_ReturnFormat(self, ReturnFormat): # String
33+
self.add_body_params('ReturnFormat', ReturnFormat)
34+
def get_ImageUrl(self): # String
35+
return self.get_body_params().get('ImageUrl')
36+
37+
def set_ImageUrl(self, ImageUrl): # String
38+
self.add_body_params('ImageUrl', ImageUrl)
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one
2+
# or more contributor license agreements. See the NOTICE file
3+
# distributed with this work for additional information
4+
# regarding copyright ownership. The ASF licenses this file
5+
# to you under the Apache License, Version 2.0 (the
6+
# "License"); you may not use this file except in compliance
7+
# with the License. You may obtain a copy of the License at
8+
#
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
#
13+
# Unless required by applicable law or agreed to in writing,
14+
# software distributed under the License is distributed on an
15+
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# KIND, either express or implied. See the License for the
17+
# specific language governing permissions and limitations
18+
# under the License.
19+
20+
from aliyunsdkcore.request import RpcRequest
21+
22+
class InteractiveScribbleSegmentationRequest(RpcRequest):
23+
24+
def __init__(self):
25+
RpcRequest.__init__(self, 'aigen', '2024-01-11', 'InteractiveScribbleSegmentation')
26+
self.set_protocol_type('https')
27+
self.set_method('POST')
28+
29+
def get_PosScribbleImageUrl(self): # String
30+
return self.get_body_params().get('PosScribbleImageUrl')
31+
32+
def set_PosScribbleImageUrl(self, PosScribbleImageUrl): # String
33+
self.add_body_params('PosScribbleImageUrl', PosScribbleImageUrl)
34+
def get_IntegratedMaskUrl(self): # String
35+
return self.get_body_params().get('IntegratedMaskUrl')
36+
37+
def set_IntegratedMaskUrl(self, IntegratedMaskUrl): # String
38+
self.add_body_params('IntegratedMaskUrl', IntegratedMaskUrl)
39+
def get_MaskImageUrl(self): # String
40+
return self.get_body_params().get('MaskImageUrl')
41+
42+
def set_MaskImageUrl(self, MaskImageUrl): # String
43+
self.add_body_params('MaskImageUrl', MaskImageUrl)
44+
def get_ReturnForm(self): # String
45+
return self.get_body_params().get('ReturnForm')
46+
47+
def set_ReturnForm(self, ReturnForm): # String
48+
self.add_body_params('ReturnForm', ReturnForm)
49+
def get_NegScribbleImageUrl(self): # String
50+
return self.get_body_params().get('NegScribbleImageUrl')
51+
52+
def set_NegScribbleImageUrl(self, NegScribbleImageUrl): # String
53+
self.add_body_params('NegScribbleImageUrl', NegScribbleImageUrl)
54+
def get_ReturnFormat(self): # String
55+
return self.get_body_params().get('ReturnFormat')
56+
57+
def set_ReturnFormat(self, ReturnFormat): # String
58+
self.add_body_params('ReturnFormat', ReturnFormat)
59+
def get_EdgeFeathering(self): # String
60+
return self.get_body_params().get('EdgeFeathering')
61+
62+
def set_EdgeFeathering(self, EdgeFeathering): # String
63+
self.add_body_params('EdgeFeathering', EdgeFeathering)
64+
def get_ImageUrl(self): # String
65+
return self.get_body_params().get('ImageUrl')
66+
67+
def set_ImageUrl(self, ImageUrl): # String
68+
self.add_body_params('ImageUrl', ImageUrl)
69+
def get_PostprocessOption(self): # String
70+
return self.get_body_params().get('PostprocessOption')
71+
72+
def set_PostprocessOption(self, PostprocessOption): # String
73+
self.add_body_params('PostprocessOption', PostprocessOption)

aliyun-python-sdk-aigen/aliyunsdkaigen/request/v20240111/__init__.py

Whitespace-only changes.

aliyun-python-sdk-aigen/setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[metadata]
2+
license_file = LICENSE
3+
4+
[bdist_wheel]
5+
universal = 1

0 commit comments

Comments
 (0)