tencentcloud-sdk-ticm 1.0.200

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.
@@ -0,0 +1,1300 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ module TencentCloud
18
+ module Ticm
19
+ module V20181127
20
+ # 识别出人脸对应的候选人。
21
+ class Candidate < TencentCloud::Common::AbstractModel
22
+ # @param Name: 识别出人脸对应的候选人数组。当前返回相似度最高的候选人。
23
+ # @type Name: String
24
+ # @param Confidence: 相似度,0-100之间。
25
+ # @type Confidence: Integer
26
+
27
+ attr_accessor :Name, :Confidence
28
+
29
+ def initialize(name=nil, confidence=nil)
30
+ @Name = name
31
+ @Confidence = confidence
32
+ end
33
+
34
+ def deserialize(params)
35
+ @Name = params['Name']
36
+ @Confidence = params['Confidence']
37
+ end
38
+ end
39
+
40
+ # DescribeVideoTask请求参数结构体
41
+ class DescribeVideoTaskRequest < TencentCloud::Common::AbstractModel
42
+ # @param VodTaskId: 需要查询的视频审核的任务ID
43
+ # @type VodTaskId: String
44
+
45
+ attr_accessor :VodTaskId
46
+
47
+ def initialize(vodtaskid=nil)
48
+ @VodTaskId = vodtaskid
49
+ end
50
+
51
+ def deserialize(params)
52
+ @VodTaskId = params['VodTaskId']
53
+ end
54
+ end
55
+
56
+ # DescribeVideoTask返回参数结构体
57
+ class DescribeVideoTaskResponse < TencentCloud::Common::AbstractModel
58
+ # @param Status: 任务状态,取值:
59
+ # WAITING:等待中;
60
+ # PROCESSING:处理中;
61
+ # FINISH:已完成。
62
+ # @type Status: String
63
+ # @param BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
64
+ # @type BeginProcessTime: String
65
+ # @param FinishTime: 任务执行完毕的时间,采用 ISO 日期格式。
66
+ # @type FinishTime: String
67
+ # @param PornResult: 视频内容审核智能画面鉴黄任务的查询结果。
68
+ # @type PornResult: :class:`Tencentcloud::Ticm.v20181127.models.VodPornReviewResult`
69
+ # @param TerrorismResult: 视频内容审核智能画面鉴恐任务的查询结果。
70
+ # @type TerrorismResult: :class:`Tencentcloud::Ticm.v20181127.models.VodTerrorismReviewResult`
71
+ # @param PoliticalResult: 视频内容审核智能画面鉴政任务的查询结果。
72
+ # @type PoliticalResult: :class:`Tencentcloud::Ticm.v20181127.models.VodPoliticalReviewResult`
73
+ # @param PoliticalOcrResult: 视频内容审核 Ocr 文字鉴政任务的查询结果。
74
+ # @type PoliticalOcrResult: :class:`Tencentcloud::Ticm.v20181127.models.VodPoliticalOcrReviewResult`
75
+ # @param PornAsrResult: 视频内容审核 Asr 文字鉴黄任务的查询结果。
76
+ # @type PornAsrResult: :class:`Tencentcloud::Ticm.v20181127.models.VodPornAsrReviewResult`
77
+ # @param PoliticalAsrResult: 视频内容审核 Asr 文字鉴政任务的查询结果。
78
+ # @type PoliticalAsrResult: :class:`Tencentcloud::Ticm.v20181127.models.VodPoliticalAsrReviewResult`
79
+ # @param PornOcrResult: 视频内容审核 Ocr 文字鉴黄任务的查询结果。
80
+ # @type PornOcrResult: :class:`Tencentcloud::Ticm.v20181127.models.VodPornOcrResult`
81
+ # @param MetaData: 原始视频的元信息。
82
+ # @type MetaData: :class:`Tencentcloud::Ticm.v20181127.models.VodMetaData`
83
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
84
+ # @type RequestId: String
85
+
86
+ attr_accessor :Status, :BeginProcessTime, :FinishTime, :PornResult, :TerrorismResult, :PoliticalResult, :PoliticalOcrResult, :PornAsrResult, :PoliticalAsrResult, :PornOcrResult, :MetaData, :RequestId
87
+
88
+ def initialize(status=nil, beginprocesstime=nil, finishtime=nil, pornresult=nil, terrorismresult=nil, politicalresult=nil, politicalocrresult=nil, pornasrresult=nil, politicalasrresult=nil, pornocrresult=nil, metadata=nil, requestid=nil)
89
+ @Status = status
90
+ @BeginProcessTime = beginprocesstime
91
+ @FinishTime = finishtime
92
+ @PornResult = pornresult
93
+ @TerrorismResult = terrorismresult
94
+ @PoliticalResult = politicalresult
95
+ @PoliticalOcrResult = politicalocrresult
96
+ @PornAsrResult = pornasrresult
97
+ @PoliticalAsrResult = politicalasrresult
98
+ @PornOcrResult = pornocrresult
99
+ @MetaData = metadata
100
+ @RequestId = requestid
101
+ end
102
+
103
+ def deserialize(params)
104
+ @Status = params['Status']
105
+ @BeginProcessTime = params['BeginProcessTime']
106
+ @FinishTime = params['FinishTime']
107
+ unless params['PornResult'].nil?
108
+ @PornResult = VodPornReviewResult.new
109
+ @PornResult.deserialize(params['PornResult'])
110
+ end
111
+ unless params['TerrorismResult'].nil?
112
+ @TerrorismResult = VodTerrorismReviewResult.new
113
+ @TerrorismResult.deserialize(params['TerrorismResult'])
114
+ end
115
+ unless params['PoliticalResult'].nil?
116
+ @PoliticalResult = VodPoliticalReviewResult.new
117
+ @PoliticalResult.deserialize(params['PoliticalResult'])
118
+ end
119
+ unless params['PoliticalOcrResult'].nil?
120
+ @PoliticalOcrResult = VodPoliticalOcrReviewResult.new
121
+ @PoliticalOcrResult.deserialize(params['PoliticalOcrResult'])
122
+ end
123
+ unless params['PornAsrResult'].nil?
124
+ @PornAsrResult = VodPornAsrReviewResult.new
125
+ @PornAsrResult.deserialize(params['PornAsrResult'])
126
+ end
127
+ unless params['PoliticalAsrResult'].nil?
128
+ @PoliticalAsrResult = VodPoliticalAsrReviewResult.new
129
+ @PoliticalAsrResult.deserialize(params['PoliticalAsrResult'])
130
+ end
131
+ unless params['PornOcrResult'].nil?
132
+ @PornOcrResult = VodPornOcrResult.new
133
+ @PornOcrResult.deserialize(params['PornOcrResult'])
134
+ end
135
+ unless params['MetaData'].nil?
136
+ @MetaData = VodMetaData.new
137
+ @MetaData.deserialize(params['MetaData'])
138
+ end
139
+ @RequestId = params['RequestId']
140
+ end
141
+ end
142
+
143
+ # 恶心识别结果。
144
+ class DisgustResult < TencentCloud::Common::AbstractModel
145
+ # @param Code: 该识别场景的错误码:
146
+ # 0表示成功,
147
+ # -1表示系统错误,
148
+ # -2表示引擎错误。
149
+ # @type Code: Integer
150
+ # @param Msg: 错误码描述信息。
151
+ # @type Msg: String
152
+ # @param Suggestion: 识别场景的审核结论:
153
+ # PASS:正常
154
+ # REVIEW:疑似
155
+ # BLOCK:违规
156
+ # @type Suggestion: String
157
+ # @param Confidence: 图像恶心的分数,0-100之间,分数越高恶心几率越大。
158
+ # @type Confidence: Integer
159
+
160
+ attr_accessor :Code, :Msg, :Suggestion, :Confidence
161
+
162
+ def initialize(code=nil, msg=nil, suggestion=nil, confidence=nil)
163
+ @Code = code
164
+ @Msg = msg
165
+ @Suggestion = suggestion
166
+ @Confidence = confidence
167
+ end
168
+
169
+ def deserialize(params)
170
+ @Code = params['Code']
171
+ @Msg = params['Msg']
172
+ @Suggestion = params['Suggestion']
173
+ @Confidence = params['Confidence']
174
+ end
175
+ end
176
+
177
+ # 识别出的人脸在图片中的位置。
178
+ class FaceRect < TencentCloud::Common::AbstractModel
179
+ # @param X: 人脸区域左上角横坐标。
180
+ # @type X: Integer
181
+ # @param Y: 人脸区域左上角纵坐标。
182
+ # @type Y: Integer
183
+ # @param Width: 人脸区域宽度。
184
+ # @type Width: Integer
185
+ # @param Height: 人脸区域高度。
186
+ # @type Height: Integer
187
+
188
+ attr_accessor :X, :Y, :Width, :Height
189
+
190
+ def initialize(x=nil, y=nil, width=nil, height=nil)
191
+ @X = x
192
+ @Y = y
193
+ @Width = width
194
+ @Height = height
195
+ end
196
+
197
+ def deserialize(params)
198
+ @X = params['X']
199
+ @Y = params['Y']
200
+ @Width = params['Width']
201
+ @Height = params['Height']
202
+ end
203
+ end
204
+
205
+ # 人脸识别结果。
206
+ class FaceResult < TencentCloud::Common::AbstractModel
207
+ # @param FaceRect: 检测出的人脸框位置。
208
+ # @type FaceRect: :class:`Tencentcloud::Ticm.v20181127.models.FaceRect`
209
+ # @param Candidates: 候选人列表。当前返回相似度最高的候选人。
210
+ # @type Candidates: Array
211
+
212
+ attr_accessor :FaceRect, :Candidates
213
+
214
+ def initialize(facerect=nil, candidates=nil)
215
+ @FaceRect = facerect
216
+ @Candidates = candidates
217
+ end
218
+
219
+ def deserialize(params)
220
+ unless params['FaceRect'].nil?
221
+ @FaceRect = FaceRect.new
222
+ @FaceRect.deserialize(params['FaceRect'])
223
+ end
224
+ unless params['Candidates'].nil?
225
+ @Candidates = []
226
+ params['Candidates'].each do |i|
227
+ candidate_tmp = Candidate.new
228
+ candidate_tmp.deserialize(i)
229
+ @Candidates << candidate_tmp
230
+ end
231
+ end
232
+ end
233
+ end
234
+
235
+ # ImageModeration请求参数结构体
236
+ class ImageModerationRequest < TencentCloud::Common::AbstractModel
237
+ # @param Scenes: 本次调用支持的识别场景,可选值如下:
238
+ # 1. PORN,即色情识别
239
+ # 2. TERRORISM,即暴恐识别
240
+ # 3. POLITICS,即政治敏感识别
241
+
242
+ # 支持多场景(Scenes)一起检测。例如,使用 Scenes=["PORN", "TERRORISM"],即对一张图片同时进行色情识别和暴恐识别。
243
+ # @type Scenes: Array
244
+ # @param ImageUrl: 图片URL地址。
245
+ # 图片限制:
246
+ # • 图片格式:PNG、JPG、JPEG。
247
+ # • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
248
+ # • 图片像素:大于50*50像素,否则影响识别效果;
249
+ # • 长宽比:长边:短边<5;
250
+ # 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
251
+ # @type ImageUrl: String
252
+ # @param Config: 预留字段,后期用于展示更多识别信息。
253
+ # @type Config: String
254
+ # @param Extra: 透传字段,透传简单信息。
255
+ # @type Extra: String
256
+ # @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
257
+ # @type ImageBase64: String
258
+
259
+ attr_accessor :Scenes, :ImageUrl, :Config, :Extra, :ImageBase64
260
+
261
+ def initialize(scenes=nil, imageurl=nil, config=nil, extra=nil, imagebase64=nil)
262
+ @Scenes = scenes
263
+ @ImageUrl = imageurl
264
+ @Config = config
265
+ @Extra = extra
266
+ @ImageBase64 = imagebase64
267
+ end
268
+
269
+ def deserialize(params)
270
+ @Scenes = params['Scenes']
271
+ @ImageUrl = params['ImageUrl']
272
+ @Config = params['Config']
273
+ @Extra = params['Extra']
274
+ @ImageBase64 = params['ImageBase64']
275
+ end
276
+ end
277
+
278
+ # ImageModeration返回参数结构体
279
+ class ImageModerationResponse < TencentCloud::Common::AbstractModel
280
+ # @param Suggestion: 识别场景的审核结论:
281
+ # PASS:正常
282
+ # REVIEW:疑似
283
+ # BLOCK:违规
284
+ # @type Suggestion: String
285
+ # @param PornResult: 色情识别结果。
286
+ # 注意:此字段可能返回 null,表示取不到有效值。
287
+ # @type PornResult: :class:`Tencentcloud::Ticm.v20181127.models.PornResult`
288
+ # @param TerrorismResult: 暴恐识别结果。
289
+ # 注意:此字段可能返回 null,表示取不到有效值。
290
+ # @type TerrorismResult: :class:`Tencentcloud::Ticm.v20181127.models.TerrorismResult`
291
+ # @param PoliticsResult: 政治敏感识别结果。
292
+ # 注意:此字段可能返回 null,表示取不到有效值。
293
+ # @type PoliticsResult: :class:`Tencentcloud::Ticm.v20181127.models.PoliticsResult`
294
+ # @param Extra: 透传字段,透传简单信息。
295
+ # @type Extra: String
296
+ # @param DisgustResult: 恶心内容识别结果。
297
+ # 注意:此字段可能返回 null,表示取不到有效值。
298
+ # @type DisgustResult: :class:`Tencentcloud::Ticm.v20181127.models.DisgustResult`
299
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
300
+ # @type RequestId: String
301
+
302
+ attr_accessor :Suggestion, :PornResult, :TerrorismResult, :PoliticsResult, :Extra, :DisgustResult, :RequestId
303
+
304
+ def initialize(suggestion=nil, pornresult=nil, terrorismresult=nil, politicsresult=nil, extra=nil, disgustresult=nil, requestid=nil)
305
+ @Suggestion = suggestion
306
+ @PornResult = pornresult
307
+ @TerrorismResult = terrorismresult
308
+ @PoliticsResult = politicsresult
309
+ @Extra = extra
310
+ @DisgustResult = disgustresult
311
+ @RequestId = requestid
312
+ end
313
+
314
+ def deserialize(params)
315
+ @Suggestion = params['Suggestion']
316
+ unless params['PornResult'].nil?
317
+ @PornResult = PornResult.new
318
+ @PornResult.deserialize(params['PornResult'])
319
+ end
320
+ unless params['TerrorismResult'].nil?
321
+ @TerrorismResult = TerrorismResult.new
322
+ @TerrorismResult.deserialize(params['TerrorismResult'])
323
+ end
324
+ unless params['PoliticsResult'].nil?
325
+ @PoliticsResult = PoliticsResult.new
326
+ @PoliticsResult.deserialize(params['PoliticsResult'])
327
+ end
328
+ @Extra = params['Extra']
329
+ unless params['DisgustResult'].nil?
330
+ @DisgustResult = DisgustResult.new
331
+ @DisgustResult.deserialize(params['DisgustResult'])
332
+ end
333
+ @RequestId = params['RequestId']
334
+ end
335
+ end
336
+
337
+ # 政治敏感识别结果。
338
+ class PoliticsResult < TencentCloud::Common::AbstractModel
339
+ # @param Code: 该识别场景的错误码:
340
+ # 0表示成功,
341
+ # -1表示系统错误,
342
+ # -2表示引擎错误,
343
+ # -1400表示图片解码失败,
344
+ # -1401表示图片不符合规范。
345
+ # @type Code: Integer
346
+ # @param Msg: 错误码描述信息。
347
+ # @type Msg: String
348
+ # @param Suggestion: 识别场景的审核结论:
349
+ # PASS:正常
350
+ # REVIEW:疑似
351
+ # BLOCK:违规
352
+ # @type Suggestion: String
353
+ # @param Confidence: 图像涉政的分数,0-100之间,分数越高涉政几率越大。
354
+ # Type为DNA时:
355
+ # 0到75,Suggestion建议为PASS
356
+ # 75到90,Suggestion建议为REVIEW
357
+ # 90到100,Suggestion建议为BLOCK
358
+ # Type为FACE时:
359
+ # 0到55,Suggestion建议为PASS
360
+ # 55到60,Suggestion建议为REVIEW
361
+ # 60到100,Suggestion建议为BLOCK
362
+ # @type Confidence: Integer
363
+ # @param FaceResults: Type取值为‘FACE’时,人脸识别的结果列表。基于图片中实际检测到的人脸数,返回数组最大值不超过5个。
364
+ # @type FaceResults: Array
365
+ # @param Type: 取值'DNA' 或‘FACE’。DNA表示结论和置信度来自图像指纹,FACE表示结论和置信度来自人脸识别。
366
+ # @type Type: String
367
+ # @param AdvancedInfo: 鉴政识别返回的详细标签后期开放。
368
+ # @type AdvancedInfo: String
369
+
370
+ attr_accessor :Code, :Msg, :Suggestion, :Confidence, :FaceResults, :Type, :AdvancedInfo
371
+
372
+ def initialize(code=nil, msg=nil, suggestion=nil, confidence=nil, faceresults=nil, type=nil, advancedinfo=nil)
373
+ @Code = code
374
+ @Msg = msg
375
+ @Suggestion = suggestion
376
+ @Confidence = confidence
377
+ @FaceResults = faceresults
378
+ @Type = type
379
+ @AdvancedInfo = advancedinfo
380
+ end
381
+
382
+ def deserialize(params)
383
+ @Code = params['Code']
384
+ @Msg = params['Msg']
385
+ @Suggestion = params['Suggestion']
386
+ @Confidence = params['Confidence']
387
+ unless params['FaceResults'].nil?
388
+ @FaceResults = []
389
+ params['FaceResults'].each do |i|
390
+ faceresult_tmp = FaceResult.new
391
+ faceresult_tmp.deserialize(i)
392
+ @FaceResults << faceresult_tmp
393
+ end
394
+ end
395
+ @Type = params['Type']
396
+ @AdvancedInfo = params['AdvancedInfo']
397
+ end
398
+ end
399
+
400
+ # 色情识别结果。
401
+ class PornResult < TencentCloud::Common::AbstractModel
402
+ # @param Code: 该识别场景的错误码:
403
+ # 0表示成功,
404
+ # -1表示系统错误,
405
+ # -2表示引擎错误,
406
+ # -1400表示图片解码失败。
407
+ # @type Code: Integer
408
+ # @param Msg: 错误码描述信息。
409
+ # @type Msg: String
410
+ # @param Suggestion: 识别场景的审核结论:
411
+ # PASS:正常
412
+ # REVIEW:疑似
413
+ # BLOCK:违规
414
+ # @type Suggestion: String
415
+ # @param Confidence: 算法对于Suggestion的置信度,0-100之间,值越高,表示对于Suggestion越确定。
416
+ # @type Confidence: Integer
417
+ # @param AdvancedInfo: 预留字段,后期用于展示更多识别信息。
418
+ # @type AdvancedInfo: String
419
+ # @param Type: 取值'LABEL‘,LABEL表示结论和置信度来自标签分类。
420
+ # @type Type: String
421
+
422
+ attr_accessor :Code, :Msg, :Suggestion, :Confidence, :AdvancedInfo, :Type
423
+
424
+ def initialize(code=nil, msg=nil, suggestion=nil, confidence=nil, advancedinfo=nil, type=nil)
425
+ @Code = code
426
+ @Msg = msg
427
+ @Suggestion = suggestion
428
+ @Confidence = confidence
429
+ @AdvancedInfo = advancedinfo
430
+ @Type = type
431
+ end
432
+
433
+ def deserialize(params)
434
+ @Code = params['Code']
435
+ @Msg = params['Msg']
436
+ @Suggestion = params['Suggestion']
437
+ @Confidence = params['Confidence']
438
+ @AdvancedInfo = params['AdvancedInfo']
439
+ @Type = params['Type']
440
+ end
441
+ end
442
+
443
+ # 暴恐识别结果。
444
+ class TerrorismResult < TencentCloud::Common::AbstractModel
445
+ # @param Code: 该识别场景的错误码:
446
+ # 0表示成功,
447
+ # -1表示系统错误,
448
+ # -2表示引擎错误,
449
+ # -1400表示图片解码失败。
450
+ # @type Code: Integer
451
+ # @param Msg: 错误码描述信息。
452
+ # @type Msg: String
453
+ # @param Suggestion: 识别场景的审核结论:
454
+ # PASS:正常
455
+ # REVIEW:疑似
456
+ # BLOCK:违规
457
+ # @type Suggestion: String
458
+ # @param Confidence: 图像涉恐的分数,0-100之间,分数越高涉恐几率越大。
459
+ # Type为LABEL时:
460
+ # 0到86,Suggestion建议为PASS
461
+ # 86到91,Suggestion建议为REVIEW
462
+ # 91到100,Suggestion建议为BLOCK
463
+ # Type为FACE时:
464
+ # 0到55,Suggestion建议为PASS
465
+ # 55到60,Suggestion建议为REVIEW
466
+ # 60到100,Suggestion建议为BLOCK
467
+ # @type Confidence: Integer
468
+ # @param FaceResults: Type取值为‘FACE’时,人脸识别的结果列表。基于图片中实际检测到的人脸数,返回数组最大值不超过5个。
469
+ # @type FaceResults: Array
470
+ # @param AdvancedInfo: 暴恐识别返回的详细标签后期开放。
471
+ # @type AdvancedInfo: String
472
+ # @param Type: 取值'LABEL' 或‘FACE’,LABEL表示结论和置信度来自标签分类,FACE表示结论和置信度来自人脸识别。
473
+ # @type Type: String
474
+
475
+ attr_accessor :Code, :Msg, :Suggestion, :Confidence, :FaceResults, :AdvancedInfo, :Type
476
+
477
+ def initialize(code=nil, msg=nil, suggestion=nil, confidence=nil, faceresults=nil, advancedinfo=nil, type=nil)
478
+ @Code = code
479
+ @Msg = msg
480
+ @Suggestion = suggestion
481
+ @Confidence = confidence
482
+ @FaceResults = faceresults
483
+ @AdvancedInfo = advancedinfo
484
+ @Type = type
485
+ end
486
+
487
+ def deserialize(params)
488
+ @Code = params['Code']
489
+ @Msg = params['Msg']
490
+ @Suggestion = params['Suggestion']
491
+ @Confidence = params['Confidence']
492
+ unless params['FaceResults'].nil?
493
+ @FaceResults = []
494
+ params['FaceResults'].each do |i|
495
+ faceresult_tmp = FaceResult.new
496
+ faceresult_tmp.deserialize(i)
497
+ @FaceResults << faceresult_tmp
498
+ end
499
+ end
500
+ @AdvancedInfo = params['AdvancedInfo']
501
+ @Type = params['Type']
502
+ end
503
+ end
504
+
505
+ # VideoModeration请求参数结构体
506
+ class VideoModerationRequest < TencentCloud::Common::AbstractModel
507
+ # @param VideoUrl: 需要审核的视频的URL地址
508
+ # @type VideoUrl: String
509
+ # @param DeveloperId: 开发者标识
510
+ # @type DeveloperId: String
511
+ # @param CBUrl: 审核完成后回调地址
512
+ # @type CBUrl: String
513
+ # @param Extra: 透传字段,透传简单信息。
514
+ # @type Extra: String
515
+
516
+ attr_accessor :VideoUrl, :DeveloperId, :CBUrl, :Extra
517
+
518
+ def initialize(videourl=nil, developerid=nil, cburl=nil, extra=nil)
519
+ @VideoUrl = videourl
520
+ @DeveloperId = developerid
521
+ @CBUrl = cburl
522
+ @Extra = extra
523
+ end
524
+
525
+ def deserialize(params)
526
+ @VideoUrl = params['VideoUrl']
527
+ @DeveloperId = params['DeveloperId']
528
+ @CBUrl = params['CBUrl']
529
+ @Extra = params['Extra']
530
+ end
531
+ end
532
+
533
+ # VideoModeration返回参数结构体
534
+ class VideoModerationResponse < TencentCloud::Common::AbstractModel
535
+ # @param VodTaskId: 视频审核任务ID
536
+ # @type VodTaskId: String
537
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
538
+ # @type RequestId: String
539
+
540
+ attr_accessor :VodTaskId, :RequestId
541
+
542
+ def initialize(vodtaskid=nil, requestid=nil)
543
+ @VodTaskId = vodtaskid
544
+ @RequestId = requestid
545
+ end
546
+
547
+ def deserialize(params)
548
+ @VodTaskId = params['VodTaskId']
549
+ @RequestId = params['RequestId']
550
+ end
551
+ end
552
+
553
+ # 内容审核 Asr 文字审核嫌疑片段
554
+ class VodAsrTextSegmentItem < TencentCloud::Common::AbstractModel
555
+ # @param StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
556
+ # 注意:此字段可能返回 null,表示取不到有效值。
557
+ # @type StartTimeOffset: Float
558
+ # @param EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
559
+ # 注意:此字段可能返回 null,表示取不到有效值。
560
+ # @type EndTimeOffset: Float
561
+ # @param Confidence: 嫌疑片段置信度。
562
+ # 注意:此字段可能返回 null,表示取不到有效值。
563
+ # @type Confidence: Float
564
+ # @param Suggestion: 嫌疑片段审核结果建议,取值范围:
565
+ # pass。
566
+ # review。
567
+ # block。
568
+
569
+ # 注意:此字段可能返回 null,表示取不到有效值。
570
+ # @type Suggestion: String
571
+ # @param KeywordSet: 嫌疑关键词列表。
572
+ # 注意:此字段可能返回 null,表示取不到有效值。
573
+ # @type KeywordSet: Array
574
+
575
+ attr_accessor :StartTimeOffset, :EndTimeOffset, :Confidence, :Suggestion, :KeywordSet
576
+
577
+ def initialize(starttimeoffset=nil, endtimeoffset=nil, confidence=nil, suggestion=nil, keywordset=nil)
578
+ @StartTimeOffset = starttimeoffset
579
+ @EndTimeOffset = endtimeoffset
580
+ @Confidence = confidence
581
+ @Suggestion = suggestion
582
+ @KeywordSet = keywordset
583
+ end
584
+
585
+ def deserialize(params)
586
+ @StartTimeOffset = params['StartTimeOffset']
587
+ @EndTimeOffset = params['EndTimeOffset']
588
+ @Confidence = params['Confidence']
589
+ @Suggestion = params['Suggestion']
590
+ @KeywordSet = params['KeywordSet']
591
+ end
592
+ end
593
+
594
+ # 文件音频流信息
595
+ class VodAudioStreamItem < TencentCloud::Common::AbstractModel
596
+ # @param Bitrate: 音频流的码率,单位:bps。
597
+ # 注意:此字段可能返回 null,表示取不到有效值。
598
+ # @type Bitrate: Integer
599
+ # @param SamplingRate: 音频流的采样率,单位:hz。
600
+ # 注意:此字段可能返回 null,表示取不到有效值。
601
+ # @type SamplingRate: Integer
602
+ # @param Codec: 音频流的编码格式,例如 aac。
603
+ # 注意:此字段可能返回 null,表示取不到有效值。
604
+ # @type Codec: String
605
+
606
+ attr_accessor :Bitrate, :SamplingRate, :Codec
607
+
608
+ def initialize(bitrate=nil, samplingrate=nil, codec=nil)
609
+ @Bitrate = bitrate
610
+ @SamplingRate = samplingrate
611
+ @Codec = codec
612
+ end
613
+
614
+ def deserialize(params)
615
+ @Bitrate = params['Bitrate']
616
+ @SamplingRate = params['SamplingRate']
617
+ @Codec = params['Codec']
618
+ end
619
+ end
620
+
621
+ # 媒体文件元信息。
622
+ class VodMetaData < TencentCloud::Common::AbstractModel
623
+ # @param Size: 上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
624
+ # 注意:此字段可能返回 null,表示取不到有效值。
625
+ # @type Size: Integer
626
+ # @param Container: 容器类型,例如 m4a,mp4 等。
627
+ # 注意:此字段可能返回 null,表示取不到有效值。
628
+ # @type Container: String
629
+ # @param Bitrate: 视频流码率平均值与音频流码率平均值之和,单位:bps。
630
+ # 注意:此字段可能返回 null,表示取不到有效值。
631
+ # @type Bitrate: Integer
632
+ # @param Height: 视频流高度的最大值,单位:px。
633
+ # 注意:此字段可能返回 null,表示取不到有效值。
634
+ # @type Height: Integer
635
+ # @param Width: 视频流宽度的最大值,单位:px。
636
+ # 注意:此字段可能返回 null,表示取不到有效值。
637
+ # @type Width: Integer
638
+ # @param Duration: 视频时长,单位:秒。
639
+ # 注意:此字段可能返回 null,表示取不到有效值。
640
+ # @type Duration: Float
641
+ # @param Rotate: 视频拍摄时的选择角度,单位:度。
642
+ # 注意:此字段可能返回 null,表示取不到有效值。
643
+ # @type Rotate: Integer
644
+ # @param VideoStreamSet: 视频流信息。
645
+ # 注意:此字段可能返回 null,表示取不到有效值。
646
+ # @type VideoStreamSet: Array
647
+ # @param AudioStreamSet: 音频流信息。
648
+ # 注意:此字段可能返回 null,表示取不到有效值。
649
+ # @type AudioStreamSet: Array
650
+ # @param VideoDuration: 视频时长,单位:秒。
651
+ # 注意:此字段可能返回 null,表示取不到有效值。
652
+ # @type VideoDuration: Float
653
+ # @param AudioDuration: 音频时长,单位:秒。
654
+ # 注意:此字段可能返回 null,表示取不到有效值。
655
+ # @type AudioDuration: Float
656
+
657
+ attr_accessor :Size, :Container, :Bitrate, :Height, :Width, :Duration, :Rotate, :VideoStreamSet, :AudioStreamSet, :VideoDuration, :AudioDuration
658
+
659
+ def initialize(size=nil, container=nil, bitrate=nil, height=nil, width=nil, duration=nil, rotate=nil, videostreamset=nil, audiostreamset=nil, videoduration=nil, audioduration=nil)
660
+ @Size = size
661
+ @Container = container
662
+ @Bitrate = bitrate
663
+ @Height = height
664
+ @Width = width
665
+ @Duration = duration
666
+ @Rotate = rotate
667
+ @VideoStreamSet = videostreamset
668
+ @AudioStreamSet = audiostreamset
669
+ @VideoDuration = videoduration
670
+ @AudioDuration = audioduration
671
+ end
672
+
673
+ def deserialize(params)
674
+ @Size = params['Size']
675
+ @Container = params['Container']
676
+ @Bitrate = params['Bitrate']
677
+ @Height = params['Height']
678
+ @Width = params['Width']
679
+ @Duration = params['Duration']
680
+ @Rotate = params['Rotate']
681
+ unless params['VideoStreamSet'].nil?
682
+ @VideoStreamSet = []
683
+ params['VideoStreamSet'].each do |i|
684
+ vodvideostreamitem_tmp = VodVideoStreamItem.new
685
+ vodvideostreamitem_tmp.deserialize(i)
686
+ @VideoStreamSet << vodvideostreamitem_tmp
687
+ end
688
+ end
689
+ unless params['AudioStreamSet'].nil?
690
+ @AudioStreamSet = []
691
+ params['AudioStreamSet'].each do |i|
692
+ vodaudiostreamitem_tmp = VodAudioStreamItem.new
693
+ vodaudiostreamitem_tmp.deserialize(i)
694
+ @AudioStreamSet << vodaudiostreamitem_tmp
695
+ end
696
+ end
697
+ @VideoDuration = params['VideoDuration']
698
+ @AudioDuration = params['AudioDuration']
699
+ end
700
+ end
701
+
702
+ # 内容审核 Ocr 文字审核嫌疑片段
703
+ class VodOcrTextSegmentItem < TencentCloud::Common::AbstractModel
704
+ # @param StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
705
+ # 注意:此字段可能返回 null,表示取不到有效值。
706
+ # @type StartTimeOffset: Float
707
+ # @param EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
708
+ # 注意:此字段可能返回 null,表示取不到有效值。
709
+ # @type EndTimeOffset: Float
710
+ # @param Confidence: 嫌疑片段置信度。
711
+ # 注意:此字段可能返回 null,表示取不到有效值。
712
+ # @type Confidence: Float
713
+ # @param Suggestion: 嫌疑片段审核结果建议,取值范围:
714
+ # pass。
715
+ # review。
716
+ # block。
717
+
718
+ # 注意:此字段可能返回 null,表示取不到有效值。
719
+ # @type Suggestion: String
720
+ # @param KeywordSet: 嫌疑关键词列表。
721
+ # 注意:此字段可能返回 null,表示取不到有效值。
722
+ # @type KeywordSet: Array
723
+ # @param AreaCoordSet: 嫌疑文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
724
+ # 注意:此字段可能返回 null,表示取不到有效值。
725
+ # @type AreaCoordSet: Array
726
+
727
+ attr_accessor :StartTimeOffset, :EndTimeOffset, :Confidence, :Suggestion, :KeywordSet, :AreaCoordSet
728
+
729
+ def initialize(starttimeoffset=nil, endtimeoffset=nil, confidence=nil, suggestion=nil, keywordset=nil, areacoordset=nil)
730
+ @StartTimeOffset = starttimeoffset
731
+ @EndTimeOffset = endtimeoffset
732
+ @Confidence = confidence
733
+ @Suggestion = suggestion
734
+ @KeywordSet = keywordset
735
+ @AreaCoordSet = areacoordset
736
+ end
737
+
738
+ def deserialize(params)
739
+ @StartTimeOffset = params['StartTimeOffset']
740
+ @EndTimeOffset = params['EndTimeOffset']
741
+ @Confidence = params['Confidence']
742
+ @Suggestion = params['Suggestion']
743
+ @KeywordSet = params['KeywordSet']
744
+ @AreaCoordSet = params['AreaCoordSet']
745
+ end
746
+ end
747
+
748
+ # 内容审核 Asr 文字鉴政、敏感任务结果类型
749
+ class VodPoliticalAsrReviewResult < TencentCloud::Common::AbstractModel
750
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
751
+ # @type Status: String
752
+ # @param Code: 错误码,0:成功,其他值:失败。
753
+ # 注意:此字段可能返回 null,表示取不到有效值。
754
+ # @type Code: Integer
755
+ # @param Msg: 错误信息。
756
+ # 注意:此字段可能返回 null,表示取不到有效值。
757
+ # @type Msg: String
758
+ # @param Confidence: 嫌疑片段审核结果建议,取值范围:
759
+ # pass。
760
+ # review。
761
+ # block。
762
+
763
+ # Asr 文字涉政、敏感评分,分值为0到100。
764
+ # 注意:此字段可能返回 null,表示取不到有效值。
765
+ # @type Confidence: Float
766
+ # @param Suggestion: Asr 文字涉政、敏感结果建议,取值范围:
767
+ # pass。
768
+ # review。
769
+ # block。
770
+
771
+ # 注意:此字段可能返回 null,表示取不到有效值。
772
+ # @type Suggestion: String
773
+ # @param SegmentSet: Asr 文字有涉政、敏感嫌疑的视频片段列表。
774
+ # 注意:此字段可能返回 null,表示取不到有效值。
775
+ # @type SegmentSet: Array
776
+
777
+ attr_accessor :Status, :Code, :Msg, :Confidence, :Suggestion, :SegmentSet
778
+
779
+ def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, segmentset=nil)
780
+ @Status = status
781
+ @Code = code
782
+ @Msg = msg
783
+ @Confidence = confidence
784
+ @Suggestion = suggestion
785
+ @SegmentSet = segmentset
786
+ end
787
+
788
+ def deserialize(params)
789
+ @Status = params['Status']
790
+ @Code = params['Code']
791
+ @Msg = params['Msg']
792
+ @Confidence = params['Confidence']
793
+ @Suggestion = params['Suggestion']
794
+ unless params['SegmentSet'].nil?
795
+ @SegmentSet = []
796
+ params['SegmentSet'].each do |i|
797
+ vodasrtextsegmentitem_tmp = VodAsrTextSegmentItem.new
798
+ vodasrtextsegmentitem_tmp.deserialize(i)
799
+ @SegmentSet << vodasrtextsegmentitem_tmp
800
+ end
801
+ end
802
+ end
803
+ end
804
+
805
+ # 内容审核 Ocr 文字鉴政、敏感任务结果类型
806
+ class VodPoliticalOcrReviewResult < TencentCloud::Common::AbstractModel
807
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
808
+ # @type Status: String
809
+ # @param Code: 错误码,0:成功,其他值:失败。
810
+ # 注意:此字段可能返回 null,表示取不到有效值。
811
+ # @type Code: Integer
812
+ # @param Msg: 错误信息。
813
+ # 注意:此字段可能返回 null,表示取不到有效值。
814
+ # @type Msg: String
815
+ # @param Confidence: Ocr 文字涉政、敏感评分,分值为0到100。
816
+ # @type Confidence: Float
817
+ # @param Suggestion: Ocr 文字涉政、敏感结果建议,取值范围:
818
+ # pass。
819
+ # review。
820
+ # block。
821
+ # @type Suggestion: String
822
+ # @param SegmentSet: Ocr 文字有涉政、敏感嫌疑的视频片段列表。
823
+ # 注意:此字段可能返回 null,表示取不到有效值。
824
+ # @type SegmentSet: Array
825
+
826
+ attr_accessor :Status, :Code, :Msg, :Confidence, :Suggestion, :SegmentSet
827
+
828
+ def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, segmentset=nil)
829
+ @Status = status
830
+ @Code = code
831
+ @Msg = msg
832
+ @Confidence = confidence
833
+ @Suggestion = suggestion
834
+ @SegmentSet = segmentset
835
+ end
836
+
837
+ def deserialize(params)
838
+ @Status = params['Status']
839
+ @Code = params['Code']
840
+ @Msg = params['Msg']
841
+ @Confidence = params['Confidence']
842
+ @Suggestion = params['Suggestion']
843
+ unless params['SegmentSet'].nil?
844
+ @SegmentSet = []
845
+ params['SegmentSet'].each do |i|
846
+ vodocrtextsegmentitem_tmp = VodOcrTextSegmentItem.new
847
+ vodocrtextsegmentitem_tmp.deserialize(i)
848
+ @SegmentSet << vodocrtextsegmentitem_tmp
849
+ end
850
+ end
851
+ end
852
+ end
853
+
854
+ # 涉政信息
855
+ class VodPoliticalReviewResult < TencentCloud::Common::AbstractModel
856
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
857
+ # @type Status: String
858
+ # @param Code: 错误码,0:成功,其他值:失败。
859
+ # 注意:此字段可能返回 null,表示取不到有效值。
860
+ # @type Code: Integer
861
+ # @param Msg: 错误信息。
862
+ # 注意:此字段可能返回 null,表示取不到有效值。
863
+ # @type Msg: String
864
+ # @param Confidence: 视频涉政评分,分值为0到100。
865
+ # 注意:此字段可能返回 null,表示取不到有效值。
866
+ # @type Confidence: Float
867
+ # @param Suggestion: 涉政结果建议,取值范围:
868
+ # pass。
869
+ # review。
870
+ # block。
871
+
872
+ # 注意:此字段可能返回 null,表示取不到有效值。
873
+ # @type Suggestion: String
874
+ # @param Label: 视频鉴政结果标签,取值范围:
875
+ # politician:政治人物。
876
+ # violation_photo:违规图标。
877
+
878
+ # 注意:此字段可能返回 null,表示取不到有效值。
879
+ # @type Label: String
880
+ # @param SegmentSet: 有涉政嫌疑的视频片段列表。
881
+ # 注意:此字段可能返回 null,表示取不到有效值。
882
+ # @type SegmentSet: Array
883
+
884
+ attr_accessor :Status, :Code, :Msg, :Confidence, :Suggestion, :Label, :SegmentSet
885
+
886
+ def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, label=nil, segmentset=nil)
887
+ @Status = status
888
+ @Code = code
889
+ @Msg = msg
890
+ @Confidence = confidence
891
+ @Suggestion = suggestion
892
+ @Label = label
893
+ @SegmentSet = segmentset
894
+ end
895
+
896
+ def deserialize(params)
897
+ @Status = params['Status']
898
+ @Code = params['Code']
899
+ @Msg = params['Msg']
900
+ @Confidence = params['Confidence']
901
+ @Suggestion = params['Suggestion']
902
+ @Label = params['Label']
903
+ unless params['SegmentSet'].nil?
904
+ @SegmentSet = []
905
+ params['SegmentSet'].each do |i|
906
+ vodpoliticalreviewsegmentitem_tmp = VodPoliticalReviewSegmentItem.new
907
+ vodpoliticalreviewsegmentitem_tmp.deserialize(i)
908
+ @SegmentSet << vodpoliticalreviewsegmentitem_tmp
909
+ end
910
+ end
911
+ end
912
+ end
913
+
914
+ # 内容审核鉴政任务结果类型
915
+ class VodPoliticalReviewSegmentItem < TencentCloud::Common::AbstractModel
916
+ # @param StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
917
+ # 注意:此字段可能返回 null,表示取不到有效值。
918
+ # @type StartTimeOffset: Float
919
+ # @param EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
920
+ # 注意:此字段可能返回 null,表示取不到有效值。
921
+ # @type EndTimeOffset: Float
922
+ # @param Confidence: 嫌疑片段涉政分数。
923
+ # 注意:此字段可能返回 null,表示取不到有效值。
924
+ # @type Confidence: Float
925
+ # @param Suggestion: 嫌疑片段鉴政结果建议,取值范围:
926
+ # pass。
927
+ # review。
928
+ # block。
929
+
930
+ # 注意:此字段可能返回 null,表示取不到有效值。
931
+ # @type Suggestion: String
932
+ # @param Name: 涉政人物、违规图标名字。
933
+ # 注意:此字段可能返回 null,表示取不到有效值。
934
+ # @type Name: String
935
+ # @param Label: 嫌疑片段鉴政结果标签。
936
+ # 注意:此字段可能返回 null,表示取不到有效值。
937
+ # @type Label: String
938
+ # @param Url: 嫌疑图片 URL (图片不会永久存储,到达
939
+ # PicUrlExpireTime 时间点后图片将被删除)。
940
+ # 注意:此字段可能返回 null,表示取不到有效值。
941
+ # @type Url: String
942
+ # @param PicUrlExpireTimeStamp: 嫌疑图片 URL 失效时间,使用 ISO 日期格式。
943
+ # 注意:此字段可能返回 null,表示取不到有效值。
944
+ # @type PicUrlExpireTimeStamp: Integer
945
+ # @param AreaCoordSet: 涉政人物、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
946
+ # 注意:此字段可能返回 null,表示取不到有效值。
947
+ # @type AreaCoordSet: Array
948
+
949
+ attr_accessor :StartTimeOffset, :EndTimeOffset, :Confidence, :Suggestion, :Name, :Label, :Url, :PicUrlExpireTimeStamp, :AreaCoordSet
950
+
951
+ def initialize(starttimeoffset=nil, endtimeoffset=nil, confidence=nil, suggestion=nil, name=nil, label=nil, url=nil, picurlexpiretimestamp=nil, areacoordset=nil)
952
+ @StartTimeOffset = starttimeoffset
953
+ @EndTimeOffset = endtimeoffset
954
+ @Confidence = confidence
955
+ @Suggestion = suggestion
956
+ @Name = name
957
+ @Label = label
958
+ @Url = url
959
+ @PicUrlExpireTimeStamp = picurlexpiretimestamp
960
+ @AreaCoordSet = areacoordset
961
+ end
962
+
963
+ def deserialize(params)
964
+ @StartTimeOffset = params['StartTimeOffset']
965
+ @EndTimeOffset = params['EndTimeOffset']
966
+ @Confidence = params['Confidence']
967
+ @Suggestion = params['Suggestion']
968
+ @Name = params['Name']
969
+ @Label = params['Label']
970
+ @Url = params['Url']
971
+ @PicUrlExpireTimeStamp = params['PicUrlExpireTimeStamp']
972
+ @AreaCoordSet = params['AreaCoordSet']
973
+ end
974
+ end
975
+
976
+ # Asr 文字涉黄信息
977
+ class VodPornAsrReviewResult < TencentCloud::Common::AbstractModel
978
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
979
+ # @type Status: String
980
+ # @param Code: 错误码,0:成功,其他值:失败。
981
+ # 注意:此字段可能返回 null,表示取不到有效值。
982
+ # @type Code: Integer
983
+ # @param Msg: 错误信息。
984
+ # 注意:此字段可能返回 null,表示取不到有效值。
985
+ # @type Msg: String
986
+ # @param Confidence: Asr 文字涉黄评分,分值为0到100。
987
+ # 注意:此字段可能返回 null,表示取不到有效值。
988
+ # @type Confidence: Float
989
+ # @param Suggestion: Asr 文字涉黄结果建议,取值范围:
990
+ # pass。
991
+ # review。
992
+ # block。
993
+
994
+ # 注意:此字段可能返回 null,表示取不到有效值。
995
+ # @type Suggestion: String
996
+ # @param SegmentSet: Asr 文字有涉黄嫌疑的视频片段列表。
997
+ # 注意:此字段可能返回 null,表示取不到有效值。
998
+ # @type SegmentSet: Array
999
+
1000
+ attr_accessor :Status, :Code, :Msg, :Confidence, :Suggestion, :SegmentSet
1001
+
1002
+ def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, segmentset=nil)
1003
+ @Status = status
1004
+ @Code = code
1005
+ @Msg = msg
1006
+ @Confidence = confidence
1007
+ @Suggestion = suggestion
1008
+ @SegmentSet = segmentset
1009
+ end
1010
+
1011
+ def deserialize(params)
1012
+ @Status = params['Status']
1013
+ @Code = params['Code']
1014
+ @Msg = params['Msg']
1015
+ @Confidence = params['Confidence']
1016
+ @Suggestion = params['Suggestion']
1017
+ unless params['SegmentSet'].nil?
1018
+ @SegmentSet = []
1019
+ params['SegmentSet'].each do |i|
1020
+ vodasrtextsegmentitem_tmp = VodAsrTextSegmentItem.new
1021
+ vodasrtextsegmentitem_tmp.deserialize(i)
1022
+ @SegmentSet << vodasrtextsegmentitem_tmp
1023
+ end
1024
+ end
1025
+ end
1026
+ end
1027
+
1028
+ # 内容审核 Ocr 文字鉴黄任务结果类型
1029
+ class VodPornOcrResult < TencentCloud::Common::AbstractModel
1030
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
1031
+ # @type Status: String
1032
+ # @param Code: 错误码,0:成功,其他值:失败。
1033
+ # 注意:此字段可能返回 null,表示取不到有效值。
1034
+ # @type Code: Integer
1035
+ # @param Msg: 错误信息。
1036
+ # 注意:此字段可能返回 null,表示取不到有效值。
1037
+ # @type Msg: String
1038
+ # @param Confidence: Ocr 文字涉黄评分,分值为0到100。
1039
+ # 注意:此字段可能返回 null,表示取不到有效值。
1040
+ # @type Confidence: Float
1041
+ # @param Suggestion: Ocr 文字涉黄结果建议,取值范围:
1042
+ # pass。
1043
+ # review。
1044
+ # block。
1045
+
1046
+ # 注意:此字段可能返回 null,表示取不到有效值。
1047
+ # @type Suggestion: String
1048
+ # @param SegmentSet: Ocr 文字有涉黄嫌疑的视频片段列表。
1049
+ # 注意:此字段可能返回 null,表示取不到有效值。
1050
+ # @type SegmentSet: Array
1051
+
1052
+ attr_accessor :Status, :Code, :Msg, :Confidence, :Suggestion, :SegmentSet
1053
+
1054
+ def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, segmentset=nil)
1055
+ @Status = status
1056
+ @Code = code
1057
+ @Msg = msg
1058
+ @Confidence = confidence
1059
+ @Suggestion = suggestion
1060
+ @SegmentSet = segmentset
1061
+ end
1062
+
1063
+ def deserialize(params)
1064
+ @Status = params['Status']
1065
+ @Code = params['Code']
1066
+ @Msg = params['Msg']
1067
+ @Confidence = params['Confidence']
1068
+ @Suggestion = params['Suggestion']
1069
+ unless params['SegmentSet'].nil?
1070
+ @SegmentSet = []
1071
+ params['SegmentSet'].each do |i|
1072
+ vodocrtextsegmentitem_tmp = VodOcrTextSegmentItem.new
1073
+ vodocrtextsegmentitem_tmp.deserialize(i)
1074
+ @SegmentSet << vodocrtextsegmentitem_tmp
1075
+ end
1076
+ end
1077
+ end
1078
+ end
1079
+
1080
+ # 内容审核鉴黄任务结果类型
1081
+ class VodPornReviewResult < TencentCloud::Common::AbstractModel
1082
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
1083
+ # @type Status: String
1084
+ # @param Code: 错误码,0:成功,其他值:失败。
1085
+ # 注意:此字段可能返回 null,表示取不到有效值。
1086
+ # @type Code: Integer
1087
+ # @param Msg: 错误信息。
1088
+ # 注意:此字段可能返回 null,表示取不到有效值。
1089
+ # @type Msg: String
1090
+ # @param Confidence: 视频鉴黄评分,分值为0到100。
1091
+ # 注意:此字段可能返回 null,表示取不到有效值。
1092
+ # @type Confidence: Float
1093
+ # @param Suggestion: 鉴黄结果建议,取值范围:
1094
+ # pass。
1095
+ # review。
1096
+ # block。
1097
+
1098
+ # 注意:此字段可能返回 null,表示取不到有效值。
1099
+ # @type Suggestion: String
1100
+ # @param Label: 视频鉴黄结果标签,取值范围:
1101
+ # porn:色情。
1102
+ # sexy:性感。
1103
+ # vulgar:低俗。
1104
+ # intimacy:亲密行为。
1105
+
1106
+ # 注意:此字段可能返回 null,表示取不到有效值。
1107
+ # @type Label: String
1108
+ # @param SegmentSet: 有涉黄嫌疑的视频片段列表。
1109
+ # 注意:此字段可能返回 null,表示取不到有效值。
1110
+ # @type SegmentSet: Array
1111
+
1112
+ attr_accessor :Status, :Code, :Msg, :Confidence, :Suggestion, :Label, :SegmentSet
1113
+
1114
+ def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, label=nil, segmentset=nil)
1115
+ @Status = status
1116
+ @Code = code
1117
+ @Msg = msg
1118
+ @Confidence = confidence
1119
+ @Suggestion = suggestion
1120
+ @Label = label
1121
+ @SegmentSet = segmentset
1122
+ end
1123
+
1124
+ def deserialize(params)
1125
+ @Status = params['Status']
1126
+ @Code = params['Code']
1127
+ @Msg = params['Msg']
1128
+ @Confidence = params['Confidence']
1129
+ @Suggestion = params['Suggestion']
1130
+ @Label = params['Label']
1131
+ unless params['SegmentSet'].nil?
1132
+ @SegmentSet = []
1133
+ params['SegmentSet'].each do |i|
1134
+ vodpornreviewsegmentitem_tmp = VodPornReviewSegmentItem.new
1135
+ vodpornreviewsegmentitem_tmp.deserialize(i)
1136
+ @SegmentSet << vodpornreviewsegmentitem_tmp
1137
+ end
1138
+ end
1139
+ end
1140
+ end
1141
+
1142
+ # 内容审核涉黄/暴恐嫌疑片段
1143
+ class VodPornReviewSegmentItem < TencentCloud::Common::AbstractModel
1144
+ # @param StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
1145
+ # 注意:此字段可能返回 null,表示取不到有效值。
1146
+ # @type StartTimeOffset: Float
1147
+ # @param EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
1148
+ # 注意:此字段可能返回 null,表示取不到有效值。
1149
+ # @type EndTimeOffset: Float
1150
+ # @param Confidence: 嫌疑片段涉黄分数。
1151
+ # 注意:此字段可能返回 null,表示取不到有效值。
1152
+ # @type Confidence: Float
1153
+ # @param Label: 嫌疑片段鉴黄结果标签。
1154
+ # 注意:此字段可能返回 null,表示取不到有效值。
1155
+ # @type Label: String
1156
+ # @param Suggestion: 嫌疑片段鉴黄结果建议,取值范围:
1157
+ # pass。
1158
+ # review。
1159
+ # block。
1160
+
1161
+ # 注意:此字段可能返回 null,表示取不到有效值。
1162
+ # @type Suggestion: String
1163
+ # @param Url: 嫌疑图片 URL (图片不会永久存储,到达
1164
+ # PicUrlExpireTime 时间点后图片将被删除)。
1165
+ # 注意:此字段可能返回 null,表示取不到有效值。
1166
+ # @type Url: String
1167
+ # @param PicUrlExpireTimeStamp: 嫌疑图片 URL 失效时间,使用 ISO 日期格式。
1168
+ # 注意:此字段可能返回 null,表示取不到有效值。
1169
+ # @type PicUrlExpireTimeStamp: Integer
1170
+
1171
+ attr_accessor :StartTimeOffset, :EndTimeOffset, :Confidence, :Label, :Suggestion, :Url, :PicUrlExpireTimeStamp
1172
+
1173
+ def initialize(starttimeoffset=nil, endtimeoffset=nil, confidence=nil, label=nil, suggestion=nil, url=nil, picurlexpiretimestamp=nil)
1174
+ @StartTimeOffset = starttimeoffset
1175
+ @EndTimeOffset = endtimeoffset
1176
+ @Confidence = confidence
1177
+ @Label = label
1178
+ @Suggestion = suggestion
1179
+ @Url = url
1180
+ @PicUrlExpireTimeStamp = picurlexpiretimestamp
1181
+ end
1182
+
1183
+ def deserialize(params)
1184
+ @StartTimeOffset = params['StartTimeOffset']
1185
+ @EndTimeOffset = params['EndTimeOffset']
1186
+ @Confidence = params['Confidence']
1187
+ @Label = params['Label']
1188
+ @Suggestion = params['Suggestion']
1189
+ @Url = params['Url']
1190
+ @PicUrlExpireTimeStamp = params['PicUrlExpireTimeStamp']
1191
+ end
1192
+ end
1193
+
1194
+ # 暴恐信息
1195
+ class VodTerrorismReviewResult < TencentCloud::Common::AbstractModel
1196
+ # @param Confidence: 视频暴恐评分,分值为0到100。
1197
+ # 注意:此字段可能返回 null,表示取不到有效值。
1198
+ # @type Confidence: Float
1199
+ # @param Suggestion: 暴恐结果建议,取值范围:
1200
+ # pass。
1201
+ # review。
1202
+ # block。
1203
+
1204
+ # 注意:此字段可能返回 null,表示取不到有效值。
1205
+ # @type Suggestion: String
1206
+ # @param Label: 视频暴恐结果标签,取值范围:
1207
+ # guns:武器枪支。
1208
+ # crowd:人群聚集。
1209
+ # police:警察部队。
1210
+ # bloody:血腥画面。
1211
+ # banners:暴恐旗帜。
1212
+ # militant:武装分子。
1213
+ # explosion:爆炸火灾。
1214
+ # terrorists:暴恐人物。
1215
+
1216
+ # 注意:此字段可能返回 null,表示取不到有效值。
1217
+ # @type Label: String
1218
+ # @param Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
1219
+ # @type Status: String
1220
+ # @param Code: 错误码,0:成功,其他值:失败。
1221
+ # 注意:此字段可能返回 null,表示取不到有效值。
1222
+ # @type Code: Integer
1223
+ # @param Msg: 错误信息。
1224
+ # 注意:此字段可能返回 null,表示取不到有效值。
1225
+ # @type Msg: String
1226
+ # @param SegmentSet: 有暴恐嫌疑的视频片段列表。
1227
+ # 注意:此字段可能返回 null,表示取不到有效值。
1228
+ # @type SegmentSet: Array
1229
+
1230
+ attr_accessor :Confidence, :Suggestion, :Label, :Status, :Code, :Msg, :SegmentSet
1231
+
1232
+ def initialize(confidence=nil, suggestion=nil, label=nil, status=nil, code=nil, msg=nil, segmentset=nil)
1233
+ @Confidence = confidence
1234
+ @Suggestion = suggestion
1235
+ @Label = label
1236
+ @Status = status
1237
+ @Code = code
1238
+ @Msg = msg
1239
+ @SegmentSet = segmentset
1240
+ end
1241
+
1242
+ def deserialize(params)
1243
+ @Confidence = params['Confidence']
1244
+ @Suggestion = params['Suggestion']
1245
+ @Label = params['Label']
1246
+ @Status = params['Status']
1247
+ @Code = params['Code']
1248
+ @Msg = params['Msg']
1249
+ unless params['SegmentSet'].nil?
1250
+ @SegmentSet = []
1251
+ params['SegmentSet'].each do |i|
1252
+ vodpornreviewsegmentitem_tmp = VodPornReviewSegmentItem.new
1253
+ vodpornreviewsegmentitem_tmp.deserialize(i)
1254
+ @SegmentSet << vodpornreviewsegmentitem_tmp
1255
+ end
1256
+ end
1257
+ end
1258
+ end
1259
+
1260
+ # 文件视频流信息
1261
+ class VodVideoStreamItem < TencentCloud::Common::AbstractModel
1262
+ # @param Bitrate: 视频流的码率,单位:bps。
1263
+ # 注意:此字段可能返回 null,表示取不到有效值。
1264
+ # @type Bitrate: Integer
1265
+ # @param Height: 视频流的高度,单位:px。
1266
+ # 注意:此字段可能返回 null,表示取不到有效值。
1267
+ # @type Height: Integer
1268
+ # @param Width: 视频流的宽度,单位:px。
1269
+ # 注意:此字段可能返回 null,表示取不到有效值。
1270
+ # @type Width: Integer
1271
+ # @param Codec: 视频流的编码格式,例如 h264。
1272
+ # 注意:此字段可能返回 null,表示取不到有效值。
1273
+ # @type Codec: String
1274
+ # @param Fps: 帧率,单位:hz。
1275
+ # 注意:此字段可能返回 null,表示取不到有效值。
1276
+ # @type Fps: Integer
1277
+
1278
+ attr_accessor :Bitrate, :Height, :Width, :Codec, :Fps
1279
+
1280
+ def initialize(bitrate=nil, height=nil, width=nil, codec=nil, fps=nil)
1281
+ @Bitrate = bitrate
1282
+ @Height = height
1283
+ @Width = width
1284
+ @Codec = codec
1285
+ @Fps = fps
1286
+ end
1287
+
1288
+ def deserialize(params)
1289
+ @Bitrate = params['Bitrate']
1290
+ @Height = params['Height']
1291
+ @Width = params['Width']
1292
+ @Codec = params['Codec']
1293
+ @Fps = params['Fps']
1294
+ end
1295
+ end
1296
+
1297
+ end
1298
+ end
1299
+ end
1300
+