tencentcloud-sdk-mps 3.0.1153 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20190612/models.rb +337 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a159fb07eb7ecf7abb0e0ed743a3912974160a4
4
- data.tar.gz: 894ee5c237858b2465d29172531be636f6b0e80a
3
+ metadata.gz: d6df6d9a68516b154366304b33c7f3ce28c3519f
4
+ data.tar.gz: 86ad9c77bae7481dff527ccc59e033a4e53b689a
5
5
  SHA512:
6
- metadata.gz: 99c79ca5a8bf6a820155abaf3e2a646ba213b81ba9b3e224890e2f6e6cc9371dca7c5c4498f34ec1740b3c364369c25f190ec126dd52bd470afd7515d75f874c
7
- data.tar.gz: 682d5ed3cfeb09ea7e4a86ddcffa22bd5c0865a3fcf2fb3a135c8e08e13f7f38bc9d9f879afb1ccaa2d129c05142092d70f94018cdc2f23a96e23edbd608bd49
6
+ metadata.gz: 056082969776c2050d289ce1ab032835a962121ad0ff50693d8bb408d20092867dc9c7adba2852f7749f6894f6fdc564038e851f10b7087169317cb25886d636
7
+ data.tar.gz: ff101fa480d713ed65ab947cdd4a8a58c0d7ba6811967d9755cae88776c4be709c806cea1475e727194b6202bc27f099c77f84540451a6f36557cf4fad9de4c3
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1153
1
+ 3.0.1156
@@ -844,6 +844,7 @@ module TencentCloud
844
844
  # <li>Description:大模型摘要</li>
845
845
  # <li>Dubbing:智能译制</li>
846
846
  # <li>VideoRemake: 视频去重</li>
847
+ # <li>VideoComprehension: 视频(音频)理解</li>
847
848
  # @type Type: String
848
849
  # @param ClassificationTask: 视频内容分析智能分类任务的查询结果,当任务类型为 Classification 时有效。
849
850
  # 注意:此字段可能返回 null,表示取不到有效值。
@@ -881,10 +882,13 @@ module TencentCloud
881
882
  # @param VideoRemakeTask: 视频内容分析去重任务的查询结果,当任务类型为 VideoRemake 时有效。
882
883
  # 注意:此字段可能返回 null,表示取不到有效值。
883
884
  # @type VideoRemakeTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskVideoRemakeResult`
885
+ # @param VideoComprehensionTask: 视频(音频)理解任务的查询结果,当任务类型为 VideoComprehension 时有效。
886
+ # 注意:此字段可能返回 null,表示取不到有效值。
887
+ # @type VideoComprehensionTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskVideoComprehensionResult`
884
888
 
885
- attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask, :VideoRemakeTask
889
+ attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask, :VideoRemakeTask, :VideoComprehensionTask
886
890
 
887
- def initialize(type=nil, classificationtask=nil, covertask=nil, tagtask=nil, frametagtask=nil, highlighttask=nil, delogotask=nil, segmenttask=nil, headtailtask=nil, descriptiontask=nil, horizontaltoverticaltask=nil, dubbingtask=nil, videoremaketask=nil)
891
+ def initialize(type=nil, classificationtask=nil, covertask=nil, tagtask=nil, frametagtask=nil, highlighttask=nil, delogotask=nil, segmenttask=nil, headtailtask=nil, descriptiontask=nil, horizontaltoverticaltask=nil, dubbingtask=nil, videoremaketask=nil, videocomprehensiontask=nil)
888
892
  @Type = type
889
893
  @ClassificationTask = classificationtask
890
894
  @CoverTask = covertask
@@ -898,6 +902,7 @@ module TencentCloud
898
902
  @HorizontalToVerticalTask = horizontaltoverticaltask
899
903
  @DubbingTask = dubbingtask
900
904
  @VideoRemakeTask = videoremaketask
905
+ @VideoComprehensionTask = videocomprehensiontask
901
906
  end
902
907
 
903
908
  def deserialize(params)
@@ -950,6 +955,10 @@ module TencentCloud
950
955
  @VideoRemakeTask = AiAnalysisTaskVideoRemakeResult.new
951
956
  @VideoRemakeTask.deserialize(params['VideoRemakeTask'])
