tencentcloud-sdk-python-faceid 3.0.1459__tar.gz → 3.1.3__tar.gz

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.
Files changed (19) hide show
  1. tencentcloud_sdk_python_faceid-3.1.3/PKG-INFO +46 -0
  2. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/setup.py +2 -1
  3. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud/faceid/v20180301/errorcodes.py +0 -6
  5. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud/faceid/v20180301/faceid_client.py +0 -23
  6. tencentcloud_sdk_python_faceid-3.1.3/tencentcloud/faceid/v20180301/faceid_client_async.py +674 -0
  7. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud/faceid/v20180301/models.py +45 -195
  8. tencentcloud_sdk_python_faceid-3.1.3/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +46 -0
  9. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +1 -0
  10. tencentcloud_sdk_python_faceid-3.1.3/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
  11. tencentcloud-sdk-python-faceid-3.0.1459/PKG-INFO +0 -45
  12. tencentcloud-sdk-python-faceid-3.0.1459/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +0 -45
  13. tencentcloud-sdk-python-faceid-3.0.1459/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
  14. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/README.rst +0 -0
  15. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/setup.cfg +0 -0
  16. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud/faceid/__init__.py +0 -0
  17. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud/faceid/v20180301/__init__.py +0 -0
  18. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
  19. {tencentcloud-sdk-python-faceid-3.0.1459 → tencentcloud_sdk_python_faceid-3.1.3}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-faceid
3
+ Version: 3.1.3
4
+ Summary: Tencent Cloud Faceid SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.3
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Faceid SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-faceid
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common faceid
46
+
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-faceid',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1459,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.3,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Faceid SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1459'
17
+ __version__ = '3.1.3'
@@ -233,9 +233,6 @@ FAILEDOPERATION_UNKNOWN = 'FailedOperation.UnKnown'
233
233
  # 该用户未注册E证通,请先注册并跟权威库核验。
234
234
  FAILEDOPERATION_UNREGISTEREDEID = 'FailedOperation.UnregisteredEid'
235
235
 
236
- # 认证不通过。
237
- FAILEDOPERATION_VERIFICATIONFAIL = 'FailedOperation.VerificationFail'
238
-
239
236
  # 视频解码异常
240
237
  FAILEDOPERATION_VIDEODECODEFAILED = 'FailedOperation.VideoDecodeFailed'
241
238
 
@@ -254,9 +251,6 @@ INTERNALERROR_UNKNOWN = 'InternalError.UnKnown'
254
251
  # 参数错误。
255
252
  INVALIDPARAMETER = 'InvalidParameter'
256
253
 
257
- # RuleId不存在。
258
- INVALIDPARAMETER_RULEID = 'InvalidParameter.RuleId'
259
-
260
254
  # 存在不加密的字段,请参考文档修改。
261
255
  INVALIDPARAMETER_UNSUPPORTENCRYPTFIELD = 'InvalidParameter.UnsupportEncryptField'
262
256
 
@@ -624,29 +624,6 @@ class FaceidClient(AbstractClient):
624
624
  raise TencentCloudSDKException(type(e).__name__, str(e))
625
625
 
626
626
 
627
- def Liveness(self, request):
628
- r"""活体检测
629
-
630
- :param request: Request instance for Liveness.
631
- :type request: :class:`tencentcloud.faceid.v20180301.models.LivenessRequest`
632
- :rtype: :class:`tencentcloud.faceid.v20180301.models.LivenessResponse`
633
-
634
- """
635
- try:
636
- params = request._serialize()
637
- headers = request.headers
638
- body = self.call("Liveness", params, headers=headers)
639
- response = json.loads(body)
640
- model = models.LivenessResponse()
641
- model._deserialize(response["Response"])
642
- return model
643
- except Exception as e:
644
- if isinstance(e, TencentCloudSDKException):
645
- raise
646
- else:
647
- raise TencentCloudSDKException(type(e).__name__, str(e))
648
-
649
-
650
627
  def LivenessCompare(self, request):
