tencentcloud-sdk-vod 3.0.477 → 3.0.478
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/v20180717/models.rb +124 -3
- 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: 7877458ececa8a7d8f14f5318a977fa0342f6e8a
|
|
4
|
+
data.tar.gz: bf09b9d65427dab8a13344a1116bfd9997fabd41
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61cc69588fea30458fd318ebbac318c9f528a522c81c18feced4d5ba24dacf480318d6acf2231cbec8ce849366d08965ecc865d341da21b481894d99e78f83ce
|
|
7
|
+
data.tar.gz: 06f4814e397e3dfd34bcc0d1b540f29e5804c6545396cefd5dc9d77db29263ece29576f2d4263e753070d63174c819d67b5021981a79ce2f12d133437f1b51d5
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.478
|
data/lib/v20180717/models.rb
CHANGED
|
@@ -19203,7 +19203,8 @@ module TencentCloud
|
|
|
19203
19203
|
class ReviewImageRequest < TencentCloud::Common::AbstractModel
|
|
19204
19204
|
# @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符。本接口要求媒体文件必须是图片格式。
|
|
19205
19205
|
# @type FileId: String
|
|
19206
|
-
# @param Definition: 图片审核模板 ID
|
|
19206
|
+
# @param Definition: 图片审核模板 ID,取值范围:
|
|
19207
|
+
# <li>10:预置模板,支持检测的违规标签包括色情(Porn)、暴恐(Terror)和不适宜的信息(Polity)。</li>
|
|
19207
19208
|
# @type Definition: Integer
|
|
19208
19209
|
# @param SubAppId: <b>点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。</b>
|
|
19209
19210
|
# @type SubAppId: Integer
|
|
@@ -19226,14 +19227,19 @@ module TencentCloud
|
|
|
19226
19227
|
# ReviewImage返回参数结构体
|
|
19227
19228
|
class ReviewImageResponse < TencentCloud::Common::AbstractModel
|
|
19228
19229
|
# @param ReviewResultSet: 图片审核任务结果。
|
|
19230
|
+
# <font color=red>注意:该字段已废弃,建议使用 ReviewResult。</font>
|
|
19229
19231
|
# @type ReviewResultSet: Array
|
|
19232
|
+
# @param MediaReviewResult: 图片审核任务结果。
|
|
19233
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
19234
|
+
# @type MediaReviewResult: :class:`Tencentcloud::Vod.v20180717.models.ReviewImageResult`
|
|
19230
19235
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
19231
19236
|
# @type RequestId: String
|
|
19232
19237
|
|
|
19233
|
-
attr_accessor :ReviewResultSet, :RequestId
|
|
19238
|
+
attr_accessor :ReviewResultSet, :MediaReviewResult, :RequestId
|
|
19234
19239
|
|
|
19235
|
-
def initialize(reviewresultset=nil, requestid=nil)
|
|
19240
|
+
def initialize(reviewresultset=nil, mediareviewresult=nil, requestid=nil)
|
|
19236
19241
|
@ReviewResultSet = reviewresultset
|
|
19242
|
+
@MediaReviewResult = mediareviewresult
|
|
19237
19243
|
@RequestId = requestid
|
|
19238
19244
|
end
|
|
19239
19245
|
|
|
@@ -19246,10 +19252,125 @@ module TencentCloud
|
|
|
19246
19252
|
@ReviewResultSet << contentreviewresult_tmp
|
|
19247
19253
|
end
|
|
19248
19254
|
end
|
|
19255
|
+
unless params['MediaReviewResult'].nil?
|
|
19256
|
+
@MediaReviewResult = ReviewImageResult.new
|
|
19257
|
+
@MediaReviewResult.deserialize(params['MediaReviewResult'])
|
|
19258
|
+
end
|
|
19249
19259
|
@RequestId = params['RequestId']
|
|
19250
19260
|
end
|
|
19251
19261
|
end
|
|
19252
19262
|
|
|
19263
|
+
# 图片审核结果。
|
|
19264
|
+
class ReviewImageResult < TencentCloud::Common::AbstractModel
|
|
19265
|
+
# @param Suggestion: 图片审核的结果建议,取值范围:
|
|
19266
|
+
# <li>pass:建议通过;</li>
|
|
19267
|
+
# <li>review:建议复审;</li>
|
|
19268
|
+
# <li>block:建议封禁。</li>
|
|
19269
|
+
# @type Suggestion: String
|
|
19270
|
+
# @param Label: 当 Suggestion 为 review 或 block 时有效,表示最可能的违规的标签,取值范围:
|
|
19271
|
+
# <li>Porn:色情;</li>
|
|
19272
|
+
# <li>Terror:暴恐;</li>
|
|
19273
|
+
# <li>Polity:不适宜的信息;</li>
|
|
19274
|
+
# <li>Ad:广告;</li>
|
|
19275
|
+
# <li>Illegal:违法;</li>
|
|
19276
|
+
# <li>Religion:宗教;</li>
|
|
19277
|
+
# <li>Abuse:谩骂。</li>
|
|
19278
|
+
# @type Label: String
|
|
19279
|
+
# @param Form: 当 Suggestion 为 review 或 block 时有效,表示最可能的违禁的形式,取值范围:
|
|
19280
|
+
# <li>Image:画面上的人物或图标;</li>
|
|
19281
|
+
# <li>OCR:画面上的文字。</li>
|
|
19282
|
+
# @type Form: String
|
|
19283
|
+
# @param SegmentSet: 有违规信息的嫌疑的视频片段列表。
|
|
19284
|
+
# <font color=red>注意</font> :该列表最多仅展示前 10个 元素。如希望获得完整结果,请从 SegmentSetFileUrl 对应的文件中获取。
|
|
19285
|
+
# @type SegmentSet: Array
|
|
19286
|
+
# @param SegmentSetFileUrl: 涉及违规信息的嫌疑的视频片段列表文件 URL。文件的内容为 JSON,数据结构与 SegmentSet 字段一致。 (文件不会永久存储,到达SegmentSetFileUrlExpireTime 时间点后文件将被删除)。
|
|
19287
|
+
# @type SegmentSetFileUrl: String
|
|
19288
|
+
# @param SegmentSetFileUrlExpireTime: 涉及违规信息的嫌疑的视频片段列表文件 URL 失效时间,使用 [ISO 日期格式](https://cloud.tencent.com/document/product/266/11732#I)。
|
|
19289
|
+
# @type SegmentSetFileUrlExpireTime: String
|
|
19290
|
+
|
|
19291
|
+
attr_accessor :Suggestion, :Label, :Form, :SegmentSet, :SegmentSetFileUrl, :SegmentSetFileUrlExpireTime
|
|
19292
|
+
|
|
19293
|
+
def initialize(suggestion=nil, label=nil, form=nil, segmentset=nil, segmentsetfileurl=nil, segmentsetfileurlexpiretime=nil)
|
|
19294
|
+
@Suggestion = suggestion
|
|
19295
|
+
@Label = label
|
|
19296
|
+
@Form = form
|
|
19297
|
+
@SegmentSet = segmentset
|
|
19298
|
+
@SegmentSetFileUrl = segmentsetfileurl
|
|
19299
|
+
@SegmentSetFileUrlExpireTime = segmentsetfileurlexpiretime
|
|
19300
|
+
end
|
|
19301
|
+
|
|
19302
|
+
def deserialize(params)
|
|
19303
|
+
@Suggestion = params['Suggestion']
|
|
19304
|
+
@Label = params['Label']
|
|
19305
|
+
@Form = params['Form']
|
|
19306
|
+
unless params['SegmentSet'].nil?
|
|
19307
|
+
@SegmentSet = []
|
|
19308
|
+
params['SegmentSet'].each do |i|
|
|
19309
|
+
reviewimagesegmentitem_tmp = ReviewImageSegmentItem.new
|
|
19310
|
+
reviewimagesegmentitem_tmp.deserialize(i)
|
|
19311
|
+
@SegmentSet << reviewimagesegmentitem_tmp
|
|
19312
|
+
end
|
|
19313
|
+
end
|
|
19314
|
+
@SegmentSetFileUrl = params['SegmentSetFileUrl']
|
|
19315
|
+
@SegmentSetFileUrlExpireTime = params['SegmentSetFileUrlExpireTime']
|
|
19316
|
+
end
|
|
19317
|
+
end
|
|
19318
|
+
|
|
19319
|
+
# 图片审核片段。
|
|
19320
|
+
class ReviewImageSegmentItem < TencentCloud::Common::AbstractModel
|
|
19321
|
+
# @param Confidence: 嫌疑片段涉及令人反感的信息的分数。
|
|
19322
|
+
# @type Confidence: Float
|
|
19323
|
+
# @param Suggestion: 嫌疑片段鉴别涉及违规信息的结果建议,取值范围:
|
|
19324
|
+
# <li>review:疑似违规,建议复审;</li>
|
|
19325
|
+
# <li>block:确认违规,建议封禁。</li>
|
|
19326
|
+
# @type Suggestion: String
|
|
19327
|
+
# @param Label: 嫌疑片段最可能的违规的标签,取值范围:
|
|
19328
|
+
# <li>Porn:色情;</li>
|
|
19329
|
+
# <li>Terror:暴恐;</li>
|
|
19330
|
+
# <li>Polity:不适宜的信息;</li>
|
|
19331
|
+
# <li>Ad:广告;</li>
|
|
19332
|
+
# <li>Illegal:违法;</li>
|
|
19333
|
+
# <li>Religion:宗教;</li>
|
|
19334
|
+
# <li>Abuse:谩骂。</li>
|
|
19335
|
+
# @type Label: String
|
|
19336
|
+
# @param SubLabel: 违规子标签。
|
|
19337
|
+
# @type SubLabel: String
|
|
19338
|
+
# @param Form: 嫌疑片段违禁的形式,取值范围:
|
|
19339
|
+
# <li>Image:画面上的人物或图标;</li>
|
|
19340
|
+
# <li>OCR:画面上的文字。</li>
|
|
19341
|
+
# @type Form: String
|
|
19342
|
+
# @param AreaCoordSet: 嫌疑人物、图标或文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
|
|
19343
|
+
# @type AreaCoordSet: Array
|
|
19344
|
+
# @param Text: 当 Form 为 OCR 时有效,表示识别出来的 OCR 文本内容。
|
|
19345
|
+
# @type Text: String
|
|
19346
|
+
# @param KeywordSet: 当 Form 为 OCR 时有效,表示嫌疑片段命中的违规关键词列表。
|
|
19347
|
+
# @type KeywordSet: Array
|
|
19348
|
+
|
|
19349
|
+
attr_accessor :Confidence, :Suggestion, :Label, :SubLabel, :Form, :AreaCoordSet, :Text, :KeywordSet
|
|
19350
|
+
|
|
19351
|
+
def initialize(confidence=nil, suggestion=nil, label=nil, sublabel=nil, form=nil, areacoordset=nil, text=nil, keywordset=nil)
|
|
19352
|
+
@Confidence = confidence
|
|
19353
|
+
@Suggestion = suggestion
|
|
19354
|
+
@Label = label
|
|
19355
|
+
@SubLabel = sublabel
|
|
19356
|
+
@Form = form
|
|
19357
|
+
@AreaCoordSet = areacoordset
|
|
19358
|
+
@Text = text
|
|
19359
|
+
@KeywordSet = keywordset
|
|
19360
|
+
end
|
|
19361
|
+
|
|
19362
|
+
def deserialize(params)
|
|
19363
|
+
@Confidence = params['Confidence']
|
|
19364
|
+
@Suggestion = params['Suggestion']
|
|
19365
|
+
@Label = params['Label']
|
|
19366
|
+
@SubLabel = params['SubLabel']
|
|
19367
|
+
@Form = params['Form']
|
|
19368
|
+
@AreaCoordSet = params['AreaCoordSet']
|
|
19369
|
+
@Text = params['Text']
|
|
19370
|
+
@KeywordSet = params['KeywordSet']
|
|
19371
|
+
end
|
|
19372
|
+
end
|
|
19373
|
+
|
|
19253
19374
|
# 审核信息。
|
|
19254
19375
|
class ReviewInfo < TencentCloud::Common::AbstractModel
|
|
19255
19376
|
# @param Definition: 审核模板 ID。
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-vod
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.478
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-12-
|
|
11
|
+
date: 2022-12-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|