tencentcloud-sdk-python-faceid 3.0.954__tar.gz → 3.0.960__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.960}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/setup.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud/faceid/v20180301/errorcodes.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud/faceid/v20180301/models.py +213 -3
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-faceid-3.0.960/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.960}/README.rst +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/setup.cfg +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud/faceid/v20180301/faceid_client.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/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.960"],
|
|
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
|
|
|
@@ -4628,6 +4660,170 @@ class ImageRecognitionResponse(AbstractModel):
|
|
|
4628
4660
|
self._RequestId = params.get("RequestId")
|
|
4629
4661
|
|
|
4630
4662
|
|
|
4663
|
+
class IntentionActionConfig(AbstractModel):
|
|
4664
|
+
"""意愿核身(点头确认模式)配置
|
|
4665
|
+
|
|
4666
|
+
"""
|
|
4667
|
+
|
|
4668
|
+
def __init__(self):
|
|
4669
|
+
r"""
|
|
4670
|
+
:param _Text: 点头确认模式下,系统语音播报使用的问题文本,问题最大长度为150个字符。
|
|
4671
|
+
:type Text: str
|
|
4672
|
+
"""
|
|
4673
|
+
self._Text = None
|
|
4674
|
+
|
|
4675
|
+
@property
|
|
4676
|
+
def Text(self):
|
|
4677
|
+
return self._Text
|
|
4678
|
+
|
|
4679
|
+
@Text.setter
|
|
4680
|
+
def Text(self, Text):
|
|
4681
|
+
self._Text = Text
|
|
4682
|
+
|
|
4683
|
+
|
|
4684
|
+
def _deserialize(self, params):
|
|
4685
|
+
self._Text = params.get("Text")
|
|
4686
|
+
memeber_set = set(params.keys())
|
|
4687
|
+
for name, value in vars(self).items():
|
|
4688
|
+
property_name = name[1:]
|
|
4689
|
+
if property_name in memeber_set:
|
|
4690
|
+
memeber_set.remove(property_name)
|
|
4691
|
+
if len(memeber_set) > 0:
|
|
4692
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4693
|
+
|
|
4694
|
+
|
|
4695
|
+
|
|
4696
|
+
class IntentionActionResult(AbstractModel):
|
|
4697
|
+
"""意愿核身点头确认模式结果
|
|
4698
|
+
|
|
4699
|
+
"""
|
|
4700
|
+
|
|
4701
|
+
def __init__(self):
|
|
4702
|
+
r"""
|
|
4703
|
+
:param _FinalResultDetailCode: 意愿核身错误码:
|
|
4704
|
+
0: "成功"
|
|
4705
|
+
-1: "参数错误"
|
|
4706
|
+
-2: "系统异常"
|
|
4707
|
+
-101: "请保持人脸在框内"
|
|
4708
|
+
-102: "检测到多张人脸"
|
|
4709
|
+
-103: "人脸检测失败"
|
|
4710
|
+
-104: "人脸检测不完整"
|
|
4711
|
+
-105: "请勿遮挡眼睛"
|
|
4712
|
+
-106: "请勿遮挡嘴巴"
|
|
4713
|
+
-107: "请勿遮挡鼻子"
|
|
4714
|
+
-201: "人脸比对相似度低"
|
|
4715
|
+
-202: "人脸比对失败"
|
|
4716
|
+
-301: "意愿核验不通过"
|
|
4717
|
+
-800: "前端不兼容错误"
|
|
4718
|
+
-801: "用户未授权摄像头和麦克风权限"
|
|
4719
|
+
-802: "获取视频流失败"
|
|
4720
|
+
-803: "用户主动关闭链接/异常断开链接"
|
|
4721
|
+
-998: "系统数据异常"
|
|
4722
|
+
-999: "系统未知错误,请联系人工核实"
|
|
4723
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4724
|
+
:type FinalResultDetailCode: int
|
|
4725
|
+
:param _FinalResultMessage: 意愿核身错误信息
|
|
4726
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4727
|
+
:type FinalResultMessage: str
|
|
4728
|
+
:param _Details: 意愿核身结果详细数据,与每段点头确认过程一一对应
|
|
4729
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4730
|
+
:type Details: list of IntentionActionResultDetail
|
|
4731
|
+
"""
|
|
4732
|
+
self._FinalResultDetailCode = None
|
|
4733
|
+
self._FinalResultMessage = None
|
|
4734
|
+
self._Details = None
|
|
4735
|
+
|
|
4736
|
+
@property
|
|
4737
|
+
def FinalResultDetailCode(self):
|
|
4738
|
+
return self._FinalResultDetailCode
|
|
4739
|
+
|
|
4740
|
+
@FinalResultDetailCode.setter
|
|
4741
|
+
def FinalResultDetailCode(self, FinalResultDetailCode):
|
|
4742
|
+
self._FinalResultDetailCode = FinalResultDetailCode
|
|
4743
|
+
|
|
4744
|
+
@property
|
|
4745
|
+
def FinalResultMessage(self):
|
|
4746
|
+
return self._FinalResultMessage
|
|
4747
|
+
|
|
4748
|
+
@FinalResultMessage.setter
|
|
4749
|
+
def FinalResultMessage(self, FinalResultMessage):
|
|
4750
|
+
self._FinalResultMessage = FinalResultMessage
|
|
4751
|
+
|
|
4752
|
+
@property
|
|
4753
|
+
def Details(self):
|
|
4754
|
+
return self._Details
|
|
4755
|
+
|
|
4756
|
+
@Details.setter
|
|
4757
|
+
def Details(self, Details):
|
|
4758
|
+
self._Details = Details
|
|
4759
|
+
|
|
4760
|
+
|
|
4761
|
+
def _deserialize(self, params):
|
|
4762
|
+
self._FinalResultDetailCode = params.get("FinalResultDetailCode")
|
|
4763
|
+
self._FinalResultMessage = params.get("FinalResultMessage")
|
|
4764
|
+
if params.get("Details") is not None:
|
|
4765
|
+
self._Details = []
|
|
4766
|
+
for item in params.get("Details"):
|
|
4767
|
+
obj = IntentionActionResultDetail()
|
|
4768
|
+
obj._deserialize(item)
|
|
4769
|
+
self._Details.append(obj)
|
|
4770
|
+
memeber_set = set(params.keys())
|
|
4771
|
+
for name, value in vars(self).items():
|
|
4772
|
+
property_name = name[1:]
|
|
4773
|
+
if property_name in memeber_set:
|
|
4774
|
+
memeber_set.remove(property_name)
|
|
4775
|
+
if len(memeber_set) > 0:
|
|
4776
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4777
|
+
|
|
4778
|
+
|
|
4779
|
+
|
|
4780
|
+
class IntentionActionResultDetail(AbstractModel):
|
|
4781
|
+
"""意愿核身点头确认模式结果详细数据
|
|
4782
|
+
|
|
4783
|
+
"""
|
|
4784
|
+
|
|
4785
|
+
def __init__(self):
|
|
4786
|
+
r"""
|
|
4787
|
+
:param _Video: 视频base64编码(其中包含全程提示文本和点头音频,mp4格式)
|
|
4788
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4789
|
+
:type Video: str
|
|
4790
|
+
:param _ScreenShot: 屏幕截图base64编码列表
|
|
4791
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4792
|
+
:type ScreenShot: list of str
|
|
4793
|
+
"""
|
|
4794
|
+
self._Video = None
|
|
4795
|
+
self._ScreenShot = None
|
|
4796
|
+
|
|
4797
|
+
@property
|
|
4798
|
+
def Video(self):
|
|
4799
|
+
return self._Video
|
|
4800
|
+
|
|
4801
|
+
@Video.setter
|
|
4802
|
+
def Video(self, Video):
|
|
4803
|
+
self._Video = Video
|
|
4804
|
+
|
|
4805
|
+
@property
|
|
4806
|
+
def ScreenShot(self):
|
|
4807
|
+
return self._ScreenShot
|
|
4808
|
+
|
|
4809
|
+
@ScreenShot.setter
|
|
4810
|
+
def ScreenShot(self, ScreenShot):
|
|
4811
|
+
self._ScreenShot = ScreenShot
|
|
4812
|
+
|
|
4813
|
+
|
|
4814
|
+
def _deserialize(self, params):
|
|
4815
|
+
self._Video = params.get("Video")
|
|
4816
|
+
self._ScreenShot = params.get("ScreenShot")
|
|
4817
|
+
memeber_set = set(params.keys())
|
|
4818
|
+
for name, value in vars(self).items():
|
|
4819
|
+
property_name = name[1:]
|
|
4820
|
+
if property_name in memeber_set:
|
|
4821
|
+
memeber_set.remove(property_name)
|
|
4822
|
+
if len(memeber_set) > 0:
|
|
4823
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4824
|
+
|
|
4825
|
+
|
|
4826
|
+
|
|
4631
4827
|
class IntentionQuestion(AbstractModel):
|
|
4632
4828
|
"""意愿核身过程中播报的问题文本、用户回答的标准文本。
|
|
4633
4829
|
|
|
@@ -4635,9 +4831,9 @@ class IntentionQuestion(AbstractModel):
|
|
|
4635
4831
|
|
|
4636
4832
|
def __init__(self):
|
|
4637
4833
|
r"""
|
|
4638
|
-
:param _Question:
|
|
4834
|
+
:param _Question: 当选择语音问答模式时,系统自动播报的问题文本,最大长度为150个字符。
|
|
4639
4835
|
:type Question: str
|
|
4640
|
-
:param _Answers:
|
|
4836
|
+
:param _Answers: 当选择语音问答模式时,用于判断用户回答是否通过的标准答案列表,传入后可自动判断用户回答文本是否在标准文本列表中。列表长度最大为50,单个答案长度限制10个字符。
|
|
4641
4837
|
:type Answers: list of str
|
|
4642
4838
|
"""
|
|
4643
4839
|
self._Question = None
|
|
@@ -6822,8 +7018,13 @@ class RuleIdConfig(AbstractModel):
|
|
|
6822
7018
|
r"""
|
|
6823
7019
|
:param _IntentionRecognition: 意愿核身过程中识别用户的回答意图,开启后除了IntentionQuestions的Answers列表中的标准回答会通过,近似意图的回答也会通过,默认不开启。
|
|
6824
7020
|
:type IntentionRecognition: bool
|
|
7021
|
+
:param _IntentionType: 意愿核身类型,默认为0:
|
|
7022
|
+
0:问答模式,DetectAuth接口需要传入IntentionQuestions字段;
|
|
7023
|
+
1:点头模式,DetectAuth接口需要传入IntentionActions字段;
|
|
7024
|
+
:type IntentionType: int
|
|
6825
7025
|
"""
|
|
6826
7026
|
self._IntentionRecognition = None
|
|
7027
|
+
self._IntentionType = None
|
|
6827
7028
|
|
|
6828
7029
|
@property
|
|
6829
7030
|
def IntentionRecognition(self):
|
|
@@ -6833,9 +7034,18 @@ class RuleIdConfig(AbstractModel):
|
|
|
6833
7034
|
def IntentionRecognition(self, IntentionRecognition):
|
|
6834
7035
|
self._IntentionRecognition = IntentionRecognition
|
|
6835
7036
|
|
|
7037
|
+
@property
|
|
7038
|
+
def IntentionType(self):
|
|
7039
|
+
return self._IntentionType
|
|
7040
|
+
|
|
7041
|
+
@IntentionType.setter
|
|
7042
|
+
def IntentionType(self, IntentionType):
|
|
7043
|
+
self._IntentionType = IntentionType
|
|
7044
|
+
|
|
6836
7045
|
|
|
6837
7046
|
def _deserialize(self, params):
|
|
6838
7047
|
self._IntentionRecognition = params.get("IntentionRecognition")
|
|
7048
|
+
self._IntentionType = params.get("IntentionType")
|
|
6839
7049
|
memeber_set = set(params.keys())
|
|
6840
7050
|
for name, value in vars(self).items():
|
|
6841
7051
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.960
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.954
|
{tencentcloud-sdk-python-faceid-3.0.954 → tencentcloud-sdk-python-faceid-3.0.960}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|