tencentcloud-sdk-vod 1.0.277 → 1.0.280

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6939b413167330a82b3bdefc035b5de229bf318e
4
- data.tar.gz: 37ec2e94c551747d481633e8d23a5617139215e0
3
+ metadata.gz: 0165ceb70d9db127363185267f10c5f4d05a1cf6
4
+ data.tar.gz: 8b463fb0aa014f740aec4289145a1f214b06af2a
5
5
  SHA512:
6
- metadata.gz: 3f3e5988ec67f508d0e4ab151ff8a26bcffae2e85763f6a95ca217190575da43b9ff35c221c6b013de3abf31a0db89e35ad84353bd0c960f30ffc73f392b0da8
7
- data.tar.gz: b8c73555cec68f555749c2ce91dcc7c2dffe4c78a9b5ce03206a9daa333e3ef806a756e7c1842a948e74b165361de7ebe93ffd58f4f53bb2ba9f46ee85ad95cc
6
+ metadata.gz: 84e97145d500afcd4dfe4597be639ff380c90a9be050906b9cc7a47c9f7e535fb2cd48a5aefd02e1552590c0f35ded3e907b231ee71dcd09857433d27fe7c1f9
7
+ data.tar.gz: 0108dad24402b897b88d8d682c664a0f27b96067a55ea1356bbf47fb66bea36ac1b85cd526c6ed90286d06a7c9d0b2414b8b6671450502d820f7f9e7cf358479
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.277
1
+ 1.0.280
@@ -2730,6 +2730,36 @@ module TencentCloud
2730
2730
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2731
2731
  end
2732
2732
 
2733
+ # 对点播中的图片文件发起处理任务,功能包括:
2734
+
2735
+ # 1. 智能识别(令人反感的信息、不安全的信息、不适宜的信息);
2736
+
2737
+ # ><li>图片文件大小支持:文件 < 5M;</li>
2738
+ # ><li>图片文件分辨率支持:建议分辨率大于256x256,否则可能会影响识别效果;</li>
2739
+ # ><li>图片文件支持格式:PNG、JPG、JPEG、BMP、GIF、WEBP格式。</li>
2740
+
2741
+ # @param request: Request instance for ProcessImage.
2742
+ # @type request: :class:`Tencentcloud::vod::V20180717::ProcessImageRequest`
2743
+ # @rtype: :class:`Tencentcloud::vod::V20180717::ProcessImageResponse`
2744
+ def ProcessImage(request)
2745
+ body = send_request('ProcessImage', request.serialize)
2746
+ response = JSON.parse(body)
2747
+ if response['Response'].key?('Error') == false
2748
+ model = ProcessImageResponse.new
2749
+ model.deserialize(response['Response'])
2750
+ model
2751
+ else
2752
+ code = response['Response']['Error']['Code']
2753
+ message = response['Response']['Error']['Message']
2754
+ reqid = response['Response']['RequestId']
2755
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2756
+ end
2757
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2758
+ raise e
2759
+ rescue StandardError => e
2760
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2761
+ end
2762
+
2733
2763
  # 对点播中的音视频媒体发起处理任务,功能包括:
2734
2764
  # 1. 视频转码(带水印);
2735
2765
  # 2. 视频转动图;
@@ -4618,6 +4618,107 @@ module TencentCloud
4618
4618
  end
4619
4619
  end
4620
4620
 
