tencentcloud-sdk-python-faceid 3.0.1202__tar.gz → 3.0.1226__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.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/setup.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud/faceid/v20180301/models.py +66 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-faceid-3.0.1226/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-faceid-3.0.1202/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/README.rst +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/setup.cfg +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/setup.py
RENAMED
|
@@ -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.1226"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Faceid SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -211,7 +211,7 @@ class FaceidClient(AbstractClient):
|
|
|
211
211
|
|
|
212
212
|
|
|
213
213
|
def DetectAIFakeFaces(self, request):
|
|
214
|
-
"""
|
|
214
|
+
"""基于多模态的AI大模型算法,提供对人脸图片、视频的防攻击检测能力,可针对性有效识别高仿真的AIGC换脸、高清翻拍、批量黑产攻击、水印等攻击痕迹,增强对图片和视频的防伪安全能力。
|
|
215
215
|
|
|
216
216
|
:param request: Request instance for DetectAIFakeFaces.
|
|
217
217
|
:type request: :class:`tencentcloud.faceid.v20180301.models.DetectAIFakeFacesRequest`
|
|
@@ -314,6 +314,7 @@ class BankCard4EVerificationResponse(AbstractModel):
|
|
|
314
314
|
'-5': '手机号码不合法'
|
|
315
315
|
'-18': '验证中心服务繁忙'
|
|
316
316
|
'-19': '验证次数超限,请次日重试'
|
|
317
|
+
'-20': '该证件号暂不支持核验,当前仅支持二代身份证'
|
|
317
318
|
:type Result: str
|
|
318
319
|
:param _Description: 业务结果描述。
|
|
319
320
|
:type Description: str
|
|
@@ -468,6 +469,7 @@ class BankCardVerificationResponse(AbstractModel):
|
|
|
468
469
|
'-4': '银行卡号码有误'
|
|
469
470
|
'-17': '验证中心服务繁忙'
|
|
470
471
|
'-18': '验证次数超限,请次日重试'
|
|
472
|
+
'-19': '该证件号暂不支持核验,当前仅支持二代身份证'
|
|
471
473
|
:type Result: str
|
|
472
474
|
:param _Description: 业务结果描述。
|
|
473
475
|
:type Description: str
|
|
@@ -889,11 +891,17 @@ Config = {"CopyWarn":true,"ReshootWarn":true}
|
|
|
889
891
|
:param _IsEncrypt: 是否需要对返回中的敏感信息进行加密。默认false。
|
|
890
892
|
其中敏感信息包括:Response.IdNum、Response.Name
|
|
891
893
|
:type IsEncrypt: bool
|
|
894
|
+
:param _IsEncryptResponse: 是否需要对响应体加密
|
|
895
|
+
:type IsEncryptResponse: bool
|
|
896
|
+
:param _Encryption: 是否需要对返回中的敏感信息进行加密,需指定加密算法Algorithm、CBC加密的初始向量、加密后的对称密钥。
|
|
897
|
+
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
892
898
|
"""
|
|
893
899
|
self._ImageBase64 = None
|
|
894
900
|
self._ImageUrl = None
|
|
895
901
|
self._Config = None
|
|
896
902
|
self._IsEncrypt = None
|
|
903
|
+
self._IsEncryptResponse = None
|
|
904
|
+
self._Encryption = None
|
|
897
905
|
|
|
898
906
|
@property
|
|
899
907
|
def ImageBase64(self):
|
|
@@ -927,12 +935,32 @@ Config = {"CopyWarn":true,"ReshootWarn":true}
|
|
|
927
935
|
def IsEncrypt(self, IsEncrypt):
|
|
928
936
|
self._IsEncrypt = IsEncrypt
|
|
929
937
|
|
|
938
|
+
@property
|
|
939
|
+
def IsEncryptResponse(self):
|
|
940
|
+
return self._IsEncryptResponse
|
|
941
|
+
|
|
942
|
+
@IsEncryptResponse.setter
|
|
943
|
+
def IsEncryptResponse(self, IsEncryptResponse):
|
|
944
|
+
self._IsEncryptResponse = IsEncryptResponse
|
|
945
|
+
|
|
946
|
+
@property
|
|
947
|
+
def Encryption(self):
|
|
948
|
+
return self._Encryption
|
|
949
|
+
|
|
950
|
+
@Encryption.setter
|
|
951
|
+
def Encryption(self, Encryption):
|
|
952
|
+
self._Encryption = Encryption
|
|
953
|
+
|
|
930
954
|
|
|
931
955
|
def _deserialize(self, params):
|
|
932
956
|
self._ImageBase64 = params.get("ImageBase64")
|
|
933
957
|
self._ImageUrl = params.get("ImageUrl")
|
|
934
958
|
self._Config = params.get("Config")
|
|
935
959
|
self._IsEncrypt = params.get("IsEncrypt")
|
|
960
|
+
self._IsEncryptResponse = params.get("IsEncryptResponse")
|
|
961
|
+
if params.get("Encryption") is not None:
|
|
962
|
+
self._Encryption = Encryption()
|
|
963
|
+
self._Encryption._deserialize(params.get("Encryption"))
|
|
936
964
|
memeber_set = set(params.keys())
|
|
937
965
|
for name, value in vars(self).items():
|
|
938
966
|
property_name = name[1:]
|
|
@@ -986,6 +1014,8 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
|
986
1014
|
:param _Encryption: 敏感数据加密信息。
|
|
987
1015
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
988
1016
|
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
1017
|
+
:param _EncryptedBody: 加密后的数据
|
|
1018
|
+
:type EncryptedBody: str
|
|
989
1019
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
990
1020
|
:type RequestId: str
|
|
991
1021
|
"""
|
|
@@ -1002,6 +1032,7 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
|
1002
1032
|
self._Warnings = None
|
|
1003
1033
|
self._Quality = None
|
|
1004
1034
|
self._Encryption = None
|
|
1035
|
+
self._EncryptedBody = None
|
|
1005
1036
|
self._RequestId = None
|
|
1006
1037
|
|
|
1007
1038
|
@property
|
|
@@ -1108,6 +1139,14 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
|
1108
1139
|
def Encryption(self, Encryption):
|
|
1109
1140
|
self._Encryption = Encryption
|
|
1110
1141
|
|
|
1142
|
+
@property
|
|
1143
|
+
def EncryptedBody(self):
|
|
1144
|
+
return self._EncryptedBody
|
|
1145
|
+
|
|
1146
|
+
@EncryptedBody.setter
|
|
1147
|
+
def EncryptedBody(self, EncryptedBody):
|
|
1148
|
+
self._EncryptedBody = EncryptedBody
|
|
1149
|
+
|
|
1111
1150
|
@property
|
|
1112
1151
|
def RequestId(self):
|
|
1113
1152
|
return self._RequestId
|
|
@@ -1133,6 +1172,7 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
|
1133
1172
|
if params.get("Encryption") is not None:
|
|
1134
1173
|
self._Encryption = Encryption()
|
|
1135
1174
|
self._Encryption._deserialize(params.get("Encryption"))
|
|
1175
|
+
self._EncryptedBody = params.get("EncryptedBody")
|
|
1136
1176
|
self._RequestId = params.get("RequestId")
|
|
1137
1177
|
|
|
1138
1178
|
|
|
@@ -1421,9 +1461,15 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
|
|
|
1421
1461
|
2- 传入的是视频类型
|
|
1422
1462
|
其他 - 返回错误码InvalidParameter
|
|
1423
1463
|
:type FaceInputType: int
|
|
1464
|
+
:param _Encryption: 是否需要对请求信息进行全包体加密; 支持的加密算法:AES-256-CBC、SM4-GCM; 有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
1465
|
+
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
1466
|
+
:param _EncryptedBody: 加密后的密文; 加密前的数据格式如下:{"FaceInput":"AAAAA","FaceInputType":1}
|
|
1467
|
+
:type EncryptedBody: str
|
|
1424
1468
|
"""
|
|
1425
1469
|
self._FaceInput = None
|
|
1426
1470
|
self._FaceInputType = None
|
|
1471
|
+
self._Encryption = None
|
|
1472
|
+
self._EncryptedBody = None
|
|
1427
1473
|
|
|
1428
1474
|
@property
|
|
1429
1475
|
def FaceInput(self):
|
|
@@ -1441,10 +1487,30 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
|
|
|
1441
1487
|
def FaceInputType(self, FaceInputType):
|
|
1442
1488
|
self._FaceInputType = FaceInputType
|
|
1443
1489
|
|
|
1490
|
+
@property
|
|
1491
|
+
def Encryption(self):
|
|
1492
|
+
return self._Encryption
|
|
1493
|
+
|
|
1494
|
+
@Encryption.setter
|
|
1495
|
+
def Encryption(self, Encryption):
|
|
1496
|
+
self._Encryption = Encryption
|
|
1497
|
+
|
|
1498
|
+
@property
|
|
1499
|
+
def EncryptedBody(self):
|
|
1500
|
+
return self._EncryptedBody
|
|
1501
|
+
|
|
1502
|
+
@EncryptedBody.setter
|
|
1503
|
+
def EncryptedBody(self, EncryptedBody):
|
|
1504
|
+
self._EncryptedBody = EncryptedBody
|
|
1505
|
+
|
|
1444
1506
|
|
|
1445
1507
|
def _deserialize(self, params):
|
|
1446
1508
|
self._FaceInput = params.get("FaceInput")
|
|
1447
1509
|
self._FaceInputType = params.get("FaceInputType")
|
|
1510
|
+
if params.get("Encryption") is not None:
|
|
1511
|
+
self._Encryption = Encryption()
|
|
1512
|
+
self._Encryption._deserialize(params.get("Encryption"))
|
|
1513
|
+
self._EncryptedBody = params.get("EncryptedBody")
|
|
1448
1514
|
memeber_set = set(params.keys())
|
|
1449
1515
|
for name, value in vars(self).items():
|
|
1450
1516
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1226
|
tencentcloud-sdk-python-faceid-3.0.1202/tencentcloud_sdk_python_faceid.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1202
|
{tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-faceid-3.0.1202 → tencentcloud-sdk-python-faceid-3.0.1226}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|