tencentcloud-sdk-faceid 3.0.700 → 3.0.702

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0de995a0400967a33de458910be82a0df9a9c6c5
4
- data.tar.gz: 0f940c7845cedd9647e640b17df41f33b9310b7c
3
+ metadata.gz: 725eb9224199b50464dc1cb1f4cd303226c4b07a
4
+ data.tar.gz: ab9d9513c1ff380c2fad5bffed8b795b053d9a85
5
5
  SHA512:
6
- metadata.gz: a682bd899356306eb6351389eb2366e972377632611e2f2ac8934dcaccf8731ec59a329c1d0d4ce27f3570e895fb577dde88f9025d00df56b03f004a90f53e4d
7
- data.tar.gz: 333421dda7c5aa2b758c73273abe18961c4327812a92202e0b9b8e10680cda411739ce2d302a76209fc1d8a1271630fb3db9801d8d3cf7a86cee3a058757f852
6
+ metadata.gz: 1654f3b51a06c3aecda515e9d0b508e77af663ae72d459267d799b638d50b1bc692bcd3a037bad0c48201c13e1fe3eb5f6ed2257946330f425e9aead7b080b3f
7
+ data.tar.gz: 531e54deb05e27d66692b3b4a0abfa0aefab79381b8eac97a12215607bd66de03700eaf519da2369a61e59cc7c7d3235b51ee49863cc8b8ab7c607a2b578ff45
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.700
1
+ 3.0.702
@@ -221,6 +221,30 @@ module TencentCloud
221
221
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
222
  end
223
223
 
224
+ # 提供对人脸图片/视频的AI合成、翻拍、水印等攻击痕迹的检测,增强图片/视频防伪能力
225
+
226
+ # @param request: Request instance for DetectAIFakeFaces.
227
+ # @type request: :class:`Tencentcloud::faceid::V20180301::DetectAIFakeFacesRequest`
228
+ # @rtype: :class:`Tencentcloud::faceid::V20180301::DetectAIFakeFacesResponse`
229
+ def DetectAIFakeFaces(request)
230
+ body = send_request('DetectAIFakeFaces', request.serialize)
231
+ response = JSON.parse(body)
232
+ if response['Response'].key?('Error') == false
233
+ model = DetectAIFakeFacesResponse.new
234
+ model.deserialize(response['Response'])
235
+ model
236
+ else
237
+ code = response['Response']['Error']['Code']
238
+ message = response['Response']['Error']['Message']
239
+ reqid = response['Response']['RequestId']
240
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
241
+ end
242
+ rescue TencentCloud::Common::TencentCloudSDKException => e
243
+ raise e
244
+ rescue StandardError => e
245
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
+ end
247
+
224
248
  # 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
225
249
 
226
250
  # @param request: Request instance for DetectAuth.
@@ -17,6 +17,30 @@
17
17
  module TencentCloud
18
18
  module Faceid
19
19
  module V20180301
20
+ # 疑似攻击风险详情
21
+ class AttackRiskDetail < TencentCloud::Common::AbstractModel
22
+ # @param Type: 疑似的攻击痕迹类型
23
+ # SuspectedSpoofingAttack:翻拍攻击
24
+ # SuspectedSynthesisImage:疑似合成图片
25
+ # SuspectedSynthesisVideo:疑似合成视频
26
+ # SuspectedeAnomalyAttack:人脸特征疑似非真人
27
+ # SuspectedAdversarialAttack:疑似对抗样本攻击
28
+ # SuspectedBlackIndustry:疑似黑产攻击
29
+ # SuspectedWatermark:疑似存在水印
30
+ # 注意:此字段可能返回 null,表示取不到有效值。
31
+ # @type Type: String
32
+
33
+ attr_accessor :Type
34
+
35
+ def initialize(type=nil)
36
+ @Type = type
37
+ end
38
+
39
+ def deserialize(params)
40
+ @Type = params['Type']
41
+ end
42
+ end
43
+
20
44
  # BankCard2EVerification请求参数结构体