4621
+ # 图片Ocr 文字鉴别信息的任务结果类型
4622
+ class ContentReviewOcrResult < TencentCloud::Common::AbstractModel
4623
+ # @param Confidence: Ocr 文字鉴别结果的评分,分值为0到100。
4624
+ # @type Confidence: Float
4625
+ # @param Suggestion: Ocr 文字鉴别的结果建议,取值范围:
4626
+ # <li>pass;</li>
4627
+ # <li>review;</li>
4628
+ # <li>block。</li>
4629
+ # @type Suggestion: String
4630
+ # @param KeywordSet: Ocr 文字鉴别的嫌疑关键词列表。
4631
+ # @type KeywordSet: Array
4632
+ # @param AreaCoordSet: Ocr 文字鉴别的嫌疑文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
4633
+ # @type AreaCoordSet: Array
4634
+
4635
+ attr_accessor :Confidence, :Suggestion, :KeywordSet, :AreaCoordSet
4636
+
4637
+ def initialize(confidence=nil, suggestion=nil, keywordset=nil, areacoordset=nil)
4638
+ @Confidence = confidence
4639
+ @Suggestion = suggestion
4640
+ @KeywordSet = keywordset
4641
+ @AreaCoordSet = areacoordset
4642
+ end
4643
+
4644
+ def deserialize(params)
4645
+ @Confidence = params['Confidence']
4646
+ @Suggestion = params['Suggestion']
4647
+ @KeywordSet = params['KeywordSet']
4648
+ @AreaCoordSet = params['AreaCoordSet']
4649
+ end
4650
+ end
4651
+
4652
+ # 图片智能内容识别任务结果
4653
+ class ContentReviewResult < TencentCloud::Common::AbstractModel
4654
+ # @param Type: 结果类型,取值范围:
4655
+ # <li>Porn.Image:图片画面中的鉴别令人反感的信息结果;</li>
4656
+ # <li>Terrorism.Image:图片画面中的鉴别令人不安全的信息结果;</li>
4657
+ # <li>Political.Image:图片画面中的鉴别令人不适宜信息结果;</li>
4658
+ # <li>Porn.Ocr:图片 OCR 文字中的鉴别令人反感的信息结果;</li>
4659
+ # <li>Terrorism.Ocr:图片 OCR 文字中的鉴别令人不安全的信息结果;</li>
4660
+ # <li>Political.Ocr:图片 OCR 文字中的鉴别令人不适宜信息结果。</li>
4661
+ # @type Type: String
4662
+ # @param PornImageResult: 图片画面中的鉴别令人反感的信息结果,当 Type 为 Porn.Image 时有效。
4663
+ # 注意:此字段可能返回 null,表示取不到有效值。
4664
+ # @type PornImageResult: :class:`Tencentcloud::Vod.v20180717.models.PornImageResult`
4665
+ # @param TerrorismImageResult: 图片画面中的鉴别令人不安全的信息结果,当 Type 为 Terrorism.Image 时有效。
4666
+ # 注意:此字段可能返回 null,表示取不到有效值。
4667
+ # @type TerrorismImageResult: :class:`Tencentcloud::Vod.v20180717.models.TerrorismImageResult`
4668
+ # @param PoliticalImageResult: 图片画面中的鉴别令人不适宜信息结果,当 Type 为 Political.Image 时有效。
4669
+ # 注意:此字段可能返回 null,表示取不到有效值。
4670
+ # @type PoliticalImageResult: :class:`Tencentcloud::Vod.v20180717.models.PoliticalImageResult`
4671
+ # @param PornOcrResult: 图片 OCR 文字中的鉴别令人反感的信息结果,当 Type 为 Porn.Ocr 时有效。
4672
+ # 注意:此字段可能返回 null,表示取不到有效值。
4673
+ # @type PornOcrResult: :class:`Tencentcloud::Vod.v20180717.models.ContentReviewOcrResult`
4674
+ # @param TerrorismOcrResult: 图片 OCR 中的鉴别令人不安全的信息结果,当 Type 为 Terrorism.Ocr 时有效。
4675
+ # 注意:此字段可能返回 null,表示取不到有效值。
4676
+ # @type TerrorismOcrResult: :class:`Tencentcloud::Vod.v20180717.models.ContentReviewOcrResult`
4677
+ # @param PoliticalOcrResult: 图片 OCR 文字中的鉴别令人不适宜信息结果,当 Type 为 Political.Ocr 时有效。
4678
+ # 注意:此字段可能返回 null,表示取不到有效值。
4679
+ # @type PoliticalOcrResult: :class:`Tencentcloud::Vod.v20180717.models.ContentReviewOcrResult`
4680
+
4681
+ attr_accessor :Type, :PornImageResult, :TerrorismImageResult, :PoliticalImageResult, :PornOcrResult, :TerrorismOcrResult, :PoliticalOcrResult
4682
+
4683
+ def initialize(type=nil, pornimageresult=nil, terrorismimageresult=nil, politicalimageresult=nil, pornocrresult=nil, terrorismocrresult=nil, politicalocrresult=nil)
4684
+ @Type = type
4685
+ @PornImageResult = pornimageresult
4686
+ @TerrorismImageResult = terrorismimageresult
4687
+ @PoliticalImageResult = politicalimageresult
4688
+ @PornOcrResult = pornocrresult
4689
+ @TerrorismOcrResult = terrorismocrresult
4690
+ @PoliticalOcrResult = politicalocrresult
4691
+ end
4692
+
4693
+ def deserialize(params)
4694
+ @Type = params['Type']
4695
+ unless params['PornImageResult'].nil?
4696
+ @PornImageResult = PornImageResult.new
4697
+ @PornImageResult.deserialize(params['PornImageResult'])
4698
+ end
4699
+ unless params['TerrorismImageResult'].nil?
4700
+ @TerrorismImageResult = TerrorismImageResult.new
4701
+ @TerrorismImageResult.deserialize(params['TerrorismImageResult'])
4702
+ end
4703
+ unless params['PoliticalImageResult'].nil?
4704
+ @PoliticalImageResult = PoliticalImageResult.new
4705
+ @PoliticalImageResult.deserialize(params['PoliticalImageResult'])
4706
+ end
4707
+ unless params['PornOcrResult'].nil?
4708
+ @PornOcrResult = ContentReviewOcrResult.new
4709
+ @PornOcrResult.deserialize(params['PornOcrResult'])
4710
+ end
4711
+ unless params['TerrorismOcrResult'].nil?
4712
+ @TerrorismOcrResult = ContentReviewOcrResult.new
4713
+ @TerrorismOcrResult.deserialize(params['TerrorismOcrResult'])
4714
+ end
4715
+ unless params['PoliticalOcrResult'].nil?
4716
+ @PoliticalOcrResult = ContentReviewOcrResult.new
4717
+ @PoliticalOcrResult.deserialize(params['PoliticalOcrResult'])
4718
+ end
4719
+ end
4720
+ end
4721
+
4621
4722
  # 智能识别模板详情