651
628
  r"""传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
652
629
 
@@ -0,0 +1,674 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.faceid.v20180301 import models
20
+ from typing import Dict
21
+
22
+
23
+ class FaceidClient(AbstractClient):
24
+ _apiVersion = '2018-03-01'
25
+ _endpoint = 'faceid.tencentcloudapi.com'
26
+ _service = 'faceid'
27
+
28
+ async def BankCard2EVerification(
29
+ self,
30
+ request: models.BankCard2EVerificationRequest,
31
+ opts: Dict = None,
32
+ ) -> models.BankCard2EVerificationResponse:
33
+ """
34
+ 本接口用于校验姓名和银行卡号的真实性和一致性。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "BankCard2EVerification"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.BankCard2EVerificationResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def BankCard4EVerification(
47
+ self,
48
+ request: models.BankCard4EVerificationRequest,
49
+ opts: Dict = None,
50
+ ) -> models.BankCard4EVerificationResponse:
51
+ """
52
+ 本接口用于输入银行卡号、姓名、开户证件号、开户手机号,校验信息的真实性和一致性。
53
+ """
54
+
55
+ kwargs = {}
56
+ kwargs["action"] = "BankCard4EVerification"
57
+ kwargs["params"] = request._serialize()
58
+ kwargs["resp_cls"] = models.BankCard4EVerificationResponse
59
+ kwargs["headers"] = request.headers
60
+ kwargs["opts"] = opts or {}
61
+
62
+ return await self.call_and_deserialize(**kwargs)
63
+
64
+ async def BankCardVerification(
65
+ self,
66
+ request: models.BankCardVerificationRequest,
67
+ opts: Dict = None,
68
+ ) -> models.BankCardVerificationResponse:
69
+ """
70
+ 本接口用于银行卡号、姓名、开户证件号信息的真实性和一致性。
71
+ """
72
+
73
+ kwargs = {}
74
+ kwargs["action"] = "BankCardVerification"
75
+ kwargs["params"] = request._serialize()
76
+ kwargs["resp_cls"] = models.BankCardVerificationResponse
77
+ kwargs["headers"] = request.headers
78
+ kwargs["opts"] = opts or {}
79
+
80
+ return await self.call_and_deserialize(**kwargs)
81
+
82
+ async def CheckBankCardInformation(
83
+ self,
84
+ request: models.CheckBankCardInformationRequest,
85
+ opts: Dict = None,
86
+ ) -> models.CheckBankCardInformationResponse:
87
+ """
88
+ 银行卡基础信息查询
89
+ """
90
+
91
+ kwargs = {}
92
+ kwargs["action"] = "CheckBankCardInformation"
93
+ kwargs["params"] = request._serialize()
94
+ kwargs["resp_cls"] = models.CheckBankCardInformationResponse
95
+ kwargs["headers"] = request.headers
96
+ kwargs["opts"] = opts or {}
97
+
98
+ return await self.call_and_deserialize(**kwargs)
99
+
100
+ async def CheckEidTokenStatus(
101
+ self,
102
+ request: models.CheckEidTokenStatusRequest,
103
+ opts: Dict = None,
104
+ ) -> models.CheckEidTokenStatusResponse:
105
+ """
106
+ 用于轮询E证通H5场景EidToken验证状态。
107
+ """
108
+
109
+ kwargs = {}
110
+ kwargs["action"] = "CheckEidTokenStatus"
111
+ kwargs["params"] = request._serialize()
112
+ kwargs["resp_cls"] = models.CheckEidTokenStatusResponse
113
+ kwargs["headers"] = request.headers
114
+ kwargs["opts"] = opts or {}
115
+
116
+ return await self.call_and_deserialize(**kwargs)
117
+
118
+ async def CheckIdCardInformation(
119
+ self,
120
+ request: models.CheckIdCardInformationRequest,
121
+ opts: Dict = None,
122
+ ) -> models.CheckIdCardInformationResponse:
123
+ """
124
+ 传入身份证人像面照片,识别身份证照片上的信息,并将姓名、身份证号、身份证人像照片与权威库的证件照进行比对,是否属于同一个人,从而验证身份证信息的真实性。
125
+ """
126
+
127
+ kwargs = {}
128
+ kwargs["action"] = "CheckIdCardInformation"
129
+ kwargs["params"] = request._serialize()
130
+ kwargs["resp_cls"] = models.CheckIdCardInformationResponse
131
+ kwargs["headers"] = request.headers
132
+ kwargs["opts"] = opts or {}
133
+
134
+ return await self.call_and_deserialize(**kwargs)
135
+
136
+ async def CheckIdNameDate(
137
+ self,
138
+ request: models.CheckIdNameDateRequest,
139
+ opts: Dict = None,
140
+ ) -> models.CheckIdNameDateResponse:
141
+ """
142
+ 本接口用于校验姓名、身份证号、身份证有效期的真实性和一致性。
143
+ """
144
+
145
+ kwargs = {}
146
+ kwargs["action"] = "CheckIdNameDate"
147
+ kwargs["params"] = request._serialize()
148
+ kwargs["resp_cls"] = models.CheckIdNameDateResponse
149
+ kwargs["headers"] = request.headers
150
+ kwargs["opts"] = opts or {}
151
+
152
+ return await self.call_and_deserialize(**kwargs)
153
+
154
+ async def CheckPhoneAndName(
155
+ self,
156
+ request: models.CheckPhoneAndNameRequest,
157
+ opts: Dict = None,
158
+ ) -> models.CheckPhoneAndNameResponse:
159
+ """
160
+ 手机号二要素核验接口用于校验手机号和姓名的真实性和一致性,支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
161
+ """
162
+
163
+ kwargs = {}
164
+ kwargs["action"] = "CheckPhoneAndName"
165
+ kwargs["params"] = request._serialize()
166
+ kwargs["resp_cls"] = models.CheckPhoneAndNameResponse
167
+ kwargs["headers"] = request.headers
168
+ kwargs["opts"] = opts or {}
169
+
170
+ return await self.call_and_deserialize(**kwargs)
171
+
172
+ async def DetectAIFakeFaces(
173
+ self,
174
+ request: models.DetectAIFakeFacesRequest,
175
+ opts: Dict = None,
176
+ ) -> models.DetectAIFakeFacesResponse:
177
+ """
178
+ 基于多模态的AI大模型算法,提供对人脸图片、视频的防攻击检测能力,可针对性有效识别高仿真的AIGC换脸、高清翻拍、批量黑产攻击、水印等攻击痕迹,增强对图片和视频的防伪安全能力。
179
+ """
180
+
181
+ kwargs = {}
182
+ kwargs["action"] = "DetectAIFakeFaces"
183
+ kwargs["params"] = request._serialize()
184
+ kwargs["resp_cls"] = models.DetectAIFakeFacesResponse
185
+ kwargs["headers"] = request.headers
186
+ kwargs["opts"] = opts or {}
187
+
188
+ return await self.call_and_deserialize(**kwargs)
189
+
190
+ async def DetectAuth(
191
+ self,
192
+ request: models.DetectAuthRequest,
193
+ opts: Dict = None,
194
+ ) -> models.DetectAuthResponse:
195
+ """
196
+ 每次调用人脸核身SaaS化服务前,需先调用本接口获取BizToken,用来串联核身流程,在验证完成后,用于获取验证结果信息。
197
+ """
198
+
199
+ kwargs = {}
200
+ kwargs["action"] = "DetectAuth"
201
+ kwargs["params"] = request._serialize()
202
+ kwargs["resp_cls"] = models.DetectAuthResponse
203
+ kwargs["headers"] = request.headers
204
+ kwargs["opts"] = opts or {}
205
+
206
+ return await self.call_and_deserialize(**kwargs)
207
+
208
+ async def EncryptedPhoneVerification(
209
+ self,
210
+ request: models.EncryptedPhoneVerificationRequest,
211
+ opts: Dict = None,
212
+ ) -> models.EncryptedPhoneVerificationResponse:
213
+ """
214
+ 本接口用于校验手机号、姓名和身份证号的真实性和一致性,入参支持明文、MD5和SHA256加密传输。
215
+ """
216
+
217
+ kwargs = {}
218
+ kwargs["action"] = "EncryptedPhoneVerification"
219
+ kwargs["params"] = request._serialize()
220
+ kwargs["resp_cls"] = models.EncryptedPhoneVerificationResponse
221
+ kwargs["headers"] = request.headers
222
+ kwargs["opts"] = opts or {}
223
+
224
+ return await self.call_and_deserialize(**kwargs)
225
+
226
+ async def GetActionSequence(
227
+ self,
228
+ request: models.GetActionSequenceRequest,
229
+ opts: Dict = None,
230
+ ) -> models.GetActionSequenceResponse:
231
+ """
232
+ 使用动作活体检测模式前,需调用本接口获取动作顺序。
233
+ """
234
+
235
+ kwargs = {}
236
+ kwargs["action"] = "GetActionSequence"
237
+ kwargs["params"] = request._serialize()
238
+ kwargs["resp_cls"] = models.GetActionSequenceResponse
239
+ kwargs["headers"] = request.headers
240
+ kwargs["opts"] = opts or {}
241
+
242
+ return await self.call_and_deserialize(**kwargs)
243
+
244
+ async def GetDetectInfo(
245
+ self,
246
+ request: models.GetDetectInfoRequest,
247
+ opts: Dict = None,
248
+ ) -> models.GetDetectInfoResponse:
249
+ """
250
+ 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
251
+ """
252
+
253
+ kwargs = {}
254
+ kwargs["action"] = "GetDetectInfo"
255
+ kwargs["params"] = request._serialize()
256
+ kwargs["resp_cls"] = models.GetDetectInfoResponse
257
+ kwargs["headers"] = request.headers
258
+ kwargs["opts"] = opts or {}
259
+
260
+ return await self.call_and_deserialize(**kwargs)
261
+
262
+ async def GetDetectInfoEnhanced(
263
+ self,
264
+ request: models.GetDetectInfoEnhancedRequest,
265
+ opts: Dict = None,
266
+ ) -> models.GetDetectInfoEnhancedResponse:
267
+ """
268
+ 完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
269
+ """
270
+
271
+ kwargs = {}
272
+ kwargs["action"] = "GetDetectInfoEnhanced"
273
+ kwargs["params"] = request._serialize()
274
+ kwargs["resp_cls"] = models.GetDetectInfoEnhancedResponse
275
+ kwargs["headers"] = request.headers
276
+ kwargs["opts"] = opts or {}
277
+
278
+ return await self.call_and_deserialize(**kwargs)
279
+
280
+ async def GetEidResult(
281
+ self,
282
+ request: models.GetEidResultRequest,
283
+ opts: Dict = None,
284
+ ) -> models.GetEidResultResponse:
285
+ """
286
+ 完成验证后,用EidToken调用本接口获取结果信息,EidToken生成后三天内(3\*24\*3,600秒)可多次拉取。
287
+ """
288
+
289
+ kwargs = {}
290
+ kwargs["action"] = "GetEidResult"
291
+ kwargs["params"] = request._serialize()
292
+ kwargs["resp_cls"] = models.GetEidResultResponse
293
+ kwargs["headers"] = request.headers
294
+ kwargs["opts"] = opts or {}
295
+
296
+ return await self.call_and_deserialize(**kwargs)
297
+
298
+ async def GetEidToken(
299
+ self,
300
+ request: models.GetEidTokenRequest,
301
+ opts: Dict = None,
302
+ ) -> models.GetEidTokenResponse:
303
+ """
304
+ 每次调用E证通服务前,需先调用本接口获取EidToken,用来串联E证通流程,在验证完成后,用于获取E证通结果信息。
305
+ """
306
+
307
+ kwargs = {}
308
+ kwargs["action"] = "GetEidToken"
309
+ kwargs["params"] = request._serialize()
310
+ kwargs["resp_cls"] = models.GetEidTokenResponse
311
+ kwargs["headers"] = request.headers
312
+ kwargs["opts"] = opts or {}
313
+
314
+ return await self.call_and_deserialize(**kwargs)
315
+
316
+ async def GetFaceIdResult(
317
+ self,
318
+ request: models.GetFaceIdResultRequest,
319
+ opts: Dict = None,
320
+ ) -> models.GetFaceIdResultResponse:
321
+ """
322
+ 完成验证后,用FaceIdToken调用本接口获取结果信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
323
+ """
324
+
325
+ kwargs = {}
326
+ kwargs["action"] = "GetFaceIdResult"
327
+ kwargs["params"] = request._serialize()
328
+ kwargs["resp_cls"] = models.GetFaceIdResultResponse
329
+ kwargs["headers"] = request.headers
330
+ kwargs["opts"] = opts or {}
331
+
332
+ return await self.call_and_deserialize(**kwargs)
333
+
334
+ async def GetFaceIdRiskInfo(
335
+ self,
336
+ request: models.GetFaceIdRiskInfoRequest,
337
+ opts: Dict = None,
338
+ ) -> models.GetFaceIdRiskInfoResponse:
339
+ """
340
+ 完成验证后,用FaceIdToken调用本接口获取设备风险相关信息,FaceIdToken生成后三天内(3\*24\*3,600秒)可多次拉取。
341
+ """
342
+
343
+ kwargs = {}
344
+ kwargs["action"] = "GetFaceIdRiskInfo"
345
+ kwargs["params"] = request._serialize()
346
+ kwargs["resp_cls"] = models.GetFaceIdRiskInfoResponse
347
+ kwargs["headers"] = request.headers
348
+ kwargs["opts"] = opts or {}
349
+
350
+ return await self.call_and_deserialize(**kwargs)
351
+
352
+ async def GetFaceIdToken(
353
+ self,
354
+ request: models.GetFaceIdTokenRequest,
355
+ opts: Dict = None,
356
+ ) -> models.GetFaceIdTokenResponse:
357
+ """
358
+ 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取验证结果信息,该token仅能核身一次。
359
+ """
360
+
361
+ kwargs = {}
362
+ kwargs["action"] = "GetFaceIdToken"
363
+ kwargs["params"] = request._serialize()
364
+ kwargs["resp_cls"] = models.GetFaceIdTokenResponse
365
+ kwargs["headers"] = request.headers
366
+ kwargs["opts"] = opts or {}
367
+
368
+ return await self.call_and_deserialize(**kwargs)
369
+
370
+ async def GetFaceidRiskInfoToken(
371
+ self,
372
+ request: models.GetFaceidRiskInfoTokenRequest,
373
+ opts: Dict = None,
374
+ ) -> models.GetFaceidRiskInfoTokenResponse:
375
+ """
376
+ 每次调用人脸核身SDK服务前,需先调用本接口获取SDKToken,用来串联核身流程,在验证完成后,用于获取风险结果信息,该Token仅能核身一次。
377
+ """
378
+
379
+ kwargs = {}
380
+ kwargs["action"] = "GetFaceidRiskInfoToken"
381
+ kwargs["params"] = request._serialize()
382
+ kwargs["resp_cls"] = models.GetFaceidRiskInfoTokenResponse
383
+ kwargs["headers"] = request.headers
384
+ kwargs["opts"] = opts or {}
385
+
386
+ return await self.call_and_deserialize(**kwargs)
387
+
388
+ async def GetLiveCode(
389
+ self,
390
+ request: models.GetLiveCodeRequest,
391
+ opts: Dict = None,
392
+ ) -> models.GetLiveCodeResponse:
393
+ """
394
+ 使用数字活体检测模式前,需调用本接口获取数字验证码。
395
+ """
396
+
397
+ kwargs = {}
398
+ kwargs["action"] = "GetLiveCode"
399
+ kwargs["params"] = request._serialize()
400
+ kwargs["resp_cls"] = models.GetLiveCodeResponse
401
+ kwargs["headers"] = request.headers
402
+ kwargs["opts"] = opts or {}
403
+
404
+ return await self.call_and_deserialize(**kwargs)
405
+
406
+ async def GetWeChatBillDetails(
407
+ self,
408
+ request: models.GetWeChatBillDetailsRequest,
409
+ opts: Dict = None,
410
+ ) -> models.GetWeChatBillDetailsResponse:
411
+ """
412
+ 查询微信渠道服务(微信小程序、微信原生H5、微信普通H5)的账单明细及计费状态。
413
+ """
414
+
415
+ kwargs = {}
416
+ kwargs["action"] = "GetWeChatBillDetails"
417
+ kwargs["params"] = request._serialize()
418
+ kwargs["resp_cls"] = models.GetWeChatBillDetailsResponse
419
+ kwargs["headers"] = request.headers
420
+ kwargs["opts"] = opts or {}
421
+
422
+ return await self.call_and_deserialize(**kwargs)
423
+
424
+ async def IdCardOCRVerification(
425
+ self,
426
+ request: models.IdCardOCRVerificationRequest,
427
+ opts: Dict = None,
428
+ ) -> models.IdCardOCRVerificationResponse:
429
+ """
430
+ 本接口用于校验姓名和身份证号的真实性和一致性,您可以通过输入姓名和身份证号或传入身份证人像面照片提供所需验证信息。
431
+ """
432
+
433
+ kwargs = {}
434
+ kwargs["action"] = "IdCardOCRVerification"
435
+ kwargs["params"] = request._serialize()
436
+ kwargs["resp_cls"] = models.IdCardOCRVerificationResponse
437
+ kwargs["headers"] = request.headers
438
+ kwargs["opts"] = opts or {}
439
+
440
+ return await self.call_and_deserialize(**kwargs)
441
+
442
+ async def IdCardVerification(
443
+ self,
444
+ request: models.IdCardVerificationRequest,
445
+ opts: Dict = None,
446
+ ) -> models.IdCardVerificationResponse:
447
+ """
448
+ 传入姓名和身份证号,校验两者的真实性和一致性。
449
+ """
450
+
451
+ kwargs = {}
452
+ kwargs["action"] = "IdCardVerification"
453
+ kwargs["params"] = request._serialize()
454
+ kwargs["resp_cls"] = models.IdCardVerificationResponse
455
+ kwargs["headers"] = request.headers
456
+ kwargs["opts"] = opts or {}
457
+
458
+ return await self.call_and_deserialize(**kwargs)
459
+
460
+ async def ImageRecognition(
461
+ self,
462
+ request: models.ImageRecognitionRequest,
463
+ opts: Dict = None,
464
+ ) -> models.ImageRecognitionResponse:
465
+ """
466
+ 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
467
+ """
468
+
469
+ kwargs = {}
470
+ kwargs["action"] = "ImageRecognition"
471
+ kwargs["params"] = request._serialize()
472
+ kwargs["resp_cls"] = models.ImageRecognitionResponse
473
+ kwargs["headers"] = request.headers
474
+ kwargs["opts"] = opts or {}
475
+
476
+ return await self.call_and_deserialize(**kwargs)
477
+
478
+ async def ImageRecognitionV2(
479
+ self,
480
+ request: models.ImageRecognitionV2Request,
481
+ opts: Dict = None,
482
+ ) -> models.ImageRecognitionV2Response:
483
+ """
484
+ 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
485
+ """
486
+
487
+ kwargs = {}
488
+ kwargs["action"] = "ImageRecognitionV2"
489
+ kwargs["params"] = request._serialize()
490
+ kwargs["resp_cls"] = models.ImageRecognitionV2Response
491
+ kwargs["headers"] = request.headers
492
+ kwargs["opts"] = opts or {}
493
+
494
+ return await self.call_and_deserialize(**kwargs)
495
+
496
+ async def LivenessCompare(
497
+ self,
498
+ request: models.LivenessCompareRequest,
499
+ opts: Dict = None,
500
+ ) -> models.LivenessCompareResponse:
501
+ """
502
+ 传入视频和照片,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与上传照片是否属于同一个人。
503
+ """
504
+
505
+ kwargs = {}
506
+ kwargs["action"] = "LivenessCompare"
507
+ kwargs["params"] = request._serialize()
508
+ kwargs["resp_cls"] = models.LivenessCompareResponse
509
+ kwargs["headers"] = request.headers
510
+ kwargs["opts"] = opts or {}
511
+
512
+ return await self.call_and_deserialize(**kwargs)
513
+
514
+ async def LivenessRecognition(
515
+ self,
516
+ request: models.LivenessRecognitionRequest,
517
+ opts: Dict = None,
518
+ ) -> models.LivenessRecognitionResponse:
519
+ """
520
+ 传入视频和身份信息,先判断视频中是否为真人,判断为真人后,再判断该视频中的人与权威库的证件照是否属于同一个人。
521
+ """
522
+
523
+ kwargs = {}
524
+ kwargs["action"] = "LivenessRecognition"
525
+ kwargs["params"] = request._serialize()
526
+ kwargs["resp_cls"] = models.LivenessRecognitionResponse
527
+ kwargs["headers"] = request.headers
528
+ kwargs["opts"] = opts or {}
529
+
530
+ return await self.call_and_deserialize(**kwargs)
531
+
532
+ async def MinorsVerification(
533
+ self,
534
+ request: models.MinorsVerificationRequest,
535
+ opts: Dict = None,
536
+ ) -> models.MinorsVerificationResponse:
537
+ """
538
+ 通过传入手机号或姓名和身份证号,结合权威数据源和腾讯健康守护可信模型,判断该信息是否真实且年满18周岁。腾讯健康守护可信模型覆盖了上十亿手机库源,覆盖率高、准确率高,如果不在库中的手机号,还可以通过姓名+身份证进行兜底验证。
539
+ """
540
+
541
+ kwargs = {}
542
+ kwargs["action"] = "MinorsVerification"
543
+ kwargs["params"] = request._serialize()
544
+ kwargs["resp_cls"] = models.MinorsVerificationResponse
545
+ kwargs["headers"] = request.headers
546
+ kwargs["opts"] = opts or {}
547
+
548
+ return await self.call_and_deserialize(**kwargs)
549
+
550
+ async def MobileNetworkTimeVerification(
551
+ self,
552
+ request: models.MobileNetworkTimeVerificationRequest,
553
+ opts: Dict = None,
554
+ ) -> models.MobileNetworkTimeVerificationResponse:
555
+ """
556
+ 本接口用于查询手机号在网时长,输入手机号进行查询。
557
+ """
558
+
559
+ kwargs = {}
560
+ kwargs["action"] = "MobileNetworkTimeVerification"
561
+ kwargs["params"] = request._serialize()
562
+ kwargs["resp_cls"] = models.MobileNetworkTimeVerificationResponse
563
+ kwargs["headers"] = request.headers
564
+ kwargs["opts"] = opts or {}
565
+
566
+ return await self.call_and_deserialize(**kwargs)
567
+
568
+ async def MobileStatus(
569
+ self,
570
+ request: models.MobileStatusRequest,
571
+ opts: Dict = None,
572
+ ) -> models.MobileStatusResponse:
573
+ """
574
+ 本接口用于验证手机号的状态,您可以输入手机号进行查询。
575
+ """
576
+
577
+ kwargs = {}
578
+ kwargs["action"] = "MobileStatus"
579
+ kwargs["params"] = request._serialize()
580
+ kwargs["resp_cls"] = models.MobileStatusResponse
581
+ kwargs["headers"] = request.headers
582
+ kwargs["opts"] = opts or {}
583
+
584
+ return await self.call_and_deserialize(**kwargs)
585
+
586
+ async def ParseNfcData(
587
+ self,
588
+ request: models.ParseNfcDataRequest,
589
+ opts: Dict = None,
590
+ ) -> models.ParseNfcDataResponse:
591
+ """
592
+ 解析SDK获取到的证件NFC数据,接口传入SDK返回的ReqId,返回证件信息(个别字段为特定证件类型特有)。SDK生成的ReqId五分钟内有效,重复查询仅收一次费。支持身份证类证件(二代身份证、港澳居住证、台湾居住证、外国人永居证)以及旅行类证件(港澳通行证、台湾通行证、台胞证、回乡证)的NFC识别及核验。
593
+ """
594
+
595
+ kwargs = {}
596
+ kwargs["action"] = "ParseNfcData"
597
+ kwargs["params"] = request._serialize()
598
+ kwargs["resp_cls"] = models.ParseNfcDataResponse
599
+ kwargs["headers"] = request.headers
600
+ kwargs["opts"] = opts or {}
601
+
602
+ return await self.call_and_deserialize(**kwargs)
603
+
604
+ async def PhoneVerification(
605
+ self,
606
+ request: models.PhoneVerificationRequest,
607
+ opts: Dict = None,
608
+ ) -> models.PhoneVerificationResponse:
609
+ """
610
+ 本接口用于校验手机号、姓名和身份证号的真实性和一致性。支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
611
+ """
612
+
613
+ kwargs = {}
614
+ kwargs["action"] = "PhoneVerification"
615
+ kwargs["params"] = request._serialize()
616
+ kwargs["resp_cls"] = models.PhoneVerificationResponse
617
+ kwargs["headers"] = request.headers
618
+ kwargs["opts"] = opts or {}
619
+
620
+ return await self.call_and_deserialize(**kwargs)
621
+
622
+ async def PhoneVerificationCMCC(
623
+ self,
624
+ request: models.PhoneVerificationCMCCRequest,
625
+ opts: Dict = None,
626
+ ) -> models.PhoneVerificationCMCCResponse:
627
+ """
628
+ 本接口用于校验中国移动手机号、姓名和身份证号的真实性和一致性。中国移动支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
629
+ """
630
+
631
+ kwargs = {}
632
+ kwargs["action"] = "PhoneVerificationCMCC"
633
+ kwargs["params"] = request._serialize()
634
+ kwargs["resp_cls"] = models.PhoneVerificationCMCCResponse
635
+ kwargs["headers"] = request.headers
636
+ kwargs["opts"] = opts or {}
637
+
638
+ return await self.call_and_deserialize(**kwargs)
639
+
640
+ async def PhoneVerificationCTCC(
641
+ self,
642
+ request: models.PhoneVerificationCTCCRequest,
643
+ opts: Dict = None,
644
+ ) -> models.PhoneVerificationCTCCResponse:
645
+ """
646
+ 本接口用于校验中国电信手机号、姓名和身份证号的真实性和一致性。中国电信支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
647
+ """
648
+
649
+ kwargs = {}
650
+ kwargs["action"] = "PhoneVerificationCTCC"
651
+ kwargs["params"] = request._serialize()
652
+ kwargs["resp_cls"] = models.PhoneVerificationCTCCResponse
653
+ kwargs["headers"] = request.headers
654
+ kwargs["opts"] = opts or {}
655
+
656
+ return await self.call_and_deserialize(**kwargs)
657
+
658
+ async def PhoneVerificationCUCC(
659
+ self,
660
+ request: models.PhoneVerificationCUCCRequest,
661
+ opts: Dict = None,
662
+ ) -> models.PhoneVerificationCUCCResponse:
663
+ """
664
+ 本接口用于校验中国联通手机号、姓名和身份证号的真实性和一致性。中国联通支持的手机号段详情请查阅<a href="https://cloud.tencent.com/document/product/1007/46063">运营商类</a>文档。
665
+ """
666
+
667
+ kwargs = {}
668
+ kwargs["action"] = "PhoneVerificationCUCC"
669
+ kwargs["params"] = request._serialize()
670
+ kwargs["resp_cls"] = models.PhoneVerificationCUCCResponse
671
+ kwargs["headers"] = request.headers
672
+ kwargs["opts"] = opts or {}
673
+
674
+ return await self.call_and_deserialize(**kwargs)
@@ -1911,13 +1911,15 @@ Base64编码后的大小建议在8M以内、最大不可超过10M,支持mp4、
1911
1911
  视频分辨率建议为480x640(最大支持720p),帧率在25fps~30fps之间。
