tencentcloud-sdk-python-intl-en 3.0.1278__py2.py3-none-any.whl → 3.0.1280__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/apigateway/v20180808/errorcodes.py +15 -15
- tencentcloud/autoscaling/v20180419/errorcodes.py +1 -1
- tencentcloud/batch/v20170312/errorcodes.py +1 -1
- tencentcloud/cbs/v20170312/errorcodes.py +2 -2
- tencentcloud/cdb/v20170320/errorcodes.py +1 -1
- tencentcloud/cdn/v20180606/errorcodes.py +2 -2
- tencentcloud/cdz/__init__.py +0 -0
- tencentcloud/cdz/v20221123/__init__.py +0 -0
- tencentcloud/cdz/v20221123/cdz_client.py +49 -0
- tencentcloud/cdz/v20221123/errorcodes.py +18 -0
- tencentcloud/cdz/v20221123/models.py +412 -0
- tencentcloud/cfs/v20190719/errorcodes.py +10 -10
- tencentcloud/cloudaudit/v20190319/errorcodes.py +4 -4
- tencentcloud/csip/v20221121/errorcodes.py +4 -4
- tencentcloud/cvm/v20170312/cvm_client.py +52 -0
- tencentcloud/cvm/v20170312/errorcodes.py +41 -32
- tencentcloud/cvm/v20170312/models.py +253 -0
- tencentcloud/cynosdb/v20190107/errorcodes.py +4 -4
- tencentcloud/dbbrain/v20191016/errorcodes.py +1 -1
- tencentcloud/dbbrain/v20210527/errorcodes.py +1 -1
- tencentcloud/dnspod/v20210323/dnspod_client.py +46 -0
- tencentcloud/dnspod/v20210323/errorcodes.py +7 -4
- tencentcloud/dnspod/v20210323/models.py +287 -0
- tencentcloud/dts/v20180330/errorcodes.py +4 -4
- tencentcloud/dts/v20211206/errorcodes.py +1 -1
- tencentcloud/eb/v20210416/errorcodes.py +1 -1
- tencentcloud/ecm/v20190719/errorcodes.py +3 -3
- tencentcloud/eiam/v20210420/errorcodes.py +33 -33
- tencentcloud/emr/v20190103/errorcodes.py +1 -1
- tencentcloud/es/v20180416/errorcodes.py +16 -16
- tencentcloud/faceid/v20180301/errorcodes.py +1 -1
- tencentcloud/faceid/v20180301/faceid_client.py +2 -2
- tencentcloud/faceid/v20180301/models.py +2 -4
- tencentcloud/iai/v20200303/errorcodes.py +5 -5
- tencentcloud/ims/v20201229/errorcodes.py +3 -3
- tencentcloud/intlpartnersmgt/v20220928/errorcodes.py +2 -2
- tencentcloud/lcic/v20220817/errorcodes.py +1 -1
- tencentcloud/lighthouse/v20200324/errorcodes.py +8 -8
- tencentcloud/live/v20180801/errorcodes.py +7 -7
- tencentcloud/lke/v20231130/errorcodes.py +1 -1
- tencentcloud/mdl/v20200326/errorcodes.py +1 -1
- tencentcloud/mdp/v20200527/errorcodes.py +1 -1
- tencentcloud/mps/v20190612/errorcodes.py +2 -2
- tencentcloud/mps/v20190612/models.py +2176 -371
- tencentcloud/mps/v20190612/mps_client.py +30 -23
- tencentcloud/ocr/v20181119/errorcodes.py +2 -2
- tencentcloud/organization/v20181225/errorcodes.py +1 -1
- tencentcloud/privatedns/v20201028/errorcodes.py +3 -3
- tencentcloud/scf/v20180416/errorcodes.py +5 -5
- tencentcloud/sms/v20190711/errorcodes.py +1 -1
- tencentcloud/sms/v20210111/errorcodes.py +2 -2
- tencentcloud/tag/v20180813/errorcodes.py +1 -1
- tencentcloud/tat/v20201028/errorcodes.py +4 -4
- tencentcloud/tcr/v20190924/errorcodes.py +1 -1
- tencentcloud/tdmq/v20200217/errorcodes.py +1 -1
- tencentcloud/tem/v20210701/errorcodes.py +4 -4
- tencentcloud/teo/v20220106/errorcodes.py +2 -2
- tencentcloud/teo/v20220901/errorcodes.py +6 -6
- tencentcloud/teo/v20220901/models.py +14 -14
- tencentcloud/teo/v20220901/teo_client.py +4 -4
- tencentcloud/tiw/v20190919/errorcodes.py +2 -2
- tencentcloud/tke/v20180525/errorcodes.py +1 -1
- tencentcloud/tms/v20201229/errorcodes.py +1 -1
- tencentcloud/tmt/v20180321/errorcodes.py +7 -7
- tencentcloud/trtc/v20190722/errorcodes.py +2 -2
- tencentcloud/tts/v20190823/errorcodes.py +1 -1
- tencentcloud/vm/v20201229/errorcodes.py +1 -1
- tencentcloud/vm/v20210922/errorcodes.py +1 -1
- tencentcloud/vod/v20180717/errorcodes.py +6 -6
- tencentcloud/vpc/v20170312/errorcodes.py +39 -38
- {tencentcloud_sdk_python_intl_en-3.0.1278.dist-info → tencentcloud_sdk_python_intl_en-3.0.1280.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1278.dist-info → tencentcloud_sdk_python_intl_en-3.0.1280.dist-info}/RECORD +75 -70
- {tencentcloud_sdk_python_intl_en-3.0.1278.dist-info → tencentcloud_sdk_python_intl_en-3.0.1280.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1278.dist-info → tencentcloud_sdk_python_intl_en-3.0.1280.dist-info}/top_level.txt +0 -0
|
@@ -441,21 +441,22 @@ class Activity(AbstractModel):
|
|
|
441
441
|
|
|
442
442
|
def __init__(self):
|
|
443
443
|
r"""
|
|
444
|
-
:param _ActivityType: Atomic task type
|
|
445
|
-
<li>input:
|
|
446
|
-
<li>output:
|
|
447
|
-
<li>action-trans: transcoding
|
|
448
|
-
<li>action-samplesnapshot: sampled screenshot
|
|
449
|
-
<li>action-AIAnalysis: analysis
|
|
450
|
-
<li>action-AIRecognition: recognition
|
|
451
|
-
<li>action-aiReview: review
|
|
452
|
-
<li>action-animated-graphics:
|
|
453
|
-
<li>action-image-sprite:
|
|
454
|
-
<li>action-snapshotByTimeOffset: time point screenshot
|
|
455
|
-
<li>action-adaptive-substream: adaptive bitrate stream
|
|
456
|
-
<li>action-AIQualityControl: media quality inspection
|
|
457
|
-
<li>action-SmartSubtitles: smart
|
|
458
|
-
<li>action-exec-rules: judgment rule
|
|
444
|
+
:param _ActivityType: Atomic task type.
|
|
445
|
+
<li>input: starting node.</li>.
|
|
446
|
+
<li>output: termination node.</li>.
|
|
447
|
+
<li>action-trans: specifies transcoding.</li>.
|
|
448
|
+
<li>action-samplesnapshot: specifies sampled screenshot taking.</li>.
|
|
449
|
+
<li>action-AIAnalysis: analysis.</li>.
|
|
450
|
+
<li>action-AIRecognition: recognition.</li>.
|
|
451
|
+
<li>action-aiReview: specifies the review action.</li>.
|
|
452
|
+
<li>action-animated-graphics: specifies the animated image.</li>.
|
|
453
|
+
<li>action-image-sprite: specifies the sprite sheet.</li>.
|
|
454
|
+
<li>action-snapshotByTimeOffset: specifies time point screenshot taking.</li>.
|
|
455
|
+
<li>action-adaptive-substream: specifies the adaptive bitrate stream.</li>.
|
|
456
|
+
<li>action-AIQualityControl: media quality inspection.</li>.
|
|
457
|
+
<li>action-SmartSubtitles: smart subtitling.</li>.
|
|
458
|
+
<li>action-exec-rules: judgment rule.</li>.
|
|
459
|
+
<li>action-SmartErase: smart erasure.</li>.
|
|
459
460
|
|
|
460
461
|
|
|
461
462
|
|
|
@@ -472,21 +473,22 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
472
473
|
|
|
473
474
|
@property
|
|
474
475
|
def ActivityType(self):
|
|
475
|
-
r"""Atomic task type
|
|
476
|
-
<li>input:
|
|
477
|
-
<li>output:
|
|
478
|
-
<li>action-trans: transcoding
|
|
479
|
-
<li>action-samplesnapshot: sampled screenshot
|
|
480
|
-
<li>action-AIAnalysis: analysis
|
|
481
|
-
<li>action-AIRecognition: recognition
|
|
482
|
-
<li>action-aiReview: review
|
|
483
|
-
<li>action-animated-graphics:
|
|
484
|
-
<li>action-image-sprite:
|
|
485
|
-
<li>action-snapshotByTimeOffset: time point screenshot
|
|
486
|
-
<li>action-adaptive-substream: adaptive bitrate stream
|
|
487
|
-
<li>action-AIQualityControl: media quality inspection
|
|
488
|
-
<li>action-SmartSubtitles: smart
|
|
489
|
-
<li>action-exec-rules: judgment rule
|
|
476
|
+
r"""Atomic task type.
|
|
477
|
+
<li>input: starting node.</li>.
|
|
478
|
+
<li>output: termination node.</li>.
|
|
479
|
+
<li>action-trans: specifies transcoding.</li>.
|
|
480
|
+
<li>action-samplesnapshot: specifies sampled screenshot taking.</li>.
|
|
481
|
+
<li>action-AIAnalysis: analysis.</li>.
|
|
482
|
+
<li>action-AIRecognition: recognition.</li>.
|
|
483
|
+
<li>action-aiReview: specifies the review action.</li>.
|
|
484
|
+
<li>action-animated-graphics: specifies the animated image.</li>.
|
|
485
|
+
<li>action-image-sprite: specifies the sprite sheet.</li>.
|
|
486
|
+
<li>action-snapshotByTimeOffset: specifies time point screenshot taking.</li>.
|
|
487
|
+
<li>action-adaptive-substream: specifies the adaptive bitrate stream.</li>.
|
|
488
|
+
<li>action-AIQualityControl: media quality inspection.</li>.
|
|
489
|
+
<li>action-SmartSubtitles: smart subtitling.</li>.
|
|
490
|
+
<li>action-exec-rules: judgment rule.</li>.
|
|
491
|
+
<li>action-SmartErase: smart erasure.</li>.
|
|
490
492
|
|
|
491
493
|
|
|
492
494
|
|
|
@@ -572,6 +574,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
572
574
|
:param _SmartSubtitlesTask: Smart subtitle task.
|
|
573
575
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
574
576
|
:type SmartSubtitlesTask: :class:`tencentcloud.mps.v20190612.models.SmartSubtitlesTaskInput`
|
|
577
|
+
:param _SmartEraseTask: Smart erasure task.
|
|
578
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
579
|
+
:type SmartEraseTask: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskInput`
|
|
575
580
|
"""
|
|
576
581
|
self._TranscodeTask = None
|
|
577
582
|
self._AnimatedGraphicTask = None
|
|
@@ -585,6 +590,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
585
590
|
self._QualityControlTask = None
|
|
586
591
|
self._ExecRulesTask = None
|
|
587
592
|
self._SmartSubtitlesTask = None
|
|
593
|
+
self._SmartEraseTask = None
|
|
588
594
|
|
|
589
595
|
@property
|
|
590
596
|
def TranscodeTask(self):
|
|
@@ -721,6 +727,18 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
721
727
|
def SmartSubtitlesTask(self, SmartSubtitlesTask):
|
|
722
728
|
self._SmartSubtitlesTask = SmartSubtitlesTask
|
|
723
729
|
|
|
730
|
+
@property
|
|
731
|
+
def SmartEraseTask(self):
|
|
732
|
+
r"""Smart erasure task.
|
|
733
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
734
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskInput`
|
|
735
|
+
"""
|
|
736
|
+
return self._SmartEraseTask
|
|
737
|
+
|
|
738
|
+
@SmartEraseTask.setter
|
|
739
|
+
def SmartEraseTask(self, SmartEraseTask):
|
|
740
|
+
self._SmartEraseTask = SmartEraseTask
|
|
741
|
+
|
|
724
742
|
|
|
725
743
|
def _deserialize(self, params):
|
|
726
744
|
if params.get("TranscodeTask") is not None:
|
|
@@ -759,6 +777,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
759
777
|
if params.get("SmartSubtitlesTask") is not None:
|
|
760
778
|
self._SmartSubtitlesTask = SmartSubtitlesTaskInput()
|
|
761
779
|
self._SmartSubtitlesTask._deserialize(params.get("SmartSubtitlesTask"))
|
|
780
|
+
if params.get("SmartEraseTask") is not None:
|
|
781
|
+
self._SmartEraseTask = SmartEraseTaskInput()
|
|
782
|
+
self._SmartEraseTask._deserialize(params.get("SmartEraseTask"))
|
|
762
783
|
memeber_set = set(params.keys())
|
|
763
784
|
for name, value in vars(self).items():
|
|
764
785
|
property_name = name[1:]
|
|
@@ -812,6 +833,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
812
833
|
:param _SmartSubtitlesTask: Smart subtitle task output.
|
|
813
834
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
814
835
|
:type SmartSubtitlesTask: :class:`tencentcloud.mps.v20190612.models.ScheduleSmartSubtitleTaskResult`
|
|
836
|
+
:param _SmartEraseTask: Smart erase task output.
|
|
837
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
838
|
+
:type SmartEraseTask: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskResult`
|
|
815
839
|
"""
|
|
816
840
|
self._TranscodeTask = None
|
|
817
841
|
self._AnimatedGraphicTask = None
|
|
@@ -825,6 +849,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
825
849
|
self._QualityControlTask = None
|
|
826
850
|
self._ExecRuleTask = None
|
|
827
851
|
self._SmartSubtitlesTask = None
|
|
852
|
+
self._SmartEraseTask = None
|
|
828
853
|
|
|
829
854
|
@property
|
|
830
855
|
def TranscodeTask(self):
|
|
@@ -970,6 +995,18 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
970
995
|
def SmartSubtitlesTask(self, SmartSubtitlesTask):
|
|
971
996
|
self._SmartSubtitlesTask = SmartSubtitlesTask
|
|
972
997
|
|
|
998
|
+
@property
|
|
999
|
+
def SmartEraseTask(self):
|
|
1000
|
+
r"""Smart erase task output.
|
|
1001
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1002
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskResult`
|
|
1003
|
+
"""
|
|
1004
|
+
return self._SmartEraseTask
|
|
1005
|
+
|
|
1006
|
+
@SmartEraseTask.setter
|
|
1007
|
+
def SmartEraseTask(self, SmartEraseTask):
|
|
1008
|
+
self._SmartEraseTask = SmartEraseTask
|
|
1009
|
+
|
|
973
1010
|
|
|
974
1011
|
def _deserialize(self, params):
|
|
975
1012
|
if params.get("TranscodeTask") is not None:
|
|
@@ -1008,6 +1045,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1008
1045
|
if params.get("SmartSubtitlesTask") is not None:
|
|
1009
1046
|
self._SmartSubtitlesTask = ScheduleSmartSubtitleTaskResult()
|
|
1010
1047
|
self._SmartSubtitlesTask._deserialize(params.get("SmartSubtitlesTask"))
|
|
1048
|
+
if params.get("SmartEraseTask") is not None:
|
|
1049
|
+
self._SmartEraseTask = SmartEraseTaskResult()
|
|
1050
|
+
self._SmartEraseTask._deserialize(params.get("SmartEraseTask"))
|
|
1011
1051
|
memeber_set = set(params.keys())
|
|
1012
1052
|
for name, value in vars(self).items():
|
|
1013
1053
|
property_name = name[1:]
|
|
@@ -1026,18 +1066,20 @@ class ActivityResult(AbstractModel):
|
|
|
1026
1066
|
def __init__(self):
|
|
1027
1067
|
r"""
|
|
1028
1068
|
:param _ActivityType: Atomic task type.
|
|
1029
|
-
<Li>Transcode: transcoding
|
|
1030
|
-
<Li>SampleSnapshot: sampled screenshot
|
|
1031
|
-
<Li>AnimatedGraphics:
|
|
1032
|
-
<Li>SnapshotByTimeOffset: time point screenshot
|
|
1033
|
-
<Li>ImageSprites:
|
|
1034
|
-
<Li>AdaptiveDynamicStreaming: adaptive bitrate
|
|
1035
|
-
<Li>AiContentReview: content
|
|
1036
|
-
<Li>AIRecognition: intelligent
|
|
1037
|
-
<Li>AIAnalysis:
|
|
1038
|
-
<li>AiQualityControl: media quality inspection
|
|
1069
|
+
<Li>Transcode: transcoding.</li>.
|
|
1070
|
+
<Li>SampleSnapshot: specifies sampled screenshot taking.</li>.
|
|
1071
|
+
<Li>AnimatedGraphics: specifies the animated image.</li>.
|
|
1072
|
+
<Li>SnapshotByTimeOffset: specifies time point screenshot taking.</li>.
|
|
1073
|
+
<Li>ImageSprites: specifies the sprite sheet.</li>.
|
|
1074
|
+
<Li>AdaptiveDynamicStreaming: adaptive bitrate streaming.</li>.
|
|
1075
|
+
<Li>AiContentReview: specifies content moderation.</li>.
|
|
1076
|
+
<Li>AIRecognition: intelligent identification.</li>.
|
|
1077
|
+
<Li>AIAnalysis: specifies ai analysis.</li>.
|
|
1078
|
+
<li>AiQualityControl: media quality inspection</li>
|
|
1039
1079
|
|
|
1040
1080
|
<Li>SmartSubtitles: smart subtitle</li>
|
|
1081
|
+
|
|
1082
|
+
<Li>SmartErase: smart erasure.</li>.
|
|
1041
1083
|
:type ActivityType: str
|
|
1042
1084
|
:param _ActivityResItem: The execution results of the subtasks of the scheme.
|
|
1043
1085
|
:type ActivityResItem: :class:`tencentcloud.mps.v20190612.models.ActivityResItem`
|
|
@@ -1048,18 +1090,20 @@ class ActivityResult(AbstractModel):
|
|
|
1048
1090
|
@property
|
|
1049
1091
|
def ActivityType(self):
|
|
1050
1092
|
r"""Atomic task type.
|
|
1051
|
-
<Li>Transcode: transcoding
|
|
1052
|
-
<Li>SampleSnapshot: sampled screenshot
|
|
1053
|
-
<Li>AnimatedGraphics:
|
|
1054
|
-
<Li>SnapshotByTimeOffset: time point screenshot
|
|
1055
|
-
<Li>ImageSprites:
|
|
1056
|
-
<Li>AdaptiveDynamicStreaming: adaptive bitrate
|
|
1057
|
-
<Li>AiContentReview: content
|
|
1058
|
-
<Li>AIRecognition: intelligent
|
|
1059
|
-
<Li>AIAnalysis:
|
|
1060
|
-
<li>AiQualityControl: media quality inspection
|
|
1093
|
+
<Li>Transcode: transcoding.</li>.
|
|
1094
|
+
<Li>SampleSnapshot: specifies sampled screenshot taking.</li>.
|
|
1095
|
+
<Li>AnimatedGraphics: specifies the animated image.</li>.
|
|
1096
|
+
<Li>SnapshotByTimeOffset: specifies time point screenshot taking.</li>.
|
|
1097
|
+
<Li>ImageSprites: specifies the sprite sheet.</li>.
|
|
1098
|
+
<Li>AdaptiveDynamicStreaming: adaptive bitrate streaming.</li>.
|
|
1099
|
+
<Li>AiContentReview: specifies content moderation.</li>.
|
|
1100
|
+
<Li>AIRecognition: intelligent identification.</li>.
|
|
1101
|
+
<Li>AIAnalysis: specifies ai analysis.</li>.
|
|
1102
|
+
<li>AiQualityControl: media quality inspection</li>
|
|
1061
1103
|
|
|
1062
1104
|
<Li>SmartSubtitles: smart subtitle</li>
|
|
1105
|
+
|
|
1106
|
+
<Li>SmartErase: smart erasure.</li>.
|
|
1063
1107
|
:rtype: str
|
|
1064
1108
|
"""
|
|
1065
1109
|
return self._ActivityType
|
|
@@ -1205,16 +1249,17 @@ If not filled in, it is a relative path by default: {inputName}_adaptiveDynamicS
|
|
|
1205
1249
|
:type SubStreamObjectName: str
|
|
1206
1250
|
:param _SegmentObjectName: After adaptive dynamic streaming (for HLS only), the output path of segment files can only be a relative path. If not filled in, it is a relative path by default: `{inputName}_adaptiveDynamicStreaming_{definition}_{subStreamNumber}_{segmentNumber}.{format}`.
|
|
1207
1251
|
:type SegmentObjectName: str
|
|
1208
|
-
:param _AddOnSubtitles:
|
|
1252
|
+
:param _AddOnSubtitles: External subtitle feature specifies the subtitle file to be inserted.
|
|
1209
1253
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1210
1254
|
:type AddOnSubtitles: list of AddOnSubtitle
|
|
1211
|
-
:param _DrmInfo: Drm information.
|
|
1255
|
+
:param _DrmInfo: Specifies the Drm information.
|
|
1256
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1212
1257
|
:type DrmInfo: :class:`tencentcloud.mps.v20190612.models.DrmInfo`
|
|
1213
1258
|
:param _DefinitionType: Adaptive transcoding template type.
|
|
1214
1259
|
Common: audio/video type.
|
|
1215
1260
|
PureAudio: audio-only.
|
|
1216
1261
|
:type DefinitionType: str
|
|
1217
|
-
:param _SubtitleTemplate:
|
|
1262
|
+
:param _SubtitleTemplate: Hard subtitle (suppression subtitle) feature, specify subtitles source, font size, position and other subtitle parameters.
|
|
1218
1263
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1219
1264
|
:type SubtitleTemplate: :class:`tencentcloud.mps.v20190612.models.SubtitleTemplate`
|
|
1220
1265
|
:param _StdExtInfo: Transcoding parameter extension field.
|
|
@@ -1308,7 +1353,7 @@ If not filled in, it is a relative path by default: {inputName}_adaptiveDynamicS
|
|
|
1308
1353
|
|
|
1309
1354
|
@property
|
|
1310
1355
|
def AddOnSubtitles(self):
|
|
1311
|
-
r"""
|
|
1356
|
+
r"""External subtitle feature specifies the subtitle file to be inserted.
|
|
1312
1357
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1313
1358
|
:rtype: list of AddOnSubtitle
|
|
1314
1359
|
"""
|
|
@@ -1320,7 +1365,8 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
1320
1365
|
|
|
1321
1366
|
@property
|
|
1322
1367
|
def DrmInfo(self):
|
|
1323
|
-
r"""Drm information.
|
|
1368
|
+
r"""Specifies the Drm information.
|
|
1369
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1324
1370
|
:rtype: :class:`tencentcloud.mps.v20190612.models.DrmInfo`
|
|
1325
1371
|
"""
|
|
1326
1372
|
return self._DrmInfo
|
|
@@ -1344,7 +1390,7 @@ PureAudio: audio-only.
|
|
|
1344
1390
|
|
|
1345
1391
|
@property
|
|
1346
1392
|
def SubtitleTemplate(self):
|
|
1347
|
-
r"""
|
|
1393
|
+
r"""Hard subtitle (suppression subtitle) feature, specify subtitles source, font size, position and other subtitle parameters.
|
|
1348
1394
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1349
1395
|
:rtype: :class:`tencentcloud.mps.v20190612.models.SubtitleTemplate`
|
|
1350
1396
|
"""
|
|
@@ -1852,15 +1898,16 @@ class AiAnalysisResult(AbstractModel):
|
|
|
1852
1898
|
|
|
1853
1899
|
def __init__(self):
|
|
1854
1900
|
r"""
|
|
1855
|
-
:param _Type: Task type.
|
|
1856
|
-
<
|
|
1857
|
-
<
|
|
1858
|
-
<
|
|
1859
|
-
<
|
|
1860
|
-
<
|
|
1861
|
-
|
|
1862
|
-
<li>DeLogo: intelligent removal.</li>
|
|
1901
|
+
:param _Type: Task type. valid values:.
|
|
1902
|
+
<Li>Classification: intelligent classification.</li>.
|
|
1903
|
+
<Li>Cover: specifies the intelligent cover.</li>.
|
|
1904
|
+
<Li>Tag: intelligent tag.</li>.
|
|
1905
|
+
<Li>FrameTag: specifies intelligent frame-by-frame tagging.</li>.
|
|
1906
|
+
<Li>Highlight: intelligent highlights</li>.
|
|
1907
|
+
<Li>DeLogo: intelligent removal.</li>.
|
|
1863
1908
|
<li>Description: large model summarization.</li>
|
|
1909
|
+
|
|
1910
|
+
<Li>Dubbing: intelligent dubbing.</li>.
|
|
1864
1911
|
:type Type: str
|
|
1865
1912
|
:param _ClassificationTask: Query result of intelligent categorization task in video content analysis, which is valid if task type is `Classification`.
|
|
1866
1913
|
:type ClassificationTask: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskClassificationResult`
|
|
@@ -1888,6 +1935,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1888
1935
|
:param _HorizontalToVerticalTask: The query result of a landscape-to-portrait task for video analysis, which is valid when the task type is HorizontalToVertical.
|
|
1889
1936
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
1890
1937
|
:type HorizontalToVerticalTask: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskHorizontalToVerticalResult`
|
|
1938
|
+
:param _DubbingTask: The query result of a Dubbing task for video content analysis, which is valid when the task type is Dubbing.
|
|
1939
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
1940
|
+
:type DubbingTask: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingResult`
|
|
1891
1941
|
"""
|
|
1892
1942
|
self._Type = None
|
|
1893
1943
|
self._ClassificationTask = None
|
|
@@ -1900,18 +1950,20 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
1900
1950
|
self._HeadTailTask = None
|
|
1901
1951
|
self._DescriptionTask = None
|
|
1902
1952
|
self._HorizontalToVerticalTask = None
|
|
1953
|
+
self._DubbingTask = None
|
|
1903
1954
|
|
|
1904
1955
|
@property
|
|
1905
1956
|
def Type(self):
|
|
1906
|
-
r"""Task type.
|
|
1907
|
-
<
|
|
1908
|
-
<
|
|
1909
|
-
<
|
|
1910
|
-
<
|
|
1911
|
-
<
|
|
1912
|
-
|
|
1913
|
-
<li>DeLogo: intelligent removal.</li>
|
|
1957
|
+
r"""Task type. valid values:.
|
|
1958
|
+
<Li>Classification: intelligent classification.</li>.
|
|
1959
|
+
<Li>Cover: specifies the intelligent cover.</li>.
|
|
1960
|
+
<Li>Tag: intelligent tag.</li>.
|
|
1961
|
+
<Li>FrameTag: specifies intelligent frame-by-frame tagging.</li>.
|
|
1962
|
+
<Li>Highlight: intelligent highlights</li>.
|
|
1963
|
+
<Li>DeLogo: intelligent removal.</li>.
|
|
1914
1964
|
<li>Description: large model summarization.</li>
|
|
1965
|
+
|
|
1966
|
+
<Li>Dubbing: intelligent dubbing.</li>.
|
|
1915
1967
|
:rtype: str
|
|
1916
1968
|
"""
|
|
1917
1969
|
return self._Type
|
|
@@ -2036,6 +2088,18 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2036
2088
|
def HorizontalToVerticalTask(self, HorizontalToVerticalTask):
|
|
2037
2089
|
self._HorizontalToVerticalTask = HorizontalToVerticalTask
|
|
2038
2090
|
|
|
2091
|
+
@property
|
|
2092
|
+
def DubbingTask(self):
|
|
2093
|
+
r"""The query result of a Dubbing task for video content analysis, which is valid when the task type is Dubbing.
|
|
2094
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2095
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingResult`
|
|
2096
|
+
"""
|
|
2097
|
+
return self._DubbingTask
|
|
2098
|
+
|
|
2099
|
+
@DubbingTask.setter
|
|
2100
|
+
def DubbingTask(self, DubbingTask):
|
|
2101
|
+
self._DubbingTask = DubbingTask
|
|
2102
|
+
|
|
2039
2103
|
|
|
2040
2104
|
def _deserialize(self, params):
|
|
2041
2105
|
self._Type = params.get("Type")
|
|
@@ -2069,6 +2133,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2069
2133
|
if params.get("HorizontalToVerticalTask") is not None:
|
|
2070
2134
|
self._HorizontalToVerticalTask = AiAnalysisTaskHorizontalToVerticalResult()
|
|
2071
2135
|
self._HorizontalToVerticalTask._deserialize(params.get("HorizontalToVerticalTask"))
|
|
2136
|
+
if params.get("DubbingTask") is not None:
|
|
2137
|
+
self._DubbingTask = AiAnalysisTaskDubbingResult()
|
|
2138
|
+
self._DubbingTask._deserialize(params.get("DubbingTask"))
|
|
2072
2139
|
memeber_set = set(params.keys())
|
|
2073
2140
|
for name, value in vars(self).items():
|
|
2074
2141
|
property_name = name[1:]
|
|
@@ -2534,12 +2601,20 @@ class AiAnalysisTaskDelLogoOutput(AbstractModel):
|
|
|
2534
2601
|
:param _SubtitlePos: Position of the erased subtitle. Note: This field is only valid for subtitle extraction when the option to return subtitle positions is enabled.
|
|
2535
2602
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2536
2603
|
:type SubtitlePos: :class:`tencentcloud.mps.v20190612.models.SubtitlePosition`
|
|
2604
|
+
:param _VoiceClonedVideo: Specifies the file url of the video after voice cloning.
|
|
2605
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2606
|
+
:type VoiceClonedVideo: str
|
|
2607
|
+
:param _VoiceClonedMarkFile: Specifies the file address of the voice type clone annotation.
|
|
2608
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2609
|
+
:type VoiceClonedMarkFile: str
|
|
2537
2610
|
"""
|
|
2538
2611
|
self._Path = None
|
|
2539
2612
|
self._OutputStorage = None
|
|
2540
2613
|
self._OriginSubtitlePath = None
|
|
2541
2614
|
self._TranslateSubtitlePath = None
|
|
2542
2615
|
self._SubtitlePos = None
|
|
2616
|
+
self._VoiceClonedVideo = None
|
|
2617
|
+
self._VoiceClonedMarkFile = None
|
|
2543
2618
|
|
|
2544
2619
|
@property
|
|
2545
2620
|
def Path(self):
|
|
@@ -2597,6 +2672,30 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
2597
2672
|
def SubtitlePos(self, SubtitlePos):
|
|
2598
2673
|
self._SubtitlePos = SubtitlePos
|
|
2599
2674
|
|
|
2675
|
+
@property
|
|
2676
|
+
def VoiceClonedVideo(self):
|
|
2677
|
+
r"""Specifies the file url of the video after voice cloning.
|
|
2678
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2679
|
+
:rtype: str
|
|
2680
|
+
"""
|
|
2681
|
+
return self._VoiceClonedVideo
|
|
2682
|
+
|
|
2683
|
+
@VoiceClonedVideo.setter
|
|
2684
|
+
def VoiceClonedVideo(self, VoiceClonedVideo):
|
|
2685
|
+
self._VoiceClonedVideo = VoiceClonedVideo
|
|
2686
|
+
|
|
2687
|
+
@property
|
|
2688
|
+
def VoiceClonedMarkFile(self):
|
|
2689
|
+
r"""Specifies the file address of the voice type clone annotation.
|
|
2690
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
2691
|
+
:rtype: str
|
|
2692
|
+
"""
|
|
2693
|
+
return self._VoiceClonedMarkFile
|
|
2694
|
+
|
|
2695
|
+
@VoiceClonedMarkFile.setter
|
|
2696
|
+
def VoiceClonedMarkFile(self, VoiceClonedMarkFile):
|
|
2697
|
+
self._VoiceClonedMarkFile = VoiceClonedMarkFile
|
|
2698
|
+
|
|
2600
2699
|
|
|
2601
2700
|
def _deserialize(self, params):
|
|
2602
2701
|
self._Path = params.get("Path")
|
|
@@ -2608,6 +2707,8 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
2608
2707
|
if params.get("SubtitlePos") is not None:
|
|
2609
2708
|
self._SubtitlePos = SubtitlePosition()
|
|
2610
2709
|
self._SubtitlePos._deserialize(params.get("SubtitlePos"))
|
|
2710
|
+
self._VoiceClonedVideo = params.get("VoiceClonedVideo")
|
|
2711
|
+
self._VoiceClonedMarkFile = params.get("VoiceClonedMarkFile")
|
|
2611
2712
|
memeber_set = set(params.keys())
|
|
2612
2713
|
for name, value in vars(self).items():
|
|
2613
2714
|
property_name = name[1:]
|
|
@@ -2897,6 +2998,214 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
2897
2998
|
|
|
2898
2999
|
|
|
2899
3000
|
|
|
3001
|
+
class AiAnalysisTaskDubbingInput(AbstractModel):
|
|
3002
|
+
r"""Intelligent translation task input type.
|
|
3003
|
+
|
|
3004
|
+
"""
|
|
3005
|
+
|
|
3006
|
+
def __init__(self):
|
|
3007
|
+
r"""
|
|
3008
|
+
:param _Definition: Video translation template ID.
|
|
3009
|
+
:type Definition: int
|
|
3010
|
+
"""
|
|
3011
|
+
self._Definition = None
|
|
3012
|
+
|
|
3013
|
+
@property
|
|
3014
|
+
def Definition(self):
|
|
3015
|
+
r"""Video translation template ID.
|
|
3016
|
+
:rtype: int
|
|
3017
|
+
"""
|
|
3018
|
+
return self._Definition
|
|
3019
|
+
|
|
3020
|
+
@Definition.setter
|
|
3021
|
+
def Definition(self, Definition):
|
|
3022
|
+
self._Definition = Definition
|
|
3023
|
+
|
|
3024
|
+
|
|
3025
|
+
def _deserialize(self, params):
|
|
3026
|
+
self._Definition = params.get("Definition")
|
|
3027
|
+
memeber_set = set(params.keys())
|
|
3028
|
+
for name, value in vars(self).items():
|
|
3029
|
+
property_name = name[1:]
|
|
3030
|
+
if property_name in memeber_set:
|
|
3031
|
+
memeber_set.remove(property_name)
|
|
3032
|
+
if len(memeber_set) > 0:
|
|
3033
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3034
|
+
|
|
3035
|
+
|
|
3036
|
+
|
|
3037
|
+
class AiAnalysisTaskDubbingOutput(AbstractModel):
|
|
3038
|
+
r"""Intelligent translation result information.
|
|
3039
|
+
|
|
3040
|
+
"""
|
|
3041
|
+
|
|
3042
|
+
def __init__(self):
|
|
3043
|
+
r"""
|
|
3044
|
+
:param _VideoPath: Specifies the video path for translation.
|
|
3045
|
+
:type VideoPath: str
|
|
3046
|
+
:param _SpeakerPath: Specifies the file path of the tag.
|
|
3047
|
+
|
|
3048
|
+
:type SpeakerPath: str
|
|
3049
|
+
:param _OutputStorage: Specifies the storage location of the transcoded video.
|
|
3050
|
+
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
3051
|
+
"""
|
|
3052
|
+
self._VideoPath = None
|
|
3053
|
+
self._SpeakerPath = None
|
|
3054
|
+
self._OutputStorage = None
|
|
3055
|
+
|
|
3056
|
+
@property
|
|
3057
|
+
def VideoPath(self):
|
|
3058
|
+
r"""Specifies the video path for translation.
|
|
3059
|
+
:rtype: str
|
|
3060
|
+
"""
|
|
3061
|
+
return self._VideoPath
|
|
3062
|
+
|
|
3063
|
+
@VideoPath.setter
|
|
3064
|
+
def VideoPath(self, VideoPath):
|
|
3065
|
+
self._VideoPath = VideoPath
|
|
3066
|
+
|
|
3067
|
+
@property
|
|
3068
|
+
def SpeakerPath(self):
|
|
3069
|
+
r"""Specifies the file path of the tag.
|
|
3070
|
+
|
|
3071
|
+
:rtype: str
|
|
3072
|
+
"""
|
|
3073
|
+
return self._SpeakerPath
|
|
3074
|
+
|
|
3075
|
+
@SpeakerPath.setter
|
|
3076
|
+
def SpeakerPath(self, SpeakerPath):
|
|
3077
|
+
self._SpeakerPath = SpeakerPath
|
|
3078
|
+
|
|
3079
|
+
@property
|
|
3080
|
+
def OutputStorage(self):
|
|
3081
|
+
r"""Specifies the storage location of the transcoded video.
|
|
3082
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
3083
|
+
"""
|
|
3084
|
+
return self._OutputStorage
|
|
3085
|
+
|
|
3086
|
+
@OutputStorage.setter
|
|
3087
|
+
def OutputStorage(self, OutputStorage):
|
|
3088
|
+
self._OutputStorage = OutputStorage
|
|
3089
|
+
|
|
3090
|
+
|
|
3091
|
+
def _deserialize(self, params):
|
|
3092
|
+
self._VideoPath = params.get("VideoPath")
|
|
3093
|
+
self._SpeakerPath = params.get("SpeakerPath")
|
|
3094
|
+
if params.get("OutputStorage") is not None:
|
|
3095
|
+
self._OutputStorage = TaskOutputStorage()
|
|
3096
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
3097
|
+
memeber_set = set(params.keys())
|
|
3098
|
+
for name, value in vars(self).items():
|
|
3099
|
+
property_name = name[1:]
|
|
3100
|
+
if property_name in memeber_set:
|
|
3101
|
+
memeber_set.remove(property_name)
|
|
3102
|
+
if len(memeber_set) > 0:
|
|
3103
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3104
|
+
|
|
3105
|
+
|
|
3106
|
+
|
|
3107
|
+
class AiAnalysisTaskDubbingResult(AbstractModel):
|
|
3108
|
+
r"""Intelligent translation result type.
|
|
3109
|
+
|
|
3110
|
+
"""
|
|
3111
|
+
|
|
3112
|
+
def __init__(self):
|
|
3113
|
+
r"""
|
|
3114
|
+
:param _Status: Task status, including PROCESSING, SUCCESS, and FAIL.
|
|
3115
|
+
:type Status: str
|
|
3116
|
+
:param _ErrCode: Error code. `0`: Task successful. Other values: Task failed.
|
|
3117
|
+
:type ErrCode: int
|
|
3118
|
+
:param _Message: Error message.
|
|
3119
|
+
:type Message: str
|
|
3120
|
+
:param _Input: Describes the task input for intelligent translation.
|
|
3121
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingInput`
|
|
3122
|
+
:param _Output: Describes the task output of intelligent translation.
|
|
3123
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
3124
|
+
:type Output: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingOutput`
|
|
3125
|
+
"""
|
|
3126
|
+
self._Status = None
|
|
3127
|
+
self._ErrCode = None
|
|
3128
|
+
self._Message = None
|
|
3129
|
+
self._Input = None
|
|
3130
|
+
self._Output = None
|
|
3131
|
+
|
|
3132
|
+
@property
|
|
3133
|
+
def Status(self):
|
|
3134
|
+
r"""Task status, including PROCESSING, SUCCESS, and FAIL.
|
|
3135
|
+
:rtype: str
|
|
3136
|
+
"""
|
|
3137
|
+
return self._Status
|
|
3138
|
+
|
|
3139
|
+
@Status.setter
|
|
3140
|
+
def Status(self, Status):
|
|
3141
|
+
self._Status = Status
|
|
3142
|
+
|
|
3143
|
+
@property
|
|
3144
|
+
def ErrCode(self):
|
|
3145
|
+
r"""Error code. `0`: Task successful. Other values: Task failed.
|
|
3146
|
+
:rtype: int
|
|
3147
|
+
"""
|
|
3148
|
+
return self._ErrCode
|
|
3149
|
+
|
|
3150
|
+
@ErrCode.setter
|
|
3151
|
+
def ErrCode(self, ErrCode):
|
|
3152
|
+
self._ErrCode = ErrCode
|
|
3153
|
+
|
|
3154
|
+
@property
|
|
3155
|
+
def Message(self):
|
|
3156
|
+
r"""Error message.
|
|
3157
|
+
:rtype: str
|
|
3158
|
+
"""
|
|
3159
|
+
return self._Message
|
|
3160
|
+
|
|
3161
|
+
@Message.setter
|
|
3162
|
+
def Message(self, Message):
|
|
3163
|
+
self._Message = Message
|
|
3164
|
+
|
|
3165
|
+
@property
|
|
3166
|
+
def Input(self):
|
|
3167
|
+
r"""Describes the task input for intelligent translation.
|
|
3168
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingInput`
|
|
3169
|
+
"""
|
|
3170
|
+
return self._Input
|
|
3171
|
+
|
|
3172
|
+
@Input.setter
|
|
3173
|
+
def Input(self, Input):
|
|
3174
|
+
self._Input = Input
|
|
3175
|
+
|
|
3176
|
+
@property
|
|
3177
|
+
def Output(self):
|
|
3178
|
+
r"""Describes the task output of intelligent translation.
|
|
3179
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
3180
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDubbingOutput`
|
|
3181
|
+
"""
|
|
3182
|
+
return self._Output
|
|
3183
|
+
|
|
3184
|
+
@Output.setter
|
|
3185
|
+
def Output(self, Output):
|
|
3186
|
+
self._Output = Output
|
|
3187
|
+
|
|
3188
|
+
|
|
3189
|
+
def _deserialize(self, params):
|
|
3190
|
+
self._Status = params.get("Status")
|
|
3191
|
+
self._ErrCode = params.get("ErrCode")
|
|
3192
|
+
self._Message = params.get("Message")
|
|
3193
|
+
if params.get("Input") is not None:
|
|
3194
|
+
self._Input = AiAnalysisTaskDubbingInput()
|
|
3195
|
+
self._Input._deserialize(params.get("Input"))
|
|
3196
|
+
if params.get("Output") is not None:
|
|
3197
|
+
self._Output = AiAnalysisTaskDubbingOutput()
|
|
3198
|
+
self._Output._deserialize(params.get("Output"))
|
|
3199
|
+
memeber_set = set(params.keys())
|
|
3200
|
+
for name, value in vars(self).items():
|
|
3201
|
+
property_name = name[1:]
|
|
3202
|
+
if property_name in memeber_set:
|
|
3203
|
+
memeber_set.remove(property_name)
|
|
3204
|
+
if len(memeber_set) > 0:
|
|
3205
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3206
|
+
|
|
3207
|
+
|
|
3208
|
+
|
|
2900
3209
|
class AiAnalysisTaskFrameTagInput(AbstractModel):
|
|
2901
3210
|
r"""Input type of intelligent frame-specific tagging task
|
|
2902
3211
|
|
|
@@ -17647,39 +17956,43 @@ class CreateSmartSubtitleTemplateRequest(AbstractModel):
|
|
|
17647
17956
|
:param _Name: Smart subtitle template name.
|
|
17648
17957
|
Length limit: 64 characters.
|
|
17649
17958
|
:type Name: str
|
|
17650
|
-
:param _VideoSrcLanguage:
|
|
17651
|
-
|
|
17652
|
-
zh: Simplified Chinese
|
|
17653
|
-
en:
|
|
17654
|
-
|
|
17655
|
-
|
|
17656
|
-
zh-PY: Chinese
|
|
17657
|
-
zh-medical: Medical Chinese
|
|
17658
|
-
yue: Cantonese
|
|
17659
|
-
|
|
17660
|
-
ms: Malay
|
|
17661
|
-
id: Indonesian
|
|
17662
|
-
fil: Filipino
|
|
17663
|
-
th: Thai
|
|
17664
|
-
pt: Portuguese
|
|
17665
|
-
tr: Turkish
|
|
17666
|
-
ar: Arabic
|
|
17667
|
-
es: Spanish
|
|
17959
|
+
:param _VideoSrcLanguage: Video source language for intelligent caption.
|
|
17960
|
+
Valid values:
|
|
17961
|
+
zh: Simplified Chinese.
|
|
17962
|
+
en: Eenglish.
|
|
17963
|
+
Ja: Japanese.
|
|
17964
|
+
Ko: Korean.
|
|
17965
|
+
zh-PY: Simplified Chinese, English and Cantonese.
|
|
17966
|
+
zh-medical: Medical Chinese.
|
|
17967
|
+
yue: Cantonese.
|
|
17968
|
+
Vi: Vietnamese.
|
|
17969
|
+
ms: Malay.
|
|
17970
|
+
id: Indonesian.
|
|
17971
|
+
fil: Filipino.
|
|
17972
|
+
th: Thai.
|
|
17973
|
+
pt: Portuguese.
|
|
17974
|
+
tr: Turkish.
|
|
17975
|
+
ar: Arabic.
|
|
17976
|
+
es: Spanish.
|
|
17668
17977
|
hi: Hindi
|
|
17669
|
-
|
|
17670
|
-
de: German
|
|
17978
|
+
Fr: French.
|
|
17979
|
+
de: German.
|
|
17671
17980
|
zh-dialect: Chinese dialect
|
|
17981
|
+
zh_en: Simplified Chinese and English
|
|
17982
|
+
prime_zh: Simplified Chinese, Chinese Dialect and English.
|
|
17672
17983
|
:type VideoSrcLanguage: str
|
|
17673
17984
|
:param _SubtitleType: Smart subtitle language type.
|
|
17674
|
-
0: source
|
|
17985
|
+
0: source language
|
|
17986
|
+
1: target language
|
|
17675
17987
|
2: source language + target language
|
|
17676
|
-
The value can only be 0 when TranslateSwitch is set to OFF.The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
17988
|
+
The value can only be 0 when TranslateSwitch is set to OFF. The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
17677
17989
|
:type SubtitleType: int
|
|
17678
17990
|
:param _Comment: Smart subtitle template description.
|
|
17679
17991
|
Length limit: 256 characters.
|
|
17680
17992
|
:type Comment: str
|
|
17681
|
-
:param _SubtitleFormat:
|
|
17682
|
-
vtt: WebVTT format
|
|
17993
|
+
:param _SubtitleFormat: Intelligent subtitle file format.
|
|
17994
|
+
vtt: WebVTT format.
|
|
17995
|
+
srt: SRT format.
|
|
17683
17996
|
If this field is left blank, no subtitle file will be generated.
|
|
17684
17997
|
:type SubtitleFormat: str
|
|
17685
17998
|
:param _AsrHotWordsConfigure: ASR hotword lexicon parameter.
|
|
@@ -17733,28 +18046,30 @@ Length limit: 64 characters.
|
|
|
17733
18046
|
|
|
17734
18047
|
@property
|
|
17735
18048
|
def VideoSrcLanguage(self):
|
|
17736
|
-
r"""
|
|
17737
|
-
|
|
17738
|
-
zh: Simplified Chinese
|
|
17739
|
-
en:
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
zh-PY: Chinese
|
|
17743
|
-
zh-medical: Medical Chinese
|
|
17744
|
-
yue: Cantonese
|
|
17745
|
-
|
|
17746
|
-
ms: Malay
|
|
17747
|
-
id: Indonesian
|
|
17748
|
-
fil: Filipino
|
|
17749
|
-
th: Thai
|
|
17750
|
-
pt: Portuguese
|
|
17751
|
-
tr: Turkish
|
|
17752
|
-
ar: Arabic
|
|
17753
|
-
es: Spanish
|
|
18049
|
+
r"""Video source language for intelligent caption.
|
|
18050
|
+
Valid values:
|
|
18051
|
+
zh: Simplified Chinese.
|
|
18052
|
+
en: Eenglish.
|
|
18053
|
+
Ja: Japanese.
|
|
18054
|
+
Ko: Korean.
|
|
18055
|
+
zh-PY: Simplified Chinese, English and Cantonese.
|
|
18056
|
+
zh-medical: Medical Chinese.
|
|
18057
|
+
yue: Cantonese.
|
|
18058
|
+
Vi: Vietnamese.
|
|
18059
|
+
ms: Malay.
|
|
18060
|
+
id: Indonesian.
|
|
18061
|
+
fil: Filipino.
|
|
18062
|
+
th: Thai.
|
|
18063
|
+
pt: Portuguese.
|
|
18064
|
+
tr: Turkish.
|
|
18065
|
+
ar: Arabic.
|
|
18066
|
+
es: Spanish.
|
|
17754
18067
|
hi: Hindi
|
|
17755
|
-
|
|
17756
|
-
de: German
|
|
18068
|
+
Fr: French.
|
|
18069
|
+
de: German.
|
|
17757
18070
|
zh-dialect: Chinese dialect
|
|
18071
|
+
zh_en: Simplified Chinese and English
|
|
18072
|
+
prime_zh: Simplified Chinese, Chinese Dialect and English.
|
|
17758
18073
|
:rtype: str
|
|
17759
18074
|
"""
|
|
17760
18075
|
return self._VideoSrcLanguage
|
|
@@ -17766,9 +18081,10 @@ zh-dialect: Chinese dialect
|
|
|
17766
18081
|
@property
|
|
17767
18082
|
def SubtitleType(self):
|
|
17768
18083
|
r"""Smart subtitle language type.
|
|
17769
|
-
0: source
|
|
18084
|
+
0: source language
|
|
18085
|
+
1: target language
|
|
17770
18086
|
2: source language + target language
|
|
17771
|
-
The value can only be 0 when TranslateSwitch is set to OFF.The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
18087
|
+
The value can only be 0 when TranslateSwitch is set to OFF. The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
17772
18088
|
:rtype: int
|
|
17773
18089
|
"""
|
|
17774
18090
|
return self._SubtitleType
|
|
@@ -17791,8 +18107,9 @@ Length limit: 256 characters.
|
|
|
17791
18107
|
|
|
17792
18108
|
@property
|
|
17793
18109
|
def SubtitleFormat(self):
|
|
17794
|
-
r"""
|
|
17795
|
-
vtt: WebVTT format
|
|
18110
|
+
r"""Intelligent subtitle file format.
|
|
18111
|
+
vtt: WebVTT format.
|
|
18112
|
+
srt: SRT format.
|
|
17796
18113
|
If this field is left blank, no subtitle file will be generated.
|
|
17797
18114
|
:rtype: str
|
|
17798
18115
|
"""
|
|
@@ -23476,6 +23793,8 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
23476
23793
|
:param _LiveStreamProcessTask: Information of a live stream processing task. This field has a value only when `TaskType` is `LiveStreamProcessTask`.
|
|
23477
23794
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23478
23795
|
:type LiveStreamProcessTask: :class:`tencentcloud.mps.v20190612.models.LiveStreamProcessTask`
|
|
23796
|
+
:param _ExtractBlindWatermarkTask: Extracts digital watermark task information. this field has a value only when TaskType is ExtractBlindWatermark.
|
|
23797
|
+
:type ExtractBlindWatermarkTask: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTask`
|
|
23479
23798
|
:param _TaskNotifyConfig: Event notification information of a task.
|
|
23480
23799
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23481
23800
|
:type TaskNotifyConfig: :class:`tencentcloud.mps.v20190612.models.TaskNotifyConfig`
|
|
@@ -23491,7 +23810,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
23491
23810
|
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23492
23811
|
:type ScheduleTask: :class:`tencentcloud.mps.v20190612.models.ScheduleTask`
|
|
23493
23812
|
:param _LiveScheduleTask: The information of a live scheme. This parameter is valid only if `TaskType` is `LiveScheduleTask`.
|
|
23494
|
-
Note: This field may return
|
|
23813
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23495
23814
|
:type LiveScheduleTask: :class:`tencentcloud.mps.v20190612.models.LiveScheduleTask`
|
|
23496
23815
|
: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.
|
|
23497
23816
|
:type RequestId: str
|
|
@@ -23504,6 +23823,7 @@ Note: This field may return·null, indicating that no valid values can be obtain
|
|
|
23504
23823
|
self._EditMediaTask = None
|
|
23505
23824
|
self._WorkflowTask = None
|
|
23506
23825
|
self._LiveStreamProcessTask = None
|
|
23826
|
+
self._ExtractBlindWatermarkTask = None
|
|
23507
23827
|
self._TaskNotifyConfig = None
|
|
23508
23828
|
self._TasksPriority = None
|
|
23509
23829
|
self._SessionId = None
|
|
@@ -23606,6 +23926,17 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
23606
23926
|
def LiveStreamProcessTask(self, LiveStreamProcessTask):
|
|
23607
23927
|
self._LiveStreamProcessTask = LiveStreamProcessTask
|
|
23608
23928
|
|
|
23929
|
+
@property
|
|
23930
|
+
def ExtractBlindWatermarkTask(self):
|
|
23931
|
+
r"""Extracts digital watermark task information. this field has a value only when TaskType is ExtractBlindWatermark.
|
|
23932
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTask`
|
|
23933
|
+
"""
|
|
23934
|
+
return self._ExtractBlindWatermarkTask
|
|
23935
|
+
|
|
23936
|
+
@ExtractBlindWatermarkTask.setter
|
|
23937
|
+
def ExtractBlindWatermarkTask(self, ExtractBlindWatermarkTask):
|
|
23938
|
+
self._ExtractBlindWatermarkTask = ExtractBlindWatermarkTask
|
|
23939
|
+
|
|
23609
23940
|
@property
|
|
23610
23941
|
def TaskNotifyConfig(self):
|
|
23611
23942
|
r"""Event notification information of a task.
|
|
@@ -23677,7 +24008,7 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
23677
24008
|
@property
|
|
23678
24009
|
def LiveScheduleTask(self):
|
|
23679
24010
|
r"""The information of a live scheme. This parameter is valid only if `TaskType` is `LiveScheduleTask`.
|
|
23680
|
-
Note: This field may return
|
|
24011
|
+
Note: This field may return null, indicating that no valid values can be obtained.
|
|
23681
24012
|
:rtype: :class:`tencentcloud.mps.v20190612.models.LiveScheduleTask`
|
|
23682
24013
|
"""
|
|
23683
24014
|
return self._LiveScheduleTask
|
|
@@ -23713,6 +24044,9 @@ Note: This field may return·null, indicating that no valid values can be obtain
|
|
|
23713
24044
|
if params.get("LiveStreamProcessTask") is not None:
|
|
23714
24045
|
self._LiveStreamProcessTask = LiveStreamProcessTask()
|
|
23715
24046
|
self._LiveStreamProcessTask._deserialize(params.get("LiveStreamProcessTask"))
|
|
24047
|
+
if params.get("ExtractBlindWatermarkTask") is not None:
|
|
24048
|
+
self._ExtractBlindWatermarkTask = ExtractBlindWatermarkTask()
|
|
24049
|
+
self._ExtractBlindWatermarkTask._deserialize(params.get("ExtractBlindWatermarkTask"))
|
|
23716
24050
|
if params.get("TaskNotifyConfig") is not None:
|
|
23717
24051
|
self._TaskNotifyConfig = TaskNotifyConfig()
|
|
23718
24052
|
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
|
@@ -25912,6 +26246,195 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
25912
26246
|
|
|
25913
26247
|
|
|
25914
26248
|
|
|
26249
|
+
class EraseArea(AbstractModel):
|
|
26250
|
+
r"""Smart erasure. coordinate configuration of the removal area.
|
|
26251
|
+
The region is defined by the coordinates of the upper left corner and the bottom-right corner.
|
|
26252
|
+
The coordinate origin is the top-left corner of the frame and the coordinate points can be specified using pixel values or percentage units.
|
|
26253
|
+
**For the Automatic Erasing Area:**
|
|
26254
|
+
When the unit is %, the coordinate range is [0,1].
|
|
26255
|
+
When unit is px, X value range is [0, video image width]. Y value range is [0, video image height].
|
|
26256
|
+
**For the Specified area erasing:**
|
|
26257
|
+
Specifies the coordinate range as [0,1) when the unit is %.
|
|
26258
|
+
When unit: px, X value range [0, video image width], Y value range [0, video image height].
|
|
26259
|
+
|
|
26260
|
+
"""
|
|
26261
|
+
|
|
26262
|
+
def __init__(self):
|
|
26263
|
+
r"""
|
|
26264
|
+
:param _LeftTopX: X-Axis coordinate of the upper left corner.
|
|
26265
|
+
When Unit is set to 1 (percentage Unit), 0.05 indicates the horizontal distance from the upper left corner of the region to the top-left corner of the entire frame is 5% of the frame width.
|
|
26266
|
+
:type LeftTopX: float
|
|
26267
|
+
:param _LeftTopY: Y-Axis coordinate of the upper left corner.
|
|
26268
|
+
When Unit is set to 1 (using percentage Unit), 0.1 indicates the vertical distance from the top-left corner of the area to the top-left corner of the entire frame is 10% of the screen height.
|
|
26269
|
+
:type LeftTopY: float
|
|
26270
|
+
:param _RightBottomX: X-Axis coordinate of the bottom-right corner.
|
|
26271
|
+
When Unit is set to 1 (percentage Unit), 0.75 indicates the horizontal distance from the bottom-right corner of the region to the top-left corner of the entire frame is 75% of the frame width.
|
|
26272
|
+
:type RightBottomX: float
|
|
26273
|
+
:param _RightBottomY: Y-Axis coordinate of the bottom-right corner.
|
|
26274
|
+
When Unit is set to 1 (using percentage Unit), 0.9 indicates the vertical distance from the bottom-right corner of the area to the top-left corner of the entire frame is 90% of the screen height.
|
|
26275
|
+
:type RightBottomY: float
|
|
26276
|
+
:param _Unit: Specifies the coordinate unit.
|
|
26277
|
+
-Percentage.
|
|
26278
|
+
-2 pixel values.
|
|
26279
|
+
:type Unit: int
|
|
26280
|
+
"""
|
|
26281
|
+
self._LeftTopX = None
|
|
26282
|
+
self._LeftTopY = None
|
|
26283
|
+
self._RightBottomX = None
|
|
26284
|
+
self._RightBottomY = None
|
|
26285
|
+
self._Unit = None
|
|
26286
|
+
|
|
26287
|
+
@property
|
|
26288
|
+
def LeftTopX(self):
|
|
26289
|
+
r"""X-Axis coordinate of the upper left corner.
|
|
26290
|
+
When Unit is set to 1 (percentage Unit), 0.05 indicates the horizontal distance from the upper left corner of the region to the top-left corner of the entire frame is 5% of the frame width.
|
|
26291
|
+
:rtype: float
|
|
26292
|
+
"""
|
|
26293
|
+
return self._LeftTopX
|
|
26294
|
+
|
|
26295
|
+
@LeftTopX.setter
|
|
26296
|
+
def LeftTopX(self, LeftTopX):
|
|
26297
|
+
self._LeftTopX = LeftTopX
|
|
26298
|
+
|
|
26299
|
+
@property
|
|
26300
|
+
def LeftTopY(self):
|
|
26301
|
+
r"""Y-Axis coordinate of the upper left corner.
|
|
26302
|
+
When Unit is set to 1 (using percentage Unit), 0.1 indicates the vertical distance from the top-left corner of the area to the top-left corner of the entire frame is 10% of the screen height.
|
|
26303
|
+
:rtype: float
|
|
26304
|
+
"""
|
|
26305
|
+
return self._LeftTopY
|
|
26306
|
+
|
|
26307
|
+
@LeftTopY.setter
|
|
26308
|
+
def LeftTopY(self, LeftTopY):
|
|
26309
|
+
self._LeftTopY = LeftTopY
|
|
26310
|
+
|
|
26311
|
+
@property
|
|
26312
|
+
def RightBottomX(self):
|
|
26313
|
+
r"""X-Axis coordinate of the bottom-right corner.
|
|
26314
|
+
When Unit is set to 1 (percentage Unit), 0.75 indicates the horizontal distance from the bottom-right corner of the region to the top-left corner of the entire frame is 75% of the frame width.
|
|
26315
|
+
:rtype: float
|
|
26316
|
+
"""
|
|
26317
|
+
return self._RightBottomX
|
|
26318
|
+
|
|
26319
|
+
@RightBottomX.setter
|
|
26320
|
+
def RightBottomX(self, RightBottomX):
|
|
26321
|
+
self._RightBottomX = RightBottomX
|
|
26322
|
+
|
|
26323
|
+
@property
|
|
26324
|
+
def RightBottomY(self):
|
|
26325
|
+
r"""Y-Axis coordinate of the bottom-right corner.
|
|
26326
|
+
When Unit is set to 1 (using percentage Unit), 0.9 indicates the vertical distance from the bottom-right corner of the area to the top-left corner of the entire frame is 90% of the screen height.
|
|
26327
|
+
:rtype: float
|
|
26328
|
+
"""
|
|
26329
|
+
return self._RightBottomY
|
|
26330
|
+
|
|
26331
|
+
@RightBottomY.setter
|
|
26332
|
+
def RightBottomY(self, RightBottomY):
|
|
26333
|
+
self._RightBottomY = RightBottomY
|
|
26334
|
+
|
|
26335
|
+
@property
|
|
26336
|
+
def Unit(self):
|
|
26337
|
+
r"""Specifies the coordinate unit.
|
|
26338
|
+
-Percentage.
|
|
26339
|
+
-2 pixel values.
|
|
26340
|
+
:rtype: int
|
|
26341
|
+
"""
|
|
26342
|
+
return self._Unit
|
|
26343
|
+
|
|
26344
|
+
@Unit.setter
|
|
26345
|
+
def Unit(self, Unit):
|
|
26346
|
+
self._Unit = Unit
|
|
26347
|
+
|
|
26348
|
+
|
|
26349
|
+
def _deserialize(self, params):
|
|
26350
|
+
self._LeftTopX = params.get("LeftTopX")
|
|
26351
|
+
self._LeftTopY = params.get("LeftTopY")
|
|
26352
|
+
self._RightBottomX = params.get("RightBottomX")
|
|
26353
|
+
self._RightBottomY = params.get("RightBottomY")
|
|
26354
|
+
self._Unit = params.get("Unit")
|
|
26355
|
+
memeber_set = set(params.keys())
|
|
26356
|
+
for name, value in vars(self).items():
|
|
26357
|
+
property_name = name[1:]
|
|
26358
|
+
if property_name in memeber_set:
|
|
26359
|
+
memeber_set.remove(property_name)
|
|
26360
|
+
if len(memeber_set) > 0:
|
|
26361
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26362
|
+
|
|
26363
|
+
|
|
26364
|
+
|
|
26365
|
+
class EraseTimeArea(AbstractModel):
|
|
26366
|
+
r"""Smart Erase, specifies the region configuration.
|
|
26367
|
+
Erase the designated region directly within a specified period.
|
|
26368
|
+
When both BeginMs and EndMs are set to 0, directly perform removal of the designated region in the entire video.
|
|
26369
|
+
|
|
26370
|
+
"""
|
|
26371
|
+
|
|
26372
|
+
def __init__(self):
|
|
26373
|
+
r"""
|
|
26374
|
+
:param _BeginMs: Start time, in ms.
|
|
26375
|
+
:type BeginMs: int
|
|
26376
|
+
:param _EndMs: End time, unit: ms.
|
|
26377
|
+
:type EndMs: int
|
|
26378
|
+
:param _Areas: Erases the domain list within the period.
|
|
26379
|
+
:type Areas: list of EraseArea
|
|
26380
|
+
"""
|
|
26381
|
+
self._BeginMs = None
|
|
26382
|
+
self._EndMs = None
|
|
26383
|
+
self._Areas = None
|
|
26384
|
+
|
|
26385
|
+
@property
|
|
26386
|
+
def BeginMs(self):
|
|
26387
|
+
r"""Start time, in ms.
|
|
26388
|
+
:rtype: int
|
|
26389
|
+
"""
|
|
26390
|
+
return self._BeginMs
|
|
26391
|
+
|
|
26392
|
+
@BeginMs.setter
|
|
26393
|
+
def BeginMs(self, BeginMs):
|
|
26394
|
+
self._BeginMs = BeginMs
|
|
26395
|
+
|
|
26396
|
+
@property
|
|
26397
|
+
def EndMs(self):
|
|
26398
|
+
r"""End time, unit: ms.
|
|
26399
|
+
:rtype: int
|
|
26400
|
+
"""
|
|
26401
|
+
return self._EndMs
|
|
26402
|
+
|
|
26403
|
+
@EndMs.setter
|
|
26404
|
+
def EndMs(self, EndMs):
|
|
26405
|
+
self._EndMs = EndMs
|
|
26406
|
+
|
|
26407
|
+
@property
|
|
26408
|
+
def Areas(self):
|
|
26409
|
+
r"""Erases the domain list within the period.
|
|
26410
|
+
:rtype: list of EraseArea
|
|
26411
|
+
"""
|
|
26412
|
+
return self._Areas
|
|
26413
|
+
|
|
26414
|
+
@Areas.setter
|
|
26415
|
+
def Areas(self, Areas):
|
|
26416
|
+
self._Areas = Areas
|
|
26417
|
+
|
|
26418
|
+
|
|
26419
|
+
def _deserialize(self, params):
|
|
26420
|
+
self._BeginMs = params.get("BeginMs")
|
|
26421
|
+
self._EndMs = params.get("EndMs")
|
|
26422
|
+
if params.get("Areas") is not None:
|
|
26423
|
+
self._Areas = []
|
|
26424
|
+
for item in params.get("Areas"):
|
|
26425
|
+
obj = EraseArea()
|
|
26426
|
+
obj._deserialize(item)
|
|
26427
|
+
self._Areas.append(obj)
|
|
26428
|
+
memeber_set = set(params.keys())
|
|
26429
|
+
for name, value in vars(self).items():
|
|
26430
|
+
property_name = name[1:]
|
|
26431
|
+
if property_name in memeber_set:
|
|
26432
|
+
memeber_set.remove(property_name)
|
|
26433
|
+
if len(memeber_set) > 0:
|
|
26434
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26435
|
+
|
|
26436
|
+
|
|
26437
|
+
|
|
25915
26438
|
class ExecRuleTaskData(AbstractModel):
|
|
25916
26439
|
r"""Conditional judgment output.
|
|
25917
26440
|
|
|
@@ -26085,6 +26608,212 @@ class ExecuteFunctionResponse(AbstractModel):
|
|
|
26085
26608
|
self._RequestId = params.get("RequestId")
|
|
26086
26609
|
|
|
26087
26610
|
|
|
26611
|
+
class ExtractBlindWatermarkTask(AbstractModel):
|
|
26612
|
+
r"""Extract video digital watermark task information.
|
|
26613
|
+
|
|
26614
|
+
"""
|
|
26615
|
+
|
|
26616
|
+
def __init__(self):
|
|
26617
|
+
r"""
|
|
26618
|
+
:param _TaskId: Media processing task ID.
|
|
26619
|
+
:type TaskId: str
|
|
26620
|
+
:param _Status: Task flow status. valid values:.
|
|
26621
|
+
<Li>WAITING: waiting.</li>.
|
|
26622
|
+
<Li>PROCESSING: processing.</li>.
|
|
26623
|
+
<li>FINISH: completed</li>
|
|
26624
|
+
:type Status: str
|
|
26625
|
+
:param _ErrCode: Error code. `0` indicates success. other values indicate failure.
|
|
26626
|
+
:type ErrCode: int
|
|
26627
|
+
:param _Message: Error message.
|
|
26628
|
+
:type Message: str
|
|
26629
|
+
:param _InputInfo: Target file information for media processing.
|
|
26630
|
+
:type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
26631
|
+
:param _Type: Specifies the digital watermark type. valid values: <li>blind-basic: basic version copyright digital watermark;</li> <li>blind-ab: ab copyright digital watermark.</li>.
|
|
26632
|
+
:type Type: str
|
|
26633
|
+
:param _IsDetected: Indicates whether a watermark is detected. if this parameter is true, the Result field will return the watermark extraction Result. if this parameter is false, the Result field will not return.
|
|
26634
|
+
:type IsDetected: bool
|
|
26635
|
+
:param _Result: Fetched watermark content. this field will not be returned when no detection.
|
|
26636
|
+
:type Result: str
|
|
26637
|
+
:param _ExtractBlindWatermarkConfig: Extracts the digital watermark configuration.
|
|
26638
|
+
:type ExtractBlindWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTaskConfig`
|
|
26639
|
+
"""
|
|
26640
|
+
self._TaskId = None
|
|
26641
|
+
self._Status = None
|
|
26642
|
+
self._ErrCode = None
|
|
26643
|
+
self._Message = None
|
|
26644
|
+
self._InputInfo = None
|
|
26645
|
+
self._Type = None
|
|
26646
|
+
self._IsDetected = None
|
|
26647
|
+
self._Result = None
|
|
26648
|
+
self._ExtractBlindWatermarkConfig = None
|
|
26649
|
+
|
|
26650
|
+
@property
|
|
26651
|
+
def TaskId(self):
|
|
26652
|
+
r"""Media processing task ID.
|
|
26653
|
+
:rtype: str
|
|
26654
|
+
"""
|
|
26655
|
+
return self._TaskId
|
|
26656
|
+
|
|
26657
|
+
@TaskId.setter
|
|
26658
|
+
def TaskId(self, TaskId):
|
|
26659
|
+
self._TaskId = TaskId
|
|
26660
|
+
|
|
26661
|
+
@property
|
|
26662
|
+
def Status(self):
|
|
26663
|
+
r"""Task flow status. valid values:.
|
|
26664
|
+
<Li>WAITING: waiting.</li>.
|
|
26665
|
+
<Li>PROCESSING: processing.</li>.
|
|
26666
|
+
<li>FINISH: completed</li>
|
|
26667
|
+
:rtype: str
|
|
26668
|
+
"""
|
|
26669
|
+
return self._Status
|
|
26670
|
+
|
|
26671
|
+
@Status.setter
|
|
26672
|
+
def Status(self, Status):
|
|
26673
|
+
self._Status = Status
|
|
26674
|
+
|
|
26675
|
+
@property
|
|
26676
|
+
def ErrCode(self):
|
|
26677
|
+
r"""Error code. `0` indicates success. other values indicate failure.
|
|
26678
|
+
:rtype: int
|
|
26679
|
+
"""
|
|
26680
|
+
return self._ErrCode
|
|
26681
|
+
|
|
26682
|
+
@ErrCode.setter
|
|
26683
|
+
def ErrCode(self, ErrCode):
|
|
26684
|
+
self._ErrCode = ErrCode
|
|
26685
|
+
|
|
26686
|
+
@property
|
|
26687
|
+
def Message(self):
|
|
26688
|
+
r"""Error message.
|
|
26689
|
+
:rtype: str
|
|
26690
|
+
"""
|
|
26691
|
+
return self._Message
|
|
26692
|
+
|
|
26693
|
+
@Message.setter
|
|
26694
|
+
def Message(self, Message):
|
|
26695
|
+
self._Message = Message
|
|
26696
|
+
|
|
26697
|
+
@property
|
|
26698
|
+
def InputInfo(self):
|
|
26699
|
+
r"""Target file information for media processing.
|
|
26700
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
|
|
26701
|
+
"""
|
|
26702
|
+
return self._InputInfo
|
|
26703
|
+
|
|
26704
|
+
@InputInfo.setter
|
|
26705
|
+
def InputInfo(self, InputInfo):
|
|
26706
|
+
self._InputInfo = InputInfo
|
|
26707
|
+
|
|
26708
|
+
@property
|
|
26709
|
+
def Type(self):
|
|
26710
|
+
r"""Specifies the digital watermark type. valid values: <li>blind-basic: basic version copyright digital watermark;</li> <li>blind-ab: ab copyright digital watermark.</li>.
|
|
26711
|
+
:rtype: str
|
|
26712
|
+
"""
|
|
26713
|
+
return self._Type
|
|
26714
|
+
|
|
26715
|
+
@Type.setter
|
|
26716
|
+
def Type(self, Type):
|
|
26717
|
+
self._Type = Type
|
|
26718
|
+
|
|
26719
|
+
@property
|
|
26720
|
+
def IsDetected(self):
|
|
26721
|
+
r"""Indicates whether a watermark is detected. if this parameter is true, the Result field will return the watermark extraction Result. if this parameter is false, the Result field will not return.
|
|
26722
|
+
:rtype: bool
|
|
26723
|
+
"""
|
|
26724
|
+
return self._IsDetected
|
|
26725
|
+
|
|
26726
|
+
@IsDetected.setter
|
|
26727
|
+
def IsDetected(self, IsDetected):
|
|
26728
|
+
self._IsDetected = IsDetected
|
|
26729
|
+
|
|
26730
|
+
@property
|
|
26731
|
+
def Result(self):
|
|
26732
|
+
r"""Fetched watermark content. this field will not be returned when no detection.
|
|
26733
|
+
:rtype: str
|
|
26734
|
+
"""
|
|
26735
|
+
return self._Result
|
|
26736
|
+
|
|
26737
|
+
@Result.setter
|
|
26738
|
+
def Result(self, Result):
|
|
26739
|
+
self._Result = Result
|
|
26740
|
+
|
|
26741
|
+
@property
|
|
26742
|
+
def ExtractBlindWatermarkConfig(self):
|
|
26743
|
+
r"""Extracts the digital watermark configuration.
|
|
26744
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ExtractBlindWatermarkTaskConfig`
|
|
26745
|
+
"""
|
|
26746
|
+
return self._ExtractBlindWatermarkConfig
|
|
26747
|
+
|
|
26748
|
+
@ExtractBlindWatermarkConfig.setter
|
|
26749
|
+
def ExtractBlindWatermarkConfig(self, ExtractBlindWatermarkConfig):
|
|
26750
|
+
self._ExtractBlindWatermarkConfig = ExtractBlindWatermarkConfig
|
|
26751
|
+
|
|
26752
|
+
|
|
26753
|
+
def _deserialize(self, params):
|
|
26754
|
+
self._TaskId = params.get("TaskId")
|
|
26755
|
+
self._Status = params.get("Status")
|
|
26756
|
+
self._ErrCode = params.get("ErrCode")
|
|
26757
|
+
self._Message = params.get("Message")
|
|
26758
|
+
if params.get("InputInfo") is not None:
|
|
26759
|
+
self._InputInfo = MediaInputInfo()
|
|
26760
|
+
self._InputInfo._deserialize(params.get("InputInfo"))
|
|
26761
|
+
self._Type = params.get("Type")
|
|
26762
|
+
self._IsDetected = params.get("IsDetected")
|
|
26763
|
+
self._Result = params.get("Result")
|
|
26764
|
+
if params.get("ExtractBlindWatermarkConfig") is not None:
|
|
26765
|
+
self._ExtractBlindWatermarkConfig = ExtractBlindWatermarkTaskConfig()
|
|
26766
|
+
self._ExtractBlindWatermarkConfig._deserialize(params.get("ExtractBlindWatermarkConfig"))
|
|
26767
|
+
memeber_set = set(params.keys())
|
|
26768
|
+
for name, value in vars(self).items():
|
|
26769
|
+
property_name = name[1:]
|
|
26770
|
+
if property_name in memeber_set:
|
|
26771
|
+
memeber_set.remove(property_name)
|
|
26772
|
+
if len(memeber_set) > 0:
|
|
26773
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26774
|
+
|
|
26775
|
+
|
|
26776
|
+
|
|
26777
|
+
class ExtractBlindWatermarkTaskConfig(AbstractModel):
|
|
26778
|
+
r"""Extracts the digital watermark task configuration for video transcoding.
|
|
26779
|
+
|
|
26780
|
+
"""
|
|
26781
|
+
|
|
26782
|
+
def __init__(self):
|
|
26783
|
+
r"""
|
|
26784
|
+
:param _SegmentDuration: Valid when the watermark type is blind-abseq. specifies the segment duration of the input video. unit: ms.
|
|
26785
|
+
Segment duration is 5 seconds by default if left empty.
|
|
26786
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
26787
|
+
:type SegmentDuration: int
|
|
26788
|
+
"""
|
|
26789
|
+
self._SegmentDuration = None
|
|
26790
|
+
|
|
26791
|
+
@property
|
|
26792
|
+
def SegmentDuration(self):
|
|
26793
|
+
r"""Valid when the watermark type is blind-abseq. specifies the segment duration of the input video. unit: ms.
|
|
26794
|
+
Segment duration is 5 seconds by default if left empty.
|
|
26795
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
26796
|
+
:rtype: int
|
|
26797
|
+
"""
|
|
26798
|
+
return self._SegmentDuration
|
|
26799
|
+
|
|
26800
|
+
@SegmentDuration.setter
|
|
26801
|
+
def SegmentDuration(self, SegmentDuration):
|
|
26802
|
+
self._SegmentDuration = SegmentDuration
|
|
26803
|
+
|
|
26804
|
+
|
|
26805
|
+
def _deserialize(self, params):
|
|
26806
|
+
self._SegmentDuration = params.get("SegmentDuration")
|
|
26807
|
+
memeber_set = set(params.keys())
|
|
26808
|
+
for name, value in vars(self).items():
|
|
26809
|
+
property_name = name[1:]
|
|
26810
|
+
if property_name in memeber_set:
|
|
26811
|
+
memeber_set.remove(property_name)
|
|
26812
|
+
if len(memeber_set) > 0:
|
|
26813
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26814
|
+
|
|
26815
|
+
|
|
26816
|
+
|
|
26088
26817
|
class FaceConfigureInfo(AbstractModel):
|
|
26089
26818
|
r"""Control parameter of a face recognition task
|
|
26090
26819
|
|
|
@@ -33357,10 +34086,11 @@ class MediaInputInfo(AbstractModel):
|
|
|
33357
34086
|
|
|
33358
34087
|
def __init__(self):
|
|
33359
34088
|
r"""
|
|
33360
|
-
:param _Type:
|
|
33361
|
-
<
|
|
33362
|
-
<
|
|
33363
|
-
<
|
|
34089
|
+
:param _Type: Type of input source object. valid values:.
|
|
34090
|
+
<Li>COS: specifies the cos origin.</li>
|
|
34091
|
+
<Li>URL: the url source.</li>
|
|
34092
|
+
<Li>AWS-S3: aws source. currently only supports transcoding tasks.</li>
|
|
34093
|
+
<Li>VOD: video-on-demand pro edition (VOD Pro). </li>
|
|
33364
34094
|
:type Type: str
|
|
33365
34095
|
:param _CosInputInfo: The information of the COS object to process. This parameter is valid and required when `Type` is `COS`.
|
|
33366
34096
|
:type CosInputInfo: :class:`tencentcloud.mps.v20190612.models.CosInputInfo`
|
|
@@ -33370,18 +34100,23 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
33370
34100
|
:param _S3InputInfo: The information of the AWS S3 object processed. This parameter is required if `Type` is `AWS-S3`.
|
|
33371
34101
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
33372
34102
|
:type S3InputInfo: :class:`tencentcloud.mps.v20190612.models.S3InputInfo`
|
|
34103
|
+
:param _VODInputInfo: The information of the VOD Pro object processed. This parameter is required if `Type` is `VOD`.
|
|
34104
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
34105
|
+
:type VODInputInfo: :class:`tencentcloud.mps.v20190612.models.VODInputInfo`
|
|
33373
34106
|
"""
|
|
33374
34107
|
self._Type = None
|
|
33375
34108
|
self._CosInputInfo = None
|
|
33376
34109
|
self._UrlInputInfo = None
|
|
33377
34110
|
self._S3InputInfo = None
|
|
34111
|
+
self._VODInputInfo = None
|
|
33378
34112
|
|
|
33379
34113
|
@property
|
|
33380
34114
|
def Type(self):
|
|
33381
|
-
r"""
|
|
33382
|
-
<
|
|
33383
|
-
<
|
|
33384
|
-
<
|
|
34115
|
+
r"""Type of input source object. valid values:.
|
|
34116
|
+
<Li>COS: specifies the cos origin.</li>
|
|
34117
|
+
<Li>URL: the url source.</li>
|
|
34118
|
+
<Li>AWS-S3: aws source. currently only supports transcoding tasks.</li>
|
|
34119
|
+
<Li>VOD: video-on-demand pro edition (VOD Pro). </li>
|
|
33385
34120
|
:rtype: str
|
|
33386
34121
|
"""
|
|
33387
34122
|
return self._Type
|
|
@@ -33425,6 +34160,18 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
33425
34160
|
def S3InputInfo(self, S3InputInfo):
|
|
33426
34161
|
self._S3InputInfo = S3InputInfo
|
|
33427
34162
|
|
|
34163
|
+
@property
|
|
34164
|
+
def VODInputInfo(self):
|
|
34165
|
+
r"""The information of the VOD Pro object processed. This parameter is required if `Type` is `VOD`.
|
|
34166
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
34167
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VODInputInfo`
|
|
34168
|
+
"""
|
|
34169
|
+
return self._VODInputInfo
|
|
34170
|
+
|
|
34171
|
+
@VODInputInfo.setter
|
|
34172
|
+
def VODInputInfo(self, VODInputInfo):
|
|
34173
|
+
self._VODInputInfo = VODInputInfo
|
|
34174
|
+
|
|
33428
34175
|
|
|
33429
34176
|
def _deserialize(self, params):
|
|
33430
34177
|
self._Type = params.get("Type")
|
|
@@ -33437,6 +34184,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
33437
34184
|
if params.get("S3InputInfo") is not None:
|
|
33438
34185
|
self._S3InputInfo = S3InputInfo()
|
|
33439
34186
|
self._S3InputInfo._deserialize(params.get("S3InputInfo"))
|
|
34187
|
+
if params.get("VODInputInfo") is not None:
|
|
34188
|
+
self._VODInputInfo = VODInputInfo()
|
|
34189
|
+
self._VODInputInfo._deserialize(params.get("VODInputInfo"))
|
|
33440
34190
|
memeber_set = set(params.keys())
|
|
33441
34191
|
for name, value in vars(self).items():
|
|
33442
34192
|
property_name = name[1:]
|
|
@@ -37779,37 +38529,42 @@ Length limit: 64 characters.
|
|
|
37779
38529
|
:param _Comment: Smart subtitle template description.
|
|
37780
38530
|
Length limit: 256 characters.
|
|
37781
38531
|
:type Comment: str
|
|
37782
|
-
:param _VideoSrcLanguage:
|
|
37783
|
-
|
|
37784
|
-
zh: Simplified Chinese
|
|
37785
|
-
en:
|
|
37786
|
-
|
|
37787
|
-
|
|
37788
|
-
zh-PY: Chinese
|
|
37789
|
-
zh-medical: Medical Chinese
|
|
37790
|
-
yue: Cantonese
|
|
37791
|
-
|
|
37792
|
-
ms: Malay
|
|
37793
|
-
id: Indonesian
|
|
37794
|
-
fil: Filipino
|
|
37795
|
-
th: Thai
|
|
37796
|
-
pt: Portuguese
|
|
37797
|
-
tr: Turkish
|
|
37798
|
-
ar: Arabic
|
|
37799
|
-
es: Spanish
|
|
38532
|
+
:param _VideoSrcLanguage: Video source language for intelligent caption.
|
|
38533
|
+
Valid values:
|
|
38534
|
+
zh: Simplified Chinese.
|
|
38535
|
+
en: Eenglish.
|
|
38536
|
+
Ja: Japanese.
|
|
38537
|
+
Ko: Korean.
|
|
38538
|
+
zh-PY: Simplified Chinese, English and Cantonese.
|
|
38539
|
+
zh-medical: Medical Chinese.
|
|
38540
|
+
yue: Cantonese.
|
|
38541
|
+
Vi: Vietnamese.
|
|
38542
|
+
ms: Malay.
|
|
38543
|
+
id: Indonesian.
|
|
38544
|
+
fil: Filipino.
|
|
38545
|
+
th: Thai.
|
|
38546
|
+
pt: Portuguese.
|
|
38547
|
+
tr: Turkish.
|
|
38548
|
+
ar: Arabic.
|
|
38549
|
+
es: Spanish.
|
|
37800
38550
|
hi: Hindi
|
|
37801
|
-
|
|
37802
|
-
de: German
|
|
38551
|
+
Fr: French.
|
|
38552
|
+
de: German.
|
|
37803
38553
|
zh-dialect: Chinese dialect
|
|
38554
|
+
zh_en: Simplified Chinese and English
|
|
38555
|
+
prime_zh: Simplified Chinese, Chinese Dialect and English.
|
|
38556
|
+
|
|
37804
38557
|
:type VideoSrcLanguage: str
|
|
37805
|
-
:param _SubtitleFormat:
|
|
37806
|
-
vtt: WebVTT format
|
|
38558
|
+
:param _SubtitleFormat: Intelligent subtitle file format.
|
|
38559
|
+
vtt: WebVTT format.
|
|
38560
|
+
srt: SRT format.
|
|
37807
38561
|
If this field is left blank, no subtitle file will be generated.
|
|
37808
38562
|
:type SubtitleFormat: str
|
|
37809
38563
|
:param _SubtitleType: Smart subtitle language type.
|
|
37810
|
-
0: source
|
|
38564
|
+
0: source language
|
|
38565
|
+
1: target language
|
|
37811
38566
|
2: source language + target language
|
|
37812
|
-
The value can only be 0 when TranslateSwitch is set to OFF.The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
38567
|
+
The value can only be 0 when TranslateSwitch is set to OFF. The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
37813
38568
|
:type SubtitleType: int
|
|
37814
38569
|
:param _AsrHotWordsConfigure: ASR hotword lexicon parameter.
|
|
37815
38570
|
:type AsrHotWordsConfigure: :class:`tencentcloud.mps.v20190612.models.AsrHotWordsConfigure`
|
|
@@ -37895,28 +38650,31 @@ Length limit: 256 characters.
|
|
|
37895
38650
|
|
|
37896
38651
|
@property
|
|
37897
38652
|
def VideoSrcLanguage(self):
|
|
37898
|
-
r"""
|
|
37899
|
-
|
|
37900
|
-
zh: Simplified Chinese
|
|
37901
|
-
en:
|
|
37902
|
-
|
|
37903
|
-
|
|
37904
|
-
zh-PY: Chinese
|
|
37905
|
-
zh-medical: Medical Chinese
|
|
37906
|
-
yue: Cantonese
|
|
37907
|
-
|
|
37908
|
-
ms: Malay
|
|
37909
|
-
id: Indonesian
|
|
37910
|
-
fil: Filipino
|
|
37911
|
-
th: Thai
|
|
37912
|
-
pt: Portuguese
|
|
37913
|
-
tr: Turkish
|
|
37914
|
-
ar: Arabic
|
|
37915
|
-
es: Spanish
|
|
38653
|
+
r"""Video source language for intelligent caption.
|
|
38654
|
+
Valid values:
|
|
38655
|
+
zh: Simplified Chinese.
|
|
38656
|
+
en: Eenglish.
|
|
38657
|
+
Ja: Japanese.
|
|
38658
|
+
Ko: Korean.
|
|
38659
|
+
zh-PY: Simplified Chinese, English and Cantonese.
|
|
38660
|
+
zh-medical: Medical Chinese.
|
|
38661
|
+
yue: Cantonese.
|
|
38662
|
+
Vi: Vietnamese.
|
|
38663
|
+
ms: Malay.
|
|
38664
|
+
id: Indonesian.
|
|
38665
|
+
fil: Filipino.
|
|
38666
|
+
th: Thai.
|
|
38667
|
+
pt: Portuguese.
|
|
38668
|
+
tr: Turkish.
|
|
38669
|
+
ar: Arabic.
|
|
38670
|
+
es: Spanish.
|
|
37916
38671
|
hi: Hindi
|
|
37917
|
-
|
|
37918
|
-
de: German
|
|
38672
|
+
Fr: French.
|
|
38673
|
+
de: German.
|
|
37919
38674
|
zh-dialect: Chinese dialect
|
|
38675
|
+
zh_en: Simplified Chinese and English
|
|
38676
|
+
prime_zh: Simplified Chinese, Chinese Dialect and English.
|
|
38677
|
+
|
|
37920
38678
|
:rtype: str
|
|
37921
38679
|
"""
|
|
37922
38680
|
return self._VideoSrcLanguage
|
|
@@ -37927,8 +38685,9 @@ zh-dialect: Chinese dialect
|
|
|
37927
38685
|
|
|
37928
38686
|
@property
|
|
37929
38687
|
def SubtitleFormat(self):
|
|
37930
|
-
r"""
|
|
37931
|
-
vtt: WebVTT format
|
|
38688
|
+
r"""Intelligent subtitle file format.
|
|
38689
|
+
vtt: WebVTT format.
|
|
38690
|
+
srt: SRT format.
|
|
37932
38691
|
If this field is left blank, no subtitle file will be generated.
|
|
37933
38692
|
:rtype: str
|
|
37934
38693
|
"""
|
|
@@ -37941,9 +38700,10 @@ If this field is left blank, no subtitle file will be generated.
|
|
|
37941
38700
|
@property
|
|
37942
38701
|
def SubtitleType(self):
|
|
37943
38702
|
r"""Smart subtitle language type.
|
|
37944
|
-
0: source
|
|
38703
|
+
0: source language
|
|
38704
|
+
1: target language
|
|
37945
38705
|
2: source language + target language
|
|
37946
|
-
The value can only be 0 when TranslateSwitch is set to OFF.The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
38706
|
+
The value can only be 0 when TranslateSwitch is set to OFF. The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
37947
38707
|
:rtype: int
|
|
37948
38708
|
"""
|
|
37949
38709
|
return self._SubtitleType
|
|
@@ -41565,6 +42325,10 @@ Note 3: The trigger configured for an orchestration is for automatically startin
|
|
|
41565
42325
|
:type AiRecognitionTask: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskInput`
|
|
41566
42326
|
:param _AiQualityControlTask: Media quality inspection type task parameters.
|
|
41567
42327
|
:type AiQualityControlTask: :class:`tencentcloud.mps.v20190612.models.AiQualityControlTaskInput`
|
|
42328
|
+
:param _SmartSubtitlesTask: Smart subtitle task.
|
|
42329
|
+
:type SmartSubtitlesTask: :class:`tencentcloud.mps.v20190612.models.SmartSubtitlesTaskInput`
|
|
42330
|
+
:param _SmartEraseTask: Smart erase task parameter.
|
|
42331
|
+
:type SmartEraseTask: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskInput`
|
|
41568
42332
|
:param _TaskNotifyConfig: Event notification information of a task. If this parameter is left empty, no event notifications will be obtained.
|
|
41569
42333
|
:type TaskNotifyConfig: :class:`tencentcloud.mps.v20190612.models.TaskNotifyConfig`
|
|
41570
42334
|
:param _TasksPriority: Task flow priority. The higher the value, the higher the priority. Value range: [-10, 10]. If this parameter is left empty, 0 will be used.
|
|
@@ -41579,8 +42343,6 @@ Note 3: The trigger configured for an orchestration is for automatically startin
|
|
|
41579
42343
|
:type TaskType: str
|
|
41580
42344
|
:param _ResourceId: Resource ID. Ensure the corresponding resource is in the enabled state. The default value is an account's primary resource ID.
|
|
41581
42345
|
:type ResourceId: str
|
|
41582
|
-
:param _SmartSubtitlesTask: Smart subtitle task.
|
|
41583
|
-
:type SmartSubtitlesTask: :class:`tencentcloud.mps.v20190612.models.SmartSubtitlesTaskInput`
|
|
41584
42346
|
:param _SkipMateData: Whether to skip metadata acquisition. Valid values:
|
|
41585
42347
|
0: do not skip
|
|
41586
42348
|
1: skip
|
|
@@ -41596,13 +42358,14 @@ Default value: 0
|
|
|
41596
42358
|
self._AiAnalysisTask = None
|
|
41597
42359
|
self._AiRecognitionTask = None
|
|
41598
42360
|
self._AiQualityControlTask = None
|
|
42361
|
+
self._SmartSubtitlesTask = None
|
|
42362
|
+
self._SmartEraseTask = None
|
|
41599
42363
|
self._TaskNotifyConfig = None
|
|
41600
42364
|
self._TasksPriority = None
|
|
41601
42365
|
self._SessionId = None
|
|
41602
42366
|
self._SessionContext = None
|
|
41603
42367
|
self._TaskType = None
|
|
41604
42368
|
self._ResourceId = None
|
|
41605
|
-
self._SmartSubtitlesTask = None
|
|
41606
42369
|
self._SkipMateData = None
|
|
41607
42370
|
|
|
41608
42371
|
@property
|
|
@@ -41714,6 +42477,28 @@ Note 3: The trigger configured for an orchestration is for automatically startin
|
|
|
41714
42477
|
def AiQualityControlTask(self, AiQualityControlTask):
|
|
41715
42478
|
self._AiQualityControlTask = AiQualityControlTask
|
|
41716
42479
|
|
|
42480
|
+
@property
|
|
42481
|
+
def SmartSubtitlesTask(self):
|
|
42482
|
+
r"""Smart subtitle task.
|
|
42483
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartSubtitlesTaskInput`
|
|
42484
|
+
"""
|
|
42485
|
+
return self._SmartSubtitlesTask
|
|
42486
|
+
|
|
42487
|
+
@SmartSubtitlesTask.setter
|
|
42488
|
+
def SmartSubtitlesTask(self, SmartSubtitlesTask):
|
|
42489
|
+
self._SmartSubtitlesTask = SmartSubtitlesTask
|
|
42490
|
+
|
|
42491
|
+
@property
|
|
42492
|
+
def SmartEraseTask(self):
|
|
42493
|
+
r"""Smart erase task parameter.
|
|
42494
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskInput`
|
|
42495
|
+
"""
|
|
42496
|
+
return self._SmartEraseTask
|
|
42497
|
+
|
|
42498
|
+
@SmartEraseTask.setter
|
|
42499
|
+
def SmartEraseTask(self, SmartEraseTask):
|
|
42500
|
+
self._SmartEraseTask = SmartEraseTask
|
|
42501
|
+
|
|
41717
42502
|
@property
|
|
41718
42503
|
def TaskNotifyConfig(self):
|
|
41719
42504
|
r"""Event notification information of a task. If this parameter is left empty, no event notifications will be obtained.
|
|
@@ -41782,17 +42567,6 @@ Note 3: The trigger configured for an orchestration is for automatically startin
|
|
|
41782
42567
|
def ResourceId(self, ResourceId):
|
|
41783
42568
|
self._ResourceId = ResourceId
|
|
41784
42569
|
|
|
41785
|
-
@property
|
|
41786
|
-
def SmartSubtitlesTask(self):
|
|
41787
|
-
r"""Smart subtitle task.
|
|
41788
|
-
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartSubtitlesTaskInput`
|
|
41789
|
-
"""
|
|
41790
|
-
return self._SmartSubtitlesTask
|
|
41791
|
-
|
|
41792
|
-
@SmartSubtitlesTask.setter
|
|
41793
|
-
def SmartSubtitlesTask(self, SmartSubtitlesTask):
|
|
41794
|
-
self._SmartSubtitlesTask = SmartSubtitlesTask
|
|
41795
|
-
|
|
41796
42570
|
@property
|
|
41797
42571
|
def SkipMateData(self):
|
|
41798
42572
|
r"""Whether to skip metadata acquisition. Valid values:
|
|
@@ -41832,6 +42606,12 @@ Default value: 0
|
|
|
41832
42606
|
if params.get("AiQualityControlTask") is not None:
|
|
41833
42607
|
self._AiQualityControlTask = AiQualityControlTaskInput()
|
|
41834
42608
|
self._AiQualityControlTask._deserialize(params.get("AiQualityControlTask"))
|
|
42609
|
+
if params.get("SmartSubtitlesTask") is not None:
|
|
42610
|
+
self._SmartSubtitlesTask = SmartSubtitlesTaskInput()
|
|
42611
|
+
self._SmartSubtitlesTask._deserialize(params.get("SmartSubtitlesTask"))
|
|
42612
|
+
if params.get("SmartEraseTask") is not None:
|
|
42613
|
+
self._SmartEraseTask = SmartEraseTaskInput()
|
|
42614
|
+
self._SmartEraseTask._deserialize(params.get("SmartEraseTask"))
|
|
41835
42615
|
if params.get("TaskNotifyConfig") is not None:
|
|
41836
42616
|
self._TaskNotifyConfig = TaskNotifyConfig()
|
|
41837
42617
|
self._TaskNotifyConfig._deserialize(params.get("TaskNotifyConfig"))
|
|
@@ -41840,9 +42620,6 @@ Default value: 0
|
|
|
41840
42620
|
self._SessionContext = params.get("SessionContext")
|
|
41841
42621
|
self._TaskType = params.get("TaskType")
|
|
41842
42622
|
self._ResourceId = params.get("ResourceId")
|
|
41843
|
-
if params.get("SmartSubtitlesTask") is not None:
|
|
41844
|
-
self._SmartSubtitlesTask = SmartSubtitlesTaskInput()
|
|
41845
|
-
self._SmartSubtitlesTask._deserialize(params.get("SmartSubtitlesTask"))
|
|
41846
42623
|
self._SkipMateData = params.get("SkipMateData")
|
|
41847
42624
|
memeber_set = set(params.keys())
|
|
41848
42625
|
for name, value in vars(self).items():
|
|
@@ -42500,68 +43277,70 @@ class QualityControlItemConfig(AbstractModel):
|
|
|
42500
43277
|
|
|
42501
43278
|
def __init__(self):
|
|
42502
43279
|
r"""
|
|
42503
|
-
:param _Type: Quality
|
|
42504
|
-
<li>LowEvaluation:
|
|
42505
|
-
<li>
|
|
42506
|
-
<
|
|
42507
|
-
<
|
|
42508
|
-
<
|
|
42509
|
-
<
|
|
42510
|
-
<
|
|
42511
|
-
<
|
|
42512
|
-
<
|
|
42513
|
-
<
|
|
42514
|
-
<
|
|
42515
|
-
<
|
|
42516
|
-
<
|
|
42517
|
-
<
|
|
42518
|
-
<
|
|
42519
|
-
<
|
|
42520
|
-
<
|
|
42521
|
-
<
|
|
42522
|
-
<
|
|
42523
|
-
<
|
|
42524
|
-
<
|
|
42525
|
-
<
|
|
42526
|
-
<
|
|
42527
|
-
<li>
|
|
42528
|
-
<li>
|
|
42529
|
-
<li>
|
|
42530
|
-
<
|
|
42531
|
-
<
|
|
42532
|
-
<
|
|
42533
|
-
<
|
|
42534
|
-
<
|
|
42535
|
-
<
|
|
42536
|
-
<
|
|
42537
|
-
<li>
|
|
42538
|
-
<
|
|
42539
|
-
<
|
|
42540
|
-
<
|
|
42541
|
-
<li>
|
|
42542
|
-
<
|
|
42543
|
-
<li>
|
|
42544
|
-
<
|
|
42545
|
-
<
|
|
42546
|
-
<
|
|
42547
|
-
<
|
|
42548
|
-
<
|
|
42549
|
-
<
|
|
42550
|
-
<
|
|
42551
|
-
<
|
|
42552
|
-
<
|
|
42553
|
-
<
|
|
42554
|
-
<
|
|
42555
|
-
<
|
|
42556
|
-
<li>
|
|
42557
|
-
<li>
|
|
42558
|
-
<
|
|
42559
|
-
<
|
|
42560
|
-
<
|
|
42561
|
-
<
|
|
42562
|
-
<
|
|
42563
|
-
<li>
|
|
42564
|
-
<
|
|
43280
|
+
:param _Type: Quality inspection item name. valid values:.
|
|
43281
|
+
<li>LowEvaluation: specifies the no-reference MOS score of the video.</li>.
|
|
43282
|
+
<li>AudioEvaluation: specifies the no-reference MOS score of the audio.</li>.
|
|
43283
|
+
<Li>Mosaic: mosaic detection.</li>.
|
|
43284
|
+
<Li>CrashScreen: specifies screen glitch detection.</li>.
|
|
43285
|
+
<Li>Blur: specifies blur detection.</li>.
|
|
43286
|
+
<Li>Jitter: jitter detection.</li>.
|
|
43287
|
+
<Li>Noise: noise detection.</li>.
|
|
43288
|
+
<Li>QRCode: qr code detection.</li>.
|
|
43289
|
+
<Li>BarCode: specifies barcode detection.</li>.
|
|
43290
|
+
<Li>AppletCode: specifies mini program code detection.</li>.
|
|
43291
|
+
<Li>BlackWhiteEdge: specifies black and white edge detection.</li>.
|
|
43292
|
+
<Li>SolidColorScreen: specifies solid color screen detection.</li>.
|
|
43293
|
+
<Li>LowLighting: specifies low light.</li>.
|
|
43294
|
+
<Li>HighLighting: overexposure.</li>.
|
|
43295
|
+
<Li>NoVoice: specifies silence detection.</li>.
|
|
43296
|
+
<Li>LowVoice: specifies bass detection.</li>.
|
|
43297
|
+
<Li>HighVoice: explosion noise detection.</li>.
|
|
43298
|
+
<Li>AudioNoise: specifies audio noise detection.</li>.
|
|
43299
|
+
<Li>VideoResolutionChanged: specifies the video resolution change.</li>.
|
|
43300
|
+
<Li>AudioSampleRateChanged: specifies the audio sample rate change.</li>.
|
|
43301
|
+
<Li>AudioChannelsChanged: indicates the audio channel quantity change.</li>.
|
|
43302
|
+
<Li>ParameterSetsChanged: indicates the stream parameter set information has changed.</li>.
|
|
43303
|
+
<Li>DarOrSarInvalid: indicates an abnormal video aspect ratio.</li>.
|
|
43304
|
+
<li>TimestampFallback: specifies DTS timestamp rollback.</li>.
|
|
43305
|
+
<li>DtsJitter: specifies excessive DTS jitter.</li>.
|
|
43306
|
+
<li>PtsJitter: indicates excessive PTS jitter.</li>.
|
|
43307
|
+
<Li>AACDurationDeviation: specifies an improper aac frame timestamp interval.</li>.
|
|
43308
|
+
<Li>AudioDroppingFrames: indicates audio frame dropping.</li>.
|
|
43309
|
+
<Li>VideoDroppingFrames: specifies video frame dropping.</li>.
|
|
43310
|
+
<Li>AVTimestampInterleave: improper audio-video interleaving.</li>.
|
|
43311
|
+
<Li>PtsLessThanDts: specifies that the pts of the media stream is less than the dts.</li>.
|
|
43312
|
+
<Li>ReceiveFpsJitter: specifies excessive jitter in the network received frame rate.</li>.
|
|
43313
|
+
<Li>ReceiveFpsTooSmall: indicates the network received video frame rate is too low.</li>.
|
|
43314
|
+
<li>FpsJitter: specifies excessive jitter in the stream frame rate calculated via PTS.</li>.
|
|
43315
|
+
<Li>StreamOpenFailed: indicates the stream open failure.</li>.
|
|
43316
|
+
<Li>StreamEnd: specifies the stream end.</li>.
|
|
43317
|
+
<Li>StreamParseFailed: specifies the stream parsing failure.</li>.
|
|
43318
|
+
<li>VideoFirstFrameNotIdr: first frame not an IDR frame.</li>.
|
|
43319
|
+
<Li>StreamNALUError: indicates an nalu start code error.</li>.
|
|
43320
|
+
<li>TsStreamNoAud: specifies whether the mpegts H26x stream misses AUD NALU.</li>.
|
|
43321
|
+
<Li>AudioStreamLack: no audio stream.</li>.
|
|
43322
|
+
<Li>VideoStreamLack: no video stream.</li>.
|
|
43323
|
+
<Li>LackAudioRecover: specifies missing audio stream recovery.</li>.
|
|
43324
|
+
<Li>LackVideoRecover: missing video stream recovery.</li>.
|
|
43325
|
+
<Li>VideoBitrateOutofRange: video stream bitrate (kbps) out of range.</li>.
|
|
43326
|
+
<Li>AudioBitrateOutofRange: audio stream bitrate (kbps) out of range.</li>.
|
|
43327
|
+
<Li>VideoDecodeFailed: indicates a video decoding error.</li>.
|
|
43328
|
+
<Li>AudioDecodeFailed: audio decoding error.</li>.
|
|
43329
|
+
<Li>AudioOutOfPhase: specifies opposite phase in dual-channel audio.</li>.
|
|
43330
|
+
<Li>VideoDuplicatedFrame: indicates duplicate frames in video streams.</li>.
|
|
43331
|
+
<Li>AudioDuplicatedFrame: indicates duplicate frames in audio streams.</li>.
|
|
43332
|
+
<Li>VideoRotation: specifies video rotation.</li>.
|
|
43333
|
+
<li>TsMultiPrograms: specifies multiple programs in MPEG2-TS streams.</li>.
|
|
43334
|
+
<li>Mp4InvalidCodecFourcc: specifies the codec fourcc in Mp4 does not meet Apple HLS requirements.</li>.
|
|
43335
|
+
<Li>HLSBadM3u8Format: invalid m3u8 file.</li>.
|
|
43336
|
+
<Li>HLSInvalidMasterM3u8: invalid main m3u8 file.</li>.
|
|
43337
|
+
<Li>HLSInvalidMediaM3u8: invalid media m3u8 file.</li>.
|
|
43338
|
+
<Li>HLSMasterM3u8Recommended: parameters recommended by standards missing in main m3u8.</li>.
|
|
43339
|
+
<Li>HLSMediaM3u8Recommended: parameters recommended by standards missing in media m3u8.</li>.
|
|
43340
|
+
<li>HLSMediaM3u8DiscontinuityExist: indicates the existence of EXT-X-DISCONTINUITY in media m3u8.</li>.
|
|
43341
|
+
<Li>HLSMediaSegmentsStreamNumChange: indicates the number of streams in segments changes.</li>.
|
|
43342
|
+
<li>HLSMediaSegmentsPTSJitterDeviation: indicates PTS jumps between segments without EXT-X-DISCONTINUITY.</li>.
|
|
43343
|
+
<li>HLSMediaSegmentsDTSJitterDeviation: indicates DTS jumps between segments without EXT-X-DISCONTINUITY.</li>.
|
|
42565
43344
|
<li>TimecodeTrackExist: TMCD track in MP4.</li>
|
|
42566
43345
|
:type Type: str
|
|
42567
43346
|
:param _Switch: Capability configuration switch. Valid values:
|
|
@@ -42595,68 +43374,70 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
42595
43374
|
|
|
42596
43375
|
@property
|
|
42597
43376
|
def Type(self):
|
|
42598
|
-
r"""Quality
|
|
42599
|
-
<li>LowEvaluation:
|
|
42600
|
-
<li>
|
|
42601
|
-
<
|
|
42602
|
-
<
|
|
42603
|
-
<
|
|
42604
|
-
<
|
|
42605
|
-
<
|
|
42606
|
-
<
|
|
42607
|
-
<
|
|
42608
|
-
<
|
|
42609
|
-
<
|
|
42610
|
-
<
|
|
42611
|
-
<
|
|
42612
|
-
<
|
|
42613
|
-
<
|
|
42614
|
-
<
|
|
42615
|
-
<
|
|
42616
|
-
<
|
|
42617
|
-
<
|
|
42618
|
-
<
|
|
42619
|
-
<
|
|
42620
|
-
<
|
|
42621
|
-
<
|
|
42622
|
-
<li>
|
|
42623
|
-
<li>
|
|
42624
|
-
<li>
|
|
42625
|
-
<
|
|
42626
|
-
<
|
|
42627
|
-
<
|
|
42628
|
-
<
|
|
42629
|
-
<
|
|
42630
|
-
<
|
|
42631
|
-
<
|
|
42632
|
-
<li>
|
|
42633
|
-
<
|
|
42634
|
-
<
|
|
42635
|
-
<
|
|
42636
|
-
<li>
|
|
42637
|
-
<
|
|
42638
|
-
<li>
|
|
42639
|
-
<
|
|
42640
|
-
<
|
|
42641
|
-
<
|
|
42642
|
-
<
|
|
42643
|
-
<
|
|
42644
|
-
<
|
|
42645
|
-
<
|
|
42646
|
-
<
|
|
42647
|
-
<
|
|
42648
|
-
<
|
|
42649
|
-
<
|
|
42650
|
-
<
|
|
42651
|
-
<li>
|
|
42652
|
-
<li>
|
|
42653
|
-
<
|
|
42654
|
-
<
|
|
42655
|
-
<
|
|
42656
|
-
<
|
|
42657
|
-
<
|
|
42658
|
-
<li>
|
|
42659
|
-
<
|
|
43377
|
+
r"""Quality inspection item name. valid values:.
|
|
43378
|
+
<li>LowEvaluation: specifies the no-reference MOS score of the video.</li>.
|
|
43379
|
+
<li>AudioEvaluation: specifies the no-reference MOS score of the audio.</li>.
|
|
43380
|
+
<Li>Mosaic: mosaic detection.</li>.
|
|
43381
|
+
<Li>CrashScreen: specifies screen glitch detection.</li>.
|
|
43382
|
+
<Li>Blur: specifies blur detection.</li>.
|
|
43383
|
+
<Li>Jitter: jitter detection.</li>.
|
|
43384
|
+
<Li>Noise: noise detection.</li>.
|
|
43385
|
+
<Li>QRCode: qr code detection.</li>.
|
|
43386
|
+
<Li>BarCode: specifies barcode detection.</li>.
|
|
43387
|
+
<Li>AppletCode: specifies mini program code detection.</li>.
|
|
43388
|
+
<Li>BlackWhiteEdge: specifies black and white edge detection.</li>.
|
|
43389
|
+
<Li>SolidColorScreen: specifies solid color screen detection.</li>.
|
|
43390
|
+
<Li>LowLighting: specifies low light.</li>.
|
|
43391
|
+
<Li>HighLighting: overexposure.</li>.
|
|
43392
|
+
<Li>NoVoice: specifies silence detection.</li>.
|
|
43393
|
+
<Li>LowVoice: specifies bass detection.</li>.
|
|
43394
|
+
<Li>HighVoice: explosion noise detection.</li>.
|
|
43395
|
+
<Li>AudioNoise: specifies audio noise detection.</li>.
|
|
43396
|
+
<Li>VideoResolutionChanged: specifies the video resolution change.</li>.
|
|
43397
|
+
<Li>AudioSampleRateChanged: specifies the audio sample rate change.</li>.
|
|
43398
|
+
<Li>AudioChannelsChanged: indicates the audio channel quantity change.</li>.
|
|
43399
|
+
<Li>ParameterSetsChanged: indicates the stream parameter set information has changed.</li>.
|
|
43400
|
+
<Li>DarOrSarInvalid: indicates an abnormal video aspect ratio.</li>.
|
|
43401
|
+
<li>TimestampFallback: specifies DTS timestamp rollback.</li>.
|
|
43402
|
+
<li>DtsJitter: specifies excessive DTS jitter.</li>.
|
|
43403
|
+
<li>PtsJitter: indicates excessive PTS jitter.</li>.
|
|
43404
|
+
<Li>AACDurationDeviation: specifies an improper aac frame timestamp interval.</li>.
|
|
43405
|
+
<Li>AudioDroppingFrames: indicates audio frame dropping.</li>.
|
|
43406
|
+
<Li>VideoDroppingFrames: specifies video frame dropping.</li>.
|
|
43407
|
+
<Li>AVTimestampInterleave: improper audio-video interleaving.</li>.
|
|
43408
|
+
<Li>PtsLessThanDts: specifies that the pts of the media stream is less than the dts.</li>.
|
|
43409
|
+
<Li>ReceiveFpsJitter: specifies excessive jitter in the network received frame rate.</li>.
|
|
43410
|
+
<Li>ReceiveFpsTooSmall: indicates the network received video frame rate is too low.</li>.
|
|
43411
|
+
<li>FpsJitter: specifies excessive jitter in the stream frame rate calculated via PTS.</li>.
|
|
43412
|
+
<Li>StreamOpenFailed: indicates the stream open failure.</li>.
|
|
43413
|
+
<Li>StreamEnd: specifies the stream end.</li>.
|
|
43414
|
+
<Li>StreamParseFailed: specifies the stream parsing failure.</li>.
|
|
43415
|
+
<li>VideoFirstFrameNotIdr: first frame not an IDR frame.</li>.
|
|
43416
|
+
<Li>StreamNALUError: indicates an nalu start code error.</li>.
|
|
43417
|
+
<li>TsStreamNoAud: specifies whether the mpegts H26x stream misses AUD NALU.</li>.
|
|
43418
|
+
<Li>AudioStreamLack: no audio stream.</li>.
|
|
43419
|
+
<Li>VideoStreamLack: no video stream.</li>.
|
|
43420
|
+
<Li>LackAudioRecover: specifies missing audio stream recovery.</li>.
|
|
43421
|
+
<Li>LackVideoRecover: missing video stream recovery.</li>.
|
|
43422
|
+
<Li>VideoBitrateOutofRange: video stream bitrate (kbps) out of range.</li>.
|
|
43423
|
+
<Li>AudioBitrateOutofRange: audio stream bitrate (kbps) out of range.</li>.
|
|
43424
|
+
<Li>VideoDecodeFailed: indicates a video decoding error.</li>.
|
|
43425
|
+
<Li>AudioDecodeFailed: audio decoding error.</li>.
|
|
43426
|
+
<Li>AudioOutOfPhase: specifies opposite phase in dual-channel audio.</li>.
|
|
43427
|
+
<Li>VideoDuplicatedFrame: indicates duplicate frames in video streams.</li>.
|
|
43428
|
+
<Li>AudioDuplicatedFrame: indicates duplicate frames in audio streams.</li>.
|
|
43429
|
+
<Li>VideoRotation: specifies video rotation.</li>.
|
|
43430
|
+
<li>TsMultiPrograms: specifies multiple programs in MPEG2-TS streams.</li>.
|
|
43431
|
+
<li>Mp4InvalidCodecFourcc: specifies the codec fourcc in Mp4 does not meet Apple HLS requirements.</li>.
|
|
43432
|
+
<Li>HLSBadM3u8Format: invalid m3u8 file.</li>.
|
|
43433
|
+
<Li>HLSInvalidMasterM3u8: invalid main m3u8 file.</li>.
|
|
43434
|
+
<Li>HLSInvalidMediaM3u8: invalid media m3u8 file.</li>.
|
|
43435
|
+
<Li>HLSMasterM3u8Recommended: parameters recommended by standards missing in main m3u8.</li>.
|
|
43436
|
+
<Li>HLSMediaM3u8Recommended: parameters recommended by standards missing in media m3u8.</li>.
|
|
43437
|
+
<li>HLSMediaM3u8DiscontinuityExist: indicates the existence of EXT-X-DISCONTINUITY in media m3u8.</li>.
|
|
43438
|
+
<Li>HLSMediaSegmentsStreamNumChange: indicates the number of streams in segments changes.</li>.
|
|
43439
|
+
<li>HLSMediaSegmentsPTSJitterDeviation: indicates PTS jumps between segments without EXT-X-DISCONTINUITY.</li>.
|
|
43440
|
+
<li>HLSMediaSegmentsDTSJitterDeviation: indicates DTS jumps between segments without EXT-X-DISCONTINUITY.</li>.
|
|
42660
43441
|
<li>TimecodeTrackExist: TMCD track in MP4.</li>
|
|
42661
43442
|
:rtype: str
|
|
42662
43443
|
"""
|
|
@@ -43168,6 +43949,111 @@ Default value: 0 px, which means that `Height` will be proportionally scaled acc
|
|
|
43168
43949
|
|
|
43169
43950
|
|
|
43170
43951
|
|
|
43952
|
+
class RawSmartEraseParameter(AbstractModel):
|
|
43953
|
+
r"""Smart erasure custom parameter.
|
|
43954
|
+
|
|
43955
|
+
"""
|
|
43956
|
+
|
|
43957
|
+
def __init__(self):
|
|
43958
|
+
r"""
|
|
43959
|
+
:param _EraseType: Specifies the removal type.
|
|
43960
|
+
-subtitle removal.
|
|
43961
|
+
-Remove watermark.
|
|
43962
|
+
-privacy protection.
|
|
43963
|
+
:type EraseType: str
|
|
43964
|
+
:param _EraseSubtitleConfig: Subtitle erasure configuration.
|
|
43965
|
+
When EraseType is subtitle, this field is required.
|
|
43966
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
43967
|
+
:type EraseSubtitleConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
43968
|
+
:param _EraseWatermarkConfig: Specifies the watermark removal configuration.
|
|
43969
|
+
When EraseType is watermark, this field is required.
|
|
43970
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
43971
|
+
:type EraseWatermarkConfig: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
43972
|
+
:param _ErasePrivacyConfig: Privacy protection configuration.
|
|
43973
|
+
When EraseType is privacy, this field is required.
|
|
43974
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
43975
|
+
:type ErasePrivacyConfig: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
43976
|
+
"""
|
|
43977
|
+
self._EraseType = None
|
|
43978
|
+
self._EraseSubtitleConfig = None
|
|
43979
|
+
self._EraseWatermarkConfig = None
|
|
43980
|
+
self._ErasePrivacyConfig = None
|
|
43981
|
+
|
|
43982
|
+
@property
|
|
43983
|
+
def EraseType(self):
|
|
43984
|
+
r"""Specifies the removal type.
|
|
43985
|
+
-subtitle removal.
|
|
43986
|
+
-Remove watermark.
|
|
43987
|
+
-privacy protection.
|
|
43988
|
+
:rtype: str
|
|
43989
|
+
"""
|
|
43990
|
+
return self._EraseType
|
|
43991
|
+
|
|
43992
|
+
@EraseType.setter
|
|
43993
|
+
def EraseType(self, EraseType):
|
|
43994
|
+
self._EraseType = EraseType
|
|
43995
|
+
|
|
43996
|
+
@property
|
|
43997
|
+
def EraseSubtitleConfig(self):
|
|
43998
|
+
r"""Subtitle erasure configuration.
|
|
43999
|
+
When EraseType is subtitle, this field is required.
|
|
44000
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
44001
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseSubtitleConfig`
|
|
44002
|
+
"""
|
|
44003
|
+
return self._EraseSubtitleConfig
|
|
44004
|
+
|
|
44005
|
+
@EraseSubtitleConfig.setter
|
|
44006
|
+
def EraseSubtitleConfig(self, EraseSubtitleConfig):
|
|
44007
|
+
self._EraseSubtitleConfig = EraseSubtitleConfig
|
|
44008
|
+
|
|
44009
|
+
@property
|
|
44010
|
+
def EraseWatermarkConfig(self):
|
|
44011
|
+
r"""Specifies the watermark removal configuration.
|
|
44012
|
+
When EraseType is watermark, this field is required.
|
|
44013
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
44014
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseWatermarkConfig`
|
|
44015
|
+
"""
|
|
44016
|
+
return self._EraseWatermarkConfig
|
|
44017
|
+
|
|
44018
|
+
@EraseWatermarkConfig.setter
|
|
44019
|
+
def EraseWatermarkConfig(self, EraseWatermarkConfig):
|
|
44020
|
+
self._EraseWatermarkConfig = EraseWatermarkConfig
|
|
44021
|
+
|
|
44022
|
+
@property
|
|
44023
|
+
def ErasePrivacyConfig(self):
|
|
44024
|
+
r"""Privacy protection configuration.
|
|
44025
|
+
When EraseType is privacy, this field is required.
|
|
44026
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
44027
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartErasePrivacyConfig`
|
|
44028
|
+
"""
|
|
44029
|
+
return self._ErasePrivacyConfig
|
|
44030
|
+
|
|
44031
|
+
@ErasePrivacyConfig.setter
|
|
44032
|
+
def ErasePrivacyConfig(self, ErasePrivacyConfig):
|
|
44033
|
+
self._ErasePrivacyConfig = ErasePrivacyConfig
|
|
44034
|
+
|
|
44035
|
+
|
|
44036
|
+
def _deserialize(self, params):
|
|
44037
|
+
self._EraseType = params.get("EraseType")
|
|
44038
|
+
if params.get("EraseSubtitleConfig") is not None:
|
|
44039
|
+
self._EraseSubtitleConfig = SmartEraseSubtitleConfig()
|
|
44040
|
+
self._EraseSubtitleConfig._deserialize(params.get("EraseSubtitleConfig"))
|
|
44041
|
+
if params.get("EraseWatermarkConfig") is not None:
|
|
44042
|
+
self._EraseWatermarkConfig = SmartEraseWatermarkConfig()
|
|
44043
|
+
self._EraseWatermarkConfig._deserialize(params.get("EraseWatermarkConfig"))
|
|
44044
|
+
if params.get("ErasePrivacyConfig") is not None:
|
|
44045
|
+
self._ErasePrivacyConfig = SmartErasePrivacyConfig()
|
|
44046
|
+
self._ErasePrivacyConfig._deserialize(params.get("ErasePrivacyConfig"))
|
|
44047
|
+
memeber_set = set(params.keys())
|
|
44048
|
+
for name, value in vars(self).items():
|
|
44049
|
+
property_name = name[1:]
|
|
44050
|
+
if property_name in memeber_set:
|
|
44051
|
+
memeber_set.remove(property_name)
|
|
44052
|
+
if len(memeber_set) > 0:
|
|
44053
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
44054
|
+
|
|
44055
|
+
|
|
44056
|
+
|
|
43171
44057
|
class RawSmartSubtitleParameter(AbstractModel):
|
|
43172
44058
|
r"""Custom smart subtitle parameter.
|
|
43173
44059
|
|
|
@@ -43181,33 +44067,35 @@ class RawSmartSubtitleParameter(AbstractModel):
|
|
|
43181
44067
|
2: source language + target language
|
|
43182
44068
|
The value can only be 0 when TranslateSwitch is set to OFF. The value can only be 1 or 2 when TranslateSwitch is set to ON.
|
|
43183
44069
|
:type SubtitleType: int
|
|
43184
|
-
:param _VideoSrcLanguage:
|
|
43185
|
-
|
|
43186
|
-
zh: Simplified Chinese
|
|
43187
|
-
en:
|
|
43188
|
-
|
|
43189
|
-
|
|
43190
|
-
zh-PY: Chinese
|
|
43191
|
-
zh-medical: Medical Chinese
|
|
43192
|
-
yue: Cantonese
|
|
43193
|
-
|
|
43194
|
-
ms: Malay
|
|
43195
|
-
id: Indonesian
|
|
43196
|
-
fil: Filipino
|
|
43197
|
-
th: Thai
|
|
43198
|
-
pt: Portuguese
|
|
43199
|
-
tr: Turkish
|
|
43200
|
-
ar: Arabic
|
|
43201
|
-
es: Spanish
|
|
44070
|
+
:param _VideoSrcLanguage: Video source language for intelligent caption.
|
|
44071
|
+
Valid values:
|
|
44072
|
+
zh: Simplified Chinese.
|
|
44073
|
+
en: Eenglish.
|
|
44074
|
+
Ja: Japanese.
|
|
44075
|
+
Ko: Korean.
|
|
44076
|
+
zh-PY: Simplified Chinese, English and Cantonese.
|
|
44077
|
+
zh-medical: Medical Chinese.
|
|
44078
|
+
yue: Cantonese.
|
|
44079
|
+
Vi: Vietnamese.
|
|
44080
|
+
ms: Malay.
|
|
44081
|
+
id: Indonesian.
|
|
44082
|
+
fil: Filipino.
|
|
44083
|
+
th: Thai.
|
|
44084
|
+
pt: Portuguese.
|
|
44085
|
+
tr: Turkish.
|
|
44086
|
+
ar: Arabic.
|
|
44087
|
+
es: Spanish.
|
|
43202
44088
|
hi: Hindi
|
|
43203
|
-
|
|
43204
|
-
de: German
|
|
44089
|
+
Fr: French.
|
|
44090
|
+
de: German.
|
|
43205
44091
|
zh-dialect: Chinese dialect
|
|
44092
|
+
zh_en: Simplified Chinese and English
|
|
44093
|
+
prime_zh: Simplified Chinese, Chinese Dialect and English.
|
|
43206
44094
|
:type VideoSrcLanguage: str
|
|
43207
|
-
:param _SubtitleFormat:
|
|
43208
|
-
vtt: WebVTT format
|
|
44095
|
+
:param _SubtitleFormat: Intelligent subtitle file format.
|
|
44096
|
+
vtt: WebVTT format.
|
|
44097
|
+
srt: SRT format.
|
|
43209
44098
|
If this field is left blank, no subtitle file will be generated.
|
|
43210
|
-
Note: This field may return null, indicating that no valid value can be obtained.
|
|
43211
44099
|
:type SubtitleFormat: str
|
|
43212
44100
|
:param _TranslateSwitch: Subtitle translation switch.
|
|
43213
44101
|
ON: enable translation
|
|
@@ -43267,28 +44155,30 @@ The value can only be 0 when TranslateSwitch is set to OFF. The value can only b
|
|
|
43267
44155
|
|
|
43268
44156
|
@property
|
|
43269
44157
|
def VideoSrcLanguage(self):
|
|
43270
|
-
r"""
|
|
43271
|
-
|
|
43272
|
-
zh: Simplified Chinese
|
|
43273
|
-
en:
|
|
43274
|
-
|
|
43275
|
-
|
|
43276
|
-
zh-PY: Chinese
|
|
43277
|
-
zh-medical: Medical Chinese
|
|
43278
|
-
yue: Cantonese
|
|
43279
|
-
|
|
43280
|
-
ms: Malay
|
|
43281
|
-
id: Indonesian
|
|
43282
|
-
fil: Filipino
|
|
43283
|
-
th: Thai
|
|
43284
|
-
pt: Portuguese
|
|
43285
|
-
tr: Turkish
|
|
43286
|
-
ar: Arabic
|
|
43287
|
-
es: Spanish
|
|
44158
|
+
r"""Video source language for intelligent caption.
|
|
44159
|
+
Valid values:
|
|
44160
|
+
zh: Simplified Chinese.
|
|
44161
|
+
en: Eenglish.
|
|
44162
|
+
Ja: Japanese.
|
|
44163
|
+
Ko: Korean.
|
|
44164
|
+
zh-PY: Simplified Chinese, English and Cantonese.
|
|
44165
|
+
zh-medical: Medical Chinese.
|
|
44166
|
+
yue: Cantonese.
|
|
44167
|
+
Vi: Vietnamese.
|
|
44168
|
+
ms: Malay.
|
|
44169
|
+
id: Indonesian.
|
|
44170
|
+
fil: Filipino.
|
|
44171
|
+
th: Thai.
|
|
44172
|
+
pt: Portuguese.
|
|
44173
|
+
tr: Turkish.
|
|
44174
|
+
ar: Arabic.
|
|
44175
|
+
es: Spanish.
|
|
43288
44176
|
hi: Hindi
|
|
43289
|
-
|
|
43290
|
-
de: German
|
|
44177
|
+
Fr: French.
|
|
44178
|
+
de: German.
|
|
43291
44179
|
zh-dialect: Chinese dialect
|
|
44180
|
+
zh_en: Simplified Chinese and English
|
|
44181
|
+
prime_zh: Simplified Chinese, Chinese Dialect and English.
|
|
43292
44182
|
:rtype: str
|
|
43293
44183
|
"""
|
|
43294
44184
|
return self._VideoSrcLanguage
|
|
@@ -43299,10 +44189,10 @@ zh-dialect: Chinese dialect
|
|
|
43299
44189
|
|
|
43300
44190
|
@property
|
|
43301
44191
|
def SubtitleFormat(self):
|
|
43302
|
-
r"""
|
|
43303
|
-
vtt: WebVTT format
|
|
44192
|
+
r"""Intelligent subtitle file format.
|
|
44193
|
+
vtt: WebVTT format.
|
|
44194
|
+
srt: SRT format.
|
|
43304
44195
|
If this field is left blank, no subtitle file will be generated.
|
|
43305
|
-
Note: This field may return null, indicating that no valid value can be obtained.
|
|
43306
44196
|
:rtype: str
|
|
43307
44197
|
"""
|
|
43308
44198
|
return self._SubtitleFormat
|
|
@@ -46382,6 +47272,700 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
46382
47272
|
|
|
46383
47273
|
|
|
46384
47274
|
|
|
47275
|
+
class SmartErasePrivacyConfig(AbstractModel):
|
|
47276
|
+
r"""Intelligent erasure template privacy protection configuration.
|
|
47277
|
+
|
|
47278
|
+
"""
|
|
47279
|
+
|
|
47280
|
+
def __init__(self):
|
|
47281
|
+
r"""
|
|
47282
|
+
:param _PrivacyModel: Specifies the privacy protection removal method.
|
|
47283
|
+
-Blur: specifies the blur detection.
|
|
47284
|
+
-Specifies the mosaic.
|
|
47285
|
+
:type PrivacyModel: str
|
|
47286
|
+
:param _PrivacyTargets: Privacy protection objective. no need to import an array when in use on API Explorer. just add the corresponding item and fill in the value.
|
|
47287
|
+
-Human face.
|
|
47288
|
+
-License plate.
|
|
47289
|
+
:type PrivacyTargets: list of str
|
|
47290
|
+
"""
|
|
47291
|
+
self._PrivacyModel = None
|
|
47292
|
+
self._PrivacyTargets = None
|
|
47293
|
+
|
|
47294
|
+
@property
|
|
47295
|
+
def PrivacyModel(self):
|
|
47296
|
+
r"""Specifies the privacy protection removal method.
|
|
47297
|
+
-Blur: specifies the blur detection.
|
|
47298
|
+
-Specifies the mosaic.
|
|
47299
|
+
:rtype: str
|
|
47300
|
+
"""
|
|
47301
|
+
return self._PrivacyModel
|
|
47302
|
+
|
|
47303
|
+
@PrivacyModel.setter
|
|
47304
|
+
def PrivacyModel(self, PrivacyModel):
|
|
47305
|
+
self._PrivacyModel = PrivacyModel
|
|
47306
|
+
|
|
47307
|
+
@property
|
|
47308
|
+
def PrivacyTargets(self):
|
|
47309
|
+
r"""Privacy protection objective. no need to import an array when in use on API Explorer. just add the corresponding item and fill in the value.
|
|
47310
|
+
-Human face.
|
|
47311
|
+
-License plate.
|
|
47312
|
+
:rtype: list of str
|
|
47313
|
+
"""
|
|
47314
|
+
return self._PrivacyTargets
|
|
47315
|
+
|
|
47316
|
+
@PrivacyTargets.setter
|
|
47317
|
+
def PrivacyTargets(self, PrivacyTargets):
|
|
47318
|
+
self._PrivacyTargets = PrivacyTargets
|
|
47319
|
+
|
|
47320
|
+
|
|
47321
|
+
def _deserialize(self, params):
|
|
47322
|
+
self._PrivacyModel = params.get("PrivacyModel")
|
|
47323
|
+
self._PrivacyTargets = params.get("PrivacyTargets")
|
|
47324
|
+
memeber_set = set(params.keys())
|
|
47325
|
+
for name, value in vars(self).items():
|
|
47326
|
+
property_name = name[1:]
|
|
47327
|
+
if property_name in memeber_set:
|
|
47328
|
+
memeber_set.remove(property_name)
|
|
47329
|
+
if len(memeber_set) > 0:
|
|
47330
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
47331
|
+
|
|
47332
|
+
|
|
47333
|
+
|
|
47334
|
+
class SmartEraseSubtitleConfig(AbstractModel):
|
|
47335
|
+
r"""Intelligent erasure template subtitle configuration.
|
|
47336
|
+
|
|
47337
|
+
"""
|
|
47338
|
+
|
|
47339
|
+
def __init__(self):
|
|
47340
|
+
r"""
|
|
47341
|
+
:param _SubtitleEraseMethod: Specifies the subtitle erasure method.
|
|
47342
|
+
**Automatic erasing:** automatically identifies subtitle text content in videos through AI models and performs seamless erasure to generate new videos. frame interference and unique subtitle styles may cause certain missed or incorrect erasures, which can be handled through specified area erasure.
|
|
47343
|
+
When using automatic erasure, if AutoAreas is not specified, the default region (lower middle of the frame) will be erased automatically. if AutoAreas is specified, it will change to erase the designated area.
|
|
47344
|
+
**Specified area erasing:** if your subtitle position is fixed, directly specify the erasure area to decrease the chance of removal omission to the maximum extent.
|
|
47345
|
+
When your choice is specified area erasure, please import at least one designated region in CustomAreas.
|
|
47346
|
+
-Automated removal.
|
|
47347
|
+
- specifies the custom specified area erasure.
|
|
47348
|
+
|
|
47349
|
+
:type SubtitleEraseMethod: str
|
|
47350
|
+
:param _SubtitleModel: Subtitle erasure model.
|
|
47351
|
+
**Standard version (recommend):** if your subtitle style is standard, normally recommend choose this version for better effectiveness with seamless detail.
|
|
47352
|
+
**Regional version:** if your subtitles have special styles such as italics, shadows, or motion effects, we recommend choosing the regional version for larger removal area, though the detail effect is not as good as the standard version.
|
|
47353
|
+
-Specifies the standard model.
|
|
47354
|
+
-area. specifies the regional model.
|
|
47355
|
+
:type SubtitleModel: str
|
|
47356
|
+
:param _OcrSwitch: Whether OCR subtitle extraction is enabled. default value: OFF.
|
|
47357
|
+
Supports enabling OCR subtitle extraction only when SubtitleEraseMethod is set to auto. when enabled, it identifies the longest and most stable text area within the region as the subtitle area, then performs text extraction and removal.
|
|
47358
|
+
-ON: enable.
|
|
47359
|
+
-OFF. specifies the disabled state.
|
|
47360
|
+
:type OcrSwitch: str
|
|
47361
|
+
:param _SubtitleLang: Subtitle language, for OCR guidance, default value zh_en. this parameter is valid only when OcrSwitch is ON.
|
|
47362
|
+
-Chinese and english.
|
|
47363
|
+
-multi other.
|
|
47364
|
+
Other supported languages:.
|
|
47365
|
+
Chinese, english, japanese, korean, spanish, french, german, portuguese, vietnamese, malay, russian, italian, dutch, swedish, finnish, danish, norwegian, hungarian, thai, hindi, arabic, indian-bengali, indian-gujarati, indian-kannada, indian-malayalam, indian-tamil, indian-telugu, slovenian, polish, catalan, bosnian, czech, estonian, croatian, punjabi, marathi, azerbaijani, indonesian, luxembourgish, lithuanian, latvian, maltese, slovak, turkish, kazakh, greek, irish, belarusian, khmer, tagalog, pashto, persian, tajik.
|
|
47366
|
+
|
|
47367
|
+
|
|
47368
|
+
:type SubtitleLang: str
|
|
47369
|
+
:param _SubtitleFormat: Specifies the subtitle file format. default value: vtt. this parameter is valid only when OcrSwitch is set to ON.
|
|
47370
|
+
-srt format.
|
|
47371
|
+
-vtt: WebVTT format.
|
|
47372
|
+
:type SubtitleFormat: str
|
|
47373
|
+
:param _TransSwitch: Specifies whether to enable subtitle translation. default value: OFF. this parameter is valid only when OcrSwitch is set to ON.
|
|
47374
|
+
-ON: enable.
|
|
47375
|
+
-OFF. specifies the disabled state.
|
|
47376
|
+
:type TransSwitch: str
|
|
47377
|
+
:param _TransDstLang: Subtitle target language. default value: en. this parameter is valid only when TransSwitch is set to ON.
|
|
47378
|
+
Supported languages:.
|
|
47379
|
+
Simplified chinese.
|
|
47380
|
+
Specifies the language. valid values: en (english).
|
|
47381
|
+
Ja: japanese.
|
|
47382
|
+
Ko: korean.
|
|
47383
|
+
Fr: french.
|
|
47384
|
+
es: spanish.
|
|
47385
|
+
It: italian.
|
|
47386
|
+
de: german.
|
|
47387
|
+
tr: turkish.
|
|
47388
|
+
Ru: russian.
|
|
47389
|
+
pt: portuguese.
|
|
47390
|
+
Vi: vietnamese.
|
|
47391
|
+
id: indonesian.
|
|
47392
|
+
ms: malay.
|
|
47393
|
+
Th: thai.
|
|
47394
|
+
Ar: arabic.
|
|
47395
|
+
hi: Hindi
|
|
47396
|
+
:type TransDstLang: str
|
|
47397
|
+
:param _AutoAreas: Specifies automatic removal of a custom region.
|
|
47398
|
+
Specifies the use of an AI model to automatically detect and erase existing targets in the specified region.
|
|
47399
|
+
Note that this parameter will not take effect when the removal method is custom. for template modification, input [] to clean up the region. the template region information remains unchanged if not imported.
|
|
47400
|
+
:type AutoAreas: list of EraseArea
|
|
47401
|
+
:param _CustomAreas: Specifies erasure of a custom region.
|
|
47402
|
+
Detects and directly performs removal within a specified time range for the selected region.
|
|
47403
|
+
Note: when modifying the template, pass [] to clear the region. the template region information remains unchanged if not passed.
|
|
47404
|
+
:type CustomAreas: list of EraseTimeArea
|
|
47405
|
+
"""
|
|
47406
|
+
self._SubtitleEraseMethod = None
|
|
47407
|
+
self._SubtitleModel = None
|
|
47408
|
+
self._OcrSwitch = None
|
|
47409
|
+
self._SubtitleLang = None
|
|
47410
|
+
self._SubtitleFormat = None
|
|
47411
|
+
self._TransSwitch = None
|
|
47412
|
+
self._TransDstLang = None
|
|
47413
|
+
self._AutoAreas = None
|
|
47414
|
+
self._CustomAreas = None
|
|
47415
|
+
|
|
47416
|
+
@property
|
|
47417
|
+
def SubtitleEraseMethod(self):
|
|
47418
|
+
r"""Specifies the subtitle erasure method.
|
|
47419
|
+
**Automatic erasing:** automatically identifies subtitle text content in videos through AI models and performs seamless erasure to generate new videos. frame interference and unique subtitle styles may cause certain missed or incorrect erasures, which can be handled through specified area erasure.
|
|
47420
|
+
When using automatic erasure, if AutoAreas is not specified, the default region (lower middle of the frame) will be erased automatically. if AutoAreas is specified, it will change to erase the designated area.
|
|
47421
|
+
**Specified area erasing:** if your subtitle position is fixed, directly specify the erasure area to decrease the chance of removal omission to the maximum extent.
|
|
47422
|
+
When your choice is specified area erasure, please import at least one designated region in CustomAreas.
|
|
47423
|
+
-Automated removal.
|
|
47424
|
+
- specifies the custom specified area erasure.
|
|
47425
|
+
|
|
47426
|
+
:rtype: str
|
|
47427
|
+
"""
|
|
47428
|
+
return self._SubtitleEraseMethod
|
|
47429
|
+
|
|
47430
|
+
@SubtitleEraseMethod.setter
|
|
47431
|
+
def SubtitleEraseMethod(self, SubtitleEraseMethod):
|
|
47432
|
+
self._SubtitleEraseMethod = SubtitleEraseMethod
|
|
47433
|
+
|
|
47434
|
+
@property
|
|
47435
|
+
def SubtitleModel(self):
|
|
47436
|
+
r"""Subtitle erasure model.
|
|
47437
|
+
**Standard version (recommend):** if your subtitle style is standard, normally recommend choose this version for better effectiveness with seamless detail.
|
|
47438
|
+
**Regional version:** if your subtitles have special styles such as italics, shadows, or motion effects, we recommend choosing the regional version for larger removal area, though the detail effect is not as good as the standard version.
|
|
47439
|
+
-Specifies the standard model.
|
|
47440
|
+
-area. specifies the regional model.
|
|
47441
|
+
:rtype: str
|
|
47442
|
+
"""
|
|
47443
|
+
return self._SubtitleModel
|
|
47444
|
+
|
|
47445
|
+
@SubtitleModel.setter
|
|
47446
|
+
def SubtitleModel(self, SubtitleModel):
|
|
47447
|
+
self._SubtitleModel = SubtitleModel
|
|
47448
|
+
|
|
47449
|
+
@property
|
|
47450
|
+
def OcrSwitch(self):
|
|
47451
|
+
r"""Whether OCR subtitle extraction is enabled. default value: OFF.
|
|
47452
|
+
Supports enabling OCR subtitle extraction only when SubtitleEraseMethod is set to auto. when enabled, it identifies the longest and most stable text area within the region as the subtitle area, then performs text extraction and removal.
|
|
47453
|
+
-ON: enable.
|
|
47454
|
+
-OFF. specifies the disabled state.
|
|
47455
|
+
:rtype: str
|
|
47456
|
+
"""
|
|
47457
|
+
return self._OcrSwitch
|
|
47458
|
+
|
|
47459
|
+
@OcrSwitch.setter
|
|
47460
|
+
def OcrSwitch(self, OcrSwitch):
|
|
47461
|
+
self._OcrSwitch = OcrSwitch
|
|
47462
|
+
|
|
47463
|
+
@property
|
|
47464
|
+
def SubtitleLang(self):
|
|
47465
|
+
r"""Subtitle language, for OCR guidance, default value zh_en. this parameter is valid only when OcrSwitch is ON.
|
|
47466
|
+
-Chinese and english.
|
|
47467
|
+
-multi other.
|
|
47468
|
+
Other supported languages:.
|
|
47469
|
+
Chinese, english, japanese, korean, spanish, french, german, portuguese, vietnamese, malay, russian, italian, dutch, swedish, finnish, danish, norwegian, hungarian, thai, hindi, arabic, indian-bengali, indian-gujarati, indian-kannada, indian-malayalam, indian-tamil, indian-telugu, slovenian, polish, catalan, bosnian, czech, estonian, croatian, punjabi, marathi, azerbaijani, indonesian, luxembourgish, lithuanian, latvian, maltese, slovak, turkish, kazakh, greek, irish, belarusian, khmer, tagalog, pashto, persian, tajik.
|
|
47470
|
+
|
|
47471
|
+
|
|
47472
|
+
:rtype: str
|
|
47473
|
+
"""
|
|
47474
|
+
return self._SubtitleLang
|
|
47475
|
+
|
|
47476
|
+
@SubtitleLang.setter
|
|
47477
|
+
def SubtitleLang(self, SubtitleLang):
|
|
47478
|
+
self._SubtitleLang = SubtitleLang
|
|
47479
|
+
|
|
47480
|
+
@property
|
|
47481
|
+
def SubtitleFormat(self):
|
|
47482
|
+
r"""Specifies the subtitle file format. default value: vtt. this parameter is valid only when OcrSwitch is set to ON.
|
|
47483
|
+
-srt format.
|
|
47484
|
+
-vtt: WebVTT format.
|
|
47485
|
+
:rtype: str
|
|
47486
|
+
"""
|
|
47487
|
+
return self._SubtitleFormat
|
|
47488
|
+
|
|
47489
|
+
@SubtitleFormat.setter
|
|
47490
|
+
def SubtitleFormat(self, SubtitleFormat):
|
|
47491
|
+
self._SubtitleFormat = SubtitleFormat
|
|
47492
|
+
|
|
47493
|
+
@property
|
|
47494
|
+
def TransSwitch(self):
|
|
47495
|
+
r"""Specifies whether to enable subtitle translation. default value: OFF. this parameter is valid only when OcrSwitch is set to ON.
|
|
47496
|
+
-ON: enable.
|
|
47497
|
+
-OFF. specifies the disabled state.
|
|
47498
|
+
:rtype: str
|
|
47499
|
+
"""
|
|
47500
|
+
return self._TransSwitch
|
|
47501
|
+
|
|
47502
|
+
@TransSwitch.setter
|
|
47503
|
+
def TransSwitch(self, TransSwitch):
|
|
47504
|
+
self._TransSwitch = TransSwitch
|
|
47505
|
+
|
|
47506
|
+
@property
|
|
47507
|
+
def TransDstLang(self):
|
|
47508
|
+
r"""Subtitle target language. default value: en. this parameter is valid only when TransSwitch is set to ON.
|
|
47509
|
+
Supported languages:.
|
|
47510
|
+
Simplified chinese.
|
|
47511
|
+
Specifies the language. valid values: en (english).
|
|
47512
|
+
Ja: japanese.
|
|
47513
|
+
Ko: korean.
|
|
47514
|
+
Fr: french.
|
|
47515
|
+
es: spanish.
|
|
47516
|
+
It: italian.
|
|
47517
|
+
de: german.
|
|
47518
|
+
tr: turkish.
|
|
47519
|
+
Ru: russian.
|
|
47520
|
+
pt: portuguese.
|
|
47521
|
+
Vi: vietnamese.
|
|
47522
|
+
id: indonesian.
|
|
47523
|
+
ms: malay.
|
|
47524
|
+
Th: thai.
|
|
47525
|
+
Ar: arabic.
|
|
47526
|
+
hi: Hindi
|
|
47527
|
+
:rtype: str
|
|
47528
|
+
"""
|
|
47529
|
+
return self._TransDstLang
|
|
47530
|
+
|
|
47531
|
+
@TransDstLang.setter
|
|
47532
|
+
def TransDstLang(self, TransDstLang):
|
|
47533
|
+
self._TransDstLang = TransDstLang
|
|
47534
|
+
|
|
47535
|
+
@property
|
|
47536
|
+
def AutoAreas(self):
|
|
47537
|
+
r"""Specifies automatic removal of a custom region.
|
|
47538
|
+
Specifies the use of an AI model to automatically detect and erase existing targets in the specified region.
|
|
47539
|
+
Note that this parameter will not take effect when the removal method is custom. for template modification, input [] to clean up the region. the template region information remains unchanged if not imported.
|
|
47540
|
+
:rtype: list of EraseArea
|
|
47541
|
+
"""
|
|
47542
|
+
return self._AutoAreas
|
|
47543
|
+
|
|
47544
|
+
@AutoAreas.setter
|
|
47545
|
+
def AutoAreas(self, AutoAreas):
|
|
47546
|
+
self._AutoAreas = AutoAreas
|
|
47547
|
+
|
|
47548
|
+
@property
|
|
47549
|
+
def CustomAreas(self):
|
|
47550
|
+
r"""Specifies erasure of a custom region.
|
|
47551
|
+
Detects and directly performs removal within a specified time range for the selected region.
|
|
47552
|
+
Note: when modifying the template, pass [] to clear the region. the template region information remains unchanged if not passed.
|
|
47553
|
+
:rtype: list of EraseTimeArea
|
|
47554
|
+
"""
|
|
47555
|
+
return self._CustomAreas
|
|
47556
|
+
|
|
47557
|
+
@CustomAreas.setter
|
|
47558
|
+
def CustomAreas(self, CustomAreas):
|
|
47559
|
+
self._CustomAreas = CustomAreas
|
|
47560
|
+
|
|
47561
|
+
|
|
47562
|
+
def _deserialize(self, params):
|
|
47563
|
+
self._SubtitleEraseMethod = params.get("SubtitleEraseMethod")
|
|
47564
|
+
self._SubtitleModel = params.get("SubtitleModel")
|
|
47565
|
+
self._OcrSwitch = params.get("OcrSwitch")
|
|
47566
|
+
self._SubtitleLang = params.get("SubtitleLang")
|
|
47567
|
+
self._SubtitleFormat = params.get("SubtitleFormat")
|
|
47568
|
+
self._TransSwitch = params.get("TransSwitch")
|
|
47569
|
+
self._TransDstLang = params.get("TransDstLang")
|
|
47570
|
+
if params.get("AutoAreas") is not None:
|
|
47571
|
+
self._AutoAreas = []
|
|
47572
|
+
for item in params.get("AutoAreas"):
|
|
47573
|
+
obj = EraseArea()
|
|
47574
|
+
obj._deserialize(item)
|
|
47575
|
+
self._AutoAreas.append(obj)
|
|
47576
|
+
if params.get("CustomAreas") is not None:
|
|
47577
|
+
self._CustomAreas = []
|
|
47578
|
+
for item in params.get("CustomAreas"):
|
|
47579
|
+
obj = EraseTimeArea()
|
|
47580
|
+
obj._deserialize(item)
|
|
47581
|
+
self._CustomAreas.append(obj)
|
|
47582
|
+
memeber_set = set(params.keys())
|
|
47583
|
+
for name, value in vars(self).items():
|
|
47584
|
+
property_name = name[1:]
|
|
47585
|
+
if property_name in memeber_set:
|
|
47586
|
+
memeber_set.remove(property_name)
|
|
47587
|
+
if len(memeber_set) > 0:
|
|
47588
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
47589
|
+
|
|
47590
|
+
|
|
47591
|
+
|
|
47592
|
+
class SmartEraseTaskInput(AbstractModel):
|
|
47593
|
+
r"""Smart erasure task.
|
|
47594
|
+
|
|
47595
|
+
"""
|
|
47596
|
+
|
|
47597
|
+
def __init__(self):
|
|
47598
|
+
r"""
|
|
47599
|
+
:param _Definition: Smart erasure template id.
|
|
47600
|
+
:type Definition: int
|
|
47601
|
+
:param _RawParameter: Intelligent erasure custom parameter. valid when Definition is 0. this parameter is used for highly custom scenarios. we recommend you prioritize using Definition to specify intelligent erasure parameters.
|
|
47602
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47603
|
+
:type RawParameter: :class:`tencentcloud.mps.v20190612.models.RawSmartEraseParameter`
|
|
47604
|
+
:param _OutputStorage: Specifies the target storage for files. if left blank, it inherits the upper-level OutputStorage value.
|
|
47605
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47606
|
+
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
47607
|
+
:param _OutputObjectPath: Output path of the file, which can be a relative or absolute path.
|
|
47608
|
+
Specifies the output path must end with `.{format}`. variable names, please refer to [filename variable explanation](https://www.tencentcloud.com/document/product/1041/33495?has_map=1).
|
|
47609
|
+
**Relative path example**:
|
|
47610
|
+
<Li>Filename_{Variable name}.{format}</li>
|
|
47611
|
+
<li>Filename.{format}</li>
|
|
47612
|
+
|
|
47613
|
+
**Absolute path example**:
|
|
47614
|
+
<Li>/Custom path/filename_{variable name}.{format}</li>
|
|
47615
|
+
|
|
47616
|
+
**Note**: currently does not support the `BatchProcessMedia` api.
|
|
47617
|
+
:type OutputObjectPath: str
|
|
47618
|
+
"""
|
|
47619
|
+
self._Definition = None
|
|
47620
|
+
self._RawParameter = None
|
|
47621
|
+
self._OutputStorage = None
|
|
47622
|
+
self._OutputObjectPath = None
|
|
47623
|
+
|
|
47624
|
+
@property
|
|
47625
|
+
def Definition(self):
|
|
47626
|
+
r"""Smart erasure template id.
|
|
47627
|
+
:rtype: int
|
|
47628
|
+
"""
|
|
47629
|
+
return self._Definition
|
|
47630
|
+
|
|
47631
|
+
@Definition.setter
|
|
47632
|
+
def Definition(self, Definition):
|
|
47633
|
+
self._Definition = Definition
|
|
47634
|
+
|
|
47635
|
+
@property
|
|
47636
|
+
def RawParameter(self):
|
|
47637
|
+
r"""Intelligent erasure custom parameter. valid when Definition is 0. this parameter is used for highly custom scenarios. we recommend you prioritize using Definition to specify intelligent erasure parameters.
|
|
47638
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47639
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.RawSmartEraseParameter`
|
|
47640
|
+
"""
|
|
47641
|
+
return self._RawParameter
|
|
47642
|
+
|
|
47643
|
+
@RawParameter.setter
|
|
47644
|
+
def RawParameter(self, RawParameter):
|
|
47645
|
+
self._RawParameter = RawParameter
|
|
47646
|
+
|
|
47647
|
+
@property
|
|
47648
|
+
def OutputStorage(self):
|
|
47649
|
+
r"""Specifies the target storage for files. if left blank, it inherits the upper-level OutputStorage value.
|
|
47650
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47651
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
47652
|
+
"""
|
|
47653
|
+
return self._OutputStorage
|
|
47654
|
+
|
|
47655
|
+
@OutputStorage.setter
|
|
47656
|
+
def OutputStorage(self, OutputStorage):
|
|
47657
|
+
self._OutputStorage = OutputStorage
|
|
47658
|
+
|
|
47659
|
+
@property
|
|
47660
|
+
def OutputObjectPath(self):
|
|
47661
|
+
r"""Output path of the file, which can be a relative or absolute path.
|
|
47662
|
+
Specifies the output path must end with `.{format}`. variable names, please refer to [filename variable explanation](https://www.tencentcloud.com/document/product/1041/33495?has_map=1).
|
|
47663
|
+
**Relative path example**:
|
|
47664
|
+
<Li>Filename_{Variable name}.{format}</li>
|
|
47665
|
+
<li>Filename.{format}</li>
|
|
47666
|
+
|
|
47667
|
+
**Absolute path example**:
|
|
47668
|
+
<Li>/Custom path/filename_{variable name}.{format}</li>
|
|
47669
|
+
|
|
47670
|
+
**Note**: currently does not support the `BatchProcessMedia` api.
|
|
47671
|
+
:rtype: str
|
|
47672
|
+
"""
|
|
47673
|
+
return self._OutputObjectPath
|
|
47674
|
+
|
|
47675
|
+
@OutputObjectPath.setter
|
|
47676
|
+
def OutputObjectPath(self, OutputObjectPath):
|
|
47677
|
+
self._OutputObjectPath = OutputObjectPath
|
|
47678
|
+
|
|
47679
|
+
|
|
47680
|
+
def _deserialize(self, params):
|
|
47681
|
+
self._Definition = params.get("Definition")
|
|
47682
|
+
if params.get("RawParameter") is not None:
|
|
47683
|
+
self._RawParameter = RawSmartEraseParameter()
|
|
47684
|
+
self._RawParameter._deserialize(params.get("RawParameter"))
|
|
47685
|
+
if params.get("OutputStorage") is not None:
|
|
47686
|
+
self._OutputStorage = TaskOutputStorage()
|
|
47687
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
47688
|
+
self._OutputObjectPath = params.get("OutputObjectPath")
|
|
47689
|
+
memeber_set = set(params.keys())
|
|
47690
|
+
for name, value in vars(self).items():
|
|
47691
|
+
property_name = name[1:]
|
|
47692
|
+
if property_name in memeber_set:
|
|
47693
|
+
memeber_set.remove(property_name)
|
|
47694
|
+
if len(memeber_set) > 0:
|
|
47695
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
47696
|
+
|
|
47697
|
+
|
|
47698
|
+
|
|
47699
|
+
class SmartEraseTaskResult(AbstractModel):
|
|
47700
|
+
r"""Smart erasure task result.
|
|
47701
|
+
|
|
47702
|
+
"""
|
|
47703
|
+
|
|
47704
|
+
def __init__(self):
|
|
47705
|
+
r"""
|
|
47706
|
+
:param _Status: Task status, including PROCESSING, SUCCESS, and FAIL.
|
|
47707
|
+
:type Status: str
|
|
47708
|
+
:param _ErrCodeExt: Error code. An empty string indicates that the task is successful, and other values indicate that the task has failed. For specific values, see [Error Codes] (https://www.tencentcloud.comom/document/product/862/50369?from_cn_redirect=1#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81).
|
|
47709
|
+
:type ErrCodeExt: str
|
|
47710
|
+
:param _Message: Error message.
|
|
47711
|
+
:type Message: str
|
|
47712
|
+
:param _Input: Input of the smart erasure task.
|
|
47713
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47714
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskInput`
|
|
47715
|
+
:param _Output: Output of the smart erasure task.
|
|
47716
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47717
|
+
:type Output: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDelLogoOutput`
|
|
47718
|
+
:param _Progress: Task progress.
|
|
47719
|
+
:type Progress: int
|
|
47720
|
+
:param _BeginProcessTime: Task execution start time in ISO datetime format.
|
|
47721
|
+
:type BeginProcessTime: str
|
|
47722
|
+
:param _FinishTime: Task execution completion time in ISO datetime format.
|
|
47723
|
+
:type FinishTime: str
|
|
47724
|
+
"""
|
|
47725
|
+
self._Status = None
|
|
47726
|
+
self._ErrCodeExt = None
|
|
47727
|
+
self._Message = None
|
|
47728
|
+
self._Input = None
|
|
47729
|
+
self._Output = None
|
|
47730
|
+
self._Progress = None
|
|
47731
|
+
self._BeginProcessTime = None
|
|
47732
|
+
self._FinishTime = None
|
|
47733
|
+
|
|
47734
|
+
@property
|
|
47735
|
+
def Status(self):
|
|
47736
|
+
r"""Task status, including PROCESSING, SUCCESS, and FAIL.
|
|
47737
|
+
:rtype: str
|
|
47738
|
+
"""
|
|
47739
|
+
return self._Status
|
|
47740
|
+
|
|
47741
|
+
@Status.setter
|
|
47742
|
+
def Status(self, Status):
|
|
47743
|
+
self._Status = Status
|
|
47744
|
+
|
|
47745
|
+
@property
|
|
47746
|
+
def ErrCodeExt(self):
|
|
47747
|
+
r"""Error code. An empty string indicates that the task is successful, and other values indicate that the task has failed. For specific values, see [Error Codes] (https://www.tencentcloud.comom/document/product/862/50369?from_cn_redirect=1#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81).
|
|
47748
|
+
:rtype: str
|
|
47749
|
+
"""
|
|
47750
|
+
return self._ErrCodeExt
|
|
47751
|
+
|
|
47752
|
+
@ErrCodeExt.setter
|
|
47753
|
+
def ErrCodeExt(self, ErrCodeExt):
|
|
47754
|
+
self._ErrCodeExt = ErrCodeExt
|
|
47755
|
+
|
|
47756
|
+
@property
|
|
47757
|
+
def Message(self):
|
|
47758
|
+
r"""Error message.
|
|
47759
|
+
:rtype: str
|
|
47760
|
+
"""
|
|
47761
|
+
return self._Message
|
|
47762
|
+
|
|
47763
|
+
@Message.setter
|
|
47764
|
+
def Message(self, Message):
|
|
47765
|
+
self._Message = Message
|
|
47766
|
+
|
|
47767
|
+
@property
|
|
47768
|
+
def Input(self):
|
|
47769
|
+
r"""Input of the smart erasure task.
|
|
47770
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47771
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskInput`
|
|
47772
|
+
"""
|
|
47773
|
+
return self._Input
|
|
47774
|
+
|
|
47775
|
+
@Input.setter
|
|
47776
|
+
def Input(self, Input):
|
|
47777
|
+
self._Input = Input
|
|
47778
|
+
|
|
47779
|
+
@property
|
|
47780
|
+
def Output(self):
|
|
47781
|
+
r"""Output of the smart erasure task.
|
|
47782
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
47783
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.AiAnalysisTaskDelLogoOutput`
|
|
47784
|
+
"""
|
|
47785
|
+
return self._Output
|
|
47786
|
+
|
|
47787
|
+
@Output.setter
|
|
47788
|
+
def Output(self, Output):
|
|
47789
|
+
self._Output = Output
|
|
47790
|
+
|
|
47791
|
+
@property
|
|
47792
|
+
def Progress(self):
|
|
47793
|
+
r"""Task progress.
|
|
47794
|
+
:rtype: int
|
|
47795
|
+
"""
|
|
47796
|
+
return self._Progress
|
|
47797
|
+
|
|
47798
|
+
@Progress.setter
|
|
47799
|
+
def Progress(self, Progress):
|
|
47800
|
+
self._Progress = Progress
|
|
47801
|
+
|
|
47802
|
+
@property
|
|
47803
|
+
def BeginProcessTime(self):
|
|
47804
|
+
r"""Task execution start time in ISO datetime format.
|
|
47805
|
+
:rtype: str
|
|
47806
|
+
"""
|
|
47807
|
+
return self._BeginProcessTime
|
|
47808
|
+
|
|
47809
|
+
@BeginProcessTime.setter
|
|
47810
|
+
def BeginProcessTime(self, BeginProcessTime):
|
|
47811
|
+
self._BeginProcessTime = BeginProcessTime
|
|
47812
|
+
|
|
47813
|
+
@property
|
|
47814
|
+
def FinishTime(self):
|
|
47815
|
+
r"""Task execution completion time in ISO datetime format.
|
|
47816
|
+
:rtype: str
|
|
47817
|
+
"""
|
|
47818
|
+
return self._FinishTime
|
|
47819
|
+
|
|
47820
|
+
@FinishTime.setter
|
|
47821
|
+
def FinishTime(self, FinishTime):
|
|
47822
|
+
self._FinishTime = FinishTime
|
|
47823
|
+
|
|
47824
|
+
|
|
47825
|
+
def _deserialize(self, params):
|
|
47826
|
+
self._Status = params.get("Status")
|
|
47827
|
+
self._ErrCodeExt = params.get("ErrCodeExt")
|
|
47828
|
+
self._Message = params.get("Message")
|
|
47829
|
+
if params.get("Input") is not None:
|
|
47830
|
+
self._Input = SmartEraseTaskInput()
|
|
47831
|
+
self._Input._deserialize(params.get("Input"))
|
|
47832
|
+
if params.get("Output") is not None:
|
|
47833
|
+
self._Output = AiAnalysisTaskDelLogoOutput()
|
|
47834
|
+
self._Output._deserialize(params.get("Output"))
|
|
47835
|
+
self._Progress = params.get("Progress")
|
|
47836
|
+
self._BeginProcessTime = params.get("BeginProcessTime")
|
|
47837
|
+
self._FinishTime = params.get("FinishTime")
|
|
47838
|
+
memeber_set = set(params.keys())
|
|
47839
|
+
for name, value in vars(self).items():
|
|
47840
|
+
property_name = name[1:]
|
|
47841
|
+
if property_name in memeber_set:
|
|
47842
|
+
memeber_set.remove(property_name)
|
|
47843
|
+
if len(memeber_set) > 0:
|
|
47844
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
47845
|
+
|
|
47846
|
+
|
|
47847
|
+
|
|
47848
|
+
class SmartEraseWatermarkConfig(AbstractModel):
|
|
47849
|
+
r"""smart erasure template watermark configuration.
|
|
47850
|
+
|
|
47851
|
+
"""
|
|
47852
|
+
|
|
47853
|
+
def __init__(self):
|
|
47854
|
+
r"""
|
|
47855
|
+
:param _WatermarkEraseMethod: Specifies the watermark removal method.
|
|
47856
|
+
**Auto-Removal:** automatically identifies watermarks in the video using model a and generates a new video after removal. suitable for dynamic watermarks.
|
|
47857
|
+
When using automated removal, if you do not specify AutoAreas, the full-screen video will be erased automatically. if AutoAreas is specified, it will change to erase the designated areas.
|
|
47858
|
+
**Specified area erasure:** for static watermarks with fixed locations, we recommend you directly specify the erasure area.
|
|
47859
|
+
When you choose specified area erasure, import at least one specified region.
|
|
47860
|
+
|
|
47861
|
+
-Automated removal.
|
|
47862
|
+
-Specifies the custom specified area erasure.
|
|
47863
|
+
:type WatermarkEraseMethod: str
|
|
47864
|
+
:param _WatermarkModel: Specifies the watermark removal model.
|
|
47865
|
+
Basic version: average effect, cost-effective, suitable for videos with clean backgrounds or animations.
|
|
47866
|
+
Advanced edition: better effectiveness, suitable for mini-drama and reality style video.
|
|
47867
|
+
**Supported values**:
|
|
47868
|
+
- basic
|
|
47869
|
+
- advanced
|
|
47870
|
+
:type WatermarkModel: str
|
|
47871
|
+
:param _AutoAreas: Specifies automatic removal of a custom region.
|
|
47872
|
+
Specifies the use of an AI model to automatically detect and erase existing targets in the specified region.
|
|
47873
|
+
Note that this parameter will not take effect when the removal method is custom.
|
|
47874
|
+
:type AutoAreas: list of EraseArea
|
|
47875
|
+
:param _CustomAreas: Specifies erasure of a custom region.
|
|
47876
|
+
Detects and directly performs removal within a specified time range for the selected region.
|
|
47877
|
+
:type CustomAreas: list of EraseTimeArea
|
|
47878
|
+
"""
|
|
47879
|
+
self._WatermarkEraseMethod = None
|
|
47880
|
+
self._WatermarkModel = None
|
|
47881
|
+
self._AutoAreas = None
|
|
47882
|
+
self._CustomAreas = None
|
|
47883
|
+
|
|
47884
|
+
@property
|
|
47885
|
+
def WatermarkEraseMethod(self):
|
|
47886
|
+
r"""Specifies the watermark removal method.
|
|
47887
|
+
**Auto-Removal:** automatically identifies watermarks in the video using model a and generates a new video after removal. suitable for dynamic watermarks.
|
|
47888
|
+
When using automated removal, if you do not specify AutoAreas, the full-screen video will be erased automatically. if AutoAreas is specified, it will change to erase the designated areas.
|
|
47889
|
+
**Specified area erasure:** for static watermarks with fixed locations, we recommend you directly specify the erasure area.
|
|
47890
|
+
When you choose specified area erasure, import at least one specified region.
|
|
47891
|
+
|
|
47892
|
+
-Automated removal.
|
|
47893
|
+
-Specifies the custom specified area erasure.
|
|
47894
|
+
:rtype: str
|
|
47895
|
+
"""
|
|
47896
|
+
return self._WatermarkEraseMethod
|
|
47897
|
+
|
|
47898
|
+
@WatermarkEraseMethod.setter
|
|
47899
|
+
def WatermarkEraseMethod(self, WatermarkEraseMethod):
|
|
47900
|
+
self._WatermarkEraseMethod = WatermarkEraseMethod
|
|
47901
|
+
|
|
47902
|
+
@property
|
|
47903
|
+
def WatermarkModel(self):
|
|
47904
|
+
r"""Specifies the watermark removal model.
|
|
47905
|
+
Basic version: average effect, cost-effective, suitable for videos with clean backgrounds or animations.
|
|
47906
|
+
Advanced edition: better effectiveness, suitable for mini-drama and reality style video.
|
|
47907
|
+
**Supported values**:
|
|
47908
|
+
- basic
|
|
47909
|
+
- advanced
|
|
47910
|
+
:rtype: str
|
|
47911
|
+
"""
|
|
47912
|
+
return self._WatermarkModel
|
|
47913
|
+
|
|
47914
|
+
@WatermarkModel.setter
|
|
47915
|
+
def WatermarkModel(self, WatermarkModel):
|
|
47916
|
+
self._WatermarkModel = WatermarkModel
|
|
47917
|
+
|
|
47918
|
+
@property
|
|
47919
|
+
def AutoAreas(self):
|
|
47920
|
+
r"""Specifies automatic removal of a custom region.
|
|
47921
|
+
Specifies the use of an AI model to automatically detect and erase existing targets in the specified region.
|
|
47922
|
+
Note that this parameter will not take effect when the removal method is custom.
|
|
47923
|
+
:rtype: list of EraseArea
|
|
47924
|
+
"""
|
|
47925
|
+
return self._AutoAreas
|
|
47926
|
+
|
|
47927
|
+
@AutoAreas.setter
|
|
47928
|
+
def AutoAreas(self, AutoAreas):
|
|
47929
|
+
self._AutoAreas = AutoAreas
|
|
47930
|
+
|
|
47931
|
+
@property
|
|
47932
|
+
def CustomAreas(self):
|
|
47933
|
+
r"""Specifies erasure of a custom region.
|
|
47934
|
+
Detects and directly performs removal within a specified time range for the selected region.
|
|
47935
|
+
:rtype: list of EraseTimeArea
|
|
47936
|
+
"""
|
|
47937
|
+
return self._CustomAreas
|
|
47938
|
+
|
|
47939
|
+
@CustomAreas.setter
|
|
47940
|
+
def CustomAreas(self, CustomAreas):
|
|
47941
|
+
self._CustomAreas = CustomAreas
|
|
47942
|
+
|
|
47943
|
+
|
|
47944
|
+
def _deserialize(self, params):
|
|
47945
|
+
self._WatermarkEraseMethod = params.get("WatermarkEraseMethod")
|
|
47946
|
+
self._WatermarkModel = params.get("WatermarkModel")
|
|
47947
|
+
if params.get("AutoAreas") is not None:
|
|
47948
|
+
self._AutoAreas = []
|
|
47949
|
+
for item in params.get("AutoAreas"):
|
|
47950
|
+
obj = EraseArea()
|
|
47951
|
+
obj._deserialize(item)
|
|
47952
|
+
self._AutoAreas.append(obj)
|
|
47953
|
+
if params.get("CustomAreas") is not None:
|
|
47954
|
+
self._CustomAreas = []
|
|
47955
|
+
for item in params.get("CustomAreas"):
|
|
47956
|
+
obj = EraseTimeArea()
|
|
47957
|
+
obj._deserialize(item)
|
|
47958
|
+
self._CustomAreas.append(obj)
|
|
47959
|
+
memeber_set = set(params.keys())
|
|
47960
|
+
for name, value in vars(self).items():
|
|
47961
|
+
property_name = name[1:]
|
|
47962
|
+
if property_name in memeber_set:
|
|
47963
|
+
memeber_set.remove(property_name)
|
|
47964
|
+
if len(memeber_set) > 0:
|
|
47965
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
47966
|
+
|
|
47967
|
+
|
|
47968
|
+
|
|
46385
47969
|
class SmartSubtitleTaskAsrFullTextResult(AbstractModel):
|
|
46386
47970
|
r"""Full speech recognition result.
|
|
46387
47971
|
|
|
@@ -46530,9 +48114,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
46530
48114
|
:type SegmentSet: list of SmartSubtitleTaskAsrFullTextSegmentItem
|
|
46531
48115
|
:param _SubtitlePath: Subtitle file path.
|
|
46532
48116
|
:type SubtitlePath: str
|
|
48117
|
+
:param _OutputStorage: Subtitle file storage location.
|
|
48118
|
+
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
46533
48119
|
"""
|
|
46534
48120
|
self._SegmentSet = None
|
|
46535
48121
|
self._SubtitlePath = None
|
|
48122
|
+
self._OutputStorage = None
|
|
46536
48123
|
|
|
46537
48124
|
@property
|
|
46538
48125
|
def SegmentSet(self):
|
|
@@ -46557,6 +48144,17 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
46557
48144
|
def SubtitlePath(self, SubtitlePath):
|
|
46558
48145
|
self._SubtitlePath = SubtitlePath
|
|
46559
48146
|
|
|
48147
|
+
@property
|
|
48148
|
+
def OutputStorage(self):
|
|
48149
|
+
r"""Subtitle file storage location.
|
|
48150
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
48151
|
+
"""
|
|
48152
|
+
return self._OutputStorage
|
|
48153
|
+
|
|
48154
|
+
@OutputStorage.setter
|
|
48155
|
+
def OutputStorage(self, OutputStorage):
|
|
48156
|
+
self._OutputStorage = OutputStorage
|
|
48157
|
+
|
|
46560
48158
|
|
|
46561
48159
|
def _deserialize(self, params):
|
|
46562
48160
|
if params.get("SegmentSet") is not None:
|
|
@@ -46566,6 +48164,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
46566
48164
|
obj._deserialize(item)
|
|
46567
48165
|
self._SegmentSet.append(obj)
|
|
46568
48166
|
self._SubtitlePath = params.get("SubtitlePath")
|
|
48167
|
+
if params.get("OutputStorage") is not None:
|
|
48168
|
+
self._OutputStorage = TaskOutputStorage()
|
|
48169
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
46569
48170
|
memeber_set = set(params.keys())
|
|
46570
48171
|
for name, value in vars(self).items():
|
|
46571
48172
|
property_name = name[1:]
|
|
@@ -47005,9 +48606,12 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
47005
48606
|
:type SegmentSet: list of SmartSubtitleTaskTransTextSegmentItem
|
|
47006
48607
|
:param _SubtitlePath: Subtitle file path.
|
|
47007
48608
|
:type SubtitlePath: str
|
|
48609
|
+
:param _OutputStorage: Subtitle file storage location.
|
|
48610
|
+
:type OutputStorage: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
47008
48611
|
"""
|
|
47009
48612
|
self._SegmentSet = None
|
|
47010
48613
|
self._SubtitlePath = None
|
|
48614
|
+
self._OutputStorage = None
|
|
47011
48615
|
|
|
47012
48616
|
@property
|
|
47013
48617
|
def SegmentSet(self):
|
|
@@ -47032,6 +48636,17 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
47032
48636
|
def SubtitlePath(self, SubtitlePath):
|
|
47033
48637
|
self._SubtitlePath = SubtitlePath
|
|
47034
48638
|
|
|
48639
|
+
@property
|
|
48640
|
+
def OutputStorage(self):
|
|
48641
|
+
r"""Subtitle file storage location.
|
|
48642
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.TaskOutputStorage`
|
|
48643
|
+
"""
|
|
48644
|
+
return self._OutputStorage
|
|
48645
|
+
|
|
48646
|
+
@OutputStorage.setter
|
|
48647
|
+
def OutputStorage(self, OutputStorage):
|
|
48648
|
+
self._OutputStorage = OutputStorage
|
|
48649
|
+
|
|
47035
48650
|
|
|
47036
48651
|
def _deserialize(self, params):
|
|
47037
48652
|
if params.get("SegmentSet") is not None:
|
|
@@ -47041,6 +48656,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
47041
48656
|
obj._deserialize(item)
|
|
47042
48657
|
self._SegmentSet.append(obj)
|
|
47043
48658
|
self._SubtitlePath = params.get("SubtitlePath")
|
|
48659
|
+
if params.get("OutputStorage") is not None:
|
|
48660
|
+
self._OutputStorage = TaskOutputStorage()
|
|
48661
|
+
self._OutputStorage._deserialize(params.get("OutputStorage"))
|
|
47044
48662
|
memeber_set = set(params.keys())
|
|
47045
48663
|
for name, value in vars(self).items():
|
|
47046
48664
|
property_name = name[1:]
|
|
@@ -49374,9 +50992,10 @@ class TaskOutputStorage(AbstractModel):
|
|
|
49374
50992
|
|
|
49375
50993
|
def __init__(self):
|
|
49376
50994
|
r"""
|
|
49377
|
-
:param _Type:
|
|
49378
|
-
<
|
|
49379
|
-
<
|
|
50995
|
+
:param _Type: Specifies the type of storage location for the media processing service output object. valid values:.
|
|
50996
|
+
<Li>COS: cos storage.</li>.
|
|
50997
|
+
<Li>AWS-S3: aws storage, suitable for aws tasks only and requires the same region.</li>.
|
|
50998
|
+
<Li>VOD: video-on-demand (vod) pro edition</li>.
|
|
49380
50999
|
:type Type: str
|
|
49381
51000
|
:param _CosOutputStorage: The location to save the output object in COS. This parameter is valid and required when `Type` is COS.
|
|
49382
51001
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
@@ -49384,16 +51003,21 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
49384
51003
|
:param _S3OutputStorage: The AWS S3 bucket to save the output file. This parameter is required if `Type` is `AWS-S3`.
|
|
49385
51004
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
49386
51005
|
:type S3OutputStorage: :class:`tencentcloud.mps.v20190612.models.S3OutputStorage`
|
|
51006
|
+
:param _VODOutputStorage: The VOD Pro application and bucket to save the output file. This parameter is required if `Type` is `VOD`.
|
|
51007
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
51008
|
+
:type VODOutputStorage: :class:`tencentcloud.mps.v20190612.models.VODOutputStorage`
|
|
49387
51009
|
"""
|
|
49388
51010
|
self._Type = None
|
|
49389
51011
|
self._CosOutputStorage = None
|
|
49390
51012
|
self._S3OutputStorage = None
|
|
51013
|
+
self._VODOutputStorage = None
|
|
49391
51014
|
|
|
49392
51015
|
@property
|
|
49393
51016
|
def Type(self):
|
|
49394
|
-
r"""
|
|
49395
|
-
<
|
|
49396
|
-
<
|
|
51017
|
+
r"""Specifies the type of storage location for the media processing service output object. valid values:.
|
|
51018
|
+
<Li>COS: cos storage.</li>.
|
|
51019
|
+
<Li>AWS-S3: aws storage, suitable for aws tasks only and requires the same region.</li>.
|
|
51020
|
+
<Li>VOD: video-on-demand (vod) pro edition</li>.
|
|
49397
51021
|
:rtype: str
|
|
49398
51022
|
"""
|
|
49399
51023
|
return self._Type
|
|
@@ -49426,6 +51050,18 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
49426
51050
|
def S3OutputStorage(self, S3OutputStorage):
|
|
49427
51051
|
self._S3OutputStorage = S3OutputStorage
|
|
49428
51052
|
|
|
51053
|
+
@property
|
|
51054
|
+
def VODOutputStorage(self):
|
|
51055
|
+
r"""The VOD Pro application and bucket to save the output file. This parameter is required if `Type` is `VOD`.
|
|
51056
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
51057
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.VODOutputStorage`
|
|
51058
|
+
"""
|
|
51059
|
+
return self._VODOutputStorage
|
|
51060
|
+
|
|
51061
|
+
@VODOutputStorage.setter
|
|
51062
|
+
def VODOutputStorage(self, VODOutputStorage):
|
|
51063
|
+
self._VODOutputStorage = VODOutputStorage
|
|
51064
|
+
|
|
49429
51065
|
|
|
49430
51066
|
def _deserialize(self, params):
|
|
49431
51067
|
self._Type = params.get("Type")
|
|
@@ -49435,6 +51071,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
49435
51071
|
if params.get("S3OutputStorage") is not None:
|
|
49436
51072
|
self._S3OutputStorage = S3OutputStorage()
|
|
49437
51073
|
self._S3OutputStorage._deserialize(params.get("S3OutputStorage"))
|
|
51074
|
+
if params.get("VODOutputStorage") is not None:
|
|
51075
|
+
self._VODOutputStorage = VODOutputStorage()
|
|
51076
|
+
self._VODOutputStorage._deserialize(params.get("VODOutputStorage"))
|
|
49438
51077
|
memeber_set = set(params.keys())
|
|
49439
51078
|
for name, value in vars(self).items():
|
|
49440
51079
|
property_name = name[1:]
|
|
@@ -51748,6 +53387,153 @@ There can be up to 10 tags, each with a length limit of 16 characters.
|
|
|
51748
53387
|
|
|
51749
53388
|
|
|
51750
53389
|
|
|
53390
|
+
class VODInputInfo(AbstractModel):
|
|
53391
|
+
r"""VOD Pro object information for MPS.
|
|
53392
|
+
|
|
53393
|
+
"""
|
|
53394
|
+
|
|
53395
|
+
def __init__(self):
|
|
53396
|
+
r"""
|
|
53397
|
+
:param _Bucket: Specifies the Bucket ID where the input file resides.
|
|
53398
|
+
:type Bucket: str
|
|
53399
|
+
:param _Region: Specifies the region where the input file's Bucket resides.
|
|
53400
|
+
:type Region: str
|
|
53401
|
+
:param _Object: Path of the input file.
|
|
53402
|
+
:type Object: str
|
|
53403
|
+
:param _SubAppId: VOD Pro application Id.
|
|
53404
|
+
:type SubAppId: int
|
|
53405
|
+
"""
|
|
53406
|
+
self._Bucket = None
|
|
53407
|
+
self._Region = None
|
|
53408
|
+
self._Object = None
|
|
53409
|
+
self._SubAppId = None
|
|
53410
|
+
|
|
53411
|
+
@property
|
|
53412
|
+
def Bucket(self):
|
|
53413
|
+
r"""Specifies the Bucket ID where the input file resides.
|
|
53414
|
+
:rtype: str
|
|
53415
|
+
"""
|
|
53416
|
+
return self._Bucket
|
|
53417
|
+
|
|
53418
|
+
@Bucket.setter
|
|
53419
|
+
def Bucket(self, Bucket):
|
|
53420
|
+
self._Bucket = Bucket
|
|
53421
|
+
|
|
53422
|
+
@property
|
|
53423
|
+
def Region(self):
|
|
53424
|
+
r"""Specifies the region where the input file's Bucket resides.
|
|
53425
|
+
:rtype: str
|
|
53426
|
+
"""
|
|
53427
|
+
return self._Region
|
|
53428
|
+
|
|
53429
|
+
@Region.setter
|
|
53430
|
+
def Region(self, Region):
|
|
53431
|
+
self._Region = Region
|
|
53432
|
+
|
|
53433
|
+
@property
|
|
53434
|
+
def Object(self):
|
|
53435
|
+
r"""Path of the input file.
|
|
53436
|
+
:rtype: str
|
|
53437
|
+
"""
|
|
53438
|
+
return self._Object
|
|
53439
|
+
|
|
53440
|
+
@Object.setter
|
|
53441
|
+
def Object(self, Object):
|
|
53442
|
+
self._Object = Object
|
|
53443
|
+
|
|
53444
|
+
@property
|
|
53445
|
+
def SubAppId(self):
|
|
53446
|
+
r"""VOD Pro application Id.
|
|
53447
|
+
:rtype: int
|
|
53448
|
+
"""
|
|
53449
|
+
return self._SubAppId
|
|
53450
|
+
|
|
53451
|
+
@SubAppId.setter
|
|
53452
|
+
def SubAppId(self, SubAppId):
|
|
53453
|
+
self._SubAppId = SubAppId
|
|
53454
|
+
|
|
53455
|
+
|
|
53456
|
+
def _deserialize(self, params):
|
|
53457
|
+
self._Bucket = params.get("Bucket")
|
|
53458
|
+
self._Region = params.get("Region")
|
|
53459
|
+
self._Object = params.get("Object")
|
|
53460
|
+
self._SubAppId = params.get("SubAppId")
|
|
53461
|
+
memeber_set = set(params.keys())
|
|
53462
|
+
for name, value in vars(self).items():
|
|
53463
|
+
property_name = name[1:]
|
|
53464
|
+
if property_name in memeber_set:
|
|
53465
|
+
memeber_set.remove(property_name)
|
|
53466
|
+
if len(memeber_set) > 0:
|
|
53467
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
53468
|
+
|
|
53469
|
+
|
|
53470
|
+
|
|
53471
|
+
class VODOutputStorage(AbstractModel):
|
|
53472
|
+
r"""VOD Pro output object information for MPS.
|
|
53473
|
+
|
|
53474
|
+
"""
|
|
53475
|
+
|
|
53476
|
+
def __init__(self):
|
|
53477
|
+
r"""
|
|
53478
|
+
:param _Bucket: Specifies the destination Bucket ID for the generated output file of MPS.
|
|
53479
|
+
:type Bucket: str
|
|
53480
|
+
:param _Region: Specifies the region of the target Bucket for the output.
|
|
53481
|
+
:type Region: str
|
|
53482
|
+
:param _SubAppId: VOD Pro application Id.
|
|
53483
|
+
:type SubAppId: int
|
|
53484
|
+
"""
|
|
53485
|
+
self._Bucket = None
|
|
53486
|
+
self._Region = None
|
|
53487
|
+
self._SubAppId = None
|
|
53488
|
+
|
|
53489
|
+
@property
|
|
53490
|
+
def Bucket(self):
|
|
53491
|
+
r"""Specifies the destination Bucket ID for the generated output file of MPS.
|
|
53492
|
+
:rtype: str
|
|
53493
|
+
"""
|
|
53494
|
+
return self._Bucket
|
|
53495
|
+
|
|
53496
|
+
@Bucket.setter
|
|
53497
|
+
def Bucket(self, Bucket):
|
|
53498
|
+
self._Bucket = Bucket
|
|
53499
|
+
|
|
53500
|
+
@property
|
|
53501
|
+
def Region(self):
|
|
53502
|
+
r"""Specifies the region of the target Bucket for the output.
|
|
53503
|
+
:rtype: str
|
|
53504
|
+
"""
|
|
53505
|
+
return self._Region
|
|
53506
|
+
|
|
53507
|
+
@Region.setter
|
|
53508
|
+
def Region(self, Region):
|
|
53509
|
+
self._Region = Region
|
|
53510
|
+
|
|
53511
|
+
@property
|
|
53512
|
+
def SubAppId(self):
|
|
53513
|
+
r"""VOD Pro application Id.
|
|
53514
|
+
:rtype: int
|
|
53515
|
+
"""
|
|
53516
|
+
return self._SubAppId
|
|
53517
|
+
|
|
53518
|
+
@SubAppId.setter
|
|
53519
|
+
def SubAppId(self, SubAppId):
|
|
53520
|
+
self._SubAppId = SubAppId
|
|
53521
|
+
|
|
53522
|
+
|
|
53523
|
+
def _deserialize(self, params):
|
|
53524
|
+
self._Bucket = params.get("Bucket")
|
|
53525
|
+
self._Region = params.get("Region")
|
|
53526
|
+
self._SubAppId = params.get("SubAppId")
|
|
53527
|
+
memeber_set = set(params.keys())
|
|
53528
|
+
for name, value in vars(self).items():
|
|
53529
|
+
property_name = name[1:]
|
|
53530
|
+
if property_name in memeber_set:
|
|
53531
|
+
memeber_set.remove(property_name)
|
|
53532
|
+
if len(memeber_set) > 0:
|
|
53533
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
53534
|
+
|
|
53535
|
+
|
|
53536
|
+
|
|
51751
53537
|
class VideoDenoiseConfig(AbstractModel):
|
|
51752
53538
|
r"""Image noise removal configuration.
|
|
51753
53539
|
|
|
@@ -54244,6 +56030,9 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
54244
56030
|
:param _SmartSubtitlesTaskResult: Execution result of the smart subtitle task.
|
|
54245
56031
|
Note: This field may return null, indicating that no valid value can be obtained.
|
|
54246
56032
|
:type SmartSubtitlesTaskResult: list of SmartSubtitlesResult
|
|
56033
|
+
:param _SmartEraseTaskResult: Execution result of the smart erasure task.
|
|
56034
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
56035
|
+
:type SmartEraseTaskResult: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskResult`
|
|
54247
56036
|
"""
|
|
54248
56037
|
self._TaskId = None
|
|
54249
56038
|
self._Status = None
|
|
@@ -54257,6 +56046,7 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
54257
56046
|
self._AiRecognitionResultSet = None
|
|
54258
56047
|
self._AiQualityControlTaskResult = None
|
|
54259
56048
|
self._SmartSubtitlesTaskResult = None
|
|
56049
|
+
self._SmartEraseTaskResult = None
|
|
54260
56050
|
|
|
54261
56051
|
@property
|
|
54262
56052
|
def TaskId(self):
|
|
@@ -54396,6 +56186,18 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
54396
56186
|
def SmartSubtitlesTaskResult(self, SmartSubtitlesTaskResult):
|
|
54397
56187
|
self._SmartSubtitlesTaskResult = SmartSubtitlesTaskResult
|
|
54398
56188
|
|
|
56189
|
+
@property
|
|
56190
|
+
def SmartEraseTaskResult(self):
|
|
56191
|
+
r"""Execution result of the smart erasure task.
|
|
56192
|
+
Note: This field may return null, indicating that no valid value can be obtained.
|
|
56193
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.SmartEraseTaskResult`
|
|
56194
|
+
"""
|
|
56195
|
+
return self._SmartEraseTaskResult
|
|
56196
|
+
|
|
56197
|
+
@SmartEraseTaskResult.setter
|
|
56198
|
+
def SmartEraseTaskResult(self, SmartEraseTaskResult):
|
|
56199
|
+
self._SmartEraseTaskResult = SmartEraseTaskResult
|
|
56200
|
+
|
|
54399
56201
|
|
|
54400
56202
|
def _deserialize(self, params):
|
|
54401
56203
|
self._TaskId = params.get("TaskId")
|
|
@@ -54441,6 +56243,9 @@ Note: This field may return null, indicating that no valid value can be obtained
|
|
|
54441
56243
|
obj = SmartSubtitlesResult()
|
|
54442
56244
|
obj._deserialize(item)
|
|
54443
56245
|
self._SmartSubtitlesTaskResult.append(obj)
|
|
56246
|
+
if params.get("SmartEraseTaskResult") is not None:
|
|
56247
|
+
self._SmartEraseTaskResult = SmartEraseTaskResult()
|
|
56248
|
+
self._SmartEraseTaskResult._deserialize(params.get("SmartEraseTaskResult"))
|
|
54444
56249
|
memeber_set = set(params.keys())
|
|
54445
56250
|
for name, value in vars(self).items():
|
|
54446
56251
|
property_name = name[1:]
|