tencentcloud-sdk-python-intl-en 3.0.1087__py2.py3-none-any.whl → 3.0.1088__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/batch/v20170312/errorcodes.py +3 -0
- tencentcloud/batch/v20170312/models.py +119 -45
- tencentcloud/lighthouse/v20200324/lighthouse_client.py +2 -2
- tencentcloud/lighthouse/v20200324/models.py +2 -2
- tencentcloud/live/v20180801/errorcodes.py +1 -1
- tencentcloud/live/v20180801/models.py +2 -2
- tencentcloud/organization/v20181225/errorcodes.py +16 -4
- tencentcloud/organization/v20181225/models.py +40 -40
- tencentcloud/scf/v20180416/errorcodes.py +3 -0
- tencentcloud/scf/v20180416/models.py +2 -2
- tencentcloud/teo/v20220901/errorcodes.py +19 -19
- tencentcloud/teo/v20220901/models.py +92 -20
- tencentcloud/vclm/__init__.py +0 -0
- tencentcloud/vclm/v20240523/__init__.py +0 -0
- tencentcloud/vclm/v20240523/errorcodes.py +126 -0
- tencentcloud/vclm/v20240523/models.py +538 -0
- tencentcloud/vclm/v20240523/vclm_client.py +72 -0
- {tencentcloud_sdk_python_intl_en-3.0.1087.dist-info → tencentcloud_sdk_python_intl_en-3.0.1088.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1087.dist-info → tencentcloud_sdk_python_intl_en-3.0.1088.dist-info}/RECORD +22 -17
- {tencentcloud_sdk_python_intl_en-3.0.1087.dist-info → tencentcloud_sdk_python_intl_en-3.0.1088.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1087.dist-info → tencentcloud_sdk_python_intl_en-3.0.1088.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import warnings
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
class DescribeImageAnimateJobRequest(AbstractModel):
|
|
22
|
+
"""DescribeImageAnimateJob request structure.
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _JobId: Task ID.
|
|
29
|
+
:type JobId: str
|
|
30
|
+
"""
|
|
31
|
+
self._JobId = None
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def JobId(self):
|
|
35
|
+
"""Task ID.
|
|
36
|
+
:rtype: str
|
|
37
|
+
"""
|
|
38
|
+
return self._JobId
|
|
39
|
+
|
|
40
|
+
@JobId.setter
|
|
41
|
+
def JobId(self, JobId):
|
|
42
|
+
self._JobId = JobId
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def _deserialize(self, params):
|
|
46
|
+
self._JobId = params.get("JobId")
|
|
47
|
+
memeber_set = set(params.keys())
|
|
48
|
+
for name, value in vars(self).items():
|
|
49
|
+
property_name = name[1:]
|
|
50
|
+
if property_name in memeber_set:
|
|
51
|
+
memeber_set.remove(property_name)
|
|
52
|
+
if len(memeber_set) > 0:
|
|
53
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class DescribeImageAnimateJobResponse(AbstractModel):
|
|
58
|
+
"""DescribeImageAnimateJob response structure.
|
|
59
|
+
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
def __init__(self):
|
|
63
|
+
r"""
|
|
64
|
+
:param _Status: Task status. WAIT: waiting; RUN: running; FAIL: failed; DONE: successful.
|
|
65
|
+
:type Status: str
|
|
66
|
+
:param _ErrorCode: Error code.
|
|
67
|
+
:type ErrorCode: str
|
|
68
|
+
:param _ErrorMessage: Error message.
|
|
69
|
+
:type ErrorMessage: str
|
|
70
|
+
:param _ResultVideoUrl: Generated video URL. It is valid for 24 hours.
|
|
71
|
+
:type ResultVideoUrl: str
|
|
72
|
+
:param _MaskVideoUrl: Masked video URL.
|
|
73
|
+
:type MaskVideoUrl: str
|
|
74
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
75
|
+
:type RequestId: str
|
|
76
|
+
"""
|
|
77
|
+
self._Status = None
|
|
78
|
+
self._ErrorCode = None
|
|
79
|
+
self._ErrorMessage = None
|
|
80
|
+
self._ResultVideoUrl = None
|
|
81
|
+
self._MaskVideoUrl = None
|
|
82
|
+
self._RequestId = None
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def Status(self):
|
|
86
|
+
"""Task status. WAIT: waiting; RUN: running; FAIL: failed; DONE: successful.
|
|
87
|
+
:rtype: str
|
|
88
|
+
"""
|
|
89
|
+
return self._Status
|
|
90
|
+
|
|
91
|
+
@Status.setter
|
|
92
|
+
def Status(self, Status):
|
|
93
|
+
self._Status = Status
|
|
94
|
+
|
|
95
|
+
@property
|
|
96
|
+
def ErrorCode(self):
|
|
97
|
+
"""Error code.
|
|
98
|
+
:rtype: str
|
|
99
|
+
"""
|
|
100
|
+
return self._ErrorCode
|
|
101
|
+
|
|
102
|
+
@ErrorCode.setter
|
|
103
|
+
def ErrorCode(self, ErrorCode):
|
|
104
|
+
self._ErrorCode = ErrorCode
|
|
105
|
+
|
|
106
|
+
@property
|
|
107
|
+
def ErrorMessage(self):
|
|
108
|
+
"""Error message.
|
|
109
|
+
:rtype: str
|
|
110
|
+
"""
|
|
111
|
+
return self._ErrorMessage
|
|
112
|
+
|
|
113
|
+
@ErrorMessage.setter
|
|
114
|
+
def ErrorMessage(self, ErrorMessage):
|
|
115
|
+
self._ErrorMessage = ErrorMessage
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def ResultVideoUrl(self):
|
|
119
|
+
"""Generated video URL. It is valid for 24 hours.
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._ResultVideoUrl
|
|
123
|
+
|
|
124
|
+
@ResultVideoUrl.setter
|
|
125
|
+
def ResultVideoUrl(self, ResultVideoUrl):
|
|
126
|
+
self._ResultVideoUrl = ResultVideoUrl
|
|
127
|
+
|
|
128
|
+
@property
|
|
129
|
+
def MaskVideoUrl(self):
|
|
130
|
+
"""Masked video URL.
|
|
131
|
+
:rtype: str
|
|
132
|
+
"""
|
|
133
|
+
return self._MaskVideoUrl
|
|
134
|
+
|
|
135
|
+
@MaskVideoUrl.setter
|
|
136
|
+
def MaskVideoUrl(self, MaskVideoUrl):
|
|
137
|
+
self._MaskVideoUrl = MaskVideoUrl
|
|
138
|
+
|
|
139
|
+
@property
|
|
140
|
+
def RequestId(self):
|
|
141
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._RequestId
|
|
145
|
+
|
|
146
|
+
@RequestId.setter
|
|
147
|
+
def RequestId(self, RequestId):
|
|
148
|
+
self._RequestId = RequestId
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
def _deserialize(self, params):
|
|
152
|
+
self._Status = params.get("Status")
|
|
153
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
154
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
|
155
|
+
self._ResultVideoUrl = params.get("ResultVideoUrl")
|
|
156
|
+
self._MaskVideoUrl = params.get("MaskVideoUrl")
|
|
157
|
+
self._RequestId = params.get("RequestId")
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
class LogoParam(AbstractModel):
|
|
161
|
+
"""Logo parameter
|
|
162
|
+
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
def __init__(self):
|
|
166
|
+
r"""
|
|
167
|
+
:param _LogoUrl: Watermark URL
|
|
168
|
+
|
|
169
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
170
|
+
:type LogoUrl: str
|
|
171
|
+
:param _LogoImage: Watermark Base64 code is supported. Either the Base64 code or URL must be provided. If both are provided, the URL prevails.
|
|
172
|
+
|
|
173
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
174
|
+
:type LogoImage: str
|
|
175
|
+
:param _LogoRect: The coordinates of the watermark image in the generated image. The mark image will be expanded according to the coordinates.
|
|
176
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
177
|
+
:type LogoRect: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
|
178
|
+
"""
|
|
179
|
+
self._LogoUrl = None
|
|
180
|
+
self._LogoImage = None
|
|
181
|
+
self._LogoRect = None
|
|
182
|
+
|
|
183
|
+
@property
|
|
184
|
+
def LogoUrl(self):
|
|
185
|
+
"""Watermark URL
|
|
186
|
+
|
|
187
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
188
|
+
:rtype: str
|
|
189
|
+
"""
|
|
190
|
+
return self._LogoUrl
|
|
191
|
+
|
|
192
|
+
@LogoUrl.setter
|
|
193
|
+
def LogoUrl(self, LogoUrl):
|
|
194
|
+
self._LogoUrl = LogoUrl
|
|
195
|
+
|
|
196
|
+
@property
|
|
197
|
+
def LogoImage(self):
|
|
198
|
+
"""Watermark Base64 code is supported. Either the Base64 code or URL must be provided. If both are provided, the URL prevails.
|
|
199
|
+
|
|
200
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
201
|
+
:rtype: str
|
|
202
|
+
"""
|
|
203
|
+
return self._LogoImage
|
|
204
|
+
|
|
205
|
+
@LogoImage.setter
|
|
206
|
+
def LogoImage(self, LogoImage):
|
|
207
|
+
self._LogoImage = LogoImage
|
|
208
|
+
|
|
209
|
+
@property
|
|
210
|
+
def LogoRect(self):
|
|
211
|
+
"""The coordinates of the watermark image in the generated image. The mark image will be expanded according to the coordinates.
|
|
212
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
213
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoRect`
|
|
214
|
+
"""
|
|
215
|
+
return self._LogoRect
|
|
216
|
+
|
|
217
|
+
@LogoRect.setter
|
|
218
|
+
def LogoRect(self, LogoRect):
|
|
219
|
+
self._LogoRect = LogoRect
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
def _deserialize(self, params):
|
|
223
|
+
self._LogoUrl = params.get("LogoUrl")
|
|
224
|
+
self._LogoImage = params.get("LogoImage")
|
|
225
|
+
if params.get("LogoRect") is not None:
|
|
226
|
+
self._LogoRect = LogoRect()
|
|
227
|
+
self._LogoRect._deserialize(params.get("LogoRect"))
|
|
228
|
+
memeber_set = set(params.keys())
|
|
229
|
+
for name, value in vars(self).items():
|
|
230
|
+
property_name = name[1:]
|
|
231
|
+
if property_name in memeber_set:
|
|
232
|
+
memeber_set.remove(property_name)
|
|
233
|
+
if len(memeber_set) > 0:
|
|
234
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
class LogoRect(AbstractModel):
|
|
239
|
+
"""Input box
|
|
240
|
+
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
def __init__(self):
|
|
244
|
+
r"""
|
|
245
|
+
:param _X: X-axis coordinate of the upper left corner
|
|
246
|
+
|
|
247
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
248
|
+
:type X: int
|
|
249
|
+
:param _Y: Y-axis coordinate of the upper left corner
|
|
250
|
+
|
|
251
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
252
|
+
:type Y: int
|
|
253
|
+
:param _Width: Box width
|
|
254
|
+
|
|
255
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
256
|
+
:type Width: int
|
|
257
|
+
:param _Height: Box height
|
|
258
|
+
|
|
259
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
260
|
+
:type Height: int
|
|
261
|
+
"""
|
|
262
|
+
self._X = None
|
|
263
|
+
self._Y = None
|
|
264
|
+
self._Width = None
|
|
265
|
+
self._Height = None
|
|
266
|
+
|
|
267
|
+
@property
|
|
268
|
+
def X(self):
|
|
269
|
+
"""X-axis coordinate of the upper left corner
|
|
270
|
+
|
|
271
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
272
|
+
:rtype: int
|
|
273
|
+
"""
|
|
274
|
+
return self._X
|
|
275
|
+
|
|
276
|
+
@X.setter
|
|
277
|
+
def X(self, X):
|
|
278
|
+
self._X = X
|
|
279
|
+
|
|
280
|
+
@property
|
|
281
|
+
def Y(self):
|
|
282
|
+
"""Y-axis coordinate of the upper left corner
|
|
283
|
+
|
|
284
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
285
|
+
:rtype: int
|
|
286
|
+
"""
|
|
287
|
+
return self._Y
|
|
288
|
+
|
|
289
|
+
@Y.setter
|
|
290
|
+
def Y(self, Y):
|
|
291
|
+
self._Y = Y
|
|
292
|
+
|
|
293
|
+
@property
|
|
294
|
+
def Width(self):
|
|
295
|
+
"""Box width
|
|
296
|
+
|
|
297
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
298
|
+
:rtype: int
|
|
299
|
+
"""
|
|
300
|
+
return self._Width
|
|
301
|
+
|
|
302
|
+
@Width.setter
|
|
303
|
+
def Width(self, Width):
|
|
304
|
+
self._Width = Width
|
|
305
|
+
|
|
306
|
+
@property
|
|
307
|
+
def Height(self):
|
|
308
|
+
"""Box height
|
|
309
|
+
|
|
310
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
311
|
+
:rtype: int
|
|
312
|
+
"""
|
|
313
|
+
return self._Height
|
|
314
|
+
|
|
315
|
+
@Height.setter
|
|
316
|
+
def Height(self, Height):
|
|
317
|
+
self._Height = Height
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
def _deserialize(self, params):
|
|
321
|
+
self._X = params.get("X")
|
|
322
|
+
self._Y = params.get("Y")
|
|
323
|
+
self._Width = params.get("Width")
|
|
324
|
+
self._Height = params.get("Height")
|
|
325
|
+
memeber_set = set(params.keys())
|
|
326
|
+
for name, value in vars(self).items():
|
|
327
|
+
property_name = name[1:]
|
|
328
|
+
if property_name in memeber_set:
|
|
329
|
+
memeber_set.remove(property_name)
|
|
330
|
+
if len(memeber_set) > 0:
|
|
331
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
class SubmitImageAnimateJobRequest(AbstractModel):
|
|
336
|
+
"""SubmitImageAnimateJob request structure.
|
|
337
|
+
|
|
338
|
+
"""
|
|
339
|
+
|
|
340
|
+
def __init__(self):
|
|
341
|
+
r"""
|
|
342
|
+
:param _ImageUrl: Image format: PNG, JPG, and JPEG formats are supported.
|
|
343
|
+
Image resolution: The long edge resolution should not exceed 2056.
|
|
344
|
+
Image size: The size should not exceed 10 MB.
|
|
345
|
+
Image aspect ratio: The ratio of width to height should be in the range of 1:2 to 1:1.2.
|
|
346
|
+
:type ImageUrl: str
|
|
347
|
+
:param _ImageBase64: Image information after Base64 encoding. Image format: PNG, JPG, and JPEG formats are supported. Image resolution: The long side resolution should not exceed 2056. Image size: The size should not exceed 10 MB. Image aspect ratio: The ratio of width to height should be in the range of 1:2 to 1:1.2.
|
|
348
|
+
:type ImageBase64: str
|
|
349
|
+
:param _TemplateId: Action template ID. ke3: kemusan; tuziwu: rabbit dance; huajiangwu: paddling dance.
|
|
350
|
+
|
|
351
|
+
:type TemplateId: str
|
|
352
|
+
:param _EnableAudio: Whether the generated video retains the audio in the template. The default value is true.
|
|
353
|
+
:type EnableAudio: bool
|
|
354
|
+
:param _EnableBodyJoins: Whether to detect 12 body parts in the input image (head, neck, right shoulder, right elbow, right wrist, left shoulder, left elbow, left wrist, right hip, left hip, left knee, and right knee). They are not detected by default.
|
|
355
|
+
:type EnableBodyJoins: bool
|
|
356
|
+
:param _EnableSegment: Whether the final video retains the background of the original image. (This parameter does not take effect when TemplateId is set to tuziwu or huajiangwu.)
|
|
357
|
+
|
|
358
|
+
:type EnableSegment: bool
|
|
359
|
+
:param _LogoAdd: Whether to add a mark to the generated video. The default value is 0.
|
|
360
|
+
1: A mark is added.
|
|
361
|
+
0: No mark is added.
|
|
362
|
+
Other values: A mark is added by default.
|
|
363
|
+
It is recommended to use an obvious mark to indicate that the video is synthesized by AI.
|
|
364
|
+
:type LogoAdd: int
|
|
365
|
+
:param _LogoParam: Mark text settings.
|
|
366
|
+
By default, the text "Synthesized by AI" is added to the bottom right corner of the generated video. You can also use other text images.
|
|
367
|
+
:type LogoParam: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
|
368
|
+
"""
|
|
369
|
+
self._ImageUrl = None
|
|
370
|
+
self._ImageBase64 = None
|
|
371
|
+
self._TemplateId = None
|
|
372
|
+
self._EnableAudio = None
|
|
373
|
+
self._EnableBodyJoins = None
|
|
374
|
+
self._EnableSegment = None
|
|
375
|
+
self._LogoAdd = None
|
|
376
|
+
self._LogoParam = None
|
|
377
|
+
|
|
378
|
+
@property
|
|
379
|
+
def ImageUrl(self):
|
|
380
|
+
"""Image format: PNG, JPG, and JPEG formats are supported.
|
|
381
|
+
Image resolution: The long edge resolution should not exceed 2056.
|
|
382
|
+
Image size: The size should not exceed 10 MB.
|
|
383
|
+
Image aspect ratio: The ratio of width to height should be in the range of 1:2 to 1:1.2.
|
|
384
|
+
:rtype: str
|
|
385
|
+
"""
|
|
386
|
+
return self._ImageUrl
|
|
387
|
+
|
|
388
|
+
@ImageUrl.setter
|
|
389
|
+
def ImageUrl(self, ImageUrl):
|
|
390
|
+
self._ImageUrl = ImageUrl
|
|
391
|
+
|
|
392
|
+
@property
|
|
393
|
+
def ImageBase64(self):
|
|
394
|
+
"""Image information after Base64 encoding. Image format: PNG, JPG, and JPEG formats are supported. Image resolution: The long side resolution should not exceed 2056. Image size: The size should not exceed 10 MB. Image aspect ratio: The ratio of width to height should be in the range of 1:2 to 1:1.2.
|
|
395
|
+
:rtype: str
|
|
396
|
+
"""
|
|
397
|
+
return self._ImageBase64
|
|
398
|
+
|
|
399
|
+
@ImageBase64.setter
|
|
400
|
+
def ImageBase64(self, ImageBase64):
|
|
401
|
+
self._ImageBase64 = ImageBase64
|
|
402
|
+
|
|
403
|
+
@property
|
|
404
|
+
def TemplateId(self):
|
|
405
|
+
"""Action template ID. ke3: kemusan; tuziwu: rabbit dance; huajiangwu: paddling dance.
|
|
406
|
+
|
|
407
|
+
:rtype: str
|
|
408
|
+
"""
|
|
409
|
+
return self._TemplateId
|
|
410
|
+
|
|
411
|
+
@TemplateId.setter
|
|
412
|
+
def TemplateId(self, TemplateId):
|
|
413
|
+
self._TemplateId = TemplateId
|
|
414
|
+
|
|
415
|
+
@property
|
|
416
|
+
def EnableAudio(self):
|
|
417
|
+
"""Whether the generated video retains the audio in the template. The default value is true.
|
|
418
|
+
:rtype: bool
|
|
419
|
+
"""
|
|
420
|
+
return self._EnableAudio
|
|
421
|
+
|
|
422
|
+
@EnableAudio.setter
|
|
423
|
+
def EnableAudio(self, EnableAudio):
|
|
424
|
+
self._EnableAudio = EnableAudio
|
|
425
|
+
|
|
426
|
+
@property
|
|
427
|
+
def EnableBodyJoins(self):
|
|
428
|
+
"""Whether to detect 12 body parts in the input image (head, neck, right shoulder, right elbow, right wrist, left shoulder, left elbow, left wrist, right hip, left hip, left knee, and right knee). They are not detected by default.
|
|
429
|
+
:rtype: bool
|
|
430
|
+
"""
|
|
431
|
+
return self._EnableBodyJoins
|
|
432
|
+
|
|
433
|
+
@EnableBodyJoins.setter
|
|
434
|
+
def EnableBodyJoins(self, EnableBodyJoins):
|
|
435
|
+
self._EnableBodyJoins = EnableBodyJoins
|
|
436
|
+
|
|
437
|
+
@property
|
|
438
|
+
def EnableSegment(self):
|
|
439
|
+
"""Whether the final video retains the background of the original image. (This parameter does not take effect when TemplateId is set to tuziwu or huajiangwu.)
|
|
440
|
+
|
|
441
|
+
:rtype: bool
|
|
442
|
+
"""
|
|
443
|
+
return self._EnableSegment
|
|
444
|
+
|
|
445
|
+
@EnableSegment.setter
|
|
446
|
+
def EnableSegment(self, EnableSegment):
|
|
447
|
+
self._EnableSegment = EnableSegment
|
|
448
|
+
|
|
449
|
+
@property
|
|
450
|
+
def LogoAdd(self):
|
|
451
|
+
"""Whether to add a mark to the generated video. The default value is 0.
|
|
452
|
+
1: A mark is added.
|
|
453
|
+
0: No mark is added.
|
|
454
|
+
Other values: A mark is added by default.
|
|
455
|
+
It is recommended to use an obvious mark to indicate that the video is synthesized by AI.
|
|
456
|
+
:rtype: int
|
|
457
|
+
"""
|
|
458
|
+
return self._LogoAdd
|
|
459
|
+
|
|
460
|
+
@LogoAdd.setter
|
|
461
|
+
def LogoAdd(self, LogoAdd):
|
|
462
|
+
self._LogoAdd = LogoAdd
|
|
463
|
+
|
|
464
|
+
@property
|
|
465
|
+
def LogoParam(self):
|
|
466
|
+
"""Mark text settings.
|
|
467
|
+
By default, the text "Synthesized by AI" is added to the bottom right corner of the generated video. You can also use other text images.
|
|
468
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.LogoParam`
|
|
469
|
+
"""
|
|
470
|
+
return self._LogoParam
|
|
471
|
+
|
|
472
|
+
@LogoParam.setter
|
|
473
|
+
def LogoParam(self, LogoParam):
|
|
474
|
+
self._LogoParam = LogoParam
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
def _deserialize(self, params):
|
|
478
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
479
|
+
self._ImageBase64 = params.get("ImageBase64")
|
|
480
|
+
self._TemplateId = params.get("TemplateId")
|
|
481
|
+
self._EnableAudio = params.get("EnableAudio")
|
|
482
|
+
self._EnableBodyJoins = params.get("EnableBodyJoins")
|
|
483
|
+
self._EnableSegment = params.get("EnableSegment")
|
|
484
|
+
self._LogoAdd = params.get("LogoAdd")
|
|
485
|
+
if params.get("LogoParam") is not None:
|
|
486
|
+
self._LogoParam = LogoParam()
|
|
487
|
+
self._LogoParam._deserialize(params.get("LogoParam"))
|
|
488
|
+
memeber_set = set(params.keys())
|
|
489
|
+
for name, value in vars(self).items():
|
|
490
|
+
property_name = name[1:]
|
|
491
|
+
if property_name in memeber_set:
|
|
492
|
+
memeber_set.remove(property_name)
|
|
493
|
+
if len(memeber_set) > 0:
|
|
494
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
class SubmitImageAnimateJobResponse(AbstractModel):
|
|
499
|
+
"""SubmitImageAnimateJob response structure.
|
|
500
|
+
|
|
501
|
+
"""
|
|
502
|
+
|
|
503
|
+
def __init__(self):
|
|
504
|
+
r"""
|
|
505
|
+
:param _JobId: Task ID.
|
|
506
|
+
:type JobId: str
|
|
507
|
+
:param _RequestId: The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
508
|
+
:type RequestId: str
|
|
509
|
+
"""
|
|
510
|
+
self._JobId = None
|
|
511
|
+
self._RequestId = None
|
|
512
|
+
|
|
513
|
+
@property
|
|
514
|
+
def JobId(self):
|
|
515
|
+
"""Task ID.
|
|
516
|
+
:rtype: str
|
|
517
|
+
"""
|
|
518
|
+
return self._JobId
|
|
519
|
+
|
|
520
|
+
@JobId.setter
|
|
521
|
+
def JobId(self, JobId):
|
|
522
|
+
self._JobId = JobId
|
|
523
|
+
|
|
524
|
+
@property
|
|
525
|
+
def RequestId(self):
|
|
526
|
+
"""The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
527
|
+
:rtype: str
|
|
528
|
+
"""
|
|
529
|
+
return self._RequestId
|
|
530
|
+
|
|
531
|
+
@RequestId.setter
|
|
532
|
+
def RequestId(self, RequestId):
|
|
533
|
+
self._RequestId = RequestId
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
def _deserialize(self, params):
|
|
537
|
+
self._JobId = params.get("JobId")
|
|
538
|
+
self._RequestId = params.get("RequestId")
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# -*- coding: utf8 -*-
|
|
2
|
+
# Copyright (c) 2017-2021 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
#
|
|
4
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
# you may not use this file except in compliance with the License.
|
|
6
|
+
# You may obtain a copy of the License at
|
|
7
|
+
#
|
|
8
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
#
|
|
10
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
# See the License for the specific language governing permissions and
|
|
14
|
+
# limitations under the License.
|
|
15
|
+
|
|
16
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.vclm.v20240523 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class VclmClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2024-05-23'
|
|
25
|
+
_endpoint = 'vclm.tencentcloudapi.com'
|
|
26
|
+
_service = 'vclm'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def DescribeImageAnimateJob(self, request):
|
|
30
|
+
"""This API is used to query image animation tasks. The image animation feature supports generating videos based on dance movements and images to meet the needs of scenarios such as social entertainment and interactive marketing.
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for DescribeImageAnimateJob.
|
|
33
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.DescribeImageAnimateJobRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.DescribeImageAnimateJobResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("DescribeImageAnimateJob", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.DescribeImageAnimateJobResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def SubmitImageAnimateJob(self, request):
|
|
53
|
+
"""This API is used to submit image animation tasks. The image animation feature supports generating videos based on dance movements and images to meet the needs of scenarios such as social entertainment and interactive marketing.
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for SubmitImageAnimateJob.
|
|
56
|
+
:type request: :class:`tencentcloud.vclm.v20240523.models.SubmitImageAnimateJobRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.vclm.v20240523.models.SubmitImageAnimateJobResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("SubmitImageAnimateJob", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.SubmitImageAnimateJobResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|