tencentcloud-sdk-python-faceid 3.0.1045__tar.gz → 3.0.1060__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 (16) hide show
  1. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/setup.py +1 -1
  3. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud/faceid/v20180301/faceid_client.py +23 -0
  5. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud/faceid/v20180301/models.py +259 -0
  6. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-faceid-3.0.1060/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-faceid-3.0.1045/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/README.rst +0 -0
  10. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud/faceid/__init__.py +0 -0
  12. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud/faceid/v20180301/__init__.py +0 -0
  13. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-faceid-3.0.1045 → tencentcloud-sdk-python-faceid-3.0.1060}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.0.1045
3
+ Version: 3.0.1060
4
4
  Summary: Tencent Cloud Faceid SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -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.1045"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1060"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Faceid SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1045'
17
+ __version__ = '3.0.1060'
@@ -555,6 +555,29 @@ class FaceidClient(AbstractClient):
555
555
  raise TencentCloudSDKException(type(e).__name__, str(e))
556
556
 
557
557
 
558
+ def ImageRecognitionV2(self, request):
559
+ """传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
560
+
561
+ :param request: Request instance for ImageRecognitionV2.
562
+ :type request: :class:`tencentcloud.faceid.v20180301.models.ImageRecognitionV2Request`
563
+ :rtype: :class:`tencentcloud.faceid.v20180301.models.ImageRecognitionV2Response`
564
+
565
+ """
566
+ try:
567
+ params = request._serialize()
568
+ headers = request.headers
569
+ body = self.call("ImageRecognitionV2", params, headers=headers)
570
+ response = json.loads(body)
571
+ model = models.ImageRecognitionV2Response()
572
+ model._deserialize(response["Response"])
573
+ return model
574
+ except Exception as e:
575
+ if isinstance(e, TencentCloudSDKException):
576
+ raise
577
+ else:
578
+ raise TencentCloudSDKException(type(e).__name__, str(e))
579
+
580
+
558
581
  def Liveness(self, request):
559
582
  """活体检测
560
583
 
@@ -1465,11 +1465,14 @@ High:高度疑似攻击
1465
1465
  说明:未检测到攻击痕迹时,返回空数组
1466
1466
  此出参仅作为结果判断的参考,实际应用仍建议使用AttackRiskLevel的结果。
1467
1467
  :type AttackRiskDetailList: list of AttackRiskDetail
1468
+ :param _ExtraInfo: 额外信息
1469
+ :type ExtraInfo: :class:`tencentcloud.faceid.v20180301.models.ExtraInfo`
1468
1470
  :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1469
1471
  :type RequestId: str
1470
1472
  """
1471
1473
  self._AttackRiskLevel = None
1472
1474
  self._AttackRiskDetailList = None
1475
+ self._ExtraInfo = None
1473
1476
  self._RequestId = None
1474
1477
 
1475
1478
  @property
@@ -1488,6 +1491,14 @@ High:高度疑似攻击
1488
1491
  def AttackRiskDetailList(self, AttackRiskDetailList):
1489
1492
  self._AttackRiskDetailList = AttackRiskDetailList
1490
1493
 
1494
+ @property
1495
+ def ExtraInfo(self):
1496
+ return self._ExtraInfo
1497
+
1498
+ @ExtraInfo.setter
1499
+ def ExtraInfo(self, ExtraInfo):
1500
+ self._ExtraInfo = ExtraInfo
1501
+
1491
1502
  @property
1492
1503
  def RequestId(self):
1493
1504
  return self._RequestId
@@ -1505,6 +1516,9 @@ High:高度疑似攻击
1505
1516
  obj = AttackRiskDetail()
1506
1517
  obj._deserialize(item)
1507
1518
  self._AttackRiskDetailList.append(obj)
1519
+ if params.get("ExtraInfo") is not None:
1520
+ self._ExtraInfo = ExtraInfo()
1521
+ self._ExtraInfo._deserialize(params.get("ExtraInfo"))
1508
1522
  self._RequestId = params.get("RequestId")
1509
1523
 
1510
1524
 
@@ -2875,6 +2889,45 @@ class Encryption(AbstractModel):
2875
2889
 
2876
2890
 
2877
2891
 
