tencentcloud-sdk-python-faceid 3.0.954__tar.gz → 3.0.974__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.
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/setup.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud/faceid/v20180301/errorcodes.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud/faceid/v20180301/models.py +250 -4
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-faceid-3.0.974/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-faceid-3.0.954/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/README.rst +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/setup.cfg +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud/faceid/v20180301/faceid_client.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ 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.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.974"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Faceid SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -260,7 +260,7 @@ UNAUTHORIZEDOPERATION_ACTIVATEERROR = 'UnauthorizedOperation.ActivateError'
|
|
|
260
260
|
# 服务开通中。
|
|
261
261
|
UNAUTHORIZEDOPERATION_ACTIVATING = 'UnauthorizedOperation.Activating'
|
|
262
262
|
|
|
263
|
-
#
|
|
263
|
+
# 账号已欠费。
|
|
264
264
|
UNAUTHORIZEDOPERATION_ARREARS = 'UnauthorizedOperation.Arrears'
|
|
265
265
|
|
|
266
266
|
# 计费状态异常。
|
|
@@ -1363,10 +1363,12 @@ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请
|
|
|
1363
1363
|
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
1364
1364
|
:param _IntentionVerifyText: 意愿核身(朗读模式)使用的文案,若未使用意愿核身(朗读模式),则该字段无需传入。默认为空,最长可接受120的字符串长度。
|
|
1365
1365
|
:type IntentionVerifyText: str
|
|
1366
|
-
:param _IntentionQuestions:
|
|
1366
|
+
:param _IntentionQuestions: 意愿核身语音问答模式(即语音播报+语音回答)使用的文案,包括:系统语音播报的文本、需要核验的标准文本。当前仅支持1轮问答。
|
|
1367
1367
|
:type IntentionQuestions: list of IntentionQuestion
|
|
1368
1368
|
:param _Config: RuleId相关配置
|
|
1369
1369
|
:type Config: :class:`tencentcloud.faceid.v20180301.models.RuleIdConfig`
|
|
1370
|
+
:param _IntentionActions: 意愿核身(点头确认模式)使用的文案,若未使用意愿核身(点头确认模式),则该字段无需传入。当前仅支持一个提示文本。
|
|
1371
|
+
:type IntentionActions: list of IntentionActionConfig
|
|
1370
1372
|
"""
|
|
1371
1373
|
self._RuleId = None
|
|
1372
1374
|
self._TerminalType = None
|
|
@@ -1379,6 +1381,7 @@ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请
|
|
|
1379
1381
|
self._IntentionVerifyText = None
|
|
1380
1382
|
self._IntentionQuestions = None
|
|
1381
1383
|
self._Config = None
|
|
1384
|
+
self._IntentionActions = None
|
|
1382
1385
|
|
|
1383
1386
|
@property
|
|
1384
1387
|
def RuleId(self):
|
|
@@ -1468,6 +1471,14 @@ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请
|
|
|
1468
1471
|
def Config(self, Config):
|
|
1469
1472
|
self._Config = Config
|
|
1470
1473
|
|
|
1474
|
+
@property
|
|
1475
|
+
def IntentionActions(self):
|
|
1476
|
+
return self._IntentionActions
|
|
1477
|
+
|
|
1478
|
+
@IntentionActions.setter
|
|
1479
|
+
def IntentionActions(self, IntentionActions):
|
|
1480
|
+
self._IntentionActions = IntentionActions
|
|
1481
|
+
|
|
1471
1482
|
|
|
1472
1483
|
def _deserialize(self, params):
|
|
1473
1484
|
self._RuleId = params.get("RuleId")
|
|
@@ -1490,6 +1501,12 @@ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。请
|
|
|
1490
1501
|
if params.get("Config") is not None:
|
|
1491
1502
|
self._Config = RuleIdConfig()
|
|
1492
1503
|
self._Config._deserialize(params.get("Config"))
|
|
1504
|
+
if params.get("IntentionActions") is not None:
|
|
1505
|
+
self._IntentionActions = []
|
|
1506
|
+
for item in params.get("IntentionActions"):
|
|
1507
|
+
obj = IntentionActionConfig()
|
|
1508
|
+
obj._deserialize(item)
|
|
1509
|
+
self._IntentionActions.append(obj)
|
|
1493
1510
|
memeber_set = set(params.keys())
|
|
1494
1511
|
for name, value in vars(self).items():
|
|
1495
1512
|
property_name = name[1:]
|
|
@@ -2905,6 +2922,9 @@ class GetDetectInfoEnhancedResponse(AbstractModel):
|
|
|
2905
2922
|
:param _IntentionQuestionResult: 意愿核身问答模式结果。若未使用该意愿核身功能,该字段返回值可以不处理。
|
|
2906
2923
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2907
2924
|
:type IntentionQuestionResult: :class:`tencentcloud.faceid.v20180301.models.IntentionQuestionResult`
|
|
2925
|
+
:param _IntentionActionResult: 意愿核身点头确认模式的结果信息,若未使用该意愿核身功能,该字段返回值可以不处理。
|
|
2926
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2927
|
+
:type IntentionActionResult: :class:`tencentcloud.faceid.v20180301.models.IntentionActionResult`
|
|
2908
2928
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2909
2929
|
:type RequestId: str
|
|
2910
2930
|
"""
|
|
@@ -2915,6 +2935,7 @@ class GetDetectInfoEnhancedResponse(AbstractModel):
|
|
|
2915
2935
|
self._Encryption = None
|
|
2916
2936
|
self._IntentionVerifyData = None
|
|
2917
2937
|
self._IntentionQuestionResult = None
|
|
2938
|
+
self._IntentionActionResult = None
|
|
2918
2939
|
self._RequestId = None
|
|
2919
2940
|
|
|
2920
2941
|
@property
|
|
@@ -2973,6 +2994,14 @@ class GetDetectInfoEnhancedResponse(AbstractModel):
|
|
|
2973
2994
|
def IntentionQuestionResult(self, IntentionQuestionResult):
|
|
2974
2995
|
self._IntentionQuestionResult = IntentionQuestionResult
|
|
2975
2996
|
|
|
2997
|
+
@property
|
|
2998
|
+
def IntentionActionResult(self):
|
|
2999
|
+
return self._IntentionActionResult
|
|
3000
|
+
|
|
3001
|
+
@IntentionActionResult.setter
|
|
3002
|
+
def IntentionActionResult(self, IntentionActionResult):
|
|
3003
|
+
self._IntentionActionResult = IntentionActionResult
|
|
3004
|
+
|
|
2976
3005
|
@property
|
|
2977
3006
|
def RequestId(self):
|
|
2978
3007
|
return self._RequestId
|
|
@@ -3004,6 +3033,9 @@ class GetDetectInfoEnhancedResponse(AbstractModel):
|
|
|
3004
3033
|
if params.get("IntentionQuestionResult") is not None:
|
|
3005
3034
|
self._IntentionQuestionResult = IntentionQuestionResult()
|
|
3006
3035
|
self._IntentionQuestionResult._deserialize(params.get("IntentionQuestionResult"))
|
|
3036
|
+
if params.get("IntentionActionResult") is not None:
|
|
3037
|
+
self._IntentionActionResult = IntentionActionResult()
|
|
3038
|
+
self._IntentionActionResult._deserialize(params.get("IntentionActionResult"))
|
|
3007
3039
|
self._RequestId = params.get("RequestId")
|
|
3008
3040
|
|
|
3009
3041
|
|
|
@@ -3235,6 +3267,9 @@ class GetEidResultResponse(AbstractModel):
|
|
|
3235
3267
|
:param _IntentionQuestionResult: 意愿核身问答模式相关信息。若未使用意愿核身问答模式功能,该字段返回值可以不处理。
|
|
3236
3268
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3237
3269
|
:type IntentionQuestionResult: :class:`tencentcloud.faceid.v20180301.models.IntentionQuestionResult`
|
|
3270
|
+
:param _IntentionActionResult: 意愿核身点头确认模式的结果信息,若未使用该意愿核身功能,该字段返回值可以不处理。
|
|
3271
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3272
|
+
:type IntentionActionResult: :class:`tencentcloud.faceid.v20180301.models.IntentionActionResult`
|
|
3238
3273
|
:param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3239
3274
|
:type RequestId: str
|
|
3240
3275
|
"""
|
|
@@ -3244,6 +3279,7 @@ class GetEidResultResponse(AbstractModel):
|
|
|
3244
3279
|
self._EidInfo = None
|
|
3245
3280
|
self._IntentionVerifyData = None
|
|
3246
3281
|
self._IntentionQuestionResult = None
|
|
3282
|
+
self._IntentionActionResult = None
|
|
3247
3283
|
self._RequestId = None
|
|
3248
3284
|
|
|
3249
3285
|
@property
|
|
@@ -3294,6 +3330,14 @@ class GetEidResultResponse(AbstractModel):
|
|
|
3294
3330
|
def IntentionQuestionResult(self, IntentionQuestionResult):
|
|
3295
3331
|
self._IntentionQuestionResult = IntentionQuestionResult
|
|
3296
3332
|
|
|
3333
|
+
@property
|
|
3334
|
+
def IntentionActionResult(self):
|
|
3335
|
+
return self._IntentionActionResult
|
|
3336
|
+
|
|
3337
|
+
@IntentionActionResult.setter
|
|
3338
|
+
def IntentionActionResult(self, IntentionActionResult):
|
|
3339
|
+
self._IntentionActionResult = IntentionActionResult
|
|
3340
|
+
|
|
3297
3341
|
@property
|
|
3298
3342
|
def RequestId(self):
|
|
3299
3343
|
return self._RequestId
|
|
@@ -3322,6 +3366,9 @@ class GetEidResultResponse(AbstractModel):
|
|
|
3322
3366
|
if params.get("IntentionQuestionResult") is not None:
|
|
3323
3367
|
self._IntentionQuestionResult = IntentionQuestionResult()
|
|
3324
3368
|
self._IntentionQuestionResult._deserialize(params.get("IntentionQuestionResult"))
|
|
3369
|
+
if params.get("IntentionActionResult") is not None:
|
|
3370
|
+
self._IntentionActionResult = IntentionActionResult()
|
|
3371
|
+
self._IntentionActionResult._deserialize(params.get("IntentionActionResult"))
|
|
3325
3372
|
self._RequestId = params.get("RequestId")
|
|
3326
3373
|
|
|
3327
3374
|
|
|
@@ -3342,12 +3389,14 @@ class GetEidTokenConfig(AbstractModel):
|
|
|
3342
3389
|
:type InputType: str
|
|
3343
3390
|
:param _UseIntentionVerify: 是否使用意愿核身,默认不使用。注意:如开启使用,则计费标签按【意愿核身】计费标签计价;如不开启,则计费标签按【E证通】计费标签计价,价格详见:[价格说明](https://cloud.tencent.com/document/product/1007/56804)。
|
|
3344
3391
|
:type UseIntentionVerify: bool
|
|
3345
|
-
:param _IntentionMode: 意愿核身模式。枚举值:1(
|
|
3392
|
+
:param _IntentionMode: 意愿核身模式。枚举值:1( 语音朗读模式),2(语音问答模式) ,3(点头确认模式)。默认值为1。
|
|
3346
3393
|
:type IntentionMode: str
|
|
3347
3394
|
:param _IntentionVerifyText: 意愿核身朗读模式使用的文案,若未使用意愿核身朗读功能,该字段无需传入。默认为空,最长可接受120的字符串长度。
|
|
3348
3395
|
:type IntentionVerifyText: str
|
|
3349
3396
|
:param _IntentionQuestions: 意愿核身问答模式的配置列表。当前仅支持一个问答。
|
|
3350
3397
|
:type IntentionQuestions: list of IntentionQuestion
|
|
3398
|
+
:param _IntentionActions: 意愿核身(点头确认模式)使用的文案,若未使用意愿核身(点头确认模式),则该字段无需传入。默认为空,最长可接受150的字符串长度。
|
|
3399
|
+
:type IntentionActions: list of IntentionActionConfig
|
|
3351
3400
|
:param _IntentionRecognition: 意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
|
|
3352
3401
|
:type IntentionRecognition: bool
|
|
3353
3402
|
:param _IsSupportHMTResidentPermitOCR: 是否支持港澳台居住证识别
|
|
@@ -3358,6 +3407,7 @@ class GetEidTokenConfig(AbstractModel):
|
|
|
3358
3407
|
self._IntentionMode = None
|
|
3359
3408
|
self._IntentionVerifyText = None
|
|
3360
3409
|
self._IntentionQuestions = None
|
|
3410
|
+
self._IntentionActions = None
|
|
3361
3411
|
self._IntentionRecognition = None
|
|
3362
3412
|
self._IsSupportHMTResidentPermitOCR = None
|
|
3363
3413
|
|
|
@@ -3401,6 +3451,14 @@ class GetEidTokenConfig(AbstractModel):
|
|
|
3401
3451
|
def IntentionQuestions(self, IntentionQuestions):
|
|
3402
3452
|
self._IntentionQuestions = IntentionQuestions
|
|
3403
3453
|
|
|
3454
|
+
@property
|
|
3455
|
+
def IntentionActions(self):
|
|
3456
|
+
return self._IntentionActions
|
|
3457
|
+
|
|
3458
|
+
@IntentionActions.setter
|
|
3459
|
+
def IntentionActions(self, IntentionActions):
|
|
3460
|
+
self._IntentionActions = IntentionActions
|
|
3461
|
+
|
|
3404
3462
|
@property
|
|
3405
3463
|
def IntentionRecognition(self):
|
|
3406
3464
|
return self._IntentionRecognition
|
|
@@ -3429,6 +3487,12 @@ class GetEidTokenConfig(AbstractModel):
|
|
|
3429
3487
|
obj = IntentionQuestion()
|
|
3430
3488
|
obj._deserialize(item)
|
|
3431
3489
|
self._IntentionQuestions.append(obj)
|
|
3490
|
+
if params.get("IntentionActions") is not None:
|
|
3491
|
+
self._IntentionActions = []
|
|
3492
|
+
for item in params.get("IntentionActions"):
|
|
3493
|
+
obj = IntentionActionConfig()
|
|
3494
|
+
obj._deserialize(item)
|
|
3495
|
+
self._IntentionActions.append(obj)
|
|
3432
3496
|
self._IntentionRecognition = params.get("IntentionRecognition")
|
|
3433
3497
|
self._IsSupportHMTResidentPermitOCR = params.get("IsSupportHMTResidentPermitOCR")
|
|
3434
3498
|
memeber_set = set(params.keys())
|
|
@@ -4628,6 +4692,170 @@ class ImageRecognitionResponse(AbstractModel):
|
|
|
4628
4692
|
self._RequestId = params.get("RequestId")
|
|
4629
4693
|
|
|
4630
4694
|
|
|
4695
|
+
class IntentionActionConfig(AbstractModel):
|
|
4696
|
+
"""意愿核身(点头确认模式)配置
|
|
4697
|
+
|
|
4698
|
+
"""
|
|
4699
|
+
|
|
4700
|
+
def __init__(self):
|
|
4701
|
+
r"""
|
|
4702
|
+
:param _Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
|
|
4703
|
+
:type Text: str
|
|
4704
|
+
"""
|
|
4705
|
+
self._Text = None
|
|
4706
|
+
|
|
4707
|
+
@property
|
|
4708
|
+
def Text(self):
|
|
4709
|
+
return self._Text
|
|
4710
|
+
|
|
4711
|
+
@Text.setter
|
|
4712
|
+
def Text(self, Text):
|
|
4713
|
+
self._Text = Text
|
|
4714
|
+
|
|
4715
|
+
|
|
4716
|
+
def _deserialize(self, params):
|
|
4717
|
+
self._Text = params.get("Text")
|
|
4718
|
+
memeber_set = set(params.keys())
|
|
4719
|
+
for name, value in vars(self).items():
|
|
4720
|
+
property_name = name[1:]
|
|
4721
|
+
if property_name in memeber_set:
|
|
4722
|
+
memeber_set.remove(property_name)
|
|
4723
|
+
if len(memeber_set) > 0:
|
|
4724
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4725
|
+
|
|
4726
|
+
|
|
4727
|
+
|
|
4728
|
+
class IntentionActionResult(AbstractModel):
|
|
4729
|
+
"""意愿核身点头确认模式结果
|
|
4730
|
+
|
|
4731
|
+
"""
|
|
4732
|
+
|
|
4733
|
+
def __init__(self):
|
|
4734
|
+
r"""
|
|
4735
|
+
:param _FinalResultDetailCode: 意愿核身错误码:
|
|
4736
|
+
0: "成功"
|
|
4737
|
+
-1: "参数错误"
|
|
4738
|
+
-2: "系统异常"
|
|
4739
|
+
-101: "请保持人脸在框内"
|
|
4740
|
+
-102: "检测到多张人脸"
|
|
4741
|
+
-103: "人脸检测失败"
|
|
4742
|
+
-104: "人脸检测不完整"
|
|
4743
|
+
-105: "请勿遮挡眼睛"
|
|
4744
|
+
-106: "请勿遮挡嘴巴"
|
|
4745
|
+
-107: "请勿遮挡鼻子"
|
|
4746
|
+
-201: "人脸比对相似度低"
|
|
4747
|
+
-202: "人脸比对失败"
|
|
4748
|
+
-301: "意愿核验不通过"
|
|
4749
|
+
-800: "前端不兼容错误"
|
|
4750
|
+
-801: "用户未授权摄像头和麦克风权限"
|
|
4751
|
+
-802: "获取视频流失败"
|
|
4752
|
+
-803: "用户主动关闭链接/异常断开链接"
|
|
4753
|
+
-998: "系统数据异常"
|
|
4754
|
+
-999: "系统未知错误,请联系人工核实"
|
|
4755
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4756
|
+
:type FinalResultDetailCode: int
|
|
4757
|
+
:param _FinalResultMessage: 意愿核身错误信息
|
|
4758
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4759
|
+
:type FinalResultMessage: str
|
|
4760
|
+
:param _Details: 意愿核身结果详细数据,与每段点头确认过程一一对应
|
|
4761
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4762
|
+
:type Details: list of IntentionActionResultDetail
|
|
4763
|
+
"""
|
|
4764
|
+
self._FinalResultDetailCode = None
|
|
4765
|
+
self._FinalResultMessage = None
|
|
4766
|
+
self._Details = None
|
|
4767
|
+
|
|
4768
|
+
@property
|
|
4769
|
+
def FinalResultDetailCode(self):
|
|
4770
|
+
return self._FinalResultDetailCode
|
|
4771
|
+
|
|
4772
|
+
@FinalResultDetailCode.setter
|
|
4773
|
+
def FinalResultDetailCode(self, FinalResultDetailCode):
|
|
4774
|
+
self._FinalResultDetailCode = FinalResultDetailCode
|
|
4775
|
+
|
|
4776
|
+
@property
|
|
4777
|
+
def FinalResultMessage(self):
|
|
4778
|
+
return self._FinalResultMessage
|
|
4779
|
+
|
|
4780
|
+
@FinalResultMessage.setter
|
|
4781
|
+
def FinalResultMessage(self, FinalResultMessage):
|
|
4782
|
+
self._FinalResultMessage = FinalResultMessage
|
|
4783
|
+
|
|
4784
|
+
@property
|
|
4785
|
+
def Details(self):
|
|
4786
|
+
return self._Details
|
|
4787
|
+
|
|
4788
|
+
@Details.setter
|
|
4789
|
+
def Details(self, Details):
|
|
4790
|
+
self._Details = Details
|
|
4791
|
+
|
|
4792
|
+
|
|
4793
|
+
def _deserialize(self, params):
|
|
4794
|
+
self._FinalResultDetailCode = params.get("FinalResultDetailCode")
|
|
4795
|
+
self._FinalResultMessage = params.get("FinalResultMessage")
|
|
4796
|
+
if params.get("Details") is not None:
|
|
4797
|
+
self._Details = []
|
|
4798
|
+
for item in params.get("Details"):
|
|
4799
|
+
obj = IntentionActionResultDetail()
|
|
4800
|
+
obj._deserialize(item)
|
|
4801
|
+
self._Details.append(obj)
|
|
4802
|
+
memeber_set = set(params.keys())
|
|
4803
|
+
for name, value in vars(self).items():
|
|
4804
|
+
property_name = name[1:]
|
|
4805
|
+
if property_name in memeber_set:
|
|
4806
|
+
memeber_set.remove(property_name)
|
|
4807
|
+
if len(memeber_set) > 0:
|
|
4808
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4809
|
+
|
|
4810
|
+
|
|
4811
|
+
|
|
4812
|
+
class IntentionActionResultDetail(AbstractModel):
|
|
4813
|
+
"""意愿核身点头确认模式结果详细数据
|
|
4814
|
+
|
|
4815
|
+
"""
|
|
4816
|
+
|
|
4817
|
+
def __init__(self):
|
|
4818
|
+
r"""
|
|
4819
|
+
:param _Video: 视频base64编码(其中包含全程提示文本和点头音频,mp4格式)
|
|
4820
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4821
|
+
:type Video: str
|
|
4822
|
+
:param _ScreenShot: 屏幕截图base64编码列表
|
|
4823
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4824
|
+
:type ScreenShot: list of str
|
|
4825
|
+
"""
|
|
4826
|
+
self._Video = None
|
|
4827
|
+
self._ScreenShot = None
|
|
4828
|
+
|
|
4829
|
+
@property
|
|
4830
|
+
def Video(self):
|
|
4831
|
+
return self._Video
|
|
4832
|
+
|
|
4833
|
+
@Video.setter
|
|
4834
|
+
def Video(self, Video):
|
|
4835
|
+
self._Video = Video
|
|
4836
|
+
|
|
4837
|
+
@property
|
|
4838
|
+
def ScreenShot(self):
|
|
4839
|
+
return self._ScreenShot
|
|
4840
|
+
|
|
4841
|
+
@ScreenShot.setter
|
|
4842
|
+
def ScreenShot(self, ScreenShot):
|
|
4843
|
+
self._ScreenShot = ScreenShot
|
|
4844
|
+
|
|
4845
|
+
|
|
4846
|
+
def _deserialize(self, params):
|
|
4847
|
+
self._Video = params.get("Video")
|
|
4848
|
+
self._ScreenShot = params.get("ScreenShot")
|
|
4849
|
+
memeber_set = set(params.keys())
|
|
4850
|
+
for name, value in vars(self).items():
|
|
4851
|
+
property_name = name[1:]
|
|
4852
|
+
if property_name in memeber_set:
|
|
4853
|
+
memeber_set.remove(property_name)
|
|
4854
|
+
if len(memeber_set) > 0:
|
|
4855
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4856
|
+
|
|
4857
|
+
|
|
4858
|
+
|
|
4631
4859
|
class IntentionQuestion(AbstractModel):
|
|
4632
4860
|
"""意愿核身过程中播报的问题文本、用户回答的标准文本。
|
|
4633
4861
|
|
|
@@ -4635,9 +4863,9 @@ class IntentionQuestion(AbstractModel):
|
|
|
4635
4863
|
|
|
4636
4864
|
def __init__(self):
|
|
4637
4865
|
r"""
|
|
4638
|
-
:param _Question:
|
|
4866
|
+
:param _Question: 当选择语音问答模式时,系统自动播报的问题文本,最大长度为150个字符。
|
|
4639
4867
|
:type Question: str
|
|
4640
|
-
:param _Answers:
|
|
4868
|
+
:param _Answers: 当选择语音问答模式时,用于判断用户回答是否通过的标准答案列表,传入后可自动判断用户回答文本是否在标准文本列表中。列表长度最大为50,单个答案长度限制10个字符。
|
|
4641
4869
|
:type Answers: list of str
|
|
4642
4870
|
"""
|
|
4643
4871
|
self._Question = None
|
|
@@ -4894,10 +5122,14 @@ class IntentionVerifyData(AbstractModel):
|
|
|
4894
5122
|
|
|
4895
5123
|
@property
|
|
4896
5124
|
def AsrResultSimilarity(self):
|
|
5125
|
+
warnings.warn("parameter `AsrResultSimilarity` is deprecated", DeprecationWarning)
|
|
5126
|
+
|
|
4897
5127
|
return self._AsrResultSimilarity
|
|
4898
5128
|
|
|
4899
5129
|
@AsrResultSimilarity.setter
|
|
4900
5130
|
def AsrResultSimilarity(self, AsrResultSimilarity):
|
|
5131
|
+
warnings.warn("parameter `AsrResultSimilarity` is deprecated", DeprecationWarning)
|
|
5132
|
+
|
|
4901
5133
|
self._AsrResultSimilarity = AsrResultSimilarity
|
|
4902
5134
|
|
|
4903
5135
|
|
|
@@ -6822,8 +7054,13 @@ class RuleIdConfig(AbstractModel):
|
|
|
6822
7054
|
r"""
|
|
6823
7055
|
:param _IntentionRecognition: 意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
|
|
6824
7056
|
:type IntentionRecognition: bool
|
|
7057
|
+
:param _IntentionType: 意愿核身类型,默认为0:
|
|
7058
|
+
0:问答模式,DetectAuth接口需要传入IntentionQuestions字段;
|
|
7059
|
+
1:点头模式,DetectAuth接口需要传入IntentionActions字段;
|
|
7060
|
+
:type IntentionType: int
|
|
6825
7061
|
"""
|
|
6826
7062
|
self._IntentionRecognition = None
|
|
7063
|
+
self._IntentionType = None
|
|
6827
7064
|
|
|
6828
7065
|
@property
|
|
6829
7066
|
def IntentionRecognition(self):
|
|
@@ -6833,9 +7070,18 @@ class RuleIdConfig(AbstractModel):
|
|
|
6833
7070
|
def IntentionRecognition(self, IntentionRecognition):
|
|
6834
7071
|
self._IntentionRecognition = IntentionRecognition
|
|
6835
7072
|
|
|
7073
|
+
@property
|
|
7074
|
+
def IntentionType(self):
|
|
7075
|
+
return self._IntentionType
|
|
7076
|
+
|
|
7077
|
+
@IntentionType.setter
|
|
7078
|
+
def IntentionType(self, IntentionType):
|
|
7079
|
+
self._IntentionType = IntentionType
|
|
7080
|
+
|
|
6836
7081
|
|
|
6837
7082
|
def _deserialize(self, params):
|
|
6838
7083
|
self._IntentionRecognition = params.get("IntentionRecognition")
|
|
7084
|
+
self._IntentionType = params.get("IntentionType")
|
|
6839
7085
|
memeber_set = set(params.keys())
|
|
6840
7086
|
for name, value in vars(self).items():
|
|
6841
7087
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.974
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.954
|
{tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.974}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|