tencentcloud-sdk-python-mps 3.0.1460__tar.gz → 3.0.1463__tar.gz
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-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/setup.py +1 -1
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud/mps/v20190612/models.py +534 -8
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-mps-3.0.1463/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-mps-3.0.1460/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/README.rst +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/setup.cfg +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud/mps/v20190612/mps_client.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-mps-3.0.1460 → tencentcloud-sdk-python-mps-3.0.1463}/tencentcloud_sdk_python_mps.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-mps',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1463,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Mps SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -2023,6 +2023,7 @@ class AiAnalysisResult(AbstractModel):
|
|
|
2023
2023
|
<li>Highlight:智能精彩集锦</li>
|
|
2024
2024
|
<li>DeLogo:智能擦除</li>
|
|
2025
2025
|
<li>Description:大模型摘要</li>
|
|
2026
|
+
<li>Dubbing:智能译制</li>
|
|
2026
2027
|
:type Type: str
|
|
2027
2028
|
:param _ClassificationTask: 视频内容分析智能分类任务的查询结果,当任务类型为 Classification 时有效。
|
|
2028
2029
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -2054,6 +2055,9 @@ class AiAnalysisResult(AbstractModel):
|
|
|
2054
2055
|
:param _HorizontalToVerticalTask: 视频内容分析横转竖任务的查询结果,当任务类型为 HorizontalToVertical 时有效。
|
|
2055
2056
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2056
2057
|
:type HorizontalToVerticalTask: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskHorizontalToVerticalResult`
|
|
2058
|
+
:param _DubbingTask: 视频内容分析译制任务的查询结果,当任务类型为 Dubbing 时有效。
|
|
2059
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2060
|
+
:type DubbingTask: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingResult`
|
|
2057
2061
|
"""
|
|
2058
2062
|
self._Type = None
|
|
2059
2063
|
self._ClassificationTask = None
|
|
@@ -2066,6 +2070,7 @@ class AiAnalysisResult(AbstractModel):
|
|
|
2066
2070
|
self._HeadTailTask = None
|
|
2067
2071
|
self._DescriptionTask = None
|
|
2068
2072
|
self._HorizontalToVerticalTask = None
|
|
2073
|
+
self._DubbingTask = None
|
|
2069
2074
|
|
|
2070
2075
|
@property
|
|
2071
2076
|
def Type(self):
|
|
@@ -2077,6 +2082,7 @@ class AiAnalysisResult(AbstractModel):
|
|
|
2077
2082
|
<li>Highlight:智能精彩集锦</li>
|
|
2078
2083
|
<li>DeLogo:智能擦除</li>
|
|
2079
2084
|
<li>Description:大模型摘要</li>
|
|
2085
|
+
<li>Dubbing:智能译制</li>
|
|
2080
2086
|
:rtype: str
|
|
2081
2087
|
"""
|
|
2082
2088
|
return self._Type
|
|
@@ -2205,6 +2211,18 @@ class AiAnalysisResult(AbstractModel):
|
|
|
2205
2211
|
def HorizontalToVerticalTask(self, HorizontalToVerticalTask):
|
|
2206
2212
|
self._HorizontalToVerticalTask = HorizontalToVerticalTask
|
|
2207
2213
|
|
|
2214
|
+
@property
|
|
2215
|
+
def DubbingTask(self):
|
|
2216
|
+
r"""视频内容分析译制任务的查询结果,当任务类型为 Dubbing 时有效。
|
|
2217
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2218
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingResult`
|
|
2219
|
+
"""
|
|
2220
|
+
return self._DubbingTask
|
|
2221
|
+
|
|
2222
|
+
@DubbingTask.setter
|
|
2223
|
+
def DubbingTask(self, DubbingTask):
|
|
2224
|
+
self._DubbingTask = DubbingTask
|
|
2225
|
+
|
|
2208
2226
|
|
|
2209
2227
|
def _deserialize(self, params):
|
|
2210
2228
|
self._Type = params.get("Type")
|
|
@@ -2238,6 +2256,9 @@ class AiAnalysisResult(AbstractModel):
|
|
|
2238
2256
|
if params.get("HorizontalToVerticalTask") is not None:
|
|
2239
2257
|
self._HorizontalToVerticalTask = AiAnalysisTaskHorizontalToVerticalResult()
|
|
2240
2258
|
self._HorizontalToVerticalTask._deserialize(params.get("HorizontalToVerticalTask"))
|
|
2259
|
+
if params.get("DubbingTask") is not None:
|
|
2260
|
+
self._DubbingTask = AiAnalysisTaskDubbingResult()
|
|
2261
|
+
self._DubbingTask._deserialize(params.get("DubbingTask"))
|
|
2241
2262
|
memeber_set = set(params.keys())
|
|
2242
2263
|
for name, value in vars(self).items():
|
|
2243
2264
|
property_name = name[1:]
|
|
@@ -2707,12 +2728,20 @@ class AiAnalysisTaskDelLogoOutput(AbstractModel):
|
|
|
2707
2728
|
:param _SubtitlePos: 擦除的字幕位置。**注意**:仅对字幕提取且开启返回字幕位置时有效。
|
|
2708
2729
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2709
2730
|
:type SubtitlePos: :class:`tencentcloud.mps.v20190612.models.SubtitlePosition`
|
|
2731
|
+
:param _VoiceClonedVideo: 音色克隆后的视频文件地址
|
|
2732
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2733
|
+
:type VoiceClonedVideo: str
|
|
2734
|
+
:param _VoiceClonedMarkFile: 音色克隆的标注文件地址
|
|
2735
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2736
|
+
:type VoiceClonedMarkFile: str
|
|
2710
2737
|
"""
|
|
2711
2738
|
self._Path = None
|
|
2712
2739
|
self._OutputStorage = None
|
|
2713
2740
|
self._OriginSubtitlePath = None
|
|
2714
2741
|
self._TranslateSubtitlePath = None
|
|
2715
2742
|
self._SubtitlePos = None
|
|
2743
|
+
self._VoiceClonedVideo = None
|
|
2744
|
+
self._VoiceClonedMarkFile = None
|
|
2716
2745
|
|
|
2717
2746
|
@property
|
|
2718
2747
|
def Path(self):
|
|
@@ -2770,6 +2799,30 @@ class AiAnalysisTaskDelLogoOutput(AbstractModel):
|
|
|
2770
2799
|
def SubtitlePos(self, SubtitlePos):
|
|
2771
2800
|
self._SubtitlePos = SubtitlePos
|
|
2772
2801
|
|
|
2802
|
+
@property
|
|
2803
|
+
def VoiceClonedVideo(self):
|
|
2804
|
+
r"""音色克隆后的视频文件地址
|
|
2805
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2806
|
+
:rtype: str
|
|
2807
|
+
"""
|
|
2808
|
+
return self._VoiceClonedVideo
|
|
2809
|
+
|
|
2810
|
+
@VoiceClonedVideo.setter
|
|
2811
|
+
def VoiceClonedVideo(self, VoiceClonedVideo):
|
|
2812
|
+
self._VoiceClonedVideo = VoiceClonedVideo
|
|
2813
|
+
|
|
2814
|
+
@property
|
|
2815
|
+
def VoiceClonedMarkFile(self):
|
|
2816
|
+
r"""音色克隆的标注文件地址
|
|
2817
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2818
|
+
:rtype: str
|
|
2819
|
+
"""
|
|
2820
|
+
return self._VoiceClonedMarkFile
|
|
2821
|
+
|
|
2822
|
+
@VoiceClonedMarkFile.setter
|
|
2823
|
+
def VoiceClonedMarkFile(self, VoiceClonedMarkFile):
|
|
2824
|
+
self._VoiceClonedMarkFile = VoiceClonedMarkFile
|
|
2825
|
+
|
|
2773
2826
|
|
|
2774
2827
|
def _deserialize(self, params):
|
|
2775
2828
|
self._Path = params.get("Path")
|
|
@@ -2781,6 +2834,8 @@ class AiAnalysisTaskDelLogoOutput(AbstractModel):
|
|
|
2781
2834
|
if params.get("SubtitlePos") is not None:
|
|
2782
2835
|
self._SubtitlePos = SubtitlePosition()
|
|
2783
2836
|
self._SubtitlePos._deserialize(params.get("SubtitlePos"))
|
|
2837
|
+
self._VoiceClonedVideo = params.get("VoiceClonedVideo")
|
|
2838
|
+
self._VoiceClonedMarkFile = params.get("VoiceClonedMarkFile")
|
|
2784
2839
|
memeber_set = set(params.keys())
|
|
2785
2840
|
for name, value in vars(self).items():
|
|
2786
2841
|
property_name = name[1:]
|
|
@@ -3072,6 +3127,214 @@ class AiAnalysisTaskDescriptionResult(AbstractModel):
|
|
|
3072
3127
|
|
|
3073
3128
|
|
|
3074
3129
|
|
|
3130
|
+
class AiAnalysisTaskDubbingInput(AbstractModel):
|
|
3131
|
+
r"""智能译制任务输入类型
|
|
3132
|
+
|
|
3133
|
+
"""
|
|
3134
|
+
|
|
3135
|
+
def __init__(self):
|
|
3136
|
+
r"""
|
|
3137
|
+
:param _Definition: 视频译制模板 ID。
|
|
3138
|
+
:type Definition: int
|
|
3139
|
+
"""
|
|
3140
|
+
self._Definition = None
|
|
3141
|
+
|
|
3142
|
+
@property
|
|
3143
|
+
def Definition(self):
|
|
3144
|
+
r"""视频译制模板 ID。
|
|
3145
|
+
:rtype: int
|
|
3146
|
+
"""
|
|
3147
|
+
return self._Definition
|
|
3148
|
+
|
|
3149
|
+
@Definition.setter
|
|
3150
|
+
def Definition(self, Definition):
|
|
3151
|
+
self._Definition = Definition
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
def _deserialize(self, params):
|
|
3155
|
+
self._Definition = params.get("Definition")
|
|
3156
|
+
memeber_set = set(params.keys())
|
|
3157
|
+
for name, value in vars(self).items():
|
|
3158
|
+
property_name = name[1:]
|
|
3159
|
+
if property_name in memeber_set:
|
|
3160
|
+
memeber_set.remove(property_name)
|
|
3161
|
+
if len(memeber_set) > 0:
|
|
3162
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3163
|
+
|
|
3164
|
+
|
|
3165
|
+
|
|
3166
|
+
class AiAnalysisTaskDubbingOutput(AbstractModel):
|
|
3167
|
+
r"""智能译制结果信息
|
|
3168
|
+
|
|
3169
|
+
"""
|
|
3170
|
+
|
|
3171
|
+
def __init__(self):
|
|
3172
|
+
r"""
|
|
3173
|
+
:param _VideoPath: 译制视频路径。
|
|
3174
|
+
:type VideoPath: str
|
|
3175
|
+
:param _SpeakerPath: 标记文件路径
|
|
3176
|
+
|
|
3177
|
+
:type SpeakerPath: str
|
|
3178
|
+
:param _OutputStorage: 译制视频存储位置。
|
|
3179
|
+
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
3180
|
+
"""
|
|
3181
|
+
self._VideoPath = None
|
|
3182
|
+
self._SpeakerPath = None
|
|
3183
|
+
self._OutputStorage = None
|
|
3184
|
+
|
|
3185
|
+
@property
|
|
3186
|
+
def VideoPath(self):
|
|
3187
|
+
r"""译制视频路径。
|
|
3188
|
+
:rtype: str
|
|
3189
|
+
"""
|
|
3190
|
+
return self._VideoPath
|
|
3191
|
+
|
|
3192
|
+
@VideoPath.setter
|
|
3193
|
+
def VideoPath(self, VideoPath):
|
|
3194
|
+
self._VideoPath = VideoPath
|
|
3195
|
+
|
|
3196
|
+
@property
|
|
3197
|
+
def SpeakerPath(self):
|
|
3198
|
+
r"""标记文件路径
|
|
3199
|
+
|
|
3200
|
+
:rtype: str
|
|
3201
|
+
"""
|
|
3202
|
+
return self._SpeakerPath
|
|
3203
|
+
|
|
3204
|
+
@SpeakerPath.setter
|
|
3205
|
+
def SpeakerPath(self, SpeakerPath):
|
|
3206
|
+
self._SpeakerPath = SpeakerPath
|
|
3207
|
+
|
|
3208
|
+
@property
|
|
3209
|
+
def OutputStorage(self):
|
|
3210
|
+
r"""译制视频存储位置。
|
|
3211
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
3212
|
+
"""
|
|
3213
|
+
return self._OutputStorage
|
|
3214
|
+
|
|
3215
|
+
@OutputStorage.setter
|
|
3216
|
+
def OutputStorage(self, OutputStorage):
|
|
3217
|
+
self._OutputStorage = OutputStorage
|
|
3218
|
+
|
|
3219
|
+
|
|
3220
|
+
def _deserialize(self, params):
|
|
3221
|
+
self._VideoPath = params.get("VideoPath")
|
|
3222
|
+
self._SpeakerPath = params.get("SpeakerPath")
|
|
3223
|
+
if params.get("OutputStorage") is not None:
|
|
3224
|
+
self._OutputStorage = TaskOutputStorage()
|
|
3225
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
3226
|
+
memeber_set = set(params.keys())
|
|
3227
|
+
for name, value in vars(self).items():
|
|
3228
|
+
property_name = name[1:]
|
|
3229
|
+
if property_name in memeber_set:
|
|
3230
|
+
memeber_set.remove(property_name)
|
|
3231
|
+
if len(memeber_set) > 0:
|
|
3232
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3233
|
+
|
|
3234
|
+
|
|
3235
|
+
|
|
3236
|
+
class AiAnalysisTaskDubbingResult(AbstractModel):
|
|
3237
|
+
r"""智能译制结果类型
|
|
3238
|
+
|
|
3239
|
+
"""
|
|
3240
|
+
|
|
3241
|
+
def __init__(self):
|
|
3242
|
+
r"""
|
|
3243
|
+
:param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
|
3244
|
+
:type Status: str
|
|
3245
|
+
:param _ErrCode: 错误码,0:成功,其他值:失败。
|
|
3246
|
+
:type ErrCode: int
|
|
3247
|
+
:param _Message: 错误信息。
|
|
3248
|
+
:type Message: str
|
|
3249
|
+
:param _Input: 智能译制任务输入。
|
|
3250
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingInput`
|
|
3251
|
+
:param _Output: 智能译制任务输出。
|
|
3252
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3253
|
+
:type Output: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingOutput`
|
|
3254
|
+
"""
|
|
3255
|
+
self._Status = None
|
|
3256
|
+
self._ErrCode = None
|
|
3257
|
+
self._Message = None
|
|
3258
|
+
self._Input = None
|
|
3259
|
+
self._Output = None
|
|
3260
|
+
|
|
3261
|
+
@property
|
|
3262
|
+
def Status(self):
|
|
3263
|
+
r"""任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
|
3264
|
+
:rtype: str
|
|
3265
|
+
"""
|
|
3266
|
+
return self._Status
|
|
3267
|
+
|
|
3268
|
+
@Status.setter
|
|
3269
|
+
def Status(self, Status):
|
|
3270
|
+
self._Status = Status
|
|
3271
|
+
|
|
3272
|
+
@property
|
|
3273
|
+
def ErrCode(self):
|
|
3274
|
+
r"""错误码,0:成功,其他值:失败。
|
|
3275
|
+
:rtype: int
|
|
3276
|
+
"""
|
|
3277
|
+
return self._ErrCode
|
|
3278
|
+
|
|
3279
|
+
@ErrCode.setter
|
|
3280
|
+
def ErrCode(self, ErrCode):
|
|
3281
|
+
self._ErrCode = ErrCode
|
|
3282
|
+
|
|
3283
|
+
@property
|
|
3284
|
+
def Message(self):
|
|
3285
|
+
r"""错误信息。
|
|
3286
|
+
:rtype: str
|
|
3287
|
+
"""
|
|
3288
|
+
return self._Message
|
|
3289
|
+
|
|
3290
|
+
@Message.setter
|
|
3291
|
+
def Message(self, Message):
|
|
3292
|
+
self._Message = Message
|
|
3293
|
+
|
|
3294
|
+
@property
|
|
3295
|
+
def Input(self):
|
|
3296
|
+
r"""智能译制任务输入。
|
|
3297
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingInput`
|
|
3298
|
+
"""
|
|
3299
|
+
return self._Input
|
|
3300
|
+
|
|
3301
|
+
@Input.setter
|
|
3302
|
+
def Input(self, Input):
|
|
3303
|
+
self._Input = Input
|
|
3304
|
+
|
|
3305
|
+
@property
|
|
3306
|
+
def Output(self):
|
|
3307
|
+
r"""智能译制任务输出。
|
|
3308
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3309
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingOutput`
|
|
3310
|
+
"""
|
|
3311
|
+
return self._Output
|
|
3312
|
+
|
|
3313
|
+
@Output.setter
|
|
3314
|
+
def Output(self, Output):
|
|
3315
|
+
self._Output = Output
|
|
3316
|
+
|
|
3317
|
+
|
|
3318
|
+
def _deserialize(self, params):
|
|
3319
|
+
self._Status = params.get("Status")
|
|
3320
|
+
self._ErrCode = params.get("ErrCode")
|
|
3321
|
+
self._Message = params.get("Message")
|
|
3322
|
+
if params.get("Input") is not None:
|
|
3323
|
+
self._Input = AiAnalysisTaskDubbingInput()
|
|
3324
|
+
self._Input._deserialize(params.get("Input"))
|
|
3325
|
+
if params.get("Output") is not None:
|
|
3326
|
+
self._Output = AiAnalysisTaskDubbingOutput()
|
|
3327
|
+
self._Output._deserialize(params.get("Output"))
|
|
3328
|
+
memeber_set = set(params.keys())
|
|
3329
|
+
for name, value in vars(self).items():
|
|
3330
|
+
property_name = name[1:]
|
|
3331
|
+
if property_name in memeber_set:
|
|
3332
|
+
memeber_set.remove(property_name)
|
|
3333
|
+
if len(memeber_set) > 0:
|
|
3334
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
|
|
3075
3338
|
class AiAnalysisTaskFrameTagInput(AbstractModel):
|
|
3076
3339
|
r"""智能按帧标签任务输入类型
|
|
3077
3340
|
|
|
@@ -13139,17 +13402,15 @@ class BeautyFilterItemConfig(AbstractModel):
|
|
|
13139
13402
|
:param _Type: 类型名称。取值如下:
|
|
13140
13403
|
|
|
13141
13404
|
<li>Dongjing:东京</li>
|
|
13142
|
-
<li>
|
|
13405
|
+
<li>Qingjiaopian:轻胶片</li>
|
|
13143
13406
|
<li>Meiwei:美味</li>
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
13407
|
:type Type: str
|
|
13147
13408
|
:param _Switch: 能力配置开关,可选值:
|
|
13148
13409
|
<li>ON:开启;</li>
|
|
13149
13410
|
<li>OFF:关闭。</li>
|
|
13150
13411
|
默认值:ON。
|
|
13151
13412
|
:type Switch: str
|
|
13152
|
-
:param _Value: 效果强度,值范围:[
|
|
13413
|
+
:param _Value: 效果强度,值范围:[-100, 100]。
|
|
13153
13414
|
:type Value: int
|
|
13154
13415
|
"""
|
|
13155
13416
|
self._Type = None
|
|
@@ -13161,10 +13422,8 @@ class BeautyFilterItemConfig(AbstractModel):
|
|
|
13161
13422
|
r"""类型名称。取值如下:
|
|
13162
13423
|
|
|
13163
13424
|
<li>Dongjing:东京</li>
|
|
13164
|
-
<li>
|
|
13425
|
+
<li>Qingjiaopian:轻胶片</li>
|
|
13165
13426
|
<li>Meiwei:美味</li>
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
13427
|
:rtype: str
|
|
13169
13428
|
"""
|
|
13170
13429
|
return self._Type
|
|
@@ -13189,7 +13448,7 @@ class BeautyFilterItemConfig(AbstractModel):
|
|
|
13189
13448
|
|
|
13190
13449
|
@property
|
|
13191
13450
|
def Value(self):
|
|
13192
|
-
r"""效果强度,值范围:[
|
|
13451
|
+
r"""效果强度,值范围:[-100, 100]。
|
|
13193
13452
|
:rtype: int
|
|
13194
13453
|
"""
|
|
13195
13454
|
return self._Value
|
|
@@ -31161,6 +31420,8 @@ class DescribeTaskDetailResponse(AbstractModel):
|
|
|
31161
31420
|
:param _LiveStreamProcessTask: 直播流处理任务信息,仅当 TaskType 为 LiveStreamProcessTask,该字段有值。
|
|
31162
31421
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
31163
31422
|
:type LiveStreamProcessTask: :class:`tencentcloud.mps.v20190612.models.LiveStreamProcessTask`
|
|
31423
|
+
:param _ExtractBlindWatermarkTask: 提取数字水印任务信息,仅当 TaskType 为 ExtractBlindWatermark,该字段有值。
|
|
31424
|
+
:type ExtractBlindWatermarkTask: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTask`
|
|
31164
31425
|
:param _TaskNotifyConfig: 任务的事件通知信息。
|
|
31165
31426
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
31166
31427
|
:type TaskNotifyConfig: :class:`tencentcloud.mps.v20190612.models.TaskNotifyConfig`
|
|
@@ -31189,6 +31450,7 @@ class DescribeTaskDetailResponse(AbstractModel):
|
|
|
31189
31450
|
self._EditMediaTask = None
|
|
31190
31451
|
self._WorkflowTask = None
|
|
31191
31452
|
self._LiveStreamProcessTask = None
|
|
31453
|
+
self._ExtractBlindWatermarkTask = None
|
|
31192
31454
|
self._TaskNotifyConfig = None
|
|
31193
31455
|
self._TasksPriority = None
|
|
31194
31456
|
self._SessionId = None
|
|
@@ -31292,6 +31554,17 @@ class DescribeTaskDetailResponse(AbstractModel):
|
|
|
31292
31554
|
def LiveStreamProcessTask(self, LiveStreamProcessTask):
|
|
31293
31555
|
self._LiveStreamProcessTask = LiveStreamProcessTask
|
|
31294
31556
|
|
|
31557
|
+
@property
|
|
31558
|
+
def ExtractBlindWatermarkTask(self):
|
|
31559
|
+
r"""提取数字水印任务信息,仅当 TaskType 为 ExtractBlindWatermark,该字段有值。
|
|
31560
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTask`
|
|
31561
|
+
"""
|
|
31562
|
+
return self._ExtractBlindWatermarkTask
|
|
31563
|
+
|
|
31564
|
+
@ExtractBlindWatermarkTask.setter
|
|
31565
|
+
def ExtractBlindWatermarkTask(self, ExtractBlindWatermarkTask):
|
|
31566
|
+
self._ExtractBlindWatermarkTask = ExtractBlindWatermarkTask
|
|
31567
|
+
|
|
31295
31568
|
@property
|
|
31296
31569
|
def TaskNotifyConfig(self):
|
|
31297
31570
|
r"""任务的事件通知信息。
|
|
@@ -31399,6 +31672,9 @@ class DescribeTaskDetailResponse(AbstractModel):
|
|
|
31399
31672
|
if params.get("LiveStreamProcessTask") is not None:
|
|
31400
31673
|
self._LiveStreamProcessTask = LiveStreamProcessTask()
|
|
31401
31674
|
self._LiveStreamProcessTask._deserialize(params.get("LiveStreamProcessTask"))
|
|
31675
|
+
if params.get("ExtractBlindWatermarkTask") is not None:
|
|
31676
|
+
self._ExtractBlindWatermarkTask = ExtractBlindWatermarkTask()
|
|
31677
|
+
self._ExtractBlindWatermarkTask._deserialize(params.get("ExtractBlindWatermarkTask"))
|
|
31402
31678
|
if params.get("TaskNotifyConfig") is not None:
|
|
31403
31679
|
self._TaskNotifyConfig = TaskNotifyConfig()
|
|
31404
31680
|
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
|
@@ -34747,6 +35023,212 @@ class ExtractBlindWatermarkConfig(AbstractModel):
|
|
|
34747
35023
|
|
|
34748
35024
|
|
|
34749
35025
|
|
|
35026
|
+
class ExtractBlindWatermarkTask(AbstractModel):
|
|
35027
|
+
r"""提取视频数字水印任务信息
|
|
35028
|
+
|
|
35029
|
+
"""
|
|
35030
|
+
|
|
35031
|
+
def __init__(self):
|
|
35032
|
+
r"""
|
|
35033
|
+
:param _TaskId: 媒体处理任务 ID。
|
|
35034
|
+
:type TaskId: str
|
|
35035
|
+
:param _Status: 任务流状态,取值:
|
|
35036
|
+
<li>WAITING:等待中;</li>
|
|
35037
|
+
<li>PROCESSING:处理中;</li>
|
|
35038
|
+
<li>FINISH:已完成。</li>
|
|
35039
|
+
:type Status: str
|
|
35040
|
+
:param _ErrCode: 错误码,0 表示成功,其他值表示失败。
|
|
35041
|
+
:type ErrCode: int
|
|
35042
|
+
:param _Message: 错误信息。
|
|
35043
|
+
:type Message: str
|
|
35044
|
+
:param _InputInfo: 媒体处理的目标文件信息。
|
|
35045
|
+
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
35046
|
+
:param _Type: 数字水印类型,可选值:<li>blind-basic:基础版权数字水印;</li> <li>blind-ab:ab版权数字水印;</li>
|
|
35047
|
+
:type Type: str
|
|
35048
|
+
:param _IsDetected: 标记是否检测到水印,如果该参数为true, Result字段将返回水印提取结果,如果该参数为false,Result字段不会返回。
|
|
35049
|
+
:type IsDetected: bool
|
|
35050
|
+
:param _Result: 提取出的数字水印内容,当没有检测到水印时该字段不会返回。
|
|
35051
|
+
:type Result: str
|
|
35052
|
+
:param _ExtractBlindWatermarkConfig: 提取数字水印配置。
|
|
35053
|
+
:type ExtractBlindWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTaskConfig`
|
|
35054
|
+
"""
|
|
35055
|
+
self._TaskId = None
|
|
35056
|
+
self._Status = None
|
|
35057
|
+
self._ErrCode = None
|
|
35058
|
+
self._Message = None
|
|
35059
|
+
self._InputInfo = None
|
|
35060
|
+
self._Type = None
|
|
35061
|
+
self._IsDetected = None
|
|
35062
|
+
self._Result = None
|
|
35063
|
+
self._ExtractBlindWatermarkConfig = None
|
|
35064
|
+
|
|
35065
|
+
@property
|
|
35066
|
+
def TaskId(self):
|
|
35067
|
+
r"""媒体处理任务 ID。
|
|
35068
|
+
:rtype: str
|
|
35069
|
+
"""
|
|
35070
|
+
return self._TaskId
|
|
35071
|
+
|
|
35072
|
+
@TaskId.setter
|
|
35073
|
+
def TaskId(self, TaskId):
|
|
35074
|
+
self._TaskId = TaskId
|
|
35075
|
+
|
|
35076
|
+
@property
|
|
35077
|
+
def Status(self):
|
|
35078
|
+
r"""任务流状态,取值:
|
|
35079
|
+
<li>WAITING:等待中;</li>
|
|
35080
|
+
<li>PROCESSING:处理中;</li>
|
|
35081
|
+
<li>FINISH:已完成。</li>
|
|
35082
|
+
:rtype: str
|
|
35083
|
+
"""
|
|
35084
|
+
return self._Status
|
|
35085
|
+
|
|
35086
|
+
@Status.setter
|
|
35087
|
+
def Status(self, Status):
|
|
35088
|
+
self._Status = Status
|
|
35089
|
+
|
|
35090
|
+
@property
|
|
35091
|
+
def ErrCode(self):
|
|
35092
|
+
r"""错误码,0 表示成功,其他值表示失败。
|
|
35093
|
+
:rtype: int
|
|
35094
|
+
"""
|
|
35095
|
+
return self._ErrCode
|
|
35096
|
+
|
|
35097
|
+
@ErrCode.setter
|
|
35098
|
+
def ErrCode(self, ErrCode):
|
|
35099
|
+
self._ErrCode = ErrCode
|
|
35100
|
+
|
|
35101
|
+
@property
|
|
35102
|
+
def Message(self):
|
|
35103
|
+
r"""错误信息。
|
|
35104
|
+
:rtype: str
|
|
35105
|
+
"""
|
|
35106
|
+
return self._Message
|
|
35107
|
+
|
|
35108
|
+
@Message.setter
|
|
35109
|
+
def Message(self, Message):
|
|
35110
|
+
self._Message = Message
|
|
35111
|
+
|
|
35112
|
+
@property
|
|
35113
|
+
def InputInfo(self):
|
|
35114
|
+
r"""媒体处理的目标文件信息。
|
|
35115
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
35116
|
+
"""
|
|
35117
|
+
return self._InputInfo
|
|
35118
|
+
|
|
35119
|
+
@InputInfo.setter
|
|
35120
|
+
def InputInfo(self, InputInfo):
|
|
35121
|
+
self._InputInfo = InputInfo
|
|
35122
|
+
|
|
35123
|
+
@property
|
|
35124
|
+
def Type(self):
|
|
35125
|
+
r"""数字水印类型,可选值:<li>blind-basic:基础版权数字水印;</li> <li>blind-ab:ab版权数字水印;</li>
|
|
35126
|
+
:rtype: str
|
|
35127
|
+
"""
|
|
35128
|
+
return self._Type
|
|
35129
|
+
|
|
35130
|
+
@Type.setter
|
|
35131
|
+
def Type(self, Type):
|
|
35132
|
+
self._Type = Type
|
|
35133
|
+
|
|
35134
|
+
@property
|
|
35135
|
+
def IsDetected(self):
|
|
35136
|
+
r"""标记是否检测到水印,如果该参数为true, Result字段将返回水印提取结果,如果该参数为false,Result字段不会返回。
|
|
35137
|
+
:rtype: bool
|
|
35138
|
+
"""
|
|
35139
|
+
return self._IsDetected
|
|
35140
|
+
|
|
35141
|
+
@IsDetected.setter
|
|
35142
|
+
def IsDetected(self, IsDetected):
|
|
35143
|
+
self._IsDetected = IsDetected
|
|
35144
|
+
|
|
35145
|
+
@property
|
|
35146
|
+
def Result(self):
|
|
35147
|
+
r"""提取出的数字水印内容,当没有检测到水印时该字段不会返回。
|
|
35148
|
+
:rtype: str
|
|
35149
|
+
"""
|
|
35150
|
+
return self._Result
|
|
35151
|
+
|
|
35152
|
+
@Result.setter
|
|
35153
|
+
def Result(self, Result):
|
|
35154
|
+
self._Result = Result
|
|
35155
|
+
|
|
35156
|
+
@property
|
|
35157
|
+
def ExtractBlindWatermarkConfig(self):
|
|
35158
|
+
r"""提取数字水印配置。
|
|
35159
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTaskConfig`
|
|
35160
|
+
"""
|
|
35161
|
+
return self._ExtractBlindWatermarkConfig
|
|
35162
|
+
|
|
35163
|
+
@ExtractBlindWatermarkConfig.setter
|
|
35164
|
+
def ExtractBlindWatermarkConfig(self, ExtractBlindWatermarkConfig):
|
|
35165
|
+
self._ExtractBlindWatermarkConfig = ExtractBlindWatermarkConfig
|
|
35166
|
+
|
|
35167
|
+
|
|
35168
|
+
def _deserialize(self, params):
|
|
35169
|
+
self._TaskId = params.get("TaskId")
|
|
35170
|
+
self._Status = params.get("Status")
|
|
35171
|
+
self._ErrCode = params.get("ErrCode")
|
|
35172
|
+
self._Message = params.get("Message")
|
|
35173
|
+
if params.get("InputInfo") is not None:
|
|
35174
|
+
self._InputInfo = MediaInputInfo()
|
|
35175
|
+
self._InputInfo._deserialize(params.get("InputInfo"))
|
|
35176
|
+
self._Type = params.get("Type")
|
|
35177
|
+
self._IsDetected = params.get("IsDetected")
|
|
35178
|
+
self._Result = params.get("Result")
|
|
35179
|
+
if params.get("ExtractBlindWatermarkConfig") is not None:
|
|
35180
|
+
self._ExtractBlindWatermarkConfig = ExtractBlindWatermarkTaskConfig()
|
|
35181
|
+
self._ExtractBlindWatermarkConfig._deserialize(params.get("ExtractBlindWatermarkConfig"))
|
|
35182
|
+
memeber_set = set(params.keys())
|
|
35183
|
+
for name, value in vars(self).items():
|
|
35184
|
+
property_name = name[1:]
|
|
35185
|
+
if property_name in memeber_set:
|
|
35186
|
+
memeber_set.remove(property_name)
|
|
35187
|
+
if len(memeber_set) > 0:
|
|
35188
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
35189
|
+
|
|
35190
|
+
|
|
35191
|
+
|
|
35192
|
+
class ExtractBlindWatermarkTaskConfig(AbstractModel):
|
|
35193
|
+
r"""提取视频转码数字水印任务配置
|
|
35194
|
+
|
|
35195
|
+
"""
|
|
35196
|
+
|
|
35197
|
+
def __init__(self):
|
|
35198
|
+
r"""
|
|
35199
|
+
:param _SegmentDuration: 当提取数字水印类型为blind-abseq时有效,用于指定输入视频的切片时长,单位:毫秒。
|
|
35200
|
+
如果不填默认切片时长为5秒。
|
|
35201
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35202
|
+
:type SegmentDuration: int
|
|
35203
|
+
"""
|
|
35204
|
+
self._SegmentDuration = None
|
|
35205
|
+
|
|
35206
|
+
@property
|
|
35207
|
+
def SegmentDuration(self):
|
|
35208
|
+
r"""当提取数字水印类型为blind-abseq时有效,用于指定输入视频的切片时长,单位:毫秒。
|
|
35209
|
+
如果不填默认切片时长为5秒。
|
|
35210
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35211
|
+
:rtype: int
|
|
35212
|
+
"""
|
|
35213
|
+
return self._SegmentDuration
|
|
35214
|
+
|
|
35215
|
+
@SegmentDuration.setter
|
|
35216
|
+
def SegmentDuration(self, SegmentDuration):
|
|
35217
|
+
self._SegmentDuration = SegmentDuration
|
|
35218
|
+
|
|
35219
|
+
|
|
35220
|
+
def _deserialize(self, params):
|
|
35221
|
+
self._SegmentDuration = params.get("SegmentDuration")
|
|
35222
|
+
memeber_set = set(params.keys())
|
|
35223
|
+
for name, value in vars(self).items():
|
|
35224
|
+
property_name = name[1:]
|
|
35225
|
+
if property_name in memeber_set:
|
|
35226
|
+
memeber_set.remove(property_name)
|
|
35227
|
+
if len(memeber_set) > 0:
|
|
35228
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
35229
|
+
|
|
35230
|
+
|
|
35231
|
+
|
|
34750
35232
|
class FaceConfigureInfo(AbstractModel):
|
|
34751
35233
|
r"""人脸识别任务控制参数
|
|
34752
35234
|
|
|
@@ -37686,9 +38168,12 @@ class ImageProcessTaskOutput(AbstractModel):
|
|
|
37686
38168
|
:param _OutputStorage: 输出文件的存储位置。
|
|
37687
38169
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
37688
38170
|
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
38171
|
+
:param _SignedUrl: 输出文件的URL。
|
|
38172
|
+
:type SignedUrl: str
|
|
37689
38173
|
"""
|
|
37690
38174
|
self._Path = None
|
|
37691
38175
|
self._OutputStorage = None
|
|
38176
|
+
self._SignedUrl = None
|
|
37692
38177
|
|
|
37693
38178
|
@property
|
|
37694
38179
|
def Path(self):
|
|
@@ -37714,12 +38199,24 @@ class ImageProcessTaskOutput(AbstractModel):
|
|
|
37714
38199
|
def OutputStorage(self, OutputStorage):
|
|
37715
38200
|
self._OutputStorage = OutputStorage
|
|
37716
38201
|
|
|
38202
|
+
@property
|
|
38203
|
+
def SignedUrl(self):
|
|
38204
|
+
r"""输出文件的URL。
|
|
38205
|
+
:rtype: str
|
|
38206
|
+
"""
|
|
38207
|
+
return self._SignedUrl
|
|
38208
|
+
|
|
38209
|
+
@SignedUrl.setter
|
|
38210
|
+
def SignedUrl(self, SignedUrl):
|
|
38211
|
+
self._SignedUrl = SignedUrl
|
|
38212
|
+
|
|
37717
38213
|
|
|
37718
38214
|
def _deserialize(self, params):
|
|
37719
38215
|
self._Path = params.get("Path")
|
|
37720
38216
|
if params.get("OutputStorage") is not None:
|
|
37721
38217
|
self._OutputStorage = TaskOutputStorage()
|
|
37722
38218
|
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
38219
|
+
self._SignedUrl = params.get("SignedUrl")
|
|
37723
38220
|
memeber_set = set(params.keys())
|
|
37724
38221
|
for name, value in vars(self).items():
|
|
37725
38222
|
property_name = name[1:]
|
|
@@ -52976,12 +53473,22 @@ class ProcessImageRequest(AbstractModel):
|
|
|
52976
53473
|
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
52977
53474
|
:param _OutputDir: 图片处理生成的文件输出的路径。如果不填表示与 InputInfo 中文件所在的目录一致。如果是目录,如`/image/201907/`,表示继承原文件名输出到该目录。
|
|
52978
53475
|
:type OutputDir: str
|
|
53476
|
+
:param _OutputPath: 输出路径,可以为相对路径或者绝对路径。
|
|
53477
|
+
若需定义输出路径,路径需以`.{format}`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。
|
|
53478
|
+
相对路径示例:
|
|
53479
|
+
<li>文件名_{变量名}.{format}</li>
|
|
53480
|
+
<li>文件名.{format}</li>
|
|
53481
|
+
绝对路径示例:
|
|
53482
|
+
<li>/自定义路径/文件名_{变量名}.{format}</li>
|
|
53483
|
+
如果不填,则默认为相对路径:{inputName}.{format}。
|
|
53484
|
+
:type OutputPath: str
|
|
52979
53485
|
:param _ImageTask: 图片处理参数。
|
|
52980
53486
|
:type ImageTask: :class:`tencentcloud.mps.v20190612.models.ImageTaskInput`
|
|
52981
53487
|
"""
|
|
52982
53488
|
self._InputInfo = None
|
|
52983
53489
|
self._OutputStorage = None
|
|
52984
53490
|
self._OutputDir = None
|
|
53491
|
+
self._OutputPath = None
|
|
52985
53492
|
self._ImageTask = None
|
|
52986
53493
|
|
|
52987
53494
|
@property
|
|
@@ -53017,6 +53524,24 @@ class ProcessImageRequest(AbstractModel):
|
|
|
53017
53524
|
def OutputDir(self, OutputDir):
|
|
53018
53525
|
self._OutputDir = OutputDir
|
|
53019
53526
|
|
|
53527
|
+
@property
|
|
53528
|
+
def OutputPath(self):
|
|
53529
|
+
r"""输出路径,可以为相对路径或者绝对路径。
|
|
53530
|
+
若需定义输出路径,路径需以`.{format}`结尾。变量名请参考 [文件名变量说明](https://cloud.tencent.com/document/product/862/37039)。
|
|
53531
|
+
相对路径示例:
|
|
53532
|
+
<li>文件名_{变量名}.{format}</li>
|
|
53533
|
+
<li>文件名.{format}</li>
|
|
53534
|
+
绝对路径示例:
|
|
53535
|
+
<li>/自定义路径/文件名_{变量名}.{format}</li>
|
|
53536
|
+
如果不填,则默认为相对路径:{inputName}.{format}。
|
|
53537
|
+
:rtype: str
|
|
53538
|
+
"""
|
|
53539
|
+
return self._OutputPath
|
|
53540
|
+
|
|
53541
|
+
@OutputPath.setter
|
|
53542
|
+
def OutputPath(self, OutputPath):
|
|
53543
|
+
self._OutputPath = OutputPath
|
|
53544
|
+
|
|
53020
53545
|
@property
|
|
53021
53546
|
def ImageTask(self):
|
|
53022
53547
|
r"""图片处理参数。
|
|
@@ -53037,6 +53562,7 @@ class ProcessImageRequest(AbstractModel):
|
|
|
53037
53562
|
self._OutputStorage = TaskOutputStorage()
|
|
53038
53563
|
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
53039
53564
|
self._OutputDir = params.get("OutputDir")
|
|
53565
|
+
self._OutputPath = params.get("OutputPath")
|
|
53040
53566
|
if params.get("ImageTask") is not None:
|
|
53041
53567
|
self._ImageTask = ImageTaskInput()
|
|
53042
53568
|
self._ImageTask._deserialize(params.get("ImageTask"))
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1463
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1460
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|