1912
1912
  请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
1913
1913
 
1914
- 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
1914
+ 若您未使用Encryption进行加密传输,则本字段为必填参数。
1915
1915
  :type FaceInput: str
1916
1916
  :param _FaceInputType: 传入的类型。
1917
1917
  - 取值范围:
1918
1918
  1:传入的是图片类型。
1919
1919
  2:传入的是视频类型。
1920
1920
  其他:返回错误码InvalidParameter。
1921
+
1922
+ 若您未使用Encryption进行加密传输,则本字段为必填参数。
1921
1923
  :type FaceInputType: int
1922
1924
  :param _Encryption: 是否需要对请求信息进行全包体加密。
1923
1925
  - 支持的加密算法:AES-256-CBC、SM4-GCM。
@@ -1947,7 +1949,7 @@ Base64编码后的大小建议在8M以内、最大不可超过10M,支持mp4、
1947
1949
  视频分辨率建议为480x640(最大支持720p),帧率在25fps~30fps之间。
1948
1950
  请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
1949
1951
 
1950
- 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
1952
+ 若您未使用Encryption进行加密传输,则本字段为必填参数。
1951
1953
  :rtype: str
1952
1954
  """
1953
1955
  return self._FaceInput
@@ -1963,6 +1965,8 @@ Base64编码后的大小建议在8M以内、最大不可超过10M,支持mp4、
1963
1965
  1:传入的是图片类型。
1964
1966
  2:传入的是视频类型。
1965
1967
  其他:返回错误码InvalidParameter。
1968
+
1969
+ 若您未使用Encryption进行加密传输,则本字段为必填参数。
1966
1970
  :rtype: int
1967
1971
  """
