tencentcloud-sdk-faceid 1.0.224 → 1.0.225

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: 21cd262c7e4721b601c8148d72420d3aba314318
4
- data.tar.gz: faadd54fa0283cb2c19d3c1fcec9b0c4f704ba3c
3
+ metadata.gz: ed259fa141a4aa817eb883a343737f2af9ebf653
4
+ data.tar.gz: 67a2f96f38531a610d330a6ac3492858ad2a8202
5
5
  SHA512:
6
- metadata.gz: bd29b5a14b540ecac12640998653bd48b4dcef7576526a17bf86386567092a999606e222058c05527bd432a5a48cc36c4a704a3a66b74c3cf4f4de20b5ccf8ac
7
- data.tar.gz: d063e44b3549e88683640153b1e5d6bf78a1c5d218f0c905b4d7e52819c2741e818e58c7a78e1d096117bf0f214381a529a6ca6852a8b54ef12fbf9c18261c6c
6
+ metadata.gz: c8f6e7651f20f8015e4392397454790c9aa3b7d4c4033d1a634c1b592003a4491507c2b8379306c93d5f867714a84b878e98f1aab77061edc9736bf60852d28d
7
+ data.tar.gz: c8bbd21dbceea78adf9e188828944f23e5f79f94e265407829232afbfebdd91e69c76945d41942db243dae229358b3eac7e077ac1c0e1e0bf1ccdddcdc9cc573
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.224
1
+ 1.0.225
@@ -245,6 +245,30 @@ module TencentCloud
245
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
246
246
  end
247
247
 
248
+ # 使用一闪SDK生成的数据包检测活体,并和用户传入的图片进行比对。
249
+
250
+ # @param request: Request instance for DetectReflectLivenessAndCompare.
251
+ # @type request: :class:`Tencentcloud::faceid::V20180301::DetectReflectLivenessAndCompareRequest`
252
+ # @rtype: :class:`Tencentcloud::faceid::V20180301::DetectReflectLivenessAndCompareResponse`
253
+ def DetectReflectLivenessAndCompare(request)
254
+ body = send_request('DetectReflectLivenessAndCompare', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = DetectReflectLivenessAndCompareResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
248
272
  # 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持MD5加密传输。
249
273
 
250
274
  # @param request: Request instance for EncryptedPhoneVerification.
@@ -977,6 +977,70 @@ module TencentCloud
977
977
  end
978
978
  end
979
979
 
980
+ # DetectReflectLivenessAndCompare请求参数结构体
981
+ class DetectReflectLivenessAndCompareRequest < TencentCloud::Common::AbstractModel
982
+ # @param LiveDataUrl: SDK生成的数据包活体数据包的资源地址。
983
+ # @type LiveDataUrl: String
984
+ # @param LiveDataMd5: SDK生成的数据包活体数据包的资源Md5。
985
+ # @type LiveDataMd5: String
986
+ # @param ImageUrl: 用于比对的目标图片的资源地址。
987
+ # @type ImageUrl: String
988
+ # @param ImageMd5: 用于比对的目标图片的资源Md5。
989
+ # @type ImageMd5: String
990
+
991
+ attr_accessor :LiveDataUrl, :LiveDataMd5, :ImageUrl, :ImageMd5
992
+
993
+ def initialize(livedataurl=nil, livedatamd5=nil, imageurl=nil, imagemd5=nil)
994
+ @LiveDataUrl = livedataurl
995
+ @LiveDataMd5 = livedatamd5
996
+ @ImageUrl = imageurl
997
+ @ImageMd5 = imagemd5
998
+ end
999
+
1000
+ def deserialize(params)
1001
+ @LiveDataUrl = params['LiveDataUrl']
1002
+ @LiveDataMd5 = params['LiveDataMd5']
1003
+ @ImageUrl = params['ImageUrl']
1004
+ @ImageMd5 = params['ImageMd5']
1005
+ end
1006
+ end
1007
+
1008
+ # DetectReflectLivenessAndCompare返回参数结构体
1009
+ class DetectReflectLivenessAndCompareResponse < TencentCloud::Common::AbstractModel
1010
+ # @param BestFrameUrl: 验证通过后的视频最佳截图照片资源地址,jpg格式。
1011
+ # @type BestFrameUrl: String
1012
+ # @param BestFrameMd5: 验证通过后的视频最佳截图照片资源Md5。
1013
+ # @type BestFrameMd5: String
1014
+ # @param Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
1015
+ # @type Result: String
1016
+ # @param Description: 业务结果描述。
1017
+ # @type Description: String
1018
+ # @param Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
1019
+ # @type Sim: Float
1020
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1021
+ # @type RequestId: String
1022
+
1023
+ attr_accessor :BestFrameUrl, :BestFrameMd5, :Result, :Description, :Sim, :RequestId
1024
+
1025
+ def initialize(bestframeurl=nil, bestframemd5=nil, result=nil, description=nil, sim=nil, requestid=nil)
1026
+ @BestFrameUrl = bestframeurl
1027
+ @BestFrameMd5 = bestframemd5
1028
+ @Result = result
1029
+ @Description = description
1030
+ @Sim = sim
1031
+ @RequestId = requestid
1032
+ end
1033
+
1034
+ def deserialize(params)
1035
+ @BestFrameUrl = params['BestFrameUrl']
1036
+ @BestFrameMd5 = params['BestFrameMd5']
1037
+ @Result = params['Result']
1038
+ @Description = params['Description']
1039
+ @Sim = params['Sim']
1040
+ @RequestId = params['RequestId']
1041
+ end
1042
+ end
1043
+
980
1044
  # Eid出参,包括商户方用户的标识和加密的用户姓名身份证信息。
981
1045
  class EidInfo < TencentCloud::Common::AbstractModel
982
1046
  # @param EidCode: 商户方 appeIDcode 的数字证书
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: 1.0.224
4
+ version: 1.0.225
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-15 00:00:00.000000000 Z
11
+ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common