4622
4723
  class ContentReviewTemplateItem < TencentCloud::Common::AbstractModel
4623
4724
  # @param Definition: 智能识别模板唯一标识。
@@ -10501,6 +10602,23 @@ module TencentCloud
10501
10602
  end
10502
10603
  end
10503
10604
 
10605
+ # 图片智能内容识别任务输入
10606
+ class ImageContentReviewInput < TencentCloud::Common::AbstractModel
10607
+ # @param Definition: 图片智能内容审核模板 ID。当前只支持:
10608
+ # <li>10:所有审核类型均打开。</li>
10609
+ # @type Definition: Integer
10610
+
10611
+ attr_accessor :Definition
10612
+
10613
+ def initialize(definition=nil)
10614
+ @Definition = definition
10615
+ end
10616
+
10617
+ def deserialize(params)
10618
+ @Definition = params['Definition']
10619
+ end
10620
+ end
10621
+
10504
10622
  # 单个图片处理操作。
10505
10623
  class ImageOperation < TencentCloud::Common::AbstractModel
10506
10624
  # @param Type: 图片处理类型。可选类型有:
@@ -15187,6 +15305,37 @@ module TencentCloud
15187
15305
  end
15188
15306
  end
15189
15307
 
15308
+ # 图片画面智能识别涉及令人不适宜信息的任务结果类型
15309
+ class PoliticalImageResult < TencentCloud::Common::AbstractModel
15310
+ # @param Confidence: 鉴别涉及令人不适宜信息的评分,分值为0到100。
15311
+ # @type Confidence: Float
15312
+ # @param Suggestion: 鉴别涉及令人不适宜信息的结果建议,取值范围:
15313
+ # <li>pass;</li>
15314
+ # <li>review;</li>
15315
+ # <li>block。</li>
15316
+ # @type Suggestion: String
15317
+ # @param Name: 涉及令人不适宜的信息、违规图标名字。
15318
+ # @type Name: String
15319
+ # @param AreaCoordSet: 涉及令人不适宜的信息、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
15320
+ # @type AreaCoordSet: Array
15321
+
15322
+ attr_accessor :Confidence, :Suggestion, :Name, :AreaCoordSet
15323
+
15324
+ def initialize(confidence=nil, suggestion=nil, name=nil, areacoordset=nil)
15325
+ @Confidence = confidence
15326
+ @Suggestion = suggestion
15327
+ @Name = name
15328
+ @AreaCoordSet = areacoordset
15329
+ end
15330
+
15331
+ def deserialize(params)
15332
+ @Confidence = params['Confidence']
15333
+ @Suggestion = params['Suggestion']
15334
+ @Name = params['Name']
15335
+ @AreaCoordSet = params['AreaCoordSet']
15336
+ end
15337
+ end
15338
+
15190
15339
  # 画面鉴别涉及令人不适宜的信息的任务控制参数