1968
1972
  return self._FaceInputType
@@ -3010,7 +3014,7 @@ class DetectInfoText(AbstractModel):
3010
3014
  :type Comparemsg: str
3011
3015
  :param _Sim: 本次流程活体一比一的分数。
3012
3016
  - 取值范围 [0.00, 100.00]。
3013
- - 相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值。
3017
+ - 相似度大于等于70时才判断为同一人,阈值不支持自定义。
3014
3018
  - 阈值70的误通过率为千分之一,阈值80的误通过率是万分之一。
3015
3019
  注意:此字段可能返回 null,表示取不到有效值。
3016
3020
  :type Sim: str
@@ -3074,6 +3078,17 @@ class DetectInfoText(AbstractModel):
3074
3078
  :param _VisaNum: 港澳台居住证签发次数。
3075
3079
  注意:此字段可能返回 null,表示取不到有效值。
3076
3080
  :type VisaNum: str
3081
+ :param _LivenessActionSequence: 活体检测的动作顺序,多动作以“,”分隔。
3082
+ 输出格式如:“1,2”表示“张嘴+眨眼”。
3083
+ - 详细序列值含义如下:
3084
+ 1:张嘴
3085
+ 2:眨眼
3086
+ 3:点头
3087
+ 4:摇头
3088
+ 5:静默
3089
+ 注:仅浮层H5产品返回
3090
+ 注意:此字段可能返回 null,表示取不到有效值。
3091
+ :type LivenessActionSequence: str
3077
3092
  """
3078
3093
  self._ErrCode = None
3079
3094
  self._ErrMsg = None
@@ -3105,6 +3120,7 @@ class DetectInfoText(AbstractModel):
3105
3120
  self._NFCBillingCounts = None
3106
3121
  self._PassNo = None
3107
3122
  self._VisaNum = None
3123
+ self._LivenessActionSequence = None
3108
3124
 
3109
3125
  @property
3110
3126
  def ErrCode(self):
@@ -3340,7 +3356,7 @@ class DetectInfoText(AbstractModel):
3340
3356
  def Sim(self):
3341
3357
  r"""本次流程活体一比一的分数。
