tencentcloud-sdk-python-faceid 3.0.1041__tar.gz → 3.0.1047__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.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/setup.py +1 -1
  3. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud/faceid/v20180301/faceid_client.py +23 -0
  5. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud/faceid/v20180301/models.py +146 -0
  6. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-faceid-3.0.1047/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-faceid-3.0.1041/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/README.rst +0 -0
  10. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud/faceid/__init__.py +0 -0
  12. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud/faceid/v20180301/__init__.py +0 -0
  13. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-faceid-3.0.1041 → tencentcloud-sdk-python-faceid-3.0.1047}/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.1041
3
+ Version: 3.0.1047
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.1041"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1047"],
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.1041'
17
+ __version__ = '3.0.1047'
@@ -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
 
@@ -4889,6 +4889,152 @@ class ImageRecognitionResponse(AbstractModel):
4889
4889
  self._RequestId = params.get("RequestId")
4890
4890
 
4891
4891
 
4892
+ class ImageRecognitionV2Request(AbstractModel):
4893
+ """ImageRecognitionV2请求参数结构体
4894
+
4895
+ """
4896
+
4897
+ def __init__(self):
4898
+ r"""
4899
+ :param _IdCard: 身份证号
4900
+ :type IdCard: str
4901
+ :param _Name: 姓名。中文请使用UTF-8编码。
4902
+ :type Name: str
4903
+ :param _ImageBase64: 用于人脸比对的照片,图片的Base64值;
4904
+ Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。
4905
+ 请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
4906
+ :type ImageBase64: str
4907
+ :param _Optional: 本接口不需要传递此参数。
4908
+ :type Optional: str
4909
+ :param _Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
4910
+ :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
4911
+ """
4912
+ self._IdCard = None
4913
+ self._Name = None
4914
+ self._ImageBase64 = None
4915
+ self._Optional = None
4916
+ self._Encryption = None
4917
+
4918
+ @property
4919
+ def IdCard(self):
4920
+ return self._IdCard
4921
+
4922
+ @IdCard.setter
4923
+ def IdCard(self, IdCard):
4924
+ self._IdCard = IdCard
4925
+
4926
+ @property
4927
+ def Name(self):
4928
+ return self._Name
4929
+
4930
+ @Name.setter
4931
+ def Name(self, Name):
4932
+ self._Name = Name
4933
+
4934
+ @property
4935
+ def ImageBase64(self):
4936
+ return self._ImageBase64
4937
+
4938
+ @ImageBase64.setter
4939
+ def ImageBase64(self, ImageBase64):
4940
+ self._ImageBase64 = ImageBase64
4941
+
4942
+ @property
4943
+ def Optional(self):
4944
+ return self._Optional
4945
+
4946
+ @Optional.setter
4947
+ def Optional(self, Optional):
4948
+ self._Optional = Optional
4949
+
4950
+ @property
4951
+ def Encryption(self):
4952
+ return self._Encryption
4953
+
4954
+ @Encryption.setter
4955
+ def Encryption(self, Encryption):
4956
+ self._Encryption = Encryption
4957
+
4958
+
4959
+ def _deserialize(self, params):
4960
+ self._IdCard = params.get("IdCard")
4961
+ self._Name = params.get("Name")
4962
+ self._ImageBase64 = params.get("ImageBase64")
4963
+ self._Optional = params.get("Optional")
4964
+ if params.get("Encryption") is not None:
4965
+ self._Encryption = Encryption()
4966
+ self._Encryption._deserialize(params.get("Encryption"))
4967
+ memeber_set = set(params.keys())
4968
+ for name, value in vars(self).items():
4969
+ property_name = name[1:]
4970
+ if property_name in memeber_set:
4971
+ memeber_set.remove(property_name)
4972
+ if len(memeber_set) > 0:
4973
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4974
+
4975
+
4976
+
4977
+ class ImageRecognitionV2Response(AbstractModel):
4978
+ """ImageRecognitionV2返回参数结构体
4979
+
4980
+ """
4981
+
4982
+ def __init__(self):
4983
+ r"""
4984
+ :param _Sim: 相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)
4985
+ :type Sim: float
4986
+ :param _Result: 业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分
4987
+ :type Result: str
4988
+ :param _Description: 业务结果描述。
4989
+ :type Description: str
4990
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4991
+ :type RequestId: str
4992
+ """
4993
+ self._Sim = None
4994
+ self._Result = None
4995
+ self._Description = None
4996
+ self._RequestId = None
4997
+
4998
+ @property
4999
+ def Sim(self):
5000
+ return self._Sim
5001
+
5002
+ @Sim.setter
5003
+ def Sim(self, Sim):
5004
+ self._Sim = Sim
5005
+
5006
+ @property
5007
+ def Result(self):
5008
+ return self._Result
5009
+
5010
+ @Result.setter
5011
+ def Result(self, Result):
5012
+ self._Result = Result
5013
+
5014
+ @property
5015
+ def Description(self):
5016
+ return self._Description
5017
+
5018
+ @Description.setter
5019
+ def Description(self, Description):
5020
+ self._Description = Description
5021
+
5022
+ @property
5023
+ def RequestId(self):
5024
+ return self._RequestId
5025
+
5026
+ @RequestId.setter
5027
+ def RequestId(self, RequestId):
5028
+ self._RequestId = RequestId
5029
+
5030
+
5031
+ def _deserialize(self, params):
5032
+ self._Sim = params.get("Sim")
5033
+ self._Result = params.get("Result")
5034
+ self._Description = params.get("Description")
5035
+ self._RequestId = params.get("RequestId")
5036
+
5037
+
4892
5038
  class IntentionActionConfig(AbstractModel):
4893
5039
  """意愿核身(点头确认模式)配置
4894
5040
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.0.1041
3
+ Version: 3.0.1047
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.1047
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1041