15191
15340
  class PoliticalImgReviewTemplateInfo < TencentCloud::Common::AbstractModel
15192
15341
  # @param Switch: 画面鉴别涉及令人不适宜的信息的任务开关,可选值:
@@ -15436,6 +15585,37 @@ module TencentCloud
15436
15585
  end
15437
15586
  end
15438
15587
 
15588
+ # 图片画面智能识别涉及令人反感的信息的任务结果类型
15589
+ class PornImageResult < TencentCloud::Common::AbstractModel
15590
+ # @param Confidence: 鉴别涉及令人反感的信息的评分,分值为0到100。
15591
+ # @type Confidence: Float
15592
+ # @param Suggestion: 鉴别涉及令人反感的信息的结果建议,取值范围:
15593
+ # <li>pass;</li>
15594
+ # <li>review;</li>
15595
+ # <li>block。</li>
15596
+ # @type Suggestion: String
15597
+ # @param Label: 鉴别涉及令人反感的信息的结果标签,取值范围:
15598
+ # <li>porn:色情;</li>
15599
+ # <li>sexy:性感;</li>
15600
+ # <li>vulgar:低俗;</li>
15601
+ # <li>intimacy:亲密行为。</li>
15602
+ # @type Label: String
15603
+
15604
+ attr_accessor :Confidence, :Suggestion, :Label
15605
+
15606
+ def initialize(confidence=nil, suggestion=nil, label=nil)
15607
+ @Confidence = confidence
15608
+ @Suggestion = suggestion
15609
+ @Label = label
15610
+ end
15611
+
15612
+ def deserialize(params)
15613
+ @Confidence = params['Confidence']
15614
+ @Suggestion = params['Suggestion']
15615
+ @Label = params['Label']
15616
+ end
15617
+ end
15618
+
15439
15619
  # 画面鉴别涉及令人反感的信息的任务控制参数
15440
15620
  class PornImgReviewTemplateInfo < TencentCloud::Common::AbstractModel
15441
15621
  # @param Switch: 画面鉴别涉及令人反感的信息的任务开关,可选值:
@@ -15749,6 +15929,64 @@ module TencentCloud
15749
15929
  end
15750
15930
  end
15751
15931
 