3342
3358
  - 取值范围 [0.00, 100.00]。
3343
- - 相似度大于等于70时才判断为同一人,也可根据具体场景自行调整阈值。
3359
+ - 相似度大于等于70时才判断为同一人,阈值不支持自定义。
3344
3360
  - 阈值70的误通过率为千分之一,阈值80的误通过率是万分之一。
3345
3361
  注意:此字段可能返回 null,表示取不到有效值。
3346
3362
  :rtype: str
@@ -3510,6 +3526,26 @@ class DetectInfoText(AbstractModel):
3510
3526
  def VisaNum(self, VisaNum):
3511
3527
  self._VisaNum = VisaNum
3512
3528
 
3529
+ @property
3530
+ def LivenessActionSequence(self):
3531
+ r"""活体检测的动作顺序,多动作以“,”分隔。
3532
+ 输出格式如:“1,2”表示“张嘴+眨眼”。
3533
+ - 详细序列值含义如下:
3534
+ 1:张嘴
3535
+ 2:眨眼
3536
+ 3:点头
3537
+ 4:摇头
3538
+ 5:静默
3539
+ 注:仅浮层H5产品返回
3540
+ 注意:此字段可能返回 null,表示取不到有效值。
3541
+ :rtype: str
3542
+ """
3543
+ return self._LivenessActionSequence
3544
+
3545
+ @LivenessActionSequence.setter
3546
+ def LivenessActionSequence(self, LivenessActionSequence):
3547
+ self._LivenessActionSequence = LivenessActionSequence
3548
+
3513
3549
 