21
45
  class BankCard2EVerificationRequest < TencentCloud::Common::AbstractModel
22
46
  # @param Name: 姓名
@@ -667,6 +691,73 @@ module TencentCloud
667
691
  end
668
692
  end
669
693
 
694
+ # DetectAIFakeFaces请求参数结构体
695
+ class DetectAIFakeFacesRequest < TencentCloud::Common::AbstractModel
696
+ # @param FaceInput: 传入需要进行检测的带有人脸的图片或视频,使用base64编码的形式。
697
+
698
+ # 图片的Base64值:
699
+ # 建议整体图像480x640的分辨率,脸部 大小 100X100 以上;
700
+ # Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
701
+
702
+ # 视频的Base64值:
703
+ # Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
704
+ # 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
705
+ # @type FaceInput: String
706
+ # @param FaceInputType: 传入的类型
707
+ # 1- 传入的是图片类型
708
+ # 2- 传入的是视频类型
709
+ # 其他 - 返回错误码InvalidParameter
710
+ # @type FaceInputType: Integer
711
+
712
+ attr_accessor :FaceInput, :FaceInputType
713
+
714
+ def initialize(faceinput=nil, faceinputtype=nil)
715
+ @FaceInput = faceinput
716
+ @FaceInputType = faceinputtype
717
+ end
718
+
719
+ def deserialize(params)
720
+ @FaceInput = params['FaceInput']
721
+ @FaceInputType = params['FaceInputType']
722
+ end
723
+ end
724
+
725
+ # DetectAIFakeFaces返回参数结构体
726
+ class DetectAIFakeFacesResponse < TencentCloud::Common::AbstractModel
727
+ # @param AttackRiskLevel: 检测到的图片是否存在攻击:
728
+ # Low:无攻击风险
729
+ # Mid:中度疑似攻击
730
+ # High:高度疑似攻击
731
+ # @type AttackRiskLevel: String
732
+ # @param AttackRiskDetailList: 检测到疑似的攻击痕迹列表
733
+ # 说明:未检测到攻击痕迹时,返回空数组
734
+ # 此出参仅作为结果判断的参考,实际应用仍建议使用AttackRiskLevel的结果。
735
+ # @type AttackRiskDetailList: Array
736
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
737
+ # @type RequestId: String
738
+
739
+ attr_accessor :AttackRiskLevel, :AttackRiskDetailList, :RequestId
740
+
741
+ def initialize(attackrisklevel=nil, attackriskdetaillist=nil, requestid=nil)
742
+ @AttackRiskLevel = attackrisklevel
743
+ @AttackRiskDetailList = attackriskdetaillist
744
+ @RequestId = requestid
745
+ end
746
+
747
+ def deserialize(params)
748
+ @AttackRiskLevel = params['AttackRiskLevel']
749
+ unless params['AttackRiskDetailList'].nil?
750
+ @AttackRiskDetailList = []
751
+ params['AttackRiskDetailList'].each do |i|
752
+ attackriskdetail_tmp = AttackRiskDetail.new
753
+ attackriskdetail_tmp.deserialize(i)
754
+ @AttackRiskDetailList << attackriskdetail_tmp
755
+ end
756
+ end
757
+ @RequestId = params['RequestId']
758
+ end
759
+ end
760
+
670
761
  # DetectAuth请求参数结构体
671
762
  class DetectAuthRequest < TencentCloud::Common::AbstractModel
672
763
  # @param RuleId: 用于细分客户使用场景,申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。如有疑问,请添加[腾讯云人脸核身小助手](https://cloud.tencent.com/document/product/1007/56130)进行咨询。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-faceid
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.700
4
+ version: 3.0.702
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-13 00:00:00.000000000 Z
11
+ date: 2023-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-faceid.rb
37
- - lib/v20180301/client.rb
38
36
  - lib/v20180301/models.rb
37
+ - lib/v20180301/client.rb
38
+ - lib/tencentcloud-sdk-faceid.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: