tencentcloud-sdk-faceid 3.0.1137 → 3.0.1182
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20180301/client.rb +0 -24
- data/lib/v20180301/models.rb +31 -86
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d58342d874fd963de06f79abb50b93a6cfd488a
|
|
4
|
+
data.tar.gz: 04f0960cb3a5a9cfb7842cdec417ea2f2eebf167
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef9c0b231c7008ca2e20ee4ac171a520bf49c656aababd8d484dbe31736961dc747a87ebebd6c29ccdb3f011fbbdafe04bb9c88c9ed032b1531463baaf079312
|
|
7
|
+
data.tar.gz: 84a2183722e0c86ff413b5c9bbbc1a7111bf6c8052840af9b98d43e6bc04574100dddf4139a18507deb66aa3cecd41555f1551655f98cbe91eef33afef16cc2b
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1182
|
data/lib/v20180301/client.rb
CHANGED
|
@@ -653,30 +653,6 @@ module TencentCloud
|
|
|
653
653
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
654
654
|
end
|
|
655
655
|
|
|
656
|
-
# 活体检测
|
|
657
|
-
|
|
658
|
-
# @param request: Request instance for Liveness.
|
|
659
|
-
# @type request: :class:`Tencentcloud::faceid::V20180301::LivenessRequest`
|
|
660
|
-
# @rtype: :class:`Tencentcloud::faceid::V20180301::LivenessResponse`
|
|
661
|
-
def Liveness(request)
|
|
662
|
-
body = send_request('Liveness', request.serialize)
|
|
663
|
-
response = JSON.parse(body)
|
|
664
|
-
if response['Response'].key?('Error') == false
|
|
665
|
-
model = LivenessResponse.new
|
|
666
|
-
model.deserialize(response['Response'])
|
|
667
|
-
model
|
|
668
|
-
else
|
|
669
|
-
code = response['Response']['Error']['Code']
|
|
670
|
-
message = response['Response']['Error']['Message']
|
|
671
|
-
reqid = response['Response']['RequestId']
|
|
672
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
673
|
-
end
|
|
674
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
675
|
-
raise e
|
|
676
|
-
rescue StandardError => e
|
|
677
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
678
|
-
end
|
|
679
|
-
|
|
680
656
|
# 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
|
|
681
657
|
|
|
682
658
|
# @param request: Request instance for LivenessCompare.
|
data/lib/v20180301/models.rb
CHANGED
|
@@ -319,8 +319,8 @@ module TencentCloud
|
|
|
319
319
|
|
|
320
320
|
attr_accessor :ReqTime, :Seq, :IdCard, :Idcard, :Name, :Sim, :IsNeedCharge, :ChargeType, :ErrorCode, :ErrorMessage
|
|
321
321
|
extend Gem::Deprecate
|
|
322
|
-
deprecate :Idcard, :none, 2025,
|
|
323
|
-
deprecate :Idcard=, :none, 2025,
|
|
322
|
+
deprecate :Idcard, :none, 2025, 12
|
|
323
|
+
deprecate :Idcard=, :none, 2025, 12
|
|
324
324
|
|
|
325
325
|
def initialize(reqtime=nil, seq=nil, idcard=nil, name=nil, sim=nil, isneedcharge=nil, chargetype=nil, errorcode=nil, errormessage=nil)
|
|
326
326
|
@ReqTime = reqtime
|
|
@@ -764,13 +764,15 @@ module TencentCloud
|
|
|
764
764
|
# 视频分辨率建议为480x640(最大支持720p),帧率在25fps~30fps之间。
|
|
765
765
|
# 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
766
766
|
|
|
767
|
-
#
|
|
767
|
+
# 若您未使用Encryption进行加密传输,则本字段为必填参数。
|
|
768
768
|
# @type FaceInput: String
|
|
769
769
|
# @param FaceInputType: 传入的类型。
|
|
770
770
|
# - 取值范围:
|
|
771
771
|
# 1:传入的是图片类型。
|
|
772
772
|
# 2:传入的是视频类型。
|
|
773
773
|
# 其他:返回错误码InvalidParameter。
|
|
774
|
+
|
|
775
|
+
# 若您未使用Encryption进行加密传输,则本字段为必填参数。
|
|
774
776
|
# @type FaceInputType: Integer
|
|
775
777
|
# @param Encryption: 是否需要对请求信息进行全包体加密。
|
|
776
778
|
# - 支持的加密算法:AES-256-CBC、SM4-GCM。
|
|
@@ -1220,7 +1222,7 @@ module TencentCloud
|
|
|
1220
1222
|
# @type Comparemsg: String
|
|
1221
1223
|
# @param Sim: 本次流程活体一比一的分数。
|
|
1222
1224
|
# - 取值范围 [0.00, 100.00]。
|
|
1223
|
-
# - 相似度大于等于70
|
|
1225
|
+
# - 相似度大于等于70时才判断为同一人,阈值不支持自定义。
|
|
1224
1226
|
# - 阈值70的误通过率为千分之一,阈值80的误通过率是万分之一。
|
|
1225
1227
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1226
1228
|
# @type Sim: String
|
|
@@ -1284,10 +1286,21 @@ module TencentCloud
|
|
|
1284
1286
|
# @param VisaNum: 港澳台居住证签发次数。
|
|
1285
1287
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1286
1288
|
# @type VisaNum: String
|
|
1289
|
+
# @param LivenessActionSequence: 活体检测的动作顺序,多动作以“,”分隔。
|
|
1290
|
+
# 输出格式如:“1,2”表示“张嘴+眨眼”。
|
|
1291
|
+
# - 详细序列值含义如下:
|
|
1292
|
+
# 1:张嘴
|
|
1293
|
+
# 2:眨眼
|
|
1294
|
+
# 3:点头
|
|
1295
|
+
# 4:摇头
|
|
1296
|
+
# 5:静默
|
|
1297
|
+
# 注:仅浮层H5产品返回
|
|
1298
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1299
|
+
# @type LivenessActionSequence: String
|
|
1287
1300
|
|
|
1288
|
-
attr_accessor :ErrCode, :ErrMsg, :IdCard, :UseIDType, :Name, :OcrNation, :OcrAddress, :OcrBirth, :OcrAuthority, :OcrValidDate, :OcrName, :OcrIdCard, :OcrGender, :IdInfoFrom, :LiveStatus, :LiveMsg, :Comparestatus, :Comparemsg, :Sim, :Location, :Extra, :LivenessDetail, :LivenessInfoTag, :Mobile, :CompareLibType, :LivenessMode, :NFCRequestIds, :NFCBillingCounts, :PassNo, :VisaNum
|
|
1301
|
+
attr_accessor :ErrCode, :ErrMsg, :IdCard, :UseIDType, :Name, :OcrNation, :OcrAddress, :OcrBirth, :OcrAuthority, :OcrValidDate, :OcrName, :OcrIdCard, :OcrGender, :IdInfoFrom, :LiveStatus, :LiveMsg, :Comparestatus, :Comparemsg, :Sim, :Location, :Extra, :LivenessDetail, :LivenessInfoTag, :Mobile, :CompareLibType, :LivenessMode, :NFCRequestIds, :NFCBillingCounts, :PassNo, :VisaNum, :LivenessActionSequence
|
|
1289
1302
|
|
|
1290
|
-
def initialize(errcode=nil, errmsg=nil, idcard=nil, useidtype=nil, name=nil, ocrnation=nil, ocraddress=nil, ocrbirth=nil, ocrauthority=nil, ocrvaliddate=nil, ocrname=nil, ocridcard=nil, ocrgender=nil, idinfofrom=nil, livestatus=nil, livemsg=nil, comparestatus=nil, comparemsg=nil, sim=nil, location=nil, extra=nil, livenessdetail=nil, livenessinfotag=nil, mobile=nil, comparelibtype=nil, livenessmode=nil, nfcrequestids=nil, nfcbillingcounts=nil, passno=nil, visanum=nil)
|
|
1303
|
+
def initialize(errcode=nil, errmsg=nil, idcard=nil, useidtype=nil, name=nil, ocrnation=nil, ocraddress=nil, ocrbirth=nil, ocrauthority=nil, ocrvaliddate=nil, ocrname=nil, ocridcard=nil, ocrgender=nil, idinfofrom=nil, livestatus=nil, livemsg=nil, comparestatus=nil, comparemsg=nil, sim=nil, location=nil, extra=nil, livenessdetail=nil, livenessinfotag=nil, mobile=nil, comparelibtype=nil, livenessmode=nil, nfcrequestids=nil, nfcbillingcounts=nil, passno=nil, visanum=nil, livenessactionsequence=nil)
|
|
1291
1304
|
@ErrCode = errcode
|
|
1292
1305
|
@ErrMsg = errmsg
|
|
1293
1306
|
@IdCard = idcard
|
|
@@ -1318,6 +1331,7 @@ module TencentCloud
|
|
|
1318
1331
|
@NFCBillingCounts = nfcbillingcounts
|
|
1319
1332
|
@PassNo = passno
|
|
1320
1333
|
@VisaNum = visanum
|
|
1334
|
+
@LivenessActionSequence = livenessactionsequence
|
|
1321
1335
|
end
|
|
1322
1336
|
|
|
1323
1337
|
def deserialize(params)
|
|
@@ -1358,6 +1372,7 @@ module TencentCloud
|
|
|
1358
1372
|
@NFCBillingCounts = params['NFCBillingCounts']
|
|
1359
1373
|
@PassNo = params['PassNo']
|
|
1360
1374
|
@VisaNum = params['VisaNum']
|
|
1375
|
+
@LivenessActionSequence = params['LivenessActionSequence']
|
|
1361
1376
|
end
|
|
1362
1377
|
end
|
|
1363
1378
|
|
|
@@ -1598,8 +1613,7 @@ module TencentCloud
|
|
|
1598
1613
|
# - 例如 13 表示拉取文本类、视频最佳截图信息。
|
|
1599
1614
|
# - 默认值:0
|
|
1600
1615
|
# @type InfoType: String
|
|
1601
|
-
# @param BestFramesCount:
|
|
1602
|
-
# - 仅部分服务支持,若需使用请与慧眼小助手沟通。
|
|
1616
|
+
# @param BestFramesCount: 从活体视频中截取一定张数的自截帧。
|
|
1603
1617
|
# - 默认值为0,最大值为10,超出10的最多只给10张。
|
|
1604
1618
|
# - InfoType需要包含3。
|
|
1605
1619
|
# @type BestFramesCount: Integer
|
|
@@ -1687,12 +1701,12 @@ module TencentCloud
|
|
|
1687
1701
|
# @param EncryptedBody: 加密后的数据。
|
|
1688
1702
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1689
1703
|
# @type EncryptedBody: String
|
|
1690
|
-
# @param IsVerifyIntention:
|
|
1691
|
-
# false
|
|
1692
|
-
# true
|
|
1693
|
-
#
|
|
1704
|
+
# @param IsVerifyIntention: 本次请求是否配置开启意愿核身校验。
|
|
1705
|
+
# false:未开启意愿核身校验
|
|
1706
|
+
# true:已开启意愿核身校验
|
|
1707
|
+
# 说明:若请求开启了意愿核身校验,可结合IntentionVerifyType中具体使用的校验模式从对应的出参Result中获取最终的核验结果;若请求没有开启意愿核身校验,则可在出参Text中获取最终的核验结果。
|
|
1694
1708
|
# @type IsVerifyIntention: Boolean
|
|
1695
|
-
# @param IntentionVerifyType:
|
|
1709
|
+
# @param IntentionVerifyType: 本次请求意愿核身校验使用的具体模式。
|
|
1696
1710
|
# 0:问答模式
|
|
1697
1711
|
# 1:点头确认模式
|
|
1698
1712
|
# 2:朗读模式
|
|
@@ -2968,7 +2982,7 @@ module TencentCloud
|
|
|
2968
2982
|
|
|
2969
2983
|
# 意愿核身(点头确认模式)配置
|
|
2970
2984
|
class IntentionActionConfig < TencentCloud::Common::AbstractModel
|
|
2971
|
-
# @param Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为
|
|
2985
|
+
# @param Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为250个字符。
|
|
2972
2986
|
# @type Text: String
|
|
2973
2987
|
|
|
2974
2988
|
attr_accessor :Text
|
|
@@ -3062,7 +3076,7 @@ module TencentCloud
|
|
|
3062
3076
|
# 意愿核身过程中播报的问题文本、用户回答的标准文本。
|
|
3063
3077
|
class IntentionQuestion < TencentCloud::Common::AbstractModel
|
|
3064
3078
|
# @param Question: 当选择语音问答模式时,系统自动播报的问题文本。
|
|
3065
|
-
# - 最大长度为
|
|
3079
|
+
# - 最大长度为250个字符。
|
|
3066
3080
|
# @type Question: String
|
|
3067
3081
|
# @param Answers: 当选择语音问答模式时,用于判断用户回答是否通过的标准答案列表。
|
|
3068
3082
|
# - 传入后可自动判断用户回答文本是否在标准文本列表中。
|
|
@@ -3195,8 +3209,8 @@ module TencentCloud
|
|
|
3195
3209
|
|
|
3196
3210
|
attr_accessor :IntentionVerifyVideo, :AsrResult, :ErrorCode, :ErrorMessage, :IntentionVerifyBestFrame, :AsrResultSimilarity, :IntentionVerifyAudio
|
|
3197
3211
|
extend Gem::Deprecate
|
|
3198
|
-
deprecate :AsrResultSimilarity, :none, 2025,
|
|
3199
|
-
deprecate :AsrResultSimilarity=, :none, 2025,
|
|
3212
|
+
deprecate :AsrResultSimilarity, :none, 2025, 12
|
|
3213
|
+
deprecate :AsrResultSimilarity=, :none, 2025, 12
|
|
3200
3214
|
|
|
3201
3215
|
def initialize(intentionverifyvideo=nil, asrresult=nil, errorcode=nil, errormessage=nil, intentionverifybestframe=nil, asrresultsimilarity=nil, intentionverifyaudio=nil)
|
|
3202
3216
|
@IntentionVerifyVideo = intentionverifyvideo
|
|
@@ -3433,75 +3447,6 @@ module TencentCloud
|
|
|
3433
3447
|
end
|
|
3434
3448
|
end
|
|
3435
3449
|
|
|
3436
|
-
# Liveness请求参数结构体
|
|
3437
|
-
class LivenessRequest < TencentCloud::Common::AbstractModel
|
|
3438
|
-
# @param VideoBase64: 用于活体检测的视频,视频的BASE64值;
|
|
3439
|
-
# BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
|
|
3440
|
-
# @type VideoBase64: String
|
|
3441
|
-
# @param LivenessType: 活体检测类型,取值:LIP/ACTION/SILENT。
|
|
3442
|
-
# LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
|
|
3443
|
-
# @type LivenessType: String
|
|
3444
|
-
# @param ValidateData: 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
|
|
3445
|
-
# 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
|
|
3446
|
-
# 静默模式传参:不需要传递此参数。
|
|
3447
|
-
# @type ValidateData: String
|
|
3448
|
-
# @param Optional: 额外配置,传入JSON字符串。
|
|
3449
|
-
# {
|
|
3450
|
-
# "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
|
|
3451
|
-
# }
|
|
3452
|
-
# @type Optional: String
|
|
3453
|
-
|
|
3454
|
-
attr_accessor :VideoBase64, :LivenessType, :ValidateData, :Optional
|
|
3455
|
-
|
|
3456
|
-
def initialize(videobase64=nil, livenesstype=nil, validatedata=nil, optional=nil)
|
|
3457
|
-
@VideoBase64 = videobase64
|
|
3458
|
-
@LivenessType = livenesstype
|
|
3459
|
-
@ValidateData = validatedata
|
|
3460
|
-
@Optional = optional
|
|
3461
|
-
end
|
|
3462
|
-
|
|
3463
|
-
def deserialize(params)
|
|
3464
|
-
@VideoBase64 = params['VideoBase64']
|
|
3465
|
-
@LivenessType = params['LivenessType']
|
|
3466
|
-
@ValidateData = params['ValidateData']
|
|
3467
|
-
@Optional = params['Optional']
|
|
3468
|
-
end
|
|
3469
|
-
end
|
|
3470
|
-
|
|
3471
|
-
# Liveness返回参数结构体
|
|
3472
|
-
class LivenessResponse < TencentCloud::Common::AbstractModel
|
|
3473
|
-
# @param BestFrameBase64: 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
|
|
3474
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3475
|
-
# @type BestFrameBase64: String
|
|
3476
|
-
# @param Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
3477
|
-
# @type Result: String
|
|
3478
|
-
# @param Description: 业务结果描述。
|
|
3479
|
-
# @type Description: String
|
|
3480
|
-
# @param BestFrameList: 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
|
|
3481
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
3482
|
-
# @type BestFrameList: Array
|
|
3483
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3484
|
-
# @type RequestId: String
|
|
3485
|
-
|
|
3486
|
-
attr_accessor :BestFrameBase64, :Result, :Description, :BestFrameList, :RequestId
|
|
3487
|
-
|
|
3488
|
-
def initialize(bestframebase64=nil, result=nil, description=nil, bestframelist=nil, requestid=nil)
|
|
3489
|
-
@BestFrameBase64 = bestframebase64
|
|
3490
|
-
@Result = result
|
|
3491
|
-
@Description = description
|
|
3492
|
-
@BestFrameList = bestframelist
|
|
3493
|
-
@RequestId = requestid
|
|
3494
|
-
end
|
|
3495
|
-
|
|
3496
|
-
def deserialize(params)
|
|
3497
|
-
@BestFrameBase64 = params['BestFrameBase64']
|
|
3498
|
-
@Result = params['Result']
|
|
3499
|
-
@Description = params['Description']
|
|
3500
|
-
@BestFrameList = params['BestFrameList']
|
|
3501
|
-
@RequestId = params['RequestId']
|
|
3502
|
-
end
|
|
3503
|
-
end
|
|
3504
|
-
|
|
3505
3450
|
# MinorsVerification请求参数结构体
|
|
3506
3451
|
class MinorsVerificationRequest < TencentCloud::Common::AbstractModel
|
|
3507
3452
|
# @param Type: 参与校验的参数类型。
|
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.1182
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-13 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
36
|
- lib/v20180301/models.rb
|
|
38
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:
|