3514
3550
  def _deserialize(self, params):
3515
3551
  self._ErrCode = params.get("ErrCode")
@@ -3547,6 +3583,7 @@ class DetectInfoText(AbstractModel):
3547
3583
  self._NFCBillingCounts = params.get("NFCBillingCounts")
3548
3584
  self._PassNo = params.get("PassNo")
3549
3585
  self._VisaNum = params.get("VisaNum")
3586
+ self._LivenessActionSequence = params.get("LivenessActionSequence")
3550
3587
  memeber_set = set(params.keys())
3551
3588
  for name, value in vars(self).items():
3552
3589
  property_name = name[1:]
@@ -7616,14 +7653,14 @@ class IntentionActionConfig(AbstractModel):
7616
7653
 
7617
7654
  def __init__(self):
7618
7655
  r"""
7619
- :param _Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
7656
+ :param _Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为250个字符。
7620
7657
  :type Text: str
7621
7658
  """
7622
7659
  self._Text = None
7623
7660
 
7624
7661
  @property
7625
7662
  def Text(self):
7626
- r"""点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
7663
+ r"""点头确认模式下,系统语音播报使用的问题文本,问题最大长度为250个字符。
7627
7664
  :rtype: str
7628
7665
  """
7629
7666
  return self._Text
@@ -7827,7 +7864,7 @@ class IntentionQuestion(AbstractModel):
7827
7864
  def __init__(self):
7828
7865
  r"""
