tencentcloud-sdk-faceid 3.0.720 → 3.0.722
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 +69 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3d0b5e0a49f6865aac1183134be9204e52a2aa5
|
4
|
+
data.tar.gz: a4c6117b6121151b5b296f2f6e6197b77c126050
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 874c0308bbdd676281d54536c3d4c22c6aef038c98a6a96400d53ca289a46a326b0db992b370564db3627b2a3d9b7d93cf71956ff5d1d2517fcdf4a9c9e85a1a
|
7
|
+
data.tar.gz: 42ebfe9cf7caac6444acfdd60508b4f4bebf9c73d7d00a4d26c4ada9aab29c37b948292306bbaf1deb72b6c057c6232240b4128e3380c7e89ed4d3f20ae525b9
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.722
|
data/lib/v20180301/client.rb
CHANGED
@@ -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.
|
data/lib/v20180301/models.rb
CHANGED
@@ -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,
|
308
|
-
deprecate :Idcard=, :none, 2023,
|
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,
|
2564
|
-
deprecate :AsrResultSimilarity=, :none, 2023,
|
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.
|
4
|
+
version: 3.0.722
|
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-
|
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
|