15932
+ # ProcessImage请求参数结构体
15933
+ class ProcessImageRequest < TencentCloud::Common::AbstractModel
15934
+ # @param FileId: 媒体文件 ID,即该文件在云点播上的全局唯一标识符。本接口要求媒体文件必须是图片格式。
15935
+ # @type FileId: String
15936
+ # @param Operation: 操作类型。现在仅支持填 ContentReview,表示内容智能识别。
15937
+ # @type Operation: String
15938
+ # @param ContentReviewInput: 图片内容智能识别参数,当 Operation 为 ContentReview 时该字段有效。
15939
+ # @type ContentReviewInput: :class:`Tencentcloud::Vod.v20180717.models.ImageContentReviewInput`
15940
+ # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
15941
+ # @type SubAppId: Integer
15942
+
15943
+ attr_accessor :FileId, :Operation, :ContentReviewInput, :SubAppId
15944
+
15945
+ def initialize(fileid=nil, operation=nil, contentreviewinput=nil, subappid=nil)
15946
+ @FileId = fileid
15947
+ @Operation = operation
15948
+ @ContentReviewInput = contentreviewinput
15949
+ @SubAppId = subappid
15950
+ end
15951
+
15952
+ def deserialize(params)
15953
+ @FileId = params['FileId']
15954
+ @Operation = params['Operation']
15955
+ unless params['ContentReviewInput'].nil?
15956
+ @ContentReviewInput = ImageContentReviewInput.new
15957
+ @ContentReviewInput.deserialize(params['ContentReviewInput'])
15958
+ end
15959
+ @SubAppId = params['SubAppId']
15960
+ end
15961
+ end
15962
+
15963
+ # ProcessImage返回参数结构体
15964
+ class ProcessImageResponse < TencentCloud::Common::AbstractModel
15965
+ # @param ContentReviewResultSet: 图片内容智能识别任务结果。
15966
+ # @type ContentReviewResultSet: Array
15967
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
15968
+ # @type RequestId: String
15969
+
15970
+ attr_accessor :ContentReviewResultSet, :RequestId
15971
+
15972
+ def initialize(contentreviewresultset=nil, requestid=nil)
15973
+ @ContentReviewResultSet = contentreviewresultset
15974
+ @RequestId = requestid
15975
+ end
15976
+
15977
+ def deserialize(params)
15978
+ unless params['ContentReviewResultSet'].nil?
15979
+ @ContentReviewResultSet = []
15980
+ params['ContentReviewResultSet'].each do |i|
15981
+ contentreviewresult_tmp = ContentReviewResult.new
15982
+ contentreviewresult_tmp.deserialize(i)
15983
+ @ContentReviewResultSet << contentreviewresult_tmp
15984
+ end
15985
+ end
15986
+ @RequestId = params['RequestId']
15987
+ end
15988
+ end
15989
+
15752
15990
  # ProcessMediaByProcedure请求参数结构体
15753
15991
  class ProcessMediaByProcedureRequest < TencentCloud::Common::AbstractModel
15754
15992
  # @param FileId: 媒体文件 ID。
@@ -18188,6 +18426,40 @@ module TencentCloud
18188
18426
  end
18189
18427
  end
18190
18428
 
18429
+ # 图片画面智能识别涉及令人不安全的信息的任务结果类型
18430
+ class TerrorismImageResult < TencentCloud::Common::AbstractModel
18431
+ # @param Confidence: 鉴别涉及令人不安全的信息的评分,分值为0到100。
18432
+ # @type Confidence: Float
18433
+ # @param Suggestion: 鉴别涉及令人不安全的信息的结果建议,取值范围:
18434
+ # <li>pass;</li>
18435
+ # <li>review;</li>
18436
+ # <li>block。</li>
18437
+ # @type Suggestion: String
18438
+ # @param Label: 鉴别涉及令人不安全的信息的结果标签,取值范围:
18439
+ # <li>guns:武器枪支;</li>
18440
+ # <li>crowd:人群聚集;</li>
18441
+ # <li>police:警察部队;</li>
18442
+ # <li>bloody:血腥画面;</li>
18443
+ # <li>banners:暴恐旗帜;</li>
18444
+ # <li>explosion:爆炸火灾;</li>
18445
+ # <li>scenario:暴恐画面。</li>
18446
+ # @type Label: String
18447
+
18448
+ attr_accessor :Confidence, :Suggestion, :Label
18449
+
18450
+ def initialize(confidence=nil, suggestion=nil, label=nil)
18451
+ @Confidence = confidence
18452
+ @Suggestion = suggestion
18453
+ @Label = label
18454
+ end
18455
+
18456
+ def deserialize(params)
18457
+ @Confidence = params['Confidence']
18458
+ @Suggestion = params['Suggestion']
18459
+ @Label = params['Label']
18460
+ end
18461
+ end
18462
+
18191
18463
  # 画面鉴别涉及令人不安全的信息的任务控制参数
18192
18464
  class TerrorismImgReviewTemplateInfo < TencentCloud::Common::AbstractModel
18193
18465
  # @param Switch: 画面鉴别涉及令人不安全的信息的任务开关,可选值:
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: 1.0.277
4
+ version: 1.0.280
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-03-16 00:00:00.000000000 Z
11
+ date: 2022-03-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common