tencentcloud-sdk-mps 3.0.1154 → 3.0.1156
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190612/models.rb +239 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6df6d9a68516b154366304b33c7f3ce28c3519f
|
|
4
|
+
data.tar.gz: 86ad9c77bae7481dff527ccc59e033a4e53b689a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 056082969776c2050d289ce1ab032835a962121ad0ff50693d8bb408d20092867dc9c7adba2852f7749f6894f6fdc564038e851f10b7087169317cb25886d636
|
|
7
|
+
data.tar.gz: ff101fa480d713ed65ab947cdd4a8a58c0d7ba6811967d9755cae88776c4be709c806cea1475e727194b6202bc27f099c77f84540451a6f36557cf4fad9de4c3
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1156
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -21121,6 +21121,49 @@ module TencentCloud
|
|
|
21121
21121
|
end
|
|
21122
21122
|
end
|
|
21123
21123
|
|
|
21124
|
+
# 智能擦除自定义参数
|
|
21125
|
+
class OverrideEraseParameter < TencentCloud::Common::AbstractModel
|
|
21126
|
+
# @param EraseType: 擦除类型
|
|
21127
|
+
# - subtitle 去字幕
|
|
21128
|
+
# - watermark 去水印
|
|
21129
|
+
# - privacy 隐私保护
|
|
21130
|
+
# @type EraseType: String
|
|
21131
|
+
# @param EraseSubtitleConfig: 字幕擦除配置;
|
|
21132
|
+
# 当EraseType值为:subtitle,此字段为必填参数
|
|
21133
|
+
# @type EraseSubtitleConfig: :class:`Tencentcloud::Mps.v20190612.models.UpdateSmartEraseSubtitleConfig`
|
|
21134
|
+
# @param EraseWatermarkConfig: 水印擦除配置;
|
|
21135
|
+
# 当EraseType值为:watermark,此字段为必填参数
|
|
21136
|
+
# @type EraseWatermarkConfig: :class:`Tencentcloud::Mps.v20190612.models.UpdateSmartEraseWatermarkConfig`
|
|
21137
|
+
# @param ErasePrivacyConfig: 隐私保护配置;
|
|
21138
|
+
# 当EraseType值为:privacy,此字段为必填参数
|
|
21139
|
+
# @type ErasePrivacyConfig: :class:`Tencentcloud::Mps.v20190612.models.UpdateSmartErasePrivacyConfig`
|
|
21140
|
+
|
|
21141
|
+
attr_accessor :EraseType, :EraseSubtitleConfig, :EraseWatermarkConfig, :ErasePrivacyConfig
|
|
21142
|
+
|
|
21143
|
+
def initialize(erasetype=nil, erasesubtitleconfig=nil, erasewatermarkconfig=nil, eraseprivacyconfig=nil)
|
|
21144
|
+
@EraseType = erasetype
|
|
21145
|
+
@EraseSubtitleConfig = erasesubtitleconfig
|
|
21146
|
+
@EraseWatermarkConfig = erasewatermarkconfig
|
|
21147
|
+
@ErasePrivacyConfig = eraseprivacyconfig
|
|
21148
|
+
end
|
|
21149
|
+
|
|
21150
|
+
def deserialize(params)
|
|
21151
|
+
@EraseType = params['EraseType']
|
|
21152
|
+
unless params['EraseSubtitleConfig'].nil?
|
|
21153
|
+
@EraseSubtitleConfig = UpdateSmartEraseSubtitleConfig.new
|
|
21154
|
+
@EraseSubtitleConfig.deserialize(params['EraseSubtitleConfig'])
|
|
21155
|
+
end
|
|
21156
|
+
unless params['EraseWatermarkConfig'].nil?
|
|
21157
|
+
@EraseWatermarkConfig = UpdateSmartEraseWatermarkConfig.new
|
|
21158
|
+
@EraseWatermarkConfig.deserialize(params['EraseWatermarkConfig'])
|
|
21159
|
+
end
|
|
21160
|
+
unless params['ErasePrivacyConfig'].nil?
|
|
21161
|
+
@ErasePrivacyConfig = UpdateSmartErasePrivacyConfig.new
|
|
21162
|
+
@ErasePrivacyConfig.deserialize(params['ErasePrivacyConfig'])
|
|
21163
|
+
end
|
|
21164
|
+
end
|
|
21165
|
+
end
|
|
21166
|
+
|
|
21124
21167
|
# 自定义转码的规格参数。用于覆盖模板中对应参数值。
|
|
21125
21168
|
class OverrideTranscodeParameter < TencentCloud::Common::AbstractModel
|
|
21126
21169
|
# @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。
|
|
@@ -24519,6 +24562,8 @@ module TencentCloud
|
|
|
24519
24562
|
# @param RawParameter: 智能擦除自定义参数,当 Definition 填 0 时有效。 该参数用于高度定制场景,建议您优先使用 Definition 指定智能擦除参数。
|
|
24520
24563
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
24521
24564
|
# @type RawParameter: :class:`Tencentcloud::Mps.v20190612.models.RawSmartEraseParameter`
|
|
24565
|
+
# @param OverrideParameter: 智能擦除自定义参数,当 Definition 不填 0 时有效。 当填写了该结构中的部分擦除参数时,将使用填写的参数覆盖智能擦除模板中的参数。 该参数用于高度定制场景,建议您仅使用 Definition 指定智能擦除参数。
|
|
24566
|
+
# @type OverrideParameter: :class:`Tencentcloud::Mps.v20190612.models.OverrideEraseParameter`
|
|
24522
24567
|
# @param OutputStorage: 文件的目标存储,不填则继承上层的 OutputStorage 值。
|
|
24523
24568
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
24524
24569
|
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
@@ -24533,11 +24578,12 @@ module TencentCloud
|
|
|
24533
24578
|
# **注意**:目前不支持`BatchProcessMedia`接口。
|
|
24534
24579
|
# @type OutputObjectPath: String
|
|
24535
24580
|
|
|
24536
|
-
attr_accessor :Definition, :RawParameter, :OutputStorage, :OutputObjectPath
|
|
24581
|
+
attr_accessor :Definition, :RawParameter, :OverrideParameter, :OutputStorage, :OutputObjectPath
|
|
24537
24582
|
|
|
24538
|
-
def initialize(definition=nil, rawparameter=nil, outputstorage=nil, outputobjectpath=nil)
|
|
24583
|
+
def initialize(definition=nil, rawparameter=nil, overrideparameter=nil, outputstorage=nil, outputobjectpath=nil)
|
|
24539
24584
|
@Definition = definition
|
|
24540
24585
|
@RawParameter = rawparameter
|
|
24586
|
+
@OverrideParameter = overrideparameter
|
|
24541
24587
|
@OutputStorage = outputstorage
|
|
24542
24588
|
@OutputObjectPath = outputobjectpath
|
|
24543
24589
|
end
|
|
@@ -24548,6 +24594,10 @@ module TencentCloud
|
|
|
24548
24594
|
@RawParameter = RawSmartEraseParameter.new
|
|
24549
24595
|
@RawParameter.deserialize(params['RawParameter'])
|
|
24550
24596
|
end
|
|
24597
|
+
unless params['OverrideParameter'].nil?
|
|
24598
|
+
@OverrideParameter = OverrideEraseParameter.new
|
|
24599
|
+
@OverrideParameter.deserialize(params['OverrideParameter'])
|
|
24600
|
+
end
|
|
24551
24601
|
unless params['OutputStorage'].nil?
|
|
24552
24602
|
@OutputStorage = TaskOutputStorage.new
|
|
24553
24603
|
@OutputStorage.deserialize(params['OutputStorage'])
|
|
@@ -26708,6 +26758,193 @@ module TencentCloud
|
|
|
26708
26758
|
end
|
|
26709
26759
|
end
|
|
26710
26760
|
|
|
26761
|
+
# 智能擦除模板隐私保护配置
|
|
26762
|
+
class UpdateSmartErasePrivacyConfig < TencentCloud::Common::AbstractModel
|
|
26763
|
+
# @param PrivacyModel: 隐私保护擦除方式。
|
|
26764
|
+
# - blur 模糊
|
|
26765
|
+
# - mosaic 马赛克
|
|
26766
|
+
# @type PrivacyModel: String
|
|
26767
|
+
# @param PrivacyTargets: 隐私保护目标,(在API Explorer上使用时无需传入数组,添加相应项并填入对应值即可)。
|
|
26768
|
+
# - face 人脸
|
|
26769
|
+
# - plate 车牌
|
|
26770
|
+
# @type PrivacyTargets: Array
|
|
26771
|
+
|
|
26772
|
+
attr_accessor :PrivacyModel, :PrivacyTargets
|
|
26773
|
+
|
|
26774
|
+
def initialize(privacymodel=nil, privacytargets=nil)
|
|
26775
|
+
@PrivacyModel = privacymodel
|
|
26776
|
+
@PrivacyTargets = privacytargets
|
|
26777
|
+
end
|
|
26778
|
+
|
|
26779
|
+
def deserialize(params)
|
|
26780
|
+
@PrivacyModel = params['PrivacyModel']
|
|
26781
|
+
@PrivacyTargets = params['PrivacyTargets']
|
|
26782
|
+
end
|
|
26783
|
+
end
|
|
26784
|
+
|
|
26785
|
+
# 智能擦除模板去字幕配置
|
|
26786
|
+
class UpdateSmartEraseSubtitleConfig < TencentCloud::Common::AbstractModel
|
|
26787
|
+
# @param SubtitleEraseMethod: 字幕擦除方式。
|
|
26788
|
+
# **自动擦除:**通过AI模型自动识别视频中的字幕文本内容,进行无痕化擦除,生成新的视频。但画面干扰、特殊字幕样式可能会带来一定漏擦误擦问题,可以通过指定区域擦除处理。
|
|
26789
|
+
# 当使用自动擦除时,若您不指定AutoAreas,将对默认区域(画面中下部)进行自动擦除;若指定AutoAreas,将改为对您指定的区域进行自动擦除。
|
|
26790
|
+
# **指定区域擦除:**若您的字幕位置较固定,建议您直接指定擦除区域,最大程度减少漏擦的情况。
|
|
26791
|
+
# 当您选择指定区域擦除时,请在CustomAreas中至少传入一个指定区域。
|
|
26792
|
+
# - auto 自动擦除
|
|
26793
|
+
# - custom 指定区域擦除
|
|
26794
|
+
# @type SubtitleEraseMethod: String
|
|
26795
|
+
# @param SubtitleModel: 字幕擦除模型。
|
|
26796
|
+
# **标准版(推荐):**若您的字幕样式标准,通常建议选择该版本,细节无痕化效果更好。
|
|
26797
|
+
# **区域版:**若您的字幕存在花体、阴影、动效等特殊样式,建议选择区域版,擦除面积更大,但细节效果不如标准版。
|
|
26798
|
+
# - standard 标准模型
|
|
26799
|
+
# - area 区域模型
|
|
26800
|
+
# @type SubtitleModel: String
|
|
26801
|
+
# @param OcrSwitch: 是否开启OCR字幕提取,默认取OFF。
|
|
26802
|
+
# 当且仅当SubtitleEraseMethod取auto时支持开启OCR字幕提取,开启后将识别自动擦除区域内出现时间最长且最稳定的文字区域为字幕区域,对字幕区域中的文字进行提取和擦除。
|
|
26803
|
+
# - ON 开启
|
|
26804
|
+
# - OFF 关闭
|
|
26805
|
+
# @type OcrSwitch: String
|
|
26806
|
+
# @param SubtitleLang: 字幕语言,用于指导OCR识别,默认取zh_en;仅当OcrSwitch取"ON"时生效。
|
|
26807
|
+
# - zh_en 中英文
|
|
26808
|
+
# - multi 其他
|
|
26809
|
+
# 其他具体支持识别如下语言:
|
|
26810
|
+
# 中文、英文、日文、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语、印地语、阿拉伯语、印度-孟加拉语、印度-古吉拉特语、印度-卡纳达语 、印度-马拉亚拉姆语 、印度-泰米尔语、印度-泰卢固语、斯洛文尼亚语、波兰语、加泰罗尼亚语、波斯尼亚语、捷克语、爱沙尼亚语、克罗地亚语、旁遮普语、马拉地语、阿塞拜疆语、印尼语、卢森堡语 、立陶宛语、拉脱维亚语、马耳他语、斯洛伐克语、土耳其语、哈萨克语、希腊语、爱尔兰语、白俄罗斯语、高棉语、他加禄语、普什图语、波斯语、塔吉克斯坦语
|
|
26811
|
+
|
|
26812
|
+
# @type SubtitleLang: String
|
|
26813
|
+
# @param SubtitleFormat: 字幕文件格式,默认取vtt;仅当OcrSwitch取"ON"时生效。
|
|
26814
|
+
# - srt srt格式
|
|
26815
|
+
# - vtt WebVTT格式
|
|
26816
|
+
# @type SubtitleFormat: String
|
|
26817
|
+
# @param TransSwitch: 是否开启字幕翻译,默认取OFF;仅当OcrSwitch取"ON"时生效。
|
|
26818
|
+
# - ON 开启
|
|
26819
|
+
# - OFF 关闭
|
|
26820
|
+
# @type TransSwitch: String
|
|
26821
|
+
# @param TransDstLang: 字幕翻译目标语言,默认取en;仅当TransSwitch取"ON"时生效。
|
|
26822
|
+
# 当前支持以下语言:
|
|
26823
|
+
# zh:简体中文
|
|
26824
|
+
# en:英语
|
|
26825
|
+
# ja:日语
|
|
26826
|
+
# ko:韩语
|
|
26827
|
+
# fr:法语
|
|
26828
|
+
# es:西班牙语
|
|
26829
|
+
# it:意大利语
|
|
26830
|
+
# de:德语
|
|
26831
|
+
# tr:土耳其语
|
|
26832
|
+
# ru:俄语
|
|
26833
|
+
# pt:葡萄牙语
|
|
26834
|
+
# vi:越南语
|
|
26835
|
+
# id:印度尼西亚语
|
|
26836
|
+
# ms:马来语
|
|
26837
|
+
# th:泰语
|
|
26838
|
+
# ar:阿拉伯语
|
|
26839
|
+
# hi:印地语
|
|
26840
|
+
# @type TransDstLang: String
|
|
26841
|
+
# @param AutoAreas: 自动擦除自定义区域。
|
|
26842
|
+
# 对选定区域,利用AI模型自动检测其中存在的擦除目标并擦除。
|
|
26843
|
+
# 注意:当擦除方式选择custom时,此参数将不会生效;修改模板时,清除区域请传入[],不传时将保持模板区域信息不变。
|
|
26844
|
+
# @type AutoAreas: Array
|
|
26845
|
+
# @param CustomAreas: 指定擦除自定义区域。
|
|
26846
|
+
# 对选定区域,在选定时间段内不进行检测识别直接进行擦除。
|
|
26847
|
+
# 注意:修改模板时,清除区域请传入[],不传时将保持模板区域信息不变。
|
|
26848
|
+
# @type CustomAreas: Array
|
|
26849
|
+
|
|
26850
|
+
attr_accessor :SubtitleEraseMethod, :SubtitleModel, :OcrSwitch, :SubtitleLang, :SubtitleFormat, :TransSwitch, :TransDstLang, :AutoAreas, :CustomAreas
|
|
26851
|
+
|
|
26852
|
+
def initialize(subtitleerasemethod=nil, subtitlemodel=nil, ocrswitch=nil, subtitlelang=nil, subtitleformat=nil, transswitch=nil, transdstlang=nil, autoareas=nil, customareas=nil)
|
|
26853
|
+
@SubtitleEraseMethod = subtitleerasemethod
|
|
26854
|
+
@SubtitleModel = subtitlemodel
|
|
26855
|
+
@OcrSwitch = ocrswitch
|
|
26856
|
+
@SubtitleLang = subtitlelang
|
|
26857
|
+
@SubtitleFormat = subtitleformat
|
|
26858
|
+
@TransSwitch = transswitch
|
|
26859
|
+
@TransDstLang = transdstlang
|
|
26860
|
+
@AutoAreas = autoareas
|
|
26861
|
+
@CustomAreas = customareas
|
|
26862
|
+
end
|
|
26863
|
+
|
|
26864
|
+
def deserialize(params)
|
|
26865
|
+
@SubtitleEraseMethod = params['SubtitleEraseMethod']
|
|
26866
|
+
@SubtitleModel = params['SubtitleModel']
|
|
26867
|
+
@OcrSwitch = params['OcrSwitch']
|
|
26868
|
+
@SubtitleLang = params['SubtitleLang']
|
|
26869
|
+
@SubtitleFormat = params['SubtitleFormat']
|
|
26870
|
+
@TransSwitch = params['TransSwitch']
|
|
26871
|
+
@TransDstLang = params['TransDstLang']
|
|
26872
|
+
unless params['AutoAreas'].nil?
|
|
26873
|
+
@AutoAreas = []
|
|
26874
|
+
params['AutoAreas'].each do |i|
|
|
26875
|
+
erasearea_tmp = EraseArea.new
|
|
26876
|
+
erasearea_tmp.deserialize(i)
|
|
26877
|
+
@AutoAreas << erasearea_tmp
|
|
26878
|
+
end
|
|
26879
|
+
end
|
|
26880
|
+
unless params['CustomAreas'].nil?
|
|
26881
|
+
@CustomAreas = []
|
|
26882
|
+
params['CustomAreas'].each do |i|
|
|
26883
|
+
erasetimearea_tmp = EraseTimeArea.new
|
|
26884
|
+
erasetimearea_tmp.deserialize(i)
|
|
26885
|
+
@CustomAreas << erasetimearea_tmp
|
|
26886
|
+
end
|
|
26887
|
+
end
|
|
26888
|
+
end
|
|
26889
|
+
end
|
|
26890
|
+
|
|
26891
|
+
# 智能擦除模板去水印配置
|
|
26892
|
+
class UpdateSmartEraseWatermarkConfig < TencentCloud::Common::AbstractModel
|
|
26893
|
+
# @param WatermarkEraseMethod: 水印擦除方式。
|
|
26894
|
+
# **自动擦除:**通过A模型自动识别视频中的水印,擦除后生成新的视频。适用于动态水印。
|
|
26895
|
+
# 当使用自动擦除时,若您不指定AutoAreas,将对视频全屏进行自动擦除;若指定AutoAreas,将改为对您指定的区域进行自动擦除。
|
|
26896
|
+
# **指定区域擦除:**针对位置较固定的静态水印,建议您直接指定擦除区域。
|
|
26897
|
+
# 当您选择指定区域擦除时,请至少传入一个指定区域。
|
|
26898
|
+
|
|
26899
|
+
# - auto 自动擦除
|
|
26900
|
+
# - custom 指定区域擦除
|
|
26901
|
+
# @type WatermarkEraseMethod: String
|
|
26902
|
+
# @param WatermarkModel: 水印擦除模型。
|
|
26903
|
+
# 基础版:效果一般,性价比高,适合动画或背景较干净的视频。
|
|
26904
|
+
# 高级版:效果更好,适合短剧等现实风格视频。
|
|
26905
|
+
# - basic 基础版
|
|
26906
|
+
# - advanced 高级版
|
|
26907
|
+
# @type WatermarkModel: String
|
|
26908
|
+
# @param AutoAreas: 自动擦除自定义区域。
|
|
26909
|
+
# 对选定区域,利用AI模型自动检测其中存在的擦除目标并擦除。
|
|
26910
|
+
# 注意,当擦除方式为custom时,此参数将不会生效。清除区域请传入[],不传时将保持模板区域信息不变。
|
|
26911
|
+
# @type AutoAreas: Array
|
|
26912
|
+
# @param CustomAreas: 指定擦除自定义区域。
|
|
26913
|
+
# 对选定区域,在选定时间段内不进行检测识别直接进行擦除。
|
|
26914
|
+
# 注意:清除区域请传入[],不传时将保持模板区域信息不变。
|
|
26915
|
+
# @type CustomAreas: Array
|
|
26916
|
+
|
|
26917
|
+
attr_accessor :WatermarkEraseMethod, :WatermarkModel, :AutoAreas, :CustomAreas
|
|
26918
|
+
|
|
26919
|
+
def initialize(watermarkerasemethod=nil, watermarkmodel=nil, autoareas=nil, customareas=nil)
|
|
26920
|
+
@WatermarkEraseMethod = watermarkerasemethod
|
|
26921
|
+
@WatermarkModel = watermarkmodel
|
|
26922
|
+
@AutoAreas = autoareas
|
|
26923
|
+
@CustomAreas = customareas
|
|
26924
|
+
end
|
|
26925
|
+
|
|
26926
|
+
def deserialize(params)
|
|
26927
|
+
@WatermarkEraseMethod = params['WatermarkEraseMethod']
|
|
26928
|
+
@WatermarkModel = params['WatermarkModel']
|
|
26929
|
+
unless params['AutoAreas'].nil?
|
|
26930
|
+
@AutoAreas = []
|
|
26931
|
+
params['AutoAreas'].each do |i|
|
|
26932
|
+
erasearea_tmp = EraseArea.new
|
|
26933
|
+
erasearea_tmp.deserialize(i)
|
|
26934
|
+
@AutoAreas << erasearea_tmp
|
|
26935
|
+
end
|
|
26936
|
+
end
|
|
26937
|
+
unless params['CustomAreas'].nil?
|
|
26938
|
+
@CustomAreas = []
|
|
26939
|
+
params['CustomAreas'].each do |i|
|
|
26940
|
+
erasetimearea_tmp = EraseTimeArea.new
|
|
26941
|
+
erasetimearea_tmp.deserialize(i)
|
|
26942
|
+
@CustomAreas << erasetimearea_tmp
|
|
26943
|
+
end
|
|
26944
|
+
end
|
|
26945
|
+
end
|
|
26946
|
+
end
|
|
26947
|
+
|
|
26711
26948
|
# 媒体处理 URL 对象信息。
|
|
26712
26949
|
class UrlInputInfo < TencentCloud::Common::AbstractModel
|
|
26713
26950
|
# @param Url: 视频的 URL。
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-mps
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1156
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|