952
957
  end
958
+ unless params['VideoComprehensionTask'].nil?
959
+ @VideoComprehensionTask = AiAnalysisTaskVideoComprehensionResult.new
960
+ @VideoComprehensionTask.deserialize(params['VideoComprehensionTask'])
961
+ end
953
962
  end
954
963
  end
955
964
 
@@ -1914,6 +1923,93 @@ module TencentCloud
1914
1923
  end
1915
1924
  end
1916
1925
 
1926
+ # 视频(音频)理解任务输入
1927
+ class AiAnalysisTaskVideoComprehensionInput < TencentCloud::Common::AbstractModel
1928
+ # @param Definition: 视频(音频)理解模板ID
1929
+ # @type Definition: Integer
1930
+
1931
+ attr_accessor :Definition
1932
+
1933
+ def initialize(definition=nil)
1934
+ @Definition = definition
1935
+ end
1936
+
1937
+ def deserialize(params)
1938
+ @Definition = params['Definition']
1939
+ end
1940
+ end
1941
+
1942
+ # 视频(音频)理解输出内容结果信息
1943
+ class AiAnalysisTaskVideoComprehensionOutput < TencentCloud::Common::AbstractModel
1944
+ # @param VideoComprehensionAnalysisResult: 视频(音频)理解内容详情
1945
+ # @type VideoComprehensionAnalysisResult: String
1946
+
1947
+ attr_accessor :VideoComprehensionAnalysisResult
1948
+
1949
+ def initialize(videocomprehensionanalysisresult=nil)
1950
+ @VideoComprehensionAnalysisResult = videocomprehensionanalysisresult
1951
+ end
1952
+
1953
+ def deserialize(params)
1954
+ @VideoComprehensionAnalysisResult = params['VideoComprehensionAnalysisResult']
1955
+ end
1956
+ end
1957
+
1958
+ # 视频(音频)理解结果
1959
+ class AiAnalysisTaskVideoComprehensionResult < TencentCloud::Common::AbstractModel
1960
+ # @param Status: 任务状态,有 `PROCESSING`,`SUCCESS` 和 `FAIL` 三种。
1961
+ # @type Status: String
1962
+ # @param ErrCode: 错误码,0:成功,其他值:失败
1963
+ # @type ErrCode: Integer
1964
+ # @param Message: 错误信息
1965
+ # @type Message: String
1966
+ # @param Input: 视频(音频)理解输入
1967
+ # @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskVideoComprehensionInput`
1968
+ # @param Output: 视频(音频)理解输出
1969
+ # 注意:此字段可能返回 null,表示取不到有效值。
1970
+ # @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskVideoComprehensionOutput`
1971
+ # @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表
1972
+ # @type ErrCodeExt: String
1973
+ # @param Progress: 任务进度
1974
+ # @type Progress: Integer
1975
+ # @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
1976
+ # @type BeginProcessTime: String
1977
+ # @param FinishTime: 任务执行完毕时间,采用 ISO 日期格式。
1978
+ # @type FinishTime: String
1979
+
1980
+ attr_accessor :Status, :ErrCode, :Message, :Input, :Output, :ErrCodeExt, :Progress, :BeginProcessTime, :FinishTime
1981
+
1982
+ def initialize(status=nil, errcode=nil, message=nil, input=nil, output=nil, errcodeext=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
1983
+ @Status = status
1984
+ @ErrCode = errcode
1985
+ @Message = message
1986
+ @Input = input
1987
+ @Output = output
1988
+ @ErrCodeExt = errcodeext
1989
+ @Progress = progress
1990
+ @BeginProcessTime = beginprocesstime
1991
+ @FinishTime = finishtime
1992
+ end
1993
+
1994
+ def deserialize(params)
1995
+ @Status = params['Status']
1996
+ @ErrCode = params['ErrCode']
1997
+ @Message = params['Message']
1998
+ unless params['Input'].nil?
1999
+ @Input = AiAnalysisTaskVideoComprehensionInput.new
2000
+ @Input.deserialize(params['Input'])
2001
+ end
2002
+ unless params['Output'].nil?
2003
+ @Output = AiAnalysisTaskVideoComprehensionOutput.new
2004
+ @Output.deserialize(params['Output'])
2005
+ end
2006
+ @ErrCodeExt = params['ErrCodeExt']
2007
+ @Progress = params['Progress']
2008
+ @BeginProcessTime = params['BeginProcessTime']
2009
+ @FinishTime = params['FinishTime']
2010
+ end
2011
+ end
2012
+
1917
2013
  # 视频去重任务输入类型
1918
2014
  class AiAnalysisTaskVideoRemakeInput < TencentCloud::Common::AbstractModel
1919
2015
  # @param Definition: 视频智能去重模板 ID
@@ -21025,6 +21121,49 @@ module TencentCloud
21025
21121
  end
21026
21122
  end
21027
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
+
21028
21167
  # 自定义转码的规格参数。用于覆盖模板中对应参数值。
21029
21168
  class OverrideTranscodeParameter < TencentCloud::Common::AbstractModel
21030
21169
  # @param Container: 封装格式,可选值:mp4、flv、hls、mp3、flac、ogg、m4a。其中,mp3、flac、ogg、m4a 为纯音频文件。
@@ -24423,6 +24562,8 @@ module TencentCloud
24423
24562
  # @param RawParameter: 智能擦除自定义参数,当 Definition 填 0 时有效。 该参数用于高度定制场景,建议您优先使用 Definition 指定智能擦除参数。
24424
24563
  # 注意:此字段可能返回 null,表示取不到有效值。
24425
24564
  # @type RawParameter: :class:`Tencentcloud::Mps.v20190612.models.RawSmartEraseParameter`
24565
+ # @param OverrideParameter: 智能擦除自定义参数,当 Definition 不填 0 时有效。 当填写了该结构中的部分擦除参数时,将使用填写的参数覆盖智能擦除模板中的参数。 该参数用于高度定制场景,建议您仅使用 Definition 指定智能擦除参数。
24566
+ # @type OverrideParameter: :class:`Tencentcloud::Mps.v20190612.models.OverrideEraseParameter`
24426
24567
  # @param OutputStorage: 文件的目标存储,不填则继承上层的 OutputStorage 值。
24427
24568
  # 注意:此字段可能返回 null,表示取不到有效值。
24428
24569
  # @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
@@ -24437,11 +24578,12 @@ module TencentCloud
24437
24578
  # **注意**:目前不支持`BatchProcessMedia`接口。
24438
24579
  # @type OutputObjectPath: String
24439
24580
 
24440
- attr_accessor :Definition, :RawParameter, :OutputStorage, :OutputObjectPath
24581
+ attr_accessor :Definition, :RawParameter, :OverrideParameter, :OutputStorage, :OutputObjectPath
24441
24582
 
24442
- def initialize(definition=nil, rawparameter=nil, outputstorage=nil, outputobjectpath=nil)
24583
+ def initialize(definition=nil, rawparameter=nil, overrideparameter=nil, outputstorage=nil, outputobjectpath=nil)
24443
24584
  @Definition = definition
24444
24585
  @RawParameter = rawparameter
24586
+ @OverrideParameter = overrideparameter
24445
24587
  @OutputStorage = outputstorage
24446
24588
  @OutputObjectPath = outputobjectpath
24447
24589
  end
@@ -24452,6 +24594,10 @@ module TencentCloud
24452
24594
  @RawParameter = RawSmartEraseParameter.new
24453
24595
  @RawParameter.deserialize(params['RawParameter'])
24454
24596
  end
24597
+ unless params['OverrideParameter'].nil?
24598
+ @OverrideParameter = OverrideEraseParameter.new
24599
+ @OverrideParameter.deserialize(params['OverrideParameter'])
24600
+ end
24455
24601
  unless params['OutputStorage'].nil?
24456
24602
  @OutputStorage = TaskOutputStorage.new
24457
24603
  @OutputStorage.deserialize(params['OutputStorage'])
@@ -26612,6 +26758,193 @@ module TencentCloud
26612
26758
  end
26613
26759
  end
26614
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
+
26615
26948
  # 媒体处理 URL 对象信息。
26616
26949
  class UrlInputInfo < TencentCloud::Common::AbstractModel
26617
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.1153
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-15 00:00:00.000000000 Z
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