tencentcloud-sdk-python-faceid 3.0.1189__tar.gz → 3.0.1225__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.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/setup.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud/faceid/v20180301/errorcodes.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud/faceid/v20180301/faceid_client.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud/faceid/v20180301/models.py +70 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-faceid-3.0.1225/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-faceid-3.0.1189/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/README.rst +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/setup.cfg +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/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.1225"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Faceid SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -104,7 +104,7 @@ FAILEDOPERATION_IDPHOTOPOORQUALITY = 'FailedOperation.IdPhotoPoorQuality'
|
|
|
104
104
|
# 客户库自建库或认证中心返照失败,请稍后再试。
|
|
105
105
|
FAILEDOPERATION_IDPHOTOSYSTEMNOANSWER = 'FailedOperation.IdPhotoSystemNoanswer'
|
|
106
106
|
|
|
107
|
-
#
|
|
107
|
+
# 姓名/身份证号认证次数超过当日限制,请次日重试
|
|
108
108
|
FAILEDOPERATION_IDENTITYAUTHLIMITEXCEEDED = 'FailedOperation.IdentityAuthLimitExceeded'
|
|
109
109
|
|
|
110
110
|
# 图片模糊。
|
|
@@ -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
|
|
|
@@ -1237,6 +1277,7 @@ class CheckIdNameDateResponse(AbstractModel):
|
|
|
1237
1277
|
-5: 身份信息无效
|
|
1238
1278
|
-6: 证件库服务异常
|
|
1239
1279
|
-7: 证件库中无此身份证记录
|
|
1280
|
+
-8: 认证次数超过当日限制,请次日重试
|
|
1240
1281
|
:type Result: str
|
|
1241
1282
|
:param _Description: 业务结果描述。
|
|
1242
1283
|
:type Description: str
|
|
@@ -1354,6 +1395,7 @@ class CheckPhoneAndNameResponse(AbstractModel):
|
|
|
1354
1395
|
-3:引擎服务异常
|
|
1355
1396
|
-4:姓名校验不通过
|
|
1356
1397
|
-5:手机号码不合法
|
|
1398
|
+
-6: 认证次数超过当日限制,请次日重试
|
|
1357
1399
|
:type Result: str
|
|
1358
1400
|
:param _Description: 业务结果描述
|
|
1359
1401
|
:type Description: str
|
|
@@ -1419,9 +1461,15 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
|
|
|
1419
1461
|
2- 传入的是视频类型
|
|
1420
1462
|
其他 - 返回错误码InvalidParameter
|
|
1421
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
|
|
1422
1468
|
"""
|
|
1423
1469
|
self._FaceInput = None
|
|
1424
1470
|
self._FaceInputType = None
|
|
1471
|
+
self._Encryption = None
|
|
1472
|
+
self._EncryptedBody = None
|
|
1425
1473
|
|
|
1426
1474
|
@property
|
|
1427
1475
|
def FaceInput(self):
|
|
@@ -1439,10 +1487,30 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
|
|
|
1439
1487
|
def FaceInputType(self, FaceInputType):
|
|
1440
1488
|
self._FaceInputType = FaceInputType
|
|
1441
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
|
+
|
|
1442
1506
|
|
|
1443
1507
|
def _deserialize(self, params):
|
|
1444
1508
|
self._FaceInput = params.get("FaceInput")
|
|
1445
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")
|
|
1446
1514
|
memeber_set = set(params.keys())
|
|
1447
1515
|
for name, value in vars(self).items():
|
|
1448
1516
|
property_name = name[1:]
|
|
@@ -2819,7 +2887,7 @@ class Encryption(AbstractModel):
|
|
|
2819
2887
|
:param _EncryptList: 在使用加密服务时,填入要被加密的字段。本接口中可填入加密后的一个或多个字段
|
|
2820
2888
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2821
2889
|
:type EncryptList: list of str
|
|
2822
|
-
:param _CiphertextBlob:
|
|
2890
|
+
:param _CiphertextBlob: 加密后的对称密钥,关于密钥的生成和使用请查阅<a href="https://cloud.tencent.com/document/product/1007/47180">数据加密</a> 文档。
|
|
2823
2891
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2824
2892
|
:type CiphertextBlob: str
|
|
2825
2893
|
:param _Iv: 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
|
|
@@ -7708,6 +7776,7 @@ class PhoneVerificationResponse(AbstractModel):
|
|
|
7708
7776
|
-8: 姓名校验不通过
|
|
7709
7777
|
-9: 没有记录
|
|
7710
7778
|
-11: 验证中心服务繁忙
|
|
7779
|
+
-12: 认证次数超过当日限制,请次日重试
|
|
7711
7780
|
:type Result: str
|
|
7712
7781
|
:param _Description: 业务结果描述。
|
|
7713
7782
|
:type Description: str
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1225
|
tencentcloud-sdk-python-faceid-3.0.1189/tencentcloud_sdk_python_faceid.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1189
|
{tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-faceid-3.0.1189 → tencentcloud-sdk-python-faceid-3.0.1225}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|