tencentcloud-sdk-faceid 3.0.719 → 3.0.721

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: d691bd49d9629528803f967b7e43a7aac3d874a6
4
- data.tar.gz: e0f68aefc016b96623141da5e01faec758f35dc0
3
+ metadata.gz: 53ac21acb382a1033178ebd35644a923e567e931
4
+ data.tar.gz: 775795afa9623271857776f4513d152516afdc6f
5
5
  SHA512:
6
- metadata.gz: 8985b1da11ab3d31deeedb237f68d54b2944ba35e6be316eb8f29d92e985bb41510a6d91a1f973c0cced502ed307544f5d44d9bf0ae6a2431bc2cc5a315e0614
7
- data.tar.gz: 06351a9a6e38038134560eb751a87845e41c0c0b4c4979acbbc7aa09e7a91a69a13087134dc565964478c1592351cda8485f64891c5d17448416fa0a5e6e0158
6
+ metadata.gz: ab38ccedc73598abfc1225ce6e53297ab0ce9d9a80dc64601128e02bf730e90034d6d14bcdee746b31419b0548ac30aedd75c3e852c0c9973358fe831b6d7d45
7
+ data.tar.gz: 6542bba918c97946f0bf08779c43418db920f92bb4ae102f502f1a5829a45f35521aba5a33e18f8d994e74ea7fdc53726ed5da12c6bebb0b4afe84607bfdefcf
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.719
1
+ 3.0.721
@@ -581,6 +581,30 @@ module TencentCloud
581
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
582
  end
583
583
 
584
+ # 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
585
+
586
+ # @param request: Request instance for ImageRecognitionV2.
587
+ # @type request: :class:`Tencentcloud::faceid::V20180301::ImageRecognitionV2Request`
588
+ # @rtype: :class:`Tencentcloud::faceid::V20180301::ImageRecognitionV2Response`
589
+ def ImageRecognitionV2(request)
590
+ body = send_request('ImageRecognitionV2', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = ImageRecognitionV2Response.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
584
608
  # 活体检测
585
609
 
586
610
  # @param request: Request instance for Liveness.
@@ -304,8 +304,8 @@ module TencentCloud
304
304
 
305
305
  attr_accessor :ReqTime, :Seq, :IdCard, :Idcard, :Name, :Sim, :IsNeedCharge, :ChargeType, :ErrorCode, :ErrorMessage
306
306
  extend Gem::Deprecate
307
- deprecate :Idcard, :none, 2023, 11
308
- deprecate :Idcard=, :none, 2023, 11
307
+ deprecate :Idcard, :none, 2023, 12
308
+ deprecate :Idcard=, :none, 2023, 12
309
309
 
310
310
  def initialize(reqtime=nil, seq=nil, idcard=nil, idcard=nil, name=nil, sim=nil, isneedcharge=nil, chargetype=nil, errorcode=nil, errormessage=nil)
311
311
  @ReqTime = reqtime
@@ -2353,6 +2353,71 @@ module TencentCloud
2353
2353
  end
2354
2354
  end
2355
2355
 
2356
+ # ImageRecognitionV2请求参数结构体
2357
+ class ImageRecognitionV2Request < TencentCloud::Common::AbstractModel
2358
+ # @param IdCard: 身份证号
2359
+ # @type IdCard: String
2360
+ # @param Name: 姓名。中文请使用UTF-8编码。
2361
+ # @type Name: String
2362
+ # @param ImageBase64: 用于人脸比对的照片,图片的Base64值;
2363
+ # Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
2364
+ # 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
2365
+ # @type ImageBase64: String
2366
+ # @param Optional: 本接口不需要传递此参数。
2367
+ # @type Optional: String
2368
+ # @param Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
2369
+ # @type Encryption: :class:`Tencentcloud::Faceid.v20180301.models.Encryption`
2370
+
2371
+ attr_accessor :IdCard, :Name, :ImageBase64, :Optional, :Encryption
2372
+
2373
+ def initialize(idcard=nil, name=nil, imagebase64=nil, optional=nil, encryption=nil)
2374
+ @IdCard = idcard
2375
+ @Name = name
2376
+ @ImageBase64 = imagebase64
2377
+ @Optional = optional
2378
+ @Encryption = encryption
2379
+ end
2380
+
2381
+ def deserialize(params)
2382
+ @IdCard = params['IdCard']
2383
+ @Name = params['Name']
2384
+ @ImageBase64 = params['ImageBase64']
2385
+ @Optional = params['Optional']
2386
+ unless params['Encryption'].nil?
2387
+ @Encryption = Encryption.new
2388
+ @Encryption.deserialize(params['Encryption'])
2389
+ end
2390
+ end
2391
+ end
2392
+
2393
+ # ImageRecognitionV2返回参数结构体
2394
+ class ImageRecognitionV2Response < TencentCloud::Common::AbstractModel
2395
+ # @param Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
2396
+ # @type Sim: Float
2397
+ # @param Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
2398
+ # @type Result: String
2399
+ # @param Description: 业务结果描述。
2400
+ # @type Description: String
2401
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2402
+ # @type RequestId: String
2403
+
2404
+ attr_accessor :Sim, :Result, :Description, :RequestId
2405
+
2406
+ def initialize(sim=nil, result=nil, description=nil, requestid=nil)
2407
+ @Sim = sim
2408
+ @Result = result
2409
+ @Description = description
2410
+ @RequestId = requestid
2411
+ end
2412
+
2413
+ def deserialize(params)
2414
+ @Sim = params['Sim']
2415
+ @Result = params['Result']
2416
+ @Description = params['Description']
2417
+ @RequestId = params['RequestId']
2418
+ end
2419
+ end
2420
+
2356
2421
  # 意愿核身(点头确认模式)配置
2357
2422
  class IntentionActionConfig < TencentCloud::Common::AbstractModel
2358
2423
  # @param Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
@@ -2560,8 +2625,8 @@ module TencentCloud
2560
2625
 
2561
2626
  attr_accessor :IntentionVerifyVideo, :AsrResult, :ErrorCode, :ErrorMessage, :IntentionVerifyBestFrame, :AsrResultSimilarity
2562
2627
  extend Gem::Deprecate
2563
- deprecate :AsrResultSimilarity, :none, 2023, 11
2564
- deprecate :AsrResultSimilarity=, :none, 2023, 11
2628
+ deprecate :AsrResultSimilarity, :none, 2023, 12
2629
+ deprecate :AsrResultSimilarity=, :none, 2023, 12
2565
2630
 
2566
2631
  def initialize(intentionverifyvideo=nil, asrresult=nil, errorcode=nil, errormessage=nil, intentionverifybestframe=nil, asrresultsimilarity=nil)
2567
2632
  @IntentionVerifyVideo = intentionverifyvideo
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.719
4
+ version: 3.0.721
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-12-04 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common