tencentcloud-sdk-faceid 3.0.700 → 3.0.701
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180301/client.rb +24 -0
- data/lib/v20180301/models.rb +91 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb2e05f7cf0c56689d6add78b368186172effc09
|
4
|
+
data.tar.gz: 0dba8312f6c2df98077e647e3aa793102b27c4c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ed30b262854e73dfa20db9aedd8d2656a61473c34d37d5564c6966e23d1c54e51c7060c3c830dab78cbffaa51a51bc4022bd7916be6310ed9dd47b8d976111
|
7
|
+
data.tar.gz: e683c33c97fbfa2e94990b7a73807764a0d7ecddefbcd4784aed03a6ba5d0c0c8c9f7cbee5b1e2c259bb5ffc6db7d04369c4d069c92ecbbc50d04a3a2184bd49
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.701
|
data/lib/v20180301/client.rb
CHANGED
@@ -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.
|
data/lib/v20180301/models.rb
CHANGED
@@ -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)进行咨询。
|