2892
+ class ExtraInfo(AbstractModel):
2893
+ """额外的详细信息
2894
+
2895
+ """
2896
+
2897
+ def __init__(self):
2898
+ r"""
2899
+ :param _RetrievalLivenessExtraInfo: 命中模板的详细信息,仅返回命中的相似度最高的模板信息
2900
+ 注意:此字段可能返回 null,表示取不到有效值。
2901
+ :type RetrievalLivenessExtraInfo: list of RetrievalLivenessExtraInfo
2902
+ """
2903
+ self._RetrievalLivenessExtraInfo = None
2904
+
2905
+ @property
2906
+ def RetrievalLivenessExtraInfo(self):
2907
+ return self._RetrievalLivenessExtraInfo
2908
+
2909
+ @RetrievalLivenessExtraInfo.setter
2910
+ def RetrievalLivenessExtraInfo(self, RetrievalLivenessExtraInfo):
2911
+ self._RetrievalLivenessExtraInfo = RetrievalLivenessExtraInfo
2912
+
2913
+
2914
+ def _deserialize(self, params):
2915
+ if params.get("RetrievalLivenessExtraInfo") is not None:
2916
+ self._RetrievalLivenessExtraInfo = []
2917
+ for item in params.get("RetrievalLivenessExtraInfo"):
2918
+ obj = RetrievalLivenessExtraInfo()
2919
+ obj._deserialize(item)
2920
+ self._RetrievalLivenessExtraInfo.append(obj)
2921
+ memeber_set = set(params.keys())
2922
+ for name, value in vars(self).items():
2923
+ property_name = name[1:]
2924
+ if property_name in memeber_set:
2925
+ memeber_set.remove(property_name)
2926
+ if len(memeber_set) > 0:
2927
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2928
+
2929
+
2930
+
2878
2931
  class GetActionSequenceRequest(AbstractModel):
2879
2932
  """GetActionSequence请求参数结构体
2880
2933
 
@@ -4889,6 +4942,152 @@ class ImageRecognitionResponse(AbstractModel):
4889
4942
  self._RequestId = params.get("RequestId")
4890
4943
 
4891
4944
 
4945
+ class ImageRecognitionV2Request(AbstractModel):
4946
+ """ImageRecognitionV2请求参数结构体
4947
+
4948
+ """
4949
+
4950
+ def __init__(self):
4951
+ r"""
4952
+ :param _IdCard: 身份证号
4953
+ :type IdCard: str
4954
+ :param _Name: 姓名。中文请使用UTF-8编码。
4955
+ :type Name: str
4956
+ :param _ImageBase64: 用于人脸比对的照片,图片的Base64值;
4957
+ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
4958
+ 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
4959
+ :type ImageBase64: str
4960
+ :param _Optional: 本接口不需要传递此参数。
4961
+ :type Optional: str
4962
+ :param _Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
4963
+ :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
4964
+ """
4965
+ self._IdCard = None
4966
+ self._Name = None
4967
+ self._ImageBase64 = None
4968
+ self._Optional = None
4969
+ self._Encryption = None
4970
+
4971
+ @property
4972
+ def IdCard(self):
4973
+ return self._IdCard
4974
+
4975
+ @IdCard.setter
4976
+ def IdCard(self, IdCard):
4977
+ self._IdCard = IdCard
4978
+
4979
+ @property
4980
+ def Name(self):
4981
+ return self._Name
4982
+
4983
+ @Name.setter
4984
+ def Name(self, Name):
4985
+ self._Name = Name
4986
+
4987
+ @property
4988
+ def ImageBase64(self):
4989
+ return self._ImageBase64
4990
+
4991
+ @ImageBase64.setter
4992
+ def ImageBase64(self, ImageBase64):
4993
+ self._ImageBase64 = ImageBase64
4994
+
4995
+ @property
4996
+ def Optional(self):
4997
+ return self._Optional
4998
+
4999
+ @Optional.setter
5000
+ def Optional(self, Optional):
5001
+ self._Optional = Optional
5002
+
5003
+ @property
5004
+ def Encryption(self):
5005
+ return self._Encryption
5006
+
5007
+ @Encryption.setter
5008
+ def Encryption(self, Encryption):
5009
+ self._Encryption = Encryption
5010
+
5011
+
5012
+ def _deserialize(self, params):
5013
+ self._IdCard = params.get("IdCard")
5014
+ self._Name = params.get("Name")
5015
+ self._ImageBase64 = params.get("ImageBase64")
5016
+ self._Optional = params.get("Optional")
5017
+ if params.get("Encryption") is not None:
5018
+ self._Encryption = Encryption()
5019
+ self._Encryption._deserialize(params.get("Encryption"))
5020
+ memeber_set = set(params.keys())
5021
+ for name, value in vars(self).items():
5022
+ property_name = name[1:]
5023
+ if property_name in memeber_set:
5024
+ memeber_set.remove(property_name)
5025
+ if len(memeber_set) > 0:
5026
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
5027
+
5028
+
5029
+
5030
+ class ImageRecognitionV2Response(AbstractModel):
5031
+ """ImageRecognitionV2返回参数结构体
5032
+
5033
+ """
5034
+
5035
+ def __init__(self):
5036
+ r"""
5037
+ :param _Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
5038
+ :type Sim: float
5039
+ :param _Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
5040
+ :type Result: str
5041
+ :param _Description: 业务结果描述。
5042
+ :type Description: str
5043
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5044
+ :type RequestId: str
5045
+ """
5046
+ self._Sim = None
5047
+ self._Result = None
5048
+ self._Description = None
5049
+ self._RequestId = None
5050
+
5051
+ @property
5052
+ def Sim(self):
5053
+ return self._Sim
5054
+
5055
+ @Sim.setter
5056
+ def Sim(self, Sim):
5057
+ self._Sim = Sim
5058
+
5059
+ @property
5060
+ def Result(self):
5061
+ return self._Result
5062
+
5063
+ @Result.setter
5064
+ def Result(self, Result):
5065
+ self._Result = Result
5066
+
5067
+ @property
5068
+ def Description(self):
5069
+ return self._Description
5070
+
5071
+ @Description.setter
5072
+ def Description(self, Description):
5073
+ self._Description = Description
5074
+
5075
+ @property
5076
+ def RequestId(self):
5077
+ return self._RequestId
5078
+
5079
+ @RequestId.setter
5080
+ def RequestId(self, RequestId):
5081
+ self._RequestId = RequestId
5082
+
5083
+
5084
+ def _deserialize(self, params):
5085
+ self._Sim = params.get("Sim")
5086
+ self._Result = params.get("Result")
5087
+ self._Description = params.get("Description")
5088
+ self._RequestId = params.get("RequestId")
5089
+
5090
+
4892
5091
  class IntentionActionConfig(AbstractModel):
4893
5092
  """意愿核身(点头确认模式)配置
