tencentcloud-sdk-ams 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,1503 @@
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 Ams
19
+ module V20200608
20
+ # 机器审核详情列表数据项
21
+ class AmsDetailInfo < TencentCloud::Common::AbstractModel
22
+ # @param Label: 标签
23
+ # @type Label: Array
24
+ # @param Duration: 时长(秒/s)
25
+ # @type Duration: Integer
26
+ # @param Name: 任务名
27
+ # @type Name: String
28
+ # @param TaskID: 任务ID,创建任务后返回的TaskId字段
29
+ # @type TaskID: String
30
+ # @param InsertTime: 插入时间
31
+ # @type InsertTime: String
32
+ # @param DataForm: 数据来源 0机审,其他为自主审核
33
+ # @type DataForm: Integer
34
+ # @param Operator: 操作人
35
+ # @type Operator: String
36
+ # @param OriginalLabel: 原始命中标签
37
+ # @type OriginalLabel: Array
38
+ # @param OperateTime: 操作时间
39
+ # @type OperateTime: String
40
+ # @param Url: 视频原始地址
41
+ # @type Url: String
42
+ # @param Thumbnail: 封面图地址
43
+ # @type Thumbnail: String
44
+ # @param Content: 短音频内容
45
+ # @type Content: String
46
+ # @param DetailCount: 短音频个数
47
+ # @type DetailCount: Integer
48
+ # @param RequestId: 音频审核的请求 id
49
+ # @type RequestId: String
50
+ # @param Status: 音频机审状态
51
+ # @type Status: String
52
+
53
+ attr_accessor :Label, :Duration, :Name, :TaskID, :InsertTime, :DataForm, :Operator, :OriginalLabel, :OperateTime, :Url, :Thumbnail, :Content, :DetailCount, :RequestId, :Status
54
+
55
+ def initialize(label=nil, duration=nil, name=nil, taskid=nil, inserttime=nil, dataform=nil, operator=nil, originallabel=nil, operatetime=nil, url=nil, thumbnail=nil, content=nil, detailcount=nil, requestid=nil, status=nil)
56
+ @Label = label
57
+ @Duration = duration
58
+ @Name = name
59
+ @TaskID = taskid
60
+ @InsertTime = inserttime
61
+ @DataForm = dataform
62
+ @Operator = operator
63
+ @OriginalLabel = originallabel
64
+ @OperateTime = operatetime
65
+ @Url = url
66
+ @Thumbnail = thumbnail
67
+ @Content = content
68
+ @DetailCount = detailcount
69
+ @RequestId = requestid
70
+ @Status = status
71
+ end
72
+
73
+ def deserialize(params)
74
+ @Label = params['Label']
75
+ @Duration = params['Duration']
76
+ @Name = params['Name']
77
+ @TaskID = params['TaskID']
78
+ @InsertTime = params['InsertTime']
79
+ @DataForm = params['DataForm']
80
+ @Operator = params['Operator']
81
+ @OriginalLabel = params['OriginalLabel']
82
+ @OperateTime = params['OperateTime']
83
+ @Url = params['Url']
84
+ @Thumbnail = params['Thumbnail']
85
+ @Content = params['Content']
86
+ @DetailCount = params['DetailCount']
87
+ @RequestId = params['RequestId']
88
+ @Status = params['Status']
89
+ end
90
+ end
91
+
92
+ # 音频输出参数
93
+ class AudioResult < TencentCloud::Common::AbstractModel
94
+ # @param HitFlag: 是否命中
95
+ # 0 未命中
96
+ # 1 命中
97
+ # 注意:此字段可能返回 null,表示取不到有效值。
98
+ # @type HitFlag: Integer
99
+ # @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
100
+ # 以及令人反感、不安全或不适宜的内容类型。
101
+ # 注意:此字段可能返回 null,表示取不到有效值。
102
+ # @type Label: String
103
+ # @param Suggestion: 建议您拿到判断结果后的执行操作。
104
+ # 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
105
+ # 注意:此字段可能返回 null,表示取不到有效值。
106
+ # @type Suggestion: String
107
+ # @param Score: 得分,0-100
108
+ # 注意:此字段可能返回 null,表示取不到有效值。
109
+ # @type Score: Integer
110
+ # @param Text: 音频ASR文本
111
+ # 注意:此字段可能返回 null,表示取不到有效值。
112
+ # @type Text: String
113
+ # @param Url: 音频片段存储URL,有效期为1天
114
+ # 注意:此字段可能返回 null,表示取不到有效值。
115
+ # @type Url: String
116
+ # @param Duration: 音频时长
117
+ # @type Duration: String
118
+ # @param Extra: 拓展字段
119
+ # @type Extra: String
120
+ # @param TextResults: 文本识别结果
121
+ # @type TextResults: Array
122
+ # @param MoanResults: 音频呻吟检测结果
123
+ # @type MoanResults: Array
124
+ # @param LanguageResults: 音频语言检测结果
125
+ # @type LanguageResults: Array
126
+
127
+ attr_accessor :HitFlag, :Label, :Suggestion, :Score, :Text, :Url, :Duration, :Extra, :TextResults, :MoanResults, :LanguageResults
128
+
129
+ def initialize(hitflag=nil, label=nil, suggestion=nil, score=nil, text=nil, url=nil, duration=nil, extra=nil, textresults=nil, moanresults=nil, languageresults=nil)
130
+ @HitFlag = hitflag
131
+ @Label = label
132
+ @Suggestion = suggestion
133
+ @Score = score
134
+ @Text = text
135
+ @Url = url
136
+ @Duration = duration
137
+ @Extra = extra
138
+ @TextResults = textresults
139
+ @MoanResults = moanresults
140
+ @LanguageResults = languageresults
141
+ end
142
+
143
+ def deserialize(params)
144
+ @HitFlag = params['HitFlag']
145
+ @Label = params['Label']
146
+ @Suggestion = params['Suggestion']
147
+ @Score = params['Score']
148
+ @Text = params['Text']
149
+ @Url = params['Url']
150
+ @Duration = params['Duration']
151
+ @Extra = params['Extra']
152
+ unless params['TextResults'].nil?
153
+ @TextResults = []
154
+ params['TextResults'].each do |i|
155
+ audioresultdetailtextresult_tmp = AudioResultDetailTextResult.new
156
+ audioresultdetailtextresult_tmp.deserialize(i)
157
+ @TextResults << audioresultdetailtextresult_tmp
158
+ end
159
+ end
160
+ unless params['MoanResults'].nil?
161
+ @MoanResults = []
162
+ params['MoanResults'].each do |i|
163
+ audioresultdetailmoanresult_tmp = AudioResultDetailMoanResult.new
164
+ audioresultdetailmoanresult_tmp.deserialize(i)
165
+ @MoanResults << audioresultdetailmoanresult_tmp
166
+ end
167
+ end
168
+ unless params['LanguageResults'].nil?
169
+ @LanguageResults = []
170
+ params['LanguageResults'].each do |i|
171
+ audioresultdetaillanguageresult_tmp = AudioResultDetailLanguageResult.new
172
+ audioresultdetaillanguageresult_tmp.deserialize(i)
173
+ @LanguageResults << audioresultdetaillanguageresult_tmp
174
+ end
175
+ end
176
+ end
177
+ end
178
+
179
+ # 音频小语种检测结果
180
+ class AudioResultDetailLanguageResult < TencentCloud::Common::AbstractModel
181
+ # @param Label: 语言信息
182
+ # 注意:此字段可能返回 null,表示取不到有效值。
183
+ # @type Label: String
184
+ # @param Score: 得分
185
+ # 注意:此字段可能返回 null,表示取不到有效值。
186
+ # @type Score: Integer
187
+ # @param StartTime: 开始时间
188
+ # 注意:此字段可能返回 null,表示取不到有效值。
189
+ # @type StartTime: Float
190
+ # @param EndTime: 结束时间
191
+ # 注意:此字段可能返回 null,表示取不到有效值。
192
+ # @type EndTime: Float
193
+ # @param SubLabelCode: 子标签码
194
+ # 注意:此字段可能返回 null,表示取不到有效值。
195
+ # @type SubLabelCode: String
196
+
197
+ attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode
198
+
199
+ def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil)
200
+ @Label = label
201
+ @Score = score
202
+ @StartTime = starttime
203
+ @EndTime = endtime
204
+ @SubLabelCode = sublabelcode
205
+ end
206
+
207
+ def deserialize(params)
208
+ @Label = params['Label']
209
+ @Score = params['Score']
210
+ @StartTime = params['StartTime']
211
+ @EndTime = params['EndTime']
212
+ @SubLabelCode = params['SubLabelCode']
213
+ end
214
+ end
215
+
216
+ # 音频呻吟审核结果
217
+ class AudioResultDetailMoanResult < TencentCloud::Common::AbstractModel
218
+ # @param Label: 固定为Moan(呻吟)
219
+ # 注意:此字段可能返回 null,表示取不到有效值。
220
+ # @type Label: String
221
+ # @param Score: 分数
222
+ # @type Score: Integer
223
+ # @param StartTime: 开始时间
224
+ # @type StartTime: Float
225
+ # @param EndTime: 结束时间
226
+ # @type EndTime: Float
227
+ # @param SubLabelCode: 子标签码
228
+ # @type SubLabelCode: String
229
+
230
+ attr_accessor :Label, :Score, :StartTime, :EndTime, :SubLabelCode
231
+
232
+ def initialize(label=nil, score=nil, starttime=nil, endtime=nil, sublabelcode=nil)
233
+ @Label = label
234
+ @Score = score
235
+ @StartTime = starttime
236
+ @EndTime = endtime
237
+ @SubLabelCode = sublabelcode
238
+ end
239
+
240
+ def deserialize(params)
241
+ @Label = params['Label']
242
+ @Score = params['Score']
243
+ @StartTime = params['StartTime']
244
+ @EndTime = params['EndTime']
245
+ @SubLabelCode = params['SubLabelCode']
246
+ end
247
+ end
248
+
249
+ # 音频ASR文本审核结果
250
+ class AudioResultDetailTextResult < TencentCloud::Common::AbstractModel
251
+ # @param Label: 标签
252
+ # 注意:此字段可能返回 null,表示取不到有效值。
253
+ # @type Label: String
254
+ # @param Keywords: 命中的关键词
255
+ # 注意:此字段可能返回 null,表示取不到有效值。
256
+ # @type Keywords: Array
257
+ # @param LibId: 命中的LibId
258
+ # 注意:此字段可能返回 null,表示取不到有效值。
259
+ # @type LibId: String
260
+ # @param LibName: 命中的LibName
261
+ # 注意:此字段可能返回 null,表示取不到有效值。
262
+ # @type LibName: String
263
+ # @param Score: 得分
264
+ # 注意:此字段可能返回 null,表示取不到有效值。
265
+ # @type Score: Integer
266
+ # @param Suggestion: 审核建议
267
+ # 注意:此字段可能返回 null,表示取不到有效值。
268
+ # @type Suggestion: String
269
+ # @param LibType: 词库类型 1 黑白库 2 自定义库
270
+ # @type LibType: Integer
271
+
272
+ attr_accessor :Label, :Keywords, :LibId, :LibName, :Score, :Suggestion, :LibType
273
+
274
+ def initialize(label=nil, keywords=nil, libid=nil, libname=nil, score=nil, suggestion=nil, libtype=nil)
275
+ @Label = label
276
+ @Keywords = keywords
277
+ @LibId = libid
278
+ @LibName = libname
279
+ @Score = score
280
+ @Suggestion = suggestion
281
+ @LibType = libtype
282
+ end
283
+
284
+ def deserialize(params)
285
+ @Label = params['Label']
286
+ @Keywords = params['Keywords']
287
+ @LibId = params['LibId']
288
+ @LibName = params['LibName']
289
+ @Score = params['Score']
290
+ @Suggestion = params['Suggestion']
291
+ @LibType = params['LibType']
292
+ end
293
+ end
294
+
295
+ # 声音段信息
296
+ class AudioSegments < TencentCloud::Common::AbstractModel
297
+ # @param OffsetTime: 截帧时间。
298
+ # 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
299
+ # 直播流:该值为时间戳,例如:1594650717
300
+ # 注意:此字段可能返回 null,表示取不到有效值。
301
+ # @type OffsetTime: String
302
+ # @param Result: 结果集
303
+ # 注意:此字段可能返回 null,表示取不到有效值。
304
+ # @type Result: :class:`Tencentcloud::Ams.v20200608.models.AudioResult`
305
+
306
+ attr_accessor :OffsetTime, :Result
307
+
308
+ def initialize(offsettime=nil, result=nil)
309
+ @OffsetTime = offsettime
310
+ @Result = result
311
+ end
312
+
313
+ def deserialize(params)
314
+ @OffsetTime = params['OffsetTime']
315
+ unless params['Result'].nil?
316
+ @Result = AudioResult.new
317
+ @Result.deserialize(params['Result'])
318
+ end
319
+ end
320
+ end
321
+
322
+ # 文件桶信息
323
+ # 参考腾讯云存储相关说明 https://cloud.tencent.com/document/product/436/44352
324
+ class BucketInfo < TencentCloud::Common::AbstractModel
325
+ # @param Bucket: 腾讯云对象存储,存储桶名称
326
+ # @type Bucket: String
327
+ # @param Region: 地域
328
+ # @type Region: String
329
+ # @param Object: 对象Key
330
+ # @type Object: String
331
+
332
+ attr_accessor :Bucket, :Region, :Object
333
+
334
+ def initialize(bucket=nil, region=nil, object=nil)
335
+ @Bucket = bucket
336
+ @Region = region
337
+ @Object = object
338
+ end
339
+
340
+ def deserialize(params)
341
+ @Bucket = params['Bucket']
342
+ @Region = params['Region']
343
+ @Object = params['Object']
344
+ end
345
+ end
346
+
347
+ # CancelTask请求参数结构体
348
+ class CancelTaskRequest < TencentCloud::Common::AbstractModel
349
+ # @param TaskId: 任务ID
350
+ # @type TaskId: String
351
+
352
+ attr_accessor :TaskId
353
+
354
+ def initialize(taskid=nil)
355
+ @TaskId = taskid
356
+ end
357
+
358
+ def deserialize(params)
359
+ @TaskId = params['TaskId']
360
+ end
361
+ end
362
+
363
+ # CancelTask返回参数结构体
364
+ class CancelTaskResponse < TencentCloud::Common::AbstractModel
365
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
366
+ # @type RequestId: String
367
+
368
+ attr_accessor :RequestId
369
+
370
+ def initialize(requestid=nil)
371
+ @RequestId = requestid
372
+ end
373
+
374
+ def deserialize(params)
375
+ @RequestId = params['RequestId']
376
+ end
377
+ end
378
+
379
+ # CreateAudioModerationTask请求参数结构体
380
+ class CreateAudioModerationTaskRequest < TencentCloud::Common::AbstractModel
381
+ # @param BizType: 业务类型, 定义 模版策略,输出存储配置。如果没有BizType,可以先参考 【创建业务配置】接口进行创建
382
+ # @type BizType: String
383
+ # @param Type: 审核类型,这里可选:AUDIO (点播音频)和 LIVE_AUDIO(直播音频)
384
+ # @type Type: String
385
+ # @param Seed: 回调签名key,具体可以查看签名文档。
386
+ # @type Seed: String
387
+ # @param CallbackUrl: 接收审核信息回调地址,如果设置,则审核过程中产生的违规音频片段和画面截帧发送此接口
388
+ # @type CallbackUrl: String
389
+ # @param Tasks: 输入的任务信息,最多可以同时创建10个任务
390
+ # @type Tasks: Array
391
+
392
+ attr_accessor :BizType, :Type, :Seed, :CallbackUrl, :Tasks
393
+
394
+ def initialize(biztype=nil, type=nil, seed=nil, callbackurl=nil, tasks=nil)
395
+ @BizType = biztype
396
+ @Type = type
397
+ @Seed = seed
398
+ @CallbackUrl = callbackurl
399
+ @Tasks = tasks
400
+ end
401
+
402
+ def deserialize(params)
403
+ @BizType = params['BizType']
404
+ @Type = params['Type']
405
+ @Seed = params['Seed']
406
+ @CallbackUrl = params['CallbackUrl']
407
+ unless params['Tasks'].nil?
408
+ @Tasks = []
409
+ params['Tasks'].each do |i|
410
+ taskinput_tmp = TaskInput.new
411
+ taskinput_tmp.deserialize(i)
412
+ @Tasks << taskinput_tmp
413
+ end
414
+ end
415
+ end
416
+ end
417
+
418
+ # CreateAudioModerationTask返回参数结构体
419
+ class CreateAudioModerationTaskResponse < TencentCloud::Common::AbstractModel
420
+ # @param Results: 任务创建结果
421
+ # 注意:此字段可能返回 null,表示取不到有效值。
422
+ # @type Results: Array
423
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
424
+ # @type RequestId: String
425
+
426
+ attr_accessor :Results, :RequestId
427
+
428
+ def initialize(results=nil, requestid=nil)
429
+ @Results = results
430
+ @RequestId = requestid
431
+ end
432
+
433
+ def deserialize(params)
434
+ unless params['Results'].nil?
435
+ @Results = []
436
+ params['Results'].each do |i|
437
+ taskresult_tmp = TaskResult.new
438
+ taskresult_tmp.deserialize(i)
439
+ @Results << taskresult_tmp
440
+ end
441
+ end
442
+ @RequestId = params['RequestId']
443
+ end
444
+ end
445
+
446
+ # CreateBizConfig请求参数结构体
447
+ class CreateBizConfigRequest < TencentCloud::Common::AbstractModel
448
+ # @param BizType: 业务类型,仅限英文字母、数字和下划线(_)组成,长度不超过8位
449
+ # @type BizType: String
450
+ # @param MediaModeration: 配置信息,
451
+ # @type MediaModeration: :class:`Tencentcloud::Ams.v20200608.models.MediaModerationConfig`
452
+ # @param BizName: 业务名称,用于标识业务场景,长度不超过32位
453
+ # @type BizName: String
454
+ # @param ModerationCategories: 审核内容,可选:Polity (政治); Porn (色情); Illegal(违法);Abuse (谩骂); Terror (暴恐); Ad (广告);
455
+ # @type ModerationCategories: Array
456
+
457
+ attr_accessor :BizType, :MediaModeration, :BizName, :ModerationCategories
458
+
459
+ def initialize(biztype=nil, mediamoderation=nil, bizname=nil, moderationcategories=nil)
460
+ @BizType = biztype
461
+ @MediaModeration = mediamoderation
462
+ @BizName = bizname
463
+ @ModerationCategories = moderationcategories
464
+ end
465
+
466
+ def deserialize(params)
467
+ @BizType = params['BizType']
468
+ unless params['MediaModeration'].nil?
469
+ @MediaModeration = MediaModerationConfig.new
470
+ @MediaModeration.deserialize(params['MediaModeration'])
471
+ end
472
+ @BizName = params['BizName']
473
+ @ModerationCategories = params['ModerationCategories']
474
+ end
475
+ end
476
+
477
+ # CreateBizConfig返回参数结构体
478
+ class CreateBizConfigResponse < TencentCloud::Common::AbstractModel
479
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
480
+ # @type RequestId: String
481
+
482
+ attr_accessor :RequestId
483
+
484
+ def initialize(requestid=nil)
485
+ @RequestId = requestid
486
+ end
487
+
488
+ def deserialize(params)
489
+ @RequestId = params['RequestId']
490
+ end
491
+ end
492
+
493
+ # DescribeAmsList请求参数结构体
494
+ class DescribeAmsListRequest < TencentCloud::Common::AbstractModel
495
+ # @param PageToken: 页码
496
+ # @type PageToken: String
497
+ # @param Limit: 过滤条件
498
+ # @type Limit: Integer
499
+ # @param PageDirection: 查询方向
500
+ # @type PageDirection: String
501
+ # @param Filters: 过滤条件
502
+ # @type Filters: Array
503
+
504
+ attr_accessor :PageToken, :Limit, :PageDirection, :Filters
505
+
506
+ def initialize(pagetoken=nil, limit=nil, pagedirection=nil, filters=nil)
507
+ @PageToken = pagetoken
508
+ @Limit = limit
509
+ @PageDirection = pagedirection
510
+ @Filters = filters
511
+ end
512
+
513
+ def deserialize(params)
514
+ @PageToken = params['PageToken']
515
+ @Limit = params['Limit']
516
+ @PageDirection = params['PageDirection']
517
+ unless params['Filters'].nil?
518
+ @Filters = []
519
+ params['Filters'].each do |i|
520
+ filter_tmp = Filter.new
521
+ filter_tmp.deserialize(i)
522
+ @Filters << filter_tmp
523
+ end
524
+ end
525
+ end
526
+ end
527
+
528
+ # DescribeAmsList返回参数结构体
529
+ class DescribeAmsListResponse < TencentCloud::Common::AbstractModel
530
+ # @param AmsDetailSet: 返回列表数据----非必选,该参数暂未对外开放
531
+ # @type AmsDetailSet: Array
532
+ # @param Total: 总条数
533
+ # @type Total: Integer
534
+ # @param PageToken: 分页 token
535
+ # @type PageToken: String
536
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
537
+ # @type RequestId: String
538
+
539
+ attr_accessor :AmsDetailSet, :Total, :PageToken, :RequestId
540
+
541
+ def initialize(amsdetailset=nil, total=nil, pagetoken=nil, requestid=nil)
542
+ @AmsDetailSet = amsdetailset
543
+ @Total = total
544
+ @PageToken = pagetoken
545
+ @RequestId = requestid
546
+ end
547
+
548
+ def deserialize(params)
549
+ unless params['AmsDetailSet'].nil?
550
+ @AmsDetailSet = []
551
+ params['AmsDetailSet'].each do |i|
552
+ amsdetailinfo_tmp = AmsDetailInfo.new
553
+ amsdetailinfo_tmp.deserialize(i)
554
+ @AmsDetailSet << amsdetailinfo_tmp
555
+ end
556
+ end
557
+ @Total = params['Total']
558
+ @PageToken = params['PageToken']
559
+ @RequestId = params['RequestId']
560
+ end
561
+ end
562
+
563
+ # DescribeAudioStat请求参数结构体
564
+ class DescribeAudioStatRequest < TencentCloud::Common::AbstractModel
565
+ # @param AuditType: 审核类型 1: 机器审核; 2: 人工审核
566
+ # @type AuditType: Integer
567
+ # @param Filters: 查询条件
568
+ # @type Filters: Array
569
+
570
+ attr_accessor :AuditType, :Filters
571
+
572
+ def initialize(audittype=nil, filters=nil)
573
+ @AuditType = audittype
574
+ @Filters = filters
575
+ end
576
+
577
+ def deserialize(params)
578
+ @AuditType = params['AuditType']
579
+ unless params['Filters'].nil?
580
+ @Filters = []
581
+ params['Filters'].each do |i|
582
+ filters_tmp = Filters.new
583
+ filters_tmp.deserialize(i)
584
+ @Filters << filters_tmp
585
+ end
586
+ end
587
+ end
588
+ end
589
+
590
+ # DescribeAudioStat返回参数结构体
591
+ class DescribeAudioStatResponse < TencentCloud::Common::AbstractModel
592
+ # @param Overview: 识别结果统计
593
+ # @type Overview: :class:`Tencentcloud::Ams.v20200608.models.Overview`
594
+ # @param TrendCount: 识别量统计
595
+ # @type TrendCount: Array
596
+ # @param EvilCount: 违规数据分布
597
+ # @type EvilCount: Array
598
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
599
+ # @type RequestId: String
600
+
601
+ attr_accessor :Overview, :TrendCount, :EvilCount, :RequestId
602
+
603
+ def initialize(overview=nil, trendcount=nil, evilcount=nil, requestid=nil)
604
+ @Overview = overview
605
+ @TrendCount = trendcount
606
+ @EvilCount = evilcount
607
+ @RequestId = requestid
608
+ end
609
+
610
+ def deserialize(params)
611
+ unless params['Overview'].nil?
612
+ @Overview = Overview.new
613
+ @Overview.deserialize(params['Overview'])
614
+ end
615
+ unless params['TrendCount'].nil?
616
+ @TrendCount = []
617
+ params['TrendCount'].each do |i|
618
+ trendcount_tmp = TrendCount.new
619
+ trendcount_tmp.deserialize(i)
620
+ @TrendCount << trendcount_tmp
621
+ end
622
+ end
623
+ unless params['EvilCount'].nil?
624
+ @EvilCount = []
625
+ params['EvilCount'].each do |i|
626
+ evilcount_tmp = EvilCount.new
627
+ evilcount_tmp.deserialize(i)
628
+ @EvilCount << evilcount_tmp
629
+ end
630
+ end
631
+ @RequestId = params['RequestId']
632
+ end
633
+ end
634
+
635
+ # DescribeBizConfig请求参数结构体
636
+ class DescribeBizConfigRequest < TencentCloud::Common::AbstractModel
637
+ # @param BizType: 审核业务类类型
638
+ # @type BizType: String
639
+
640
+ attr_accessor :BizType
641
+
642
+ def initialize(biztype=nil)
643
+ @BizType = biztype
644
+ end
645
+
646
+ def deserialize(params)
647
+ @BizType = params['BizType']
648
+ end
649
+ end
650
+
651
+ # DescribeBizConfig返回参数结构体
652
+ class DescribeBizConfigResponse < TencentCloud::Common::AbstractModel
653
+ # @param BizType: 业务类型
654
+ # @type BizType: String
655
+ # @param BizName: 业务名称
656
+ # 注意:此字段可能返回 null,表示取不到有效值。
657
+ # @type BizName: String
658
+ # @param ModerationCategories: 审核范围
659
+ # @type ModerationCategories: Array
660
+ # @param MediaModeration: 多媒体审核配置
661
+ # 注意:此字段可能返回 null,表示取不到有效值。
662
+ # @type MediaModeration: :class:`Tencentcloud::Ams.v20200608.models.MediaModerationConfig`
663
+ # @param CreatedAt: 创建时间
664
+ # @type CreatedAt: String
665
+ # @param UpdatedAt: 更新时间
666
+ # @type UpdatedAt: String
667
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
668
+ # @type RequestId: String
669
+
670
+ attr_accessor :BizType, :BizName, :ModerationCategories, :MediaModeration, :CreatedAt, :UpdatedAt, :RequestId
671
+
672
+ def initialize(biztype=nil, bizname=nil, moderationcategories=nil, mediamoderation=nil, createdat=nil, updatedat=nil, requestid=nil)
673
+ @BizType = biztype
674
+ @BizName = bizname
675
+ @ModerationCategories = moderationcategories
676
+ @MediaModeration = mediamoderation
677
+ @CreatedAt = createdat
678
+ @UpdatedAt = updatedat
679
+ @RequestId = requestid
680
+ end
681
+
682
+ def deserialize(params)
683
+ @BizType = params['BizType']
684
+ @BizName = params['BizName']
685
+ @ModerationCategories = params['ModerationCategories']
686
+ unless params['MediaModeration'].nil?
687
+ @MediaModeration = MediaModerationConfig.new
688
+ @MediaModeration.deserialize(params['MediaModeration'])
689
+ end
690
+ @CreatedAt = params['CreatedAt']
691
+ @UpdatedAt = params['UpdatedAt']
692
+ @RequestId = params['RequestId']
693
+ end
694
+ end
695
+
696
+ # DescribeTaskDetail请求参数结构体
697
+ class DescribeTaskDetailRequest < TencentCloud::Common::AbstractModel
698
+ # @param TaskId: 任务ID,创建任务后返回的TaskId字段
699
+ # @type TaskId: String
700
+ # @param ShowAllSegments: 是否展示所有分片,默认只展示命中规则的分片
701
+ # @type ShowAllSegments: Boolean
702
+
703
+ attr_accessor :TaskId, :ShowAllSegments
704
+
705
+ def initialize(taskid=nil, showallsegments=nil)
706
+ @TaskId = taskid
707
+ @ShowAllSegments = showallsegments
708
+ end
709
+
710
+ def deserialize(params)
711
+ @TaskId = params['TaskId']
712
+ @ShowAllSegments = params['ShowAllSegments']
713
+ end
714
+ end
715
+
716
+ # DescribeTaskDetail返回参数结构体
717
+ class DescribeTaskDetailResponse < TencentCloud::Common::AbstractModel
718
+ # @param TaskId: 任务ID
719
+ # 注意:此字段可能返回 null,表示取不到有效值。
720
+ # @type TaskId: String
721
+ # @param DataId: 审核时传入的数据Id
722
+ # 注意:此字段可能返回 null,表示取不到有效值。
723
+ # @type DataId: String
724
+ # @param BizType: 业务类型,用于调用识别策略模板;
725
+ # (暂未发布功能,敬请期待)
726
+ # 注意:此字段可能返回 null,表示取不到有效值。
727
+ # @type BizType: String
728
+ # @param Name: 任务名称
729
+ # 注意:此字段可能返回 null,表示取不到有效值。
730
+ # @type Name: String
731
+ # @param Status: 查询内容审核任务的状态,可选值:
732
+ # FINISH 已完成
733
+ # PENDING 等待中
734
+ # RUNNING 进行中
735
+ # ERROR 出错
736
+ # CANCELLED 已取消
737
+ # 注意:此字段可能返回 null,表示取不到有效值。
738
+ # @type Status: String
739
+ # @param Type: 任务类型:可选AUDIO(点播音频),LIVE_AUDIO(直播音频)
740
+ # 注意:此字段可能返回 null,表示取不到有效值。
741
+ # @type Type: String
742
+ # @param Suggestion: 智能审核服务对于内容违规类型的等级,可选值:
743
+ # Pass 建议通过;
744
+ # Reveiw 建议复审;
745
+ # Block 建议屏蔽;
746
+ # 注意:此字段可能返回 null,表示取不到有效值。
747
+ # @type Suggestion: String
748
+ # @param Labels: 智能审核服务对于内容违规类型的判断,详见返回值列表
749
+ # 如:Label:Porn(色情);
750
+ # 注意:此字段可能返回 null,表示取不到有效值。
751
+ # @type Labels: Array
752
+ # @param MediaInfo: 传入媒体的解码信息
753
+ # 注意:此字段可能返回 null,表示取不到有效值。
754
+ # @type MediaInfo: :class:`Tencentcloud::Ams.v20200608.models.MediaInfo`
755
+ # @param InputInfo: 审核任务的信息
756
+ # 注意:此字段可能返回 null,表示取不到有效值。
757
+ # @type InputInfo: :class:`Tencentcloud::Ams.v20200608.models.InputInfo`
758
+ # @param CreatedAt: 审核任务的创建时间
759
+ # 注意:此字段可能返回 null,表示取不到有效值。
760
+ # @type CreatedAt: String
761
+ # @param UpdatedAt: 审核任务的更新时间
762
+ # 注意:此字段可能返回 null,表示取不到有效值。
763
+ # @type UpdatedAt: String
764
+ # @param TryInSeconds: 在N秒后重试
765
+ # 注意:此字段可能返回 null,表示取不到有效值。
766
+ # @type TryInSeconds: Integer
767
+ # @param AudioSegments: 视频/音频审核中的音频结果
768
+ # 注意:此字段可能返回 null,表示取不到有效值。
769
+ # @type AudioSegments: Array
770
+ # @param ImageSegments: 视频审核中的图片结果
771
+ # 注意:此字段可能返回 null,表示取不到有效值。
772
+ # @type ImageSegments: Array
773
+ # @param AudioText: 音频识别总文本
774
+ # 注意:此字段可能返回 null,表示取不到有效值。
775
+ # @type AudioText: String
776
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
777
+ # @type RequestId: String
778
+
779
+ attr_accessor :TaskId, :DataId, :BizType, :Name, :Status, :Type, :Suggestion, :Labels, :MediaInfo, :InputInfo, :CreatedAt, :UpdatedAt, :TryInSeconds, :AudioSegments, :ImageSegments, :AudioText, :RequestId
780
+
781
+ def initialize(taskid=nil, dataid=nil, biztype=nil, name=nil, status=nil, type=nil, suggestion=nil, labels=nil, mediainfo=nil, inputinfo=nil, createdat=nil, updatedat=nil, tryinseconds=nil, audiosegments=nil, imagesegments=nil, audiotext=nil, requestid=nil)
782
+ @TaskId = taskid
783
+ @DataId = dataid
784
+ @BizType = biztype
785
+ @Name = name
786
+ @Status = status
787
+ @Type = type
788
+ @Suggestion = suggestion
789
+ @Labels = labels
790
+ @MediaInfo = mediainfo
791
+ @InputInfo = inputinfo
792
+ @CreatedAt = createdat
793
+ @UpdatedAt = updatedat
794
+ @TryInSeconds = tryinseconds
795
+ @AudioSegments = audiosegments
796
+ @ImageSegments = imagesegments
797
+ @AudioText = audiotext
798
+ @RequestId = requestid
799
+ end
800
+
801
+ def deserialize(params)
802
+ @TaskId = params['TaskId']
803
+ @DataId = params['DataId']
804
+ @BizType = params['BizType']
805
+ @Name = params['Name']
806
+ @Status = params['Status']
807
+ @Type = params['Type']
808
+ @Suggestion = params['Suggestion']
809
+ unless params['Labels'].nil?
810
+ @Labels = []
811
+ params['Labels'].each do |i|
812
+ tasklabel_tmp = TaskLabel.new
813
+ tasklabel_tmp.deserialize(i)
814
+ @Labels << tasklabel_tmp
815
+ end
816
+ end
817
+ unless params['MediaInfo'].nil?
818
+ @MediaInfo = MediaInfo.new
819
+ @MediaInfo.deserialize(params['MediaInfo'])
820
+ end
821
+ unless params['InputInfo'].nil?
822
+ @InputInfo = InputInfo.new
823
+ @InputInfo.deserialize(params['InputInfo'])
824
+ end
825
+ @CreatedAt = params['CreatedAt']
826
+ @UpdatedAt = params['UpdatedAt']
827
+ @TryInSeconds = params['TryInSeconds']
828
+ unless params['AudioSegments'].nil?
829
+ @AudioSegments = []
830
+ params['AudioSegments'].each do |i|
831
+ audiosegments_tmp = AudioSegments.new
832
+ audiosegments_tmp.deserialize(i)
833
+ @AudioSegments << audiosegments_tmp
834
+ end
835
+ end
836
+ unless params['ImageSegments'].nil?
837
+ @ImageSegments = []
838
+ params['ImageSegments'].each do |i|
839
+ imagesegments_tmp = ImageSegments.new
840
+ imagesegments_tmp.deserialize(i)
841
+ @ImageSegments << imagesegments_tmp
842
+ end
843
+ end
844
+ @AudioText = params['AudioText']
845
+ @RequestId = params['RequestId']
846
+ end
847
+ end
848
+
849
+ # 违规数据分布
850
+ class EvilCount < TencentCloud::Common::AbstractModel
851
+ # @param EvilType: ----非必选,该参数功能暂未对外开放
852
+ # @type EvilType: String
853
+ # @param Count: 分布类型总量
854
+ # @type Count: Integer
855
+
856
+ attr_accessor :EvilType, :Count
857
+
858
+ def initialize(eviltype=nil, count=nil)
859
+ @EvilType = eviltype
860
+ @Count = count
861
+ end
862
+
863
+ def deserialize(params)
864
+ @EvilType = params['EvilType']
865
+ @Count = params['Count']
866
+ end
867
+ end
868
+
869
+ # Cos FileOutput
870
+ class FileOutput < TencentCloud::Common::AbstractModel
871
+ # @param Bucket: 存储的Bucket
872
+ # @type Bucket: String
873
+ # @param Region: Cos Region
874
+ # @type Region: String
875
+ # @param ObjectPrefix: 对象前缀
876
+ # @type ObjectPrefix: String
877
+
878
+ attr_accessor :Bucket, :Region, :ObjectPrefix
879
+
880
+ def initialize(bucket=nil, region=nil, objectprefix=nil)
881
+ @Bucket = bucket
882
+ @Region = region
883
+ @ObjectPrefix = objectprefix
884
+ end
885
+
886
+ def deserialize(params)
887
+ @Bucket = params['Bucket']
888
+ @Region = params['Region']
889
+ @ObjectPrefix = params['ObjectPrefix']
890
+ end
891
+ end
892
+
893
+ # 描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等
894
+ class Filter < TencentCloud::Common::AbstractModel
895
+ # @param Name: 过滤键的名称。
896
+ # @type Name: String
897
+ # @param Values: 一个或者多个过滤值。
898
+ # @type Values: Array
899
+
900
+ attr_accessor :Name, :Values
901
+
902
+ def initialize(name=nil, values=nil)
903
+ @Name = name
904
+ @Values = values
905
+ end
906
+
907
+ def deserialize(params)
908
+ @Name = params['Name']
909
+ @Values = params['Values']
910
+ end
911
+ end
912
+
913
+ # 音频过滤条件
914
+ class Filters < TencentCloud::Common::AbstractModel
915
+ # @param Name: 查询字段:
916
+ # 策略BizType
917
+ # 子账号SubUin
918
+ # 日期区间DateRange
919
+ # @type Name: String
920
+ # @param Values: 查询值
921
+ # @type Values: Array
922
+
923
+ attr_accessor :Name, :Values
924
+
925
+ def initialize(name=nil, values=nil)
926
+ @Name = name
927
+ @Values = values
928
+ end
929
+
930
+ def deserialize(params)
931
+ @Name = params['Name']
932
+ @Values = params['Values']
933
+ end
934
+ end
935
+
936
+ # Result结果详情
937
+ class ImageResult < TencentCloud::Common::AbstractModel
938
+ # @param HitFlag: 违规标志
939
+ # 0 未命中
940
+ # 1 命中
941
+ # 注意:此字段可能返回 null,表示取不到有效值。
942
+ # @type HitFlag: Integer
943
+ # @param Suggestion: 建议您拿到判断结果后的执行操作。
944
+ # 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
945
+ # @type Suggestion: String
946
+ # @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
947
+ # 以及令人反感、不安全或不适宜的内容类型。
948
+ # 注意:此字段可能返回 null,表示取不到有效值。
949
+ # @type Label: String
950
+ # @param Score: 得分
951
+ # @type Score: Integer
952
+ # @param Results: 画面截帧图片结果集
953
+ # @type Results: Array
954
+ # @param Url: 图片URL地址
955
+ # @type Url: String
956
+ # @param Extra: 附加字段
957
+ # @type Extra: String
958
+
959
+ attr_accessor :HitFlag, :Suggestion, :Label, :Score, :Results, :Url, :Extra
960
+
961
+ def initialize(hitflag=nil, suggestion=nil, label=nil, score=nil, results=nil, url=nil, extra=nil)
962
+ @HitFlag = hitflag
963
+ @Suggestion = suggestion
964
+ @Label = label
965
+ @Score = score
966
+ @Results = results
967
+ @Url = url
968
+ @Extra = extra
969
+ end
970
+
971
+ def deserialize(params)
972
+ @HitFlag = params['HitFlag']
973
+ @Suggestion = params['Suggestion']
974
+ @Label = params['Label']
975
+ @Score = params['Score']
976
+ unless params['Results'].nil?
977
+ @Results = []
978
+ params['Results'].each do |i|
979
+ imageresultresult_tmp = ImageResultResult.new
980
+ imageresultresult_tmp.deserialize(i)
981
+ @Results << imageresultresult_tmp
982
+ end
983
+ end
984
+ @Url = params['Url']
985
+ @Extra = params['Extra']
986
+ end
987
+ end
988
+
989
+ # 图片输出结果的子结果
990
+ class ImageResultResult < TencentCloud::Common::AbstractModel
991
+ # @param Scene: 场景
992
+ # Porn 色情
993
+ # Sexy 性感
994
+ # Abuse 谩骂
995
+ # Ad 广告
996
+ # 等多个识别场景
997
+ # 注意:此字段可能返回 null,表示取不到有效值。
998
+ # @type Scene: String
999
+ # @param HitFlag: 是否命中
1000
+ # 0 未命中
1001
+ # 1 命中
1002
+ # 注意:此字段可能返回 null,表示取不到有效值。
1003
+ # @type HitFlag: Integer
1004
+ # @param Suggestion: 建议您拿到判断结果后的执行操作。
1005
+ # 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
1006
+ # 注意:此字段可能返回 null,表示取不到有效值。
1007
+ # @type Suggestion: String
1008
+ # @param Label: 标签
1009
+ # 注意:此字段可能返回 null,表示取不到有效值。
1010
+ # @type Label: String
1011
+ # @param SubLabel: 子标签
1012
+ # 注意:此字段可能返回 null,表示取不到有效值。
1013
+ # @type SubLabel: String
1014
+ # @param Score: 分数
1015
+ # 注意:此字段可能返回 null,表示取不到有效值。
1016
+ # @type Score: Integer
1017
+ # @param Names: 如果命中场景为涉政,则该数据为人物姓名列表,否则null
1018
+ # @type Names: Array
1019
+ # @param Text: 图片OCR文本
1020
+ # 注意:此字段可能返回 null,表示取不到有效值。
1021
+ # @type Text: String
1022
+ # @param Details: 其他详情
1023
+ # @type Details: Array
1024
+
1025
+ attr_accessor :Scene, :HitFlag, :Suggestion, :Label, :SubLabel, :Score, :Names, :Text, :Details
1026
+
1027
+ def initialize(scene=nil, hitflag=nil, suggestion=nil, label=nil, sublabel=nil, score=nil, names=nil, text=nil, details=nil)
1028
+ @Scene = scene
1029
+ @HitFlag = hitflag
1030
+ @Suggestion = suggestion
1031
+ @Label = label
1032
+ @SubLabel = sublabel
1033
+ @Score = score
1034
+ @Names = names
1035
+ @Text = text
1036
+ @Details = details
1037
+ end
1038
+
1039
+ def deserialize(params)
1040
+ @Scene = params['Scene']
1041
+ @HitFlag = params['HitFlag']
1042
+ @Suggestion = params['Suggestion']
1043
+ @Label = params['Label']
1044
+ @SubLabel = params['SubLabel']
1045
+ @Score = params['Score']
1046
+ @Names = params['Names']
1047
+ @Text = params['Text']
1048
+ unless params['Details'].nil?
1049
+ @Details = []
1050
+ params['Details'].each do |i|
1051
+ imageresultsresultdetail_tmp = ImageResultsResultDetail.new
1052
+ imageresultsresultdetail_tmp.deserialize(i)
1053
+ @Details << imageresultsresultdetail_tmp
1054
+ end
1055
+ end
1056
+ end
1057
+ end
1058
+
1059
+ # 具体场景下的图片识别结果
1060
+ class ImageResultsResultDetail < TencentCloud::Common::AbstractModel
1061
+ # @param Location: 位置信息
1062
+ # 注意:此字段可能返回 null,表示取不到有效值。
1063
+ # @type Location: Array
1064
+ # @param Name: 任务名称
1065
+ # 注意:此字段可能返回 null,表示取不到有效值。
1066
+ # @type Name: String
1067
+ # @param Text: OCR识别文本
1068
+ # 注意:此字段可能返回 null,表示取不到有效值。
1069
+ # @type Text: String
1070
+ # @param Label: 标签
1071
+ # @type Label: String
1072
+ # @param LibId: 库ID
1073
+ # 注意:此字段可能返回 null,表示取不到有效值。
1074
+ # @type LibId: String
1075
+ # @param LibName: 库名称
1076
+ # 注意:此字段可能返回 null,表示取不到有效值。
1077
+ # @type LibName: String
1078
+ # @param Keywords: 命中的关键词
1079
+ # 注意:此字段可能返回 null,表示取不到有效值。
1080
+ # @type Keywords: Array
1081
+ # @param Suggestion: 建议
1082
+ # 注意:此字段可能返回 null,表示取不到有效值。
1083
+ # @type Suggestion: String
1084
+ # @param Score: 得分
1085
+ # 注意:此字段可能返回 null,表示取不到有效值。
1086
+ # @type Score: Integer
1087
+ # @param SubLabelCode: 子标签码
1088
+ # 注意:此字段可能返回 null,表示取不到有效值。
1089
+ # @type SubLabelCode: String
1090
+
1091
+ attr_accessor :Location, :Name, :Text, :Label, :LibId, :LibName, :Keywords, :Suggestion, :Score, :SubLabelCode
1092
+
1093
+ def initialize(location=nil, name=nil, text=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil)
1094
+ @Location = location
1095
+ @Name = name
1096
+ @Text = text
1097
+ @Label = label
1098
+ @LibId = libid
1099
+ @LibName = libname
1100
+ @Keywords = keywords
1101
+ @Suggestion = suggestion
1102
+ @Score = score
1103
+ @SubLabelCode = sublabelcode
1104
+ end
1105
+
1106
+ def deserialize(params)
1107
+ unless params['Location'].nil?
1108
+ @Location = []
1109
+ params['Location'].each do |i|
1110
+ imageresultsresultdetaillocation_tmp = ImageResultsResultDetailLocation.new
1111
+ imageresultsresultdetaillocation_tmp.deserialize(i)
1112
+ @Location << imageresultsresultdetaillocation_tmp
1113
+ end
1114
+ end
1115
+ @Name = params['Name']
1116
+ @Text = params['Text']
1117
+ @Label = params['Label']
1118
+ @LibId = params['LibId']
1119
+ @LibName = params['LibName']
1120
+ @Keywords = params['Keywords']
1121
+ @Suggestion = params['Suggestion']
1122
+ @Score = params['Score']
1123
+ @SubLabelCode = params['SubLabelCode']
1124
+ end
1125
+ end
1126
+
1127
+ # 图片详情位置信息
1128
+ class ImageResultsResultDetailLocation < TencentCloud::Common::AbstractModel
1129
+ # @param X: x坐标
1130
+ # 注意:此字段可能返回 null,表示取不到有效值。
1131
+ # @type X: Float
1132
+ # @param Y: y坐标
1133
+ # 注意:此字段可能返回 null,表示取不到有效值。
1134
+ # @type Y: Float
1135
+ # @param Width: 宽度
1136
+ # 注意:此字段可能返回 null,表示取不到有效值。
1137
+ # @type Width: Integer
1138
+ # @param Height: 高度
1139
+ # 注意:此字段可能返回 null,表示取不到有效值。
1140
+ # @type Height: Integer
1141
+ # @param Rotate: 旋转角度
1142
+ # 注意:此字段可能返回 null,表示取不到有效值。
1143
+ # @type Rotate: Float
1144
+
1145
+ attr_accessor :X, :Y, :Width, :Height, :Rotate
1146
+
1147
+ def initialize(x=nil, y=nil, width=nil, height=nil, rotate=nil)
1148
+ @X = x
1149
+ @Y = y
1150
+ @Width = width
1151
+ @Height = height
1152
+ @Rotate = rotate
1153
+ end
1154
+
1155
+ def deserialize(params)
1156
+ @X = params['X']
1157
+ @Y = params['Y']
1158
+ @Width = params['Width']
1159
+ @Height = params['Height']
1160
+ @Rotate = params['Rotate']
1161
+ end
1162
+ end
1163
+
1164
+ # 图片段信息
1165
+ class ImageSegments < TencentCloud::Common::AbstractModel
1166
+ # @param Result: 画面截帧结果详情
1167
+ # @type Result: :class:`Tencentcloud::Ams.v20200608.models.ImageResult`
1168
+ # @param OffsetTime: 截帧时间。
1169
+ # 点播文件:该值为相对于视频偏移时间,单位为秒,例如:0,5,10
1170
+ # 直播流:该值为时间戳,例如:1594650717
1171
+ # @type OffsetTime: String
1172
+
1173
+ attr_accessor :Result, :OffsetTime
1174
+
1175
+ def initialize(result=nil, offsettime=nil)
1176
+ @Result = result
1177
+ @OffsetTime = offsettime
1178
+ end
1179
+
1180
+ def deserialize(params)
1181
+ unless params['Result'].nil?
1182
+ @Result = ImageResult.new
1183
+ @Result.deserialize(params['Result'])
1184
+ end
1185
+ @OffsetTime = params['OffsetTime']
1186
+ end
1187
+ end
1188
+
1189
+ # 输入信息详情
1190
+ class InputInfo < TencentCloud::Common::AbstractModel
1191
+ # @param Type: 传入的类型可选:URL,COS
1192
+ # 注意:此字段可能返回 null,表示取不到有效值。
1193
+ # @type Type: String
1194
+ # @param Url: Url地址
1195
+ # 注意:此字段可能返回 null,表示取不到有效值。
1196
+ # @type Url: String
1197
+ # @param BucketInfo: 桶信息。当输入当时COS时,该字段不为空
1198
+ # 注意:此字段可能返回 null,表示取不到有效值。
1199
+ # @type BucketInfo: :class:`Tencentcloud::Ams.v20200608.models.BucketInfo`
1200
+
1201
+ attr_accessor :Type, :Url, :BucketInfo
1202
+
1203
+ def initialize(type=nil, url=nil, bucketinfo=nil)
1204
+ @Type = type
1205
+ @Url = url
1206
+ @BucketInfo = bucketinfo
1207
+ end
1208
+
1209
+ def deserialize(params)
1210
+ @Type = params['Type']
1211
+ @Url = params['Url']
1212
+ unless params['BucketInfo'].nil?
1213
+ @BucketInfo = BucketInfo.new
1214
+ @BucketInfo.deserialize(params['BucketInfo'])
1215
+ end
1216
+ end
1217
+ end
1218
+
1219
+ # 媒体类型
1220
+ class MediaInfo < TencentCloud::Common::AbstractModel
1221
+ # @param Codecs: 编码格式
1222
+ # @type Codecs: String
1223
+ # @param Duration: 流检测时分片时长
1224
+ # 注意:此字段可能返回 0,表示取不到有效值。
1225
+ # @type Duration: Integer
1226
+ # @param Width: 宽,单位为像素
1227
+ # @type Width: Integer
1228
+ # @param Height: 高,单位为像素
1229
+ # @type Height: Integer
1230
+ # @param Thumbnail: 缩略图
1231
+ # @type Thumbnail: String
1232
+
1233
+ attr_accessor :Codecs, :Duration, :Width, :Height, :Thumbnail
1234
+
1235
+ def initialize(codecs=nil, duration=nil, width=nil, height=nil, thumbnail=nil)
1236
+ @Codecs = codecs
1237
+ @Duration = duration
1238
+ @Width = width
1239
+ @Height = height
1240
+ @Thumbnail = thumbnail
1241
+ end
1242
+
1243
+ def deserialize(params)
1244
+ @Codecs = params['Codecs']
1245
+ @Duration = params['Duration']
1246
+ @Width = params['Width']
1247
+ @Height = params['Height']
1248
+ @Thumbnail = params['Thumbnail']
1249
+ end
1250
+ end
1251
+
1252
+ # 媒体审核配置
1253
+ class MediaModerationConfig < TencentCloud::Common::AbstractModel
1254
+ # @param AudioFrequency: 音频截帧频率。默认一分钟
1255
+ # @type AudioFrequency: Integer
1256
+ # @param ImageFrequency: 图片取帧频率, 单位(秒/帧),默认 5, 可选 1 ~ 300
1257
+ # @type ImageFrequency: Integer
1258
+ # @param CallbackUrl: 异步回调地址。
1259
+ # @type CallbackUrl: String
1260
+ # @param SegmentOutput: 临时文件存储位置
1261
+ # @type SegmentOutput: :class:`Tencentcloud::Ams.v20200608.models.FileOutput`
1262
+ # @param UseOCR: 是否使用OCR,默认为true
1263
+ # @type UseOCR: Boolean
1264
+ # @param UseAudio: 是否使用音频。(音频场景下,该值永远为true)
1265
+ # @type UseAudio: Boolean
1266
+
1267
+ attr_accessor :AudioFrequency, :ImageFrequency, :CallbackUrl, :SegmentOutput, :UseOCR, :UseAudio
1268
+
1269
+ def initialize(audiofrequency=nil, imagefrequency=nil, callbackurl=nil, segmentoutput=nil, useocr=nil, useaudio=nil)
1270
+ @AudioFrequency = audiofrequency
1271
+ @ImageFrequency = imagefrequency
1272
+ @CallbackUrl = callbackurl
1273
+ @SegmentOutput = segmentoutput
1274
+ @UseOCR = useocr
1275
+ @UseAudio = useaudio
1276
+ end
1277
+
1278
+ def deserialize(params)
1279
+ @AudioFrequency = params['AudioFrequency']
1280
+ @ImageFrequency = params['ImageFrequency']
1281
+ @CallbackUrl = params['CallbackUrl']
1282
+ unless params['SegmentOutput'].nil?
1283
+ @SegmentOutput = FileOutput.new
1284
+ @SegmentOutput.deserialize(params['SegmentOutput'])
1285
+ end
1286
+ @UseOCR = params['UseOCR']
1287
+ @UseAudio = params['UseAudio']
1288
+ end
1289
+ end
1290
+
1291
+ # 识别结果统计
1292
+ class Overview < TencentCloud::Common::AbstractModel
1293
+ # @param TotalCount: 总调用量
1294
+ # @type TotalCount: Integer
1295
+ # @param TotalHour: 总调用时长
1296
+ # @type TotalHour: Integer
1297
+ # @param PassCount: 通过量
1298
+ # @type PassCount: Integer
1299
+ # @param PassHour: 通过时长
1300
+ # @type PassHour: Integer
1301
+ # @param EvilCount: 违规量
1302
+ # @type EvilCount: Integer
1303
+ # @param EvilHour: 违规时长
1304
+ # @type EvilHour: Integer
1305
+ # @param SuspectCount: 疑似违规量
1306
+ # @type SuspectCount: Integer
1307
+ # @param SuspectHour: 疑似违规时长
1308
+ # @type SuspectHour: Integer
1309
+
1310
+ attr_accessor :TotalCount, :TotalHour, :PassCount, :PassHour, :EvilCount, :EvilHour, :SuspectCount, :SuspectHour
1311
+
1312
+ def initialize(totalcount=nil, totalhour=nil, passcount=nil, passhour=nil, evilcount=nil, evilhour=nil, suspectcount=nil, suspecthour=nil)
1313
+ @TotalCount = totalcount
1314
+ @TotalHour = totalhour
1315
+ @PassCount = passcount
1316
+ @PassHour = passhour
1317
+ @EvilCount = evilcount
1318
+ @EvilHour = evilhour
1319
+ @SuspectCount = suspectcount
1320
+ @SuspectHour = suspecthour
1321
+ end
1322
+
1323
+ def deserialize(params)
1324
+ @TotalCount = params['TotalCount']
1325
+ @TotalHour = params['TotalHour']
1326
+ @PassCount = params['PassCount']
1327
+ @PassHour = params['PassHour']
1328
+ @EvilCount = params['EvilCount']
1329
+ @EvilHour = params['EvilHour']
1330
+ @SuspectCount = params['SuspectCount']
1331
+ @SuspectHour = params['SuspectHour']
1332
+ end
1333
+ end
1334
+
1335
+ # 数据存储信息
1336
+ class StorageInfo < TencentCloud::Common::AbstractModel
1337
+ # @param Type: 类型 可选:
1338
+ # URL 资源链接类型
1339
+ # COS 腾讯云对象存储类型
1340
+ # @type Type: String
1341
+ # @param Url: 资源链接
1342
+ # @type Url: String
1343
+ # @param BucketInfo: 腾讯云存储桶信息
1344
+ # @type BucketInfo: :class:`Tencentcloud::Ams.v20200608.models.BucketInfo`
1345
+
1346
+ attr_accessor :Type, :Url, :BucketInfo
1347
+
1348
+ def initialize(type=nil, url=nil, bucketinfo=nil)
1349
+ @Type = type
1350
+ @Url = url
1351
+ @BucketInfo = bucketinfo
1352
+ end
1353
+
1354
+ def deserialize(params)
1355
+ @Type = params['Type']
1356
+ @Url = params['Url']
1357
+ unless params['BucketInfo'].nil?
1358
+ @BucketInfo = BucketInfo.new
1359
+ @BucketInfo.deserialize(params['BucketInfo'])
1360
+ end
1361
+ end
1362
+ end
1363
+
1364
+ # 音视频任务结构
1365
+ class TaskInput < TencentCloud::Common::AbstractModel
1366
+ # @param DataId: 数据ID
1367
+ # @type DataId: String
1368
+ # @param Name: 任务名
1369
+ # @type Name: String
1370
+ # @param Input: 任务输入
1371
+ # @type Input: :class:`Tencentcloud::Ams.v20200608.models.StorageInfo`
1372
+
1373
+ attr_accessor :DataId, :Name, :Input
1374
+
1375
+ def initialize(dataid=nil, name=nil, input=nil)
1376
+ @DataId = dataid
1377
+ @Name = name
1378
+ @Input = input
1379
+ end
1380
+
1381
+ def deserialize(params)
1382
+ @DataId = params['DataId']
1383
+ @Name = params['Name']
1384
+ unless params['Input'].nil?
1385
+ @Input = StorageInfo.new
1386
+ @Input.deserialize(params['Input'])
1387
+ end
1388
+ end
1389
+ end
1390
+
1391
+ # 任务输出标签
1392
+ class TaskLabel < TencentCloud::Common::AbstractModel
1393
+ # @param Label: 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。
1394
+ # 以及令人反感、不安全或不适宜的内容类型。
1395
+ # 注意:此字段可能返回 null,表示取不到有效值。
1396
+ # @type Label: String
1397
+ # @param Suggestion: 建议您拿到判断结果后的执行操作。
1398
+ # 建议值,Block:建议屏蔽,Review:建议复审,Pass:建议通过
1399
+ # 注意:此字段可能返回 null,表示取不到有效值。
1400
+ # @type Suggestion: String
1401
+ # @param Score: 得分,分数是 0 ~ 100
1402
+ # 注意:此字段可能返回 null,表示取不到有效值。
1403
+ # @type Score: Integer
1404
+
1405
+ attr_accessor :Label, :Suggestion, :Score
1406
+
1407
+ def initialize(label=nil, suggestion=nil, score=nil)
1408
+ @Label = label
1409
+ @Suggestion = suggestion
1410
+ @Score = score
1411
+ end
1412
+
1413
+ def deserialize(params)
1414
+ @Label = params['Label']
1415
+ @Suggestion = params['Suggestion']
1416
+ @Score = params['Score']
1417
+ end
1418
+ end
1419
+
1420
+ # 创建任务时的返回结果
1421
+ class TaskResult < TencentCloud::Common::AbstractModel
1422
+ # @param DataId: 请求时传入的DataId
1423
+ # 注意:此字段可能返回 null,表示取不到有效值。
1424
+ # @type DataId: String
1425
+ # @param TaskId: TaskId,任务ID
1426
+ # 注意:此字段可能返回 null,表示取不到有效值。
1427
+ # @type TaskId: String
1428
+ # @param Code: 错误码。如果code为OK,则表示创建成功,其他则参考公共错误码
1429
+ # 注意:此字段可能返回 null,表示取不到有效值。
1430
+ # @type Code: String
1431
+ # @param Message: 如果错误,该字段表示错误详情
1432
+ # 注意:此字段可能返回 null,表示取不到有效值。
1433
+ # @type Message: String
1434
+
1435
+ attr_accessor :DataId, :TaskId, :Code, :Message
1436
+
1437
+ def initialize(dataid=nil, taskid=nil, code=nil, message=nil)
1438
+ @DataId = dataid
1439
+ @TaskId = taskid
1440
+ @Code = code
1441
+ @Message = message
1442
+ end
1443
+
1444
+ def deserialize(params)
1445
+ @DataId = params['DataId']
1446
+ @TaskId = params['TaskId']
1447
+ @Code = params['Code']
1448
+ @Message = params['Message']
1449
+ end
1450
+ end
1451
+
1452
+ # 识别量统计
1453
+ class TrendCount < TencentCloud::Common::AbstractModel
1454
+ # @param TotalCount: 总调用量
1455
+ # @type TotalCount: Integer
1456
+ # @param TotalHour: 总调用时长
1457
+ # @type TotalHour: Integer
1458
+ # @param PassCount: 通过量
1459
+ # @type PassCount: Integer
1460
+ # @param PassHour: 通过时长
1461
+ # @type PassHour: Integer
1462
+ # @param EvilCount: 违规量
1463
+ # @type EvilCount: Integer
1464
+ # @param EvilHour: 违规时长
1465
+ # @type EvilHour: Integer
1466
+ # @param SuspectCount: 疑似违规量
1467
+ # @type SuspectCount: Integer
1468
+ # @param SuspectHour: 疑似违规时长
1469
+ # @type SuspectHour: Integer
1470
+ # @param Date: 日期
1471
+ # @type Date: String
1472
+
1473
+ attr_accessor :TotalCount, :TotalHour, :PassCount, :PassHour, :EvilCount, :EvilHour, :SuspectCount, :SuspectHour, :Date
1474
+
1475
+ def initialize(totalcount=nil, totalhour=nil, passcount=nil, passhour=nil, evilcount=nil, evilhour=nil, suspectcount=nil, suspecthour=nil, date=nil)
1476
+ @TotalCount = totalcount
1477
+ @TotalHour = totalhour
1478
+ @PassCount = passcount
1479
+ @PassHour = passhour
1480
+ @EvilCount = evilcount
1481
+ @EvilHour = evilhour
1482
+ @SuspectCount = suspectcount
1483
+ @SuspectHour = suspecthour
1484
+ @Date = date
1485
+ end
1486
+
1487
+ def deserialize(params)
1488
+ @TotalCount = params['TotalCount']
1489
+ @TotalHour = params['TotalHour']
1490
+ @PassCount = params['PassCount']
1491
+ @PassHour = params['PassHour']
1492
+ @EvilCount = params['EvilCount']
1493
+ @EvilHour = params['EvilHour']
1494
+ @SuspectCount = params['SuspectCount']
1495
+ @SuspectHour = params['SuspectHour']
1496
+ @Date = params['Date']
1497
+ end
1498
+ end
1499
+
1500
+ end
1501
+ end
1502
+ end
1503
+