7829
7866
  :param _Question: 当选择语音问答模式时,系统自动播报的问题文本。
7830
- - 最大长度为150个字符。
7867
+ - 最大长度为250个字符。
7831
7868
  :type Question: str
7832
7869
  :param _Answers: 当选择语音问答模式时,用于判断用户回答是否通过的标准答案列表。
7833
7870
  - 传入后可自动判断用户回答文本是否在标准文本列表中。
@@ -7840,7 +7877,7 @@ class IntentionQuestion(AbstractModel):
7840
7877
  @property
7841
7878
  def Question(self):
7842
7879
  r"""当选择语音问答模式时,系统自动播报的问题文本。
7843
- - 最大长度为150个字符。
7880
+ - 最大长度为250个字符。
7844
7881
  :rtype: str
7845
7882
  """
7846
7883
  return self._Question
@@ -8832,193 +8869,6 @@ class LivenessRecognitionResponse(AbstractModel):
8832
8869
  self._RequestId = params.get("RequestId")
8833
8870
 
8834
8871
 
8835
- class LivenessRequest(AbstractModel):
8836
- r"""Liveness请求参数结构体
8837
-
8838
- """
8839
-
8840
- def __init__(self):
8841
- r"""
8842
- :param _VideoBase64: 用于活体检测的视频,视频的BASE64值;
8843
- BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
8844
- :type VideoBase64: str
8845
- :param _LivenessType: 活体检测类型,取值:LIP/ACTION/SILENT。
8846
- LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
8847
- :type LivenessType: str
8848
- :param _ValidateData: 数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
8849
- 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
8850
- 静默模式传参:不需要传递此参数。
8851
- :type ValidateData: str
8852
- :param _Optional: 额外配置,传入JSON字符串。
8853
- {
8854
- "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
8855
- }
8856
- :type Optional: str
8857
- """
8858
- self._VideoBase64 = None
8859
- self._LivenessType = None
8860
- self._ValidateData = None
8861
- self._Optional = None
8862
-
8863
- @property
8864
- def VideoBase64(self):
8865
- r"""用于活体检测的视频,视频的BASE64值;
8866
- BASE64编码后的大小不超过8M,支持mp4、avi、flv格式。
8867
- :rtype: str
8868
- """
8869
- return self._VideoBase64
8870
-
8871
- @VideoBase64.setter
8872
- def VideoBase64(self, VideoBase64):
8873
- self._VideoBase64 = VideoBase64
8874
-
8875
- @property
8876
- def LivenessType(self):
8877
- r"""活体检测类型,取值:LIP/ACTION/SILENT。
8878
- LIP为数字模式,ACTION为动作模式,SILENT为静默模式,三种模式选择一种传入。
8879
- :rtype: str
8880
- """
8881
- return self._LivenessType
8882
-
8883
- @LivenessType.setter
8884
- def LivenessType(self, LivenessType):
8885
- self._LivenessType = LivenessType
8886
-
8887
- @property
8888
- def ValidateData(self):
8889
- r"""数字模式传参:数字验证码(1234),需先调用接口获取数字验证码;
8890
- 动作模式传参:传动作顺序(2,1 or 1,2),需先调用接口获取动作顺序;
8891
- 静默模式传参:不需要传递此参数。
8892
- :rtype: str
8893
- """
8894
- return self._ValidateData
8895
-
8896
- @ValidateData.setter
8897
- def ValidateData(self, ValidateData):
8898
- self._ValidateData = ValidateData
8899
-
8900
- @property
8901
- def Optional(self):
8902
- r"""额外配置,传入JSON字符串。
8903
- {
8904
- "BestFrameNum": 2 //需要返回多张最佳截图,取值范围1-10
8905
- }
8906
- :rtype: str
8907
- """
8908
- return self._Optional
8909
-
8910
- @Optional.setter
8911
- def Optional(self, Optional):
8912
- self._Optional = Optional
8913
-
8914
-
8915
- def _deserialize(self, params):
8916
- self._VideoBase64 = params.get("VideoBase64")
8917
- self._LivenessType = params.get("LivenessType")
8918
- self._ValidateData = params.get("ValidateData")
8919
- self._Optional = params.get("Optional")
8920
- memeber_set = set(params.keys())
8921
- for name, value in vars(self).items():
8922
- property_name = name[1:]
8923
- if property_name in memeber_set:
8924
- memeber_set.remove(property_name)
8925
- if len(memeber_set) > 0:
8926
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
8927
-
8928
-
8929
-
8930
- class LivenessResponse(AbstractModel):
8931
- r"""Liveness返回参数结构体
8932
-
8933
- """
8934
-
8935
- def __init__(self):
8936
- r"""
8937
- :param _BestFrameBase64: 验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
8938
- 注意:此字段可能返回 null,表示取不到有效值。
8939
- :type BestFrameBase64: str
8940
- :param _Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
8941
- :type Result: str
8942
- :param _Description: 业务结果描述。
8943
- :type Description: str
8944
- :param _BestFrameList: 最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
8945
- 注意:此字段可能返回 null,表示取不到有效值。
8946
- :type BestFrameList: list of str
8947
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8948
- :type RequestId: str
8949
- """
8950
- self._BestFrameBase64 = None
8951
- self._Result = None
8952
- self._Description = None
8953
- self._BestFrameList = None
8954
- self._RequestId = None
8955
-
8956
- @property
8957
- def BestFrameBase64(self):
8958
- r"""验证通过后的视频最佳截图照片,照片为BASE64编码后的值,jpg格式。
8959
- 注意:此字段可能返回 null,表示取不到有效值。
8960
- :rtype: str
8961
- """
8962
- return self._BestFrameBase64
8963
-
8964
- @BestFrameBase64.setter
8965
- def BestFrameBase64(self, BestFrameBase64):
8966
- self._BestFrameBase64 = BestFrameBase64
8967
-
8968
- @property
8969
- def Result(self):
8970
- r"""业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
8971
- :rtype: str
8972
- """
8973
- return self._Result
8974
-
8975
- @Result.setter
8976
- def Result(self, Result):
8977
- self._Result = Result
8978
-
8979
- @property
8980
- def Description(self):
8981
- r"""业务结果描述。
8982
- :rtype: str
8983
- """
8984
- return self._Description
8985
-
8986
- @Description.setter
8987
- def Description(self, Description):
8988
- self._Description = Description
8989
-
8990
- @property
8991
- def BestFrameList(self):
8992
- r"""最佳最佳截图列表,仅在配置了返回多张最佳截图时有效。
8993
- 注意:此字段可能返回 null,表示取不到有效值。
8994
- :rtype: list of str
8995
- """
8996
- return self._BestFrameList
8997
-
8998
- @BestFrameList.setter
8999
- def BestFrameList(self, BestFrameList):
9000
- self._BestFrameList = BestFrameList
9001
-
9002
- @property
9003
- def RequestId(self):
9004
- r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9005
- :rtype: str
9006
- """
9007
- return self._RequestId
9008
-
9009
- @RequestId.setter
9010
- def RequestId(self, RequestId):
9011
- self._RequestId = RequestId
9012
-
9013
-
9014
- def _deserialize(self, params):
9015
- self._BestFrameBase64 = params.get("BestFrameBase64")
9016
- self._Result = params.get("Result")
9017
- self._Description = params.get("Description")
9018
- self._BestFrameList = params.get("BestFrameList")
9019
- self._RequestId = params.get("RequestId")
9020
-
9021
-
9022
8872
  class MinorsVerificationRequest(AbstractModel):
9023
8873
  r"""MinorsVerification请求参数结构体