4894
5093
 
@@ -7239,6 +7438,66 @@ class PhoneVerificationResponse(AbstractModel):
7239
7438
  self._RequestId = params.get("RequestId")
7240
7439
 
7241
7440
 
7441
+ class RetrievalLivenessExtraInfo(AbstractModel):
7442
+ """模版检索详细信息
7443
+
7444
+ """
7445
+
7446
+ def __init__(self):
7447
+ r"""
7448
+ :param _HitGroup: 命中的模版类型,其中Common-公共库;Auto-自动聚类库;Owner-自建模版库
7449
+ 注意:此字段可能返回 null,表示取不到有效值。
7450
+ :type HitGroup: str
7451
+ :param _SimilarityScore: 命中的相似度
7452
+ 注意:此字段可能返回 null,表示取不到有效值。
7453
+ :type SimilarityScore: float
7454
+ :param _HitTemplate: 命中的模板id
7455
+ 注意:此字段可能返回 null,表示取不到有效值。
7456
+ :type HitTemplate: str
7457
+ """
7458
+ self._HitGroup = None
7459
+ self._SimilarityScore = None
7460
+ self._HitTemplate = None
7461
+
7462
+ @property
7463
+ def HitGroup(self):
7464
+ return self._HitGroup
7465
+
7466
+ @HitGroup.setter
7467
+ def HitGroup(self, HitGroup):
7468
+ self._HitGroup = HitGroup
7469
+
7470
+ @property
7471
+ def SimilarityScore(self):
7472
+ return self._SimilarityScore
7473
+
7474
+ @SimilarityScore.setter
7475
+ def SimilarityScore(self, SimilarityScore):
7476
+ self._SimilarityScore = SimilarityScore
7477
+
7478
+ @property
7479
+ def HitTemplate(self):
7480
+ return self._HitTemplate
7481
+
7482
+ @HitTemplate.setter
7483
+ def HitTemplate(self, HitTemplate):
7484
+ self._HitTemplate = HitTemplate
7485
+
7486
+
7487
+ def _deserialize(self, params):
7488
+ self._HitGroup = params.get("HitGroup")
7489
+ self._SimilarityScore = params.get("SimilarityScore")
7490
+ self._HitTemplate = params.get("HitTemplate")
7491
+ memeber_set = set(params.keys())
7492
+ for name, value in vars(self).items():
7493
+ property_name = name[1:]
7494
+ if property_name in memeber_set:
7495
+ memeber_set.remove(property_name)
7496
+ if len(memeber_set) > 0:
7497
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7498
+
7499
+
7500
+
7242
7501
  class RuleIdConfig(AbstractModel):
7243
7502
  """RuleId相关配置
7244
7503
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.0.1045
3
+ Version: 3.0.1060
4
4
  Summary: Tencent Cloud Faceid SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common==3.0.1060
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1045