tencentcloud-sdk-mps 3.0.1189 → 3.0.1191
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 +266 -9
- 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: 44b95e0c51b2169607aae42e28b37e0ee0877334
|
|
4
|
+
data.tar.gz: ade349b660b5592feea7a8f634bc438cf8bd3557
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f3aeccb213e326b06ada3fd2f9b33bc26a237e981d6dd0d6f4457bfb2563515d551c409ff1dd45aabfbb20461a50161cc577b2df7d2408d9e95068f146a758e0
|
|
7
|
+
data.tar.gz: 96ed3ee8a9a01b403340b879a298d3966d281663392ccec14bc2793fad9e3475085633d50c4a73478a90fad99727ae23e2da631a546a7fe69cee22cda7201c44
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1191
|
data/lib/v20190612/models.rb
CHANGED
|
@@ -957,6 +957,8 @@ module TencentCloud
|
|
|
957
957
|
# <li>Dubbing:智能译制</li>
|
|
958
958
|
# <li>VideoRemake: 视频去重</li>
|
|
959
959
|
# <li>VideoComprehension: 视频(音频)理解</li>
|
|
960
|
+
# <li>Cutout:视频抠图</li>
|
|
961
|
+
# <li>Reel:智能成片</li>
|
|
960
962
|
# @type Type: String
|
|
961
963
|
# @param ClassificationTask: 视频内容分析智能分类任务的查询结果,当任务类型为 Classification 时有效。
|
|
962
964
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -997,10 +999,16 @@ module TencentCloud
|
|
|
997
999
|
# @param VideoComprehensionTask: 视频(音频)理解任务的查询结果,当任务类型为 VideoComprehension 时有效。
|
|
998
1000
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
999
1001
|
# @type VideoComprehensionTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskVideoComprehensionResult`
|
|
1002
|
+
# @param CutoutTask: 视频内容分析抠图任务的查询结果,当任务类型为Cutout时有效。
|
|
1003
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1004
|
+
# @type CutoutTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskCutoutResult`
|
|
1005
|
+
# @param ReelTask: 视频内容分析成片任务的查询结果,当任务类型为Reel时有效。
|
|
1006
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1007
|
+
# @type ReelTask: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskReelResult`
|
|
1000
1008
|
|
|
1001
|
-
attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask, :VideoRemakeTask, :VideoComprehensionTask
|
|
1009
|
+
attr_accessor :Type, :ClassificationTask, :CoverTask, :TagTask, :FrameTagTask, :HighlightTask, :DeLogoTask, :SegmentTask, :HeadTailTask, :DescriptionTask, :HorizontalToVerticalTask, :DubbingTask, :VideoRemakeTask, :VideoComprehensionTask, :CutoutTask, :ReelTask
|
|
1002
1010
|
|
|
1003
|
-
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)
|
|
1011
|
+
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, cutouttask=nil, reeltask=nil)
|
|
1004
1012
|
@Type = type
|
|
1005
1013
|
@ClassificationTask = classificationtask
|
|
1006
1014
|
@CoverTask = covertask
|
|
@@ -1015,6 +1023,8 @@ module TencentCloud
|
|
|
1015
1023
|
@DubbingTask = dubbingtask
|
|
1016
1024
|
@VideoRemakeTask = videoremaketask
|
|
1017
1025
|
@VideoComprehensionTask = videocomprehensiontask
|
|
1026
|
+
@CutoutTask = cutouttask
|
|
1027
|
+
@ReelTask = reeltask
|
|
1018
1028
|
end
|
|
1019
1029
|
|
|
1020
1030
|
def deserialize(params)
|
|
@@ -1071,6 +1081,14 @@ module TencentCloud
|
|
|
1071
1081
|
@VideoComprehensionTask = AiAnalysisTaskVideoComprehensionResult.new
|
|
1072
1082
|
@VideoComprehensionTask.deserialize(params['VideoComprehensionTask'])
|
|
1073
1083
|
end
|
|
1084
|
+
unless params['CutoutTask'].nil?
|
|
1085
|
+
@CutoutTask = AiAnalysisTaskCutoutResult.new
|
|
1086
|
+
@CutoutTask.deserialize(params['CutoutTask'])
|
|
1087
|
+
end
|
|
1088
|
+
unless params['ReelTask'].nil?
|
|
1089
|
+
@ReelTask = AiAnalysisTaskReelResult.new
|
|
1090
|
+
@ReelTask.deserialize(params['ReelTask'])
|
|
1091
|
+
end
|
|
1074
1092
|
end
|
|
1075
1093
|
end
|
|
1076
1094
|
|
|
@@ -1245,6 +1263,96 @@ module TencentCloud
|
|
|
1245
1263
|
end
|
|
1246
1264
|
end
|
|
1247
1265
|
|
|
1266
|
+
# 智能抠图任务输入类型
|
|
1267
|
+
class AiAnalysisTaskCutoutInput < TencentCloud::Common::AbstractModel
|
|
1268
|
+
# @param Definition: 视频智能抠图模板 ID。
|
|
1269
|
+
# @type Definition: Integer
|
|
1270
|
+
|
|
1271
|
+
attr_accessor :Definition
|
|
1272
|
+
|
|
1273
|
+
def initialize(definition=nil)
|
|
1274
|
+
@Definition = definition
|
|
1275
|
+
end
|
|
1276
|
+
|
|
1277
|
+
def deserialize(params)
|
|
1278
|
+
@Definition = params['Definition']
|
|
1279
|
+
end
|
|
1280
|
+
end
|
|
1281
|
+
|
|
1282
|
+
# 视频抠图结果信息
|
|
1283
|
+
class AiAnalysisTaskCutoutOutput < TencentCloud::Common::AbstractModel
|
|
1284
|
+
# @param Path: 视频智能抠图文件路径。
|
|
1285
|
+
# @type Path: String
|
|
1286
|
+
# @param OutputStorage: 视频智能抠图的存储位置。
|
|
1287
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
1288
|
+
|
|
1289
|
+
attr_accessor :Path, :OutputStorage
|
|
1290
|
+
|
|
1291
|
+
def initialize(path=nil, outputstorage=nil)
|
|
1292
|
+
@Path = path
|
|
1293
|
+
@OutputStorage = outputstorage
|
|
1294
|
+
end
|
|
1295
|
+
|
|
1296
|
+
def deserialize(params)
|
|
1297
|
+
@Path = params['Path']
|
|
1298
|
+
unless params['OutputStorage'].nil?
|
|
1299
|
+
@OutputStorage = TaskOutputStorage.new
|
|
1300
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
|
1301
|
+
end
|
|
1302
|
+
end
|
|
1303
|
+
end
|
|
1304
|
+
|
|
1305
|
+
# 视频抠图结果数据结构
|
|
1306
|
+
class AiAnalysisTaskCutoutResult < TencentCloud::Common::AbstractModel
|
|
1307
|
+
# @param Status: 任务状态,有 `PROCESSING`,`SUCCESS` 和 `FAIL` 三种
|
|
1308
|
+
# @type Status: String
|
|
1309
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 [媒体处理类错误码](https://cloud.tencent.com/document/product/862/50369#.E8.A7.86.E9.A2.91.E5.A4.84.E7.90.86.E7.B1.BB.E9.94.99.E8.AF.AF.E7.A0.81) 列表。
|
|
1310
|
+
# @type ErrCodeExt: String
|
|
1311
|
+
# @param Message: 错误信息
|
|
1312
|
+
# @type Message: String
|
|
1313
|
+
# @param Input: 抠图任务输入
|
|
1314
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskCutoutInput`
|
|
1315
|
+
# @param Output: 抠图任务输出
|
|
1316
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1317
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskCutoutOutput`
|
|
1318
|
+
# @param Progress: 任务进度
|
|
1319
|
+
# @type Progress: Integer
|
|
1320
|
+
# @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
|
|
1321
|
+
# @type BeginProcessTime: String
|
|
1322
|
+
# @param FinishTime: 任务结束执行的时间,采用 ISO 日期格式。
|
|
1323
|
+
# @type FinishTime: String
|
|
1324
|
+
|
|
1325
|
+
attr_accessor :Status, :ErrCodeExt, :Message, :Input, :Output, :Progress, :BeginProcessTime, :FinishTime
|
|
1326
|
+
|
|
1327
|
+
def initialize(status=nil, errcodeext=nil, message=nil, input=nil, output=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
|
1328
|
+
@Status = status
|
|
1329
|
+
@ErrCodeExt = errcodeext
|
|
1330
|
+
@Message = message
|
|
1331
|
+
@Input = input
|
|
1332
|
+
@Output = output
|
|
1333
|
+
@Progress = progress
|
|
1334
|
+
@BeginProcessTime = beginprocesstime
|
|
1335
|
+
@FinishTime = finishtime
|
|
1336
|
+
end
|
|
1337
|
+
|
|
1338
|
+
def deserialize(params)
|
|
1339
|
+
@Status = params['Status']
|
|
1340
|
+
@ErrCodeExt = params['ErrCodeExt']
|
|
1341
|
+
@Message = params['Message']
|
|
1342
|
+
unless params['Input'].nil?
|
|
1343
|
+
@Input = AiAnalysisTaskCutoutInput.new
|
|
1344
|
+
@Input.deserialize(params['Input'])
|
|
1345
|
+
end
|
|
1346
|
+
unless params['Output'].nil?
|
|
1347
|
+
@Output = AiAnalysisTaskCutoutOutput.new
|
|
1348
|
+
@Output.deserialize(params['Output'])
|
|
1349
|
+
end
|
|
1350
|
+
@Progress = params['Progress']
|
|
1351
|
+
@BeginProcessTime = params['BeginProcessTime']
|
|
1352
|
+
@FinishTime = params['FinishTime']
|
|
1353
|
+
end
|
|
1354
|
+
end
|
|
1355
|
+
|
|
1248
1356
|
# 智能擦除任务输入类型
|
|
1249
1357
|
class AiAnalysisTaskDelLogoInput < TencentCloud::Common::AbstractModel
|
|
1250
1358
|
# @param Definition: 视频智能擦除模板 ID。
|
|
@@ -1870,6 +1978,108 @@ module TencentCloud
|
|
|
1870
1978
|
end
|
|
1871
1979
|
end
|
|
1872
1980
|
|
|
1981
|
+
# 智能成片任务输入类型
|
|
1982
|
+
class AiAnalysisTaskReelInput < TencentCloud::Common::AbstractModel
|
|
1983
|
+
# @param Definition: 智能成片模板 ID。
|
|
1984
|
+
# @type Definition: Integer
|
|
1985
|
+
|
|
1986
|
+
attr_accessor :Definition
|
|
1987
|
+
|
|
1988
|
+
def initialize(definition=nil)
|
|
1989
|
+
@Definition = definition
|
|
1990
|
+
end
|
|
1991
|
+
|
|
1992
|
+
def deserialize(params)
|
|
1993
|
+
@Definition = params['Definition']
|
|
1994
|
+
end
|
|
1995
|
+
end
|
|
1996
|
+
|
|
1997
|
+
# 智能成片结果信息
|
|
1998
|
+
class AiAnalysisTaskReelOutput < TencentCloud::Common::AbstractModel
|
|
1999
|
+
# @param VideoPath: 成片视频路径。
|
|
2000
|
+
# @type VideoPath: String
|
|
2001
|
+
# @param ScriptPath: 脚本文件路径
|
|
2002
|
+
# @type ScriptPath: String
|
|
2003
|
+
# @param OutputStorage: 成片视频存储位置。
|
|
2004
|
+
# @type OutputStorage: :class:`Tencentcloud::Mps.v20190612.models.TaskOutputStorage`
|
|
2005
|
+
|
|
2006
|
+
attr_accessor :VideoPath, :ScriptPath, :OutputStorage
|
|
2007
|
+
|
|
2008
|
+
def initialize(videopath=nil, scriptpath=nil, outputstorage=nil)
|
|
2009
|
+
@VideoPath = videopath
|
|
2010
|
+
@ScriptPath = scriptpath
|
|
2011
|
+
@OutputStorage = outputstorage
|
|
2012
|
+
end
|
|
2013
|
+
|
|
2014
|
+
def deserialize(params)
|
|
2015
|
+
@VideoPath = params['VideoPath']
|
|
2016
|
+
@ScriptPath = params['ScriptPath']
|
|
2017
|
+
unless params['OutputStorage'].nil?
|
|
2018
|
+
@OutputStorage = TaskOutputStorage.new
|
|
2019
|
+
@OutputStorage.deserialize(params['OutputStorage'])
|
|
2020
|
+
end
|
|
2021
|
+
end
|
|
2022
|
+
end
|
|
2023
|
+
|
|
2024
|
+
# 智能成片结果类型
|
|
2025
|
+
class AiAnalysisTaskReelResult < TencentCloud::Common::AbstractModel
|
|
2026
|
+
# @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
|
2027
|
+
# @type Status: String
|
|
2028
|
+
# @param ErrCode: 错误码,0:成功,其他值:失败。
|
|
2029
|
+
# @type ErrCode: Integer
|
|
2030
|
+
# @param Message: 错误信息。
|
|
2031
|
+
# @type Message: String
|
|
2032
|
+
# @param Input: 智能成片任务输入。
|
|
2033
|
+
# @type Input: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskReelInput`
|
|
2034
|
+
# @param Output: 智能成片任务输出。
|
|
2035
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2036
|
+
# @type Output: :class:`Tencentcloud::Mps.v20190612.models.AiAnalysisTaskReelOutput`
|
|
2037
|
+
# @param ErrCodeExt: 错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。
|
|
2038
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2039
|
+
# @type ErrCodeExt: String
|
|
2040
|
+
# @param Progress: 任务进度。
|
|
2041
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2042
|
+
# @type Progress: Integer
|
|
2043
|
+
# @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
|
|
2044
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2045
|
+
# @type BeginProcessTime: String
|
|
2046
|
+
# @param FinishTime: 任务执行完毕的时间,采用 ISO 日期格式。
|
|
2047
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
2048
|
+
# @type FinishTime: String
|
|
2049
|
+
|
|
2050
|
+
attr_accessor :Status, :ErrCode, :Message, :Input, :Output, :ErrCodeExt, :Progress, :BeginProcessTime, :FinishTime
|
|
2051
|
+
|
|
2052
|
+
def initialize(status=nil, errcode=nil, message=nil, input=nil, output=nil, errcodeext=nil, progress=nil, beginprocesstime=nil, finishtime=nil)
|
|
2053
|
+
@Status = status
|
|
2054
|
+
@ErrCode = errcode
|
|
2055
|
+
@Message = message
|
|
2056
|
+
@Input = input
|
|
2057
|
+
@Output = output
|
|
2058
|
+
@ErrCodeExt = errcodeext
|
|
2059
|
+
@Progress = progress
|
|
2060
|
+
@BeginProcessTime = beginprocesstime
|
|
2061
|
+
@FinishTime = finishtime
|
|
2062
|
+
end
|
|
2063
|
+
|
|
2064
|
+
def deserialize(params)
|
|
2065
|
+
@Status = params['Status']
|
|
2066
|
+
@ErrCode = params['ErrCode']
|
|
2067
|
+
@Message = params['Message']
|
|
2068
|
+
unless params['Input'].nil?
|
|
2069
|
+
@Input = AiAnalysisTaskReelInput.new
|
|
2070
|
+
@Input.deserialize(params['Input'])
|
|
2071
|
+
end
|
|
2072
|
+
unless params['Output'].nil?
|
|
2073
|
+
@Output = AiAnalysisTaskReelOutput.new
|
|
2074
|
+
@Output.deserialize(params['Output'])
|
|
2075
|
+
end
|
|
2076
|
+
@ErrCodeExt = params['ErrCodeExt']
|
|
2077
|
+
@Progress = params['Progress']
|
|
2078
|
+
@BeginProcessTime = params['BeginProcessTime']
|
|
2079
|
+
@FinishTime = params['FinishTime']
|
|
2080
|
+
end
|
|
2081
|
+
end
|
|
2082
|
+
|
|
1873
2083
|
# 拆条任务输入类型
|
|
1874
2084
|
class AiAnalysisTaskSegmentInput < TencentCloud::Common::AbstractModel
|
|
1875
2085
|
# @param Definition: 拆条任务模板 ID。
|
|
@@ -25077,7 +25287,6 @@ module TencentCloud
|
|
|
25077
25287
|
# `iw`:希伯来语
|
|
25078
25288
|
# `ja`:日语
|
|
25079
25289
|
# `jv`:爪哇语
|
|
25080
|
-
# `jw`:爪哇语
|
|
25081
25290
|
# `ka`:格鲁吉亚语
|
|
25082
25291
|
# `kk`:哈萨克语
|
|
25083
25292
|
# `km`:高棉语
|
|
@@ -25164,7 +25373,6 @@ module TencentCloud
|
|
|
25164
25373
|
# `th`:泰语
|
|
25165
25374
|
# `ti`:提格里尼亚语
|
|
25166
25375
|
# `tk`:土库曼语
|
|
25167
|
-
# `tl`:菲律宾语(塔加拉语)
|
|
25168
25376
|
# `tn`:茨瓦纳语
|
|
25169
25377
|
# `tr`:土耳其语
|
|
25170
25378
|
# `ts`:聪加语
|
|
@@ -25198,10 +25406,13 @@ module TencentCloud
|
|
|
25198
25406
|
|
|
25199
25407
|
# **注意**:不传的情况下默认类型为 ASR识别字幕
|
|
25200
25408
|
# @type ProcessType: Integer
|
|
25409
|
+
# @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置
|
|
25410
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
25411
|
+
# @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
|
|
25201
25412
|
|
|
25202
|
-
attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType
|
|
25413
|
+
attr_accessor :SubtitleType, :VideoSrcLanguage, :SubtitleFormat, :TranslateSwitch, :TranslateDstLanguage, :AsrHotWordsConfigure, :ExtInfo, :ProcessType, :SelectingSubtitleAreasConfig
|
|
25203
25414
|
|
|
25204
|
-
def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil)
|
|
25415
|
+
def initialize(subtitletype=nil, videosrclanguage=nil, subtitleformat=nil, translateswitch=nil, translatedstlanguage=nil, asrhotwordsconfigure=nil, extinfo=nil, processtype=nil, selectingsubtitleareasconfig=nil)
|
|
25205
25416
|
@SubtitleType = subtitletype
|
|
25206
25417
|
@VideoSrcLanguage = videosrclanguage
|
|
25207
25418
|
@SubtitleFormat = subtitleformat
|
|
@@ -25210,6 +25421,7 @@ module TencentCloud
|
|
|
25210
25421
|
@AsrHotWordsConfigure = asrhotwordsconfigure
|
|
25211
25422
|
@ExtInfo = extinfo
|
|
25212
25423
|
@ProcessType = processtype
|
|
25424
|
+
@SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
|
|
25213
25425
|
end
|
|
25214
25426
|
|
|
25215
25427
|
def deserialize(params)
|
|
@@ -25224,6 +25436,10 @@ module TencentCloud
|
|
|
25224
25436
|
end
|
|
25225
25437
|
@ExtInfo = params['ExtInfo']
|
|
25226
25438
|
@ProcessType = params['ProcessType']
|
|
25439
|
+
unless params['SelectingSubtitleAreasConfig'].nil?
|
|
25440
|
+
@SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
|
|
25441
|
+
@SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
|
|
25442
|
+
end
|
|
25227
25443
|
end
|
|
25228
25444
|
end
|
|
25229
25445
|
|
|
@@ -26771,6 +26987,38 @@ module TencentCloud
|
|
|
26771
26987
|
end
|
|
26772
26988
|
end
|
|
26773
26989
|
|
|
26990
|
+
# 字幕OCR提取框选区域配置
|
|
26991
|
+
class SelectingSubtitleAreasConfig < TencentCloud::Common::AbstractModel
|
|
26992
|
+
# @param AutoAreas: 自动选择自定义区域。
|
|
26993
|
+
# 对选定区域,利用AI模型自动检测其中存在的选择目标并提取。
|
|
26994
|
+
# @type AutoAreas: Array
|
|
26995
|
+
# @param SampleWidth: 示例视频或图片的宽,单位像素值
|
|
26996
|
+
# @type SampleWidth: Integer
|
|
26997
|
+
# @param SampleHeight: 示例视频或图片的高,单位像素值
|
|
26998
|
+
# @type SampleHeight: Integer
|
|
26999
|
+
|
|
27000
|
+
attr_accessor :AutoAreas, :SampleWidth, :SampleHeight
|
|
27001
|
+
|
|
27002
|
+
def initialize(autoareas=nil, samplewidth=nil, sampleheight=nil)
|
|
27003
|
+
@AutoAreas = autoareas
|
|
27004
|
+
@SampleWidth = samplewidth
|
|
27005
|
+
@SampleHeight = sampleheight
|
|
27006
|
+
end
|
|
27007
|
+
|
|
27008
|
+
def deserialize(params)
|
|
27009
|
+
unless params['AutoAreas'].nil?
|
|
27010
|
+
@AutoAreas = []
|
|
27011
|
+
params['AutoAreas'].each do |i|
|
|
27012
|
+
erasearea_tmp = EraseArea.new
|
|
27013
|
+
erasearea_tmp.deserialize(i)
|
|
27014
|
+
@AutoAreas << erasearea_tmp
|
|
27015
|
+
end
|
|
27016
|
+
end
|
|
27017
|
+
@SampleWidth = params['SampleWidth']
|
|
27018
|
+
@SampleHeight = params['SampleHeight']
|
|
27019
|
+
end
|
|
27020
|
+
end
|
|
27021
|
+
|
|
26774
27022
|
# 细节增强配置
|
|
26775
27023
|
class SharpEnhanceConfig < TencentCloud::Common::AbstractModel
|
|
26776
27024
|
# @param Switch: 能力配置开关,可选值:
|
|
@@ -27672,7 +27920,7 @@ module TencentCloud
|
|
|
27672
27920
|
# @param SubtitleFormat: 智能字幕文件格式
|
|
27673
27921
|
# - vtt: WebVTT 格式
|
|
27674
27922
|
# - srt: SRT格式
|
|
27675
|
-
# - original
|
|
27923
|
+
# - original:与源字幕文件一致(用于纯字幕翻译模板)
|
|
27676
27924
|
# - 不填或填空:不生成字幕文件
|
|
27677
27925
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27678
27926
|
# @type SubtitleFormat: String
|
|
@@ -27726,11 +27974,15 @@ module TencentCloud
|
|
|
27726
27974
|
# @param ProcessType: 字幕处理类型:
|
|
27727
27975
|
# - 0:ASR识别字幕
|
|
27728
27976
|
# - 1:纯字幕翻译
|
|
27977
|
+
# - 2: OCR识别字幕
|
|
27729
27978
|
# @type ProcessType: Integer
|
|
27979
|
+
# @param SelectingSubtitleAreasConfig: 字幕OCR提取框选区域配置信息
|
|
27980
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
27981
|
+
# @type SelectingSubtitleAreasConfig: :class:`Tencentcloud::Mps.v20190612.models.SelectingSubtitleAreasConfig`
|
|
27730
27982
|
|
|
27731
|
-
attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType
|
|
27983
|
+
attr_accessor :Definition, :Name, :Comment, :Type, :AsrHotWordsConfigure, :AsrHotWordsLibraryName, :VideoSrcLanguage, :SubtitleFormat, :SubtitleType, :TranslateSwitch, :TranslateDstLanguage, :CreateTime, :UpdateTime, :AliasName, :ProcessType, :SelectingSubtitleAreasConfig
|
|
27732
27984
|
|
|
27733
|
-
def initialize(definition=nil, name=nil, comment=nil, type=nil, asrhotwordsconfigure=nil, asrhotwordslibraryname=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, translateswitch=nil, translatedstlanguage=nil, createtime=nil, updatetime=nil, aliasname=nil, processtype=nil)
|
|
27985
|
+
def initialize(definition=nil, name=nil, comment=nil, type=nil, asrhotwordsconfigure=nil, asrhotwordslibraryname=nil, videosrclanguage=nil, subtitleformat=nil, subtitletype=nil, translateswitch=nil, translatedstlanguage=nil, createtime=nil, updatetime=nil, aliasname=nil, processtype=nil, selectingsubtitleareasconfig=nil)
|
|
27734
27986
|
@Definition = definition
|
|
27735
27987
|
@Name = name
|
|
27736
27988
|
@Comment = comment
|
|
@@ -27746,6 +27998,7 @@ module TencentCloud
|
|
|
27746
27998
|
@UpdateTime = updatetime
|
|
27747
27999
|
@AliasName = aliasname
|
|
27748
28000
|
@ProcessType = processtype
|
|
28001
|
+
@SelectingSubtitleAreasConfig = selectingsubtitleareasconfig
|
|
27749
28002
|
end
|
|
27750
28003
|
|
|
27751
28004
|
def deserialize(params)
|
|
@@ -27767,6 +28020,10 @@ module TencentCloud
|
|
|
27767
28020
|
@UpdateTime = params['UpdateTime']
|
|
27768
28021
|
@AliasName = params['AliasName']
|
|
27769
28022
|
@ProcessType = params['ProcessType']
|
|
28023
|
+
unless params['SelectingSubtitleAreasConfig'].nil?
|
|
28024
|
+
@SelectingSubtitleAreasConfig = SelectingSubtitleAreasConfig.new
|
|
28025
|
+
@SelectingSubtitleAreasConfig.deserialize(params['SelectingSubtitleAreasConfig'])
|
|
28026
|
+
end
|
|
27770
28027
|
end
|
|
27771
28028
|
end
|
|
27772
28029
|
|
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.1191
|
|
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-12-
|
|
11
|
+
date: 2025-12-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|