9024
8874
 
@@ -0,0 +1,46 @@
1
+ Metadata-Version: 2.1
2
+ Name: tencentcloud-sdk-python-faceid
3
+ Version: 3.1.3
4
+ Summary: Tencent Cloud Faceid SDK for Python
5
+ Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
+ Author: Tencent Cloud
7
+ Maintainer-email: tencentcloudapi@tencent.com
8
+ License: Apache License 2.0
9
+ Platform: any
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: License :: OSI Approved :: Apache Software License
13
+ Classifier: Programming Language :: Python
14
+ Classifier: Programming Language :: Python :: 2.7
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.3
19
+
20
+ ============================
21
+ Tencent Cloud SDK for Python
22
+ ============================
23
+
24
+ Tencent Cloud Python Faceid SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
25
+ The SDK works on Python versions:
26
+
27
+ * 2.7 and greater, including 3.x
28
+
29
+ Quick Start
30
+ -----------
31
+
32
+ First, install the library:
33
+
34
+ .. code-block:: sh
35
+
36
+ $ pip install tencentcloud-sdk-python-common
37
+ $ pip install tencentcloud-sdk-python-faceid
38
+
39
+ or download source code from github and install:
40
+
41
+ .. code-block:: sh
42
+
43
+ $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
44
+ $ cd tencentcloud-sdk-python
45
+ $ python package.py --components common faceid
46
+
@@ -6,6 +6,7 @@ tencentcloud/faceid/__init__.py
6
6
  tencentcloud/faceid/v20180301/__init__.py
7
7
  tencentcloud/faceid/v20180301/errorcodes.py
8
8
  tencentcloud/faceid/v20180301/faceid_client.py
9
+ tencentcloud/faceid/v20180301/faceid_client_async.py
9
10
  tencentcloud/faceid/v20180301/models.py
10
11
  tencentcloud_sdk_python_faceid.egg-info/PKG-INFO
11
12
  tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.3
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-faceid
3
- Version: 3.0.1459
4
- Summary: Tencent Cloud Faceid SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Faceid SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-faceid
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common faceid
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1,45 +0,0 @@
1
- Metadata-Version: 1.2
2
- Name: tencentcloud-sdk-python-faceid
3
- Version: 3.0.1459
4
- Summary: Tencent Cloud Faceid SDK for Python
5
- Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
- Author: Tencent Cloud
7
- Maintainer-email: tencentcloudapi@tencent.com
8
- License: Apache License 2.0
9
- Description: ============================
10
- Tencent Cloud SDK for Python
11
- ============================
12
-
13
- Tencent Cloud Python Faceid SDK is the official software development kit, which allows Python developers to write software that makes use of Tencent Cloud services like CVM and CBS.
14
- The SDK works on Python versions:
15
-
16
- * 2.7 and greater, including 3.x
17
-
18
- Quick Start
19
- -----------
20
-
21
- First, install the library:
22
-
23
- .. code-block:: sh
24
-
25
- $ pip install tencentcloud-sdk-python-common
26
- $ pip install tencentcloud-sdk-python-faceid
27
-
28
- or download source code from github and install:
29
-
30
- .. code-block:: sh
31
-
32
- $ git clone https://github.com/tencentcloud/tencentcloud-sdk-python.git
33
- $ cd tencentcloud-sdk-python
34
- $ python package.py --components common faceid
35
-
36
-
37
- Platform: any
38
- Classifier: Development Status :: 5 - Production/Stable
39
- Classifier: Intended Audience :: Developers
40
- Classifier: License :: OSI Approved :: Apache Software License
41
- Classifier: Programming Language :: Python
42
- Classifier: Programming Language :: Python :: 2.7
43
- Classifier: Programming Language :: Python :: 3
44
- Classifier: Programming Language :: Python :: 3.6
45
- Classifier: Programming Language :: Python :: 3.7
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1459