tencentcloud-sdk-python-faceid 3.0.1213__tar.gz → 3.0.1222__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.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/setup.py +1 -1
  3. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud/faceid/v20180301/faceid_client.py +1 -1
  5. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud/faceid/v20180301/models.py +64 -0
  6. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-faceid-3.0.1222/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-faceid-3.0.1213/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/README.rst +0 -0
  10. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud/faceid/__init__.py +0 -0
  12. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud/faceid/v20180301/__init__.py +0 -0
  13. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-faceid-3.0.1213 → tencentcloud-sdk-python-faceid-3.0.1222}/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.1213
3
+ Version: 3.0.1222
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.1213"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1222"],
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.1213'
17
+ __version__ = '3.0.1222'
@@ -211,7 +211,7 @@ class FaceidClient(AbstractClient):
211
211
 
212
212
 
213
213
  def DetectAIFakeFaces(self, request):
214
- """提供对人脸图片/视频的AI合成、翻拍、水印等攻击痕迹的检测,增强图片/视频防伪能力
214
+ """基于多模态的AI大模型算法,提供对人脸图片、视频的防攻击检测能力,可针对性有效识别高仿真的AIGC换脸、高清翻拍、批量黑产攻击、水印等攻击痕迹,增强对图片和视频的防伪安全能力。
215
215
 
216
216
  :param request: Request instance for DetectAIFakeFaces.
217
217
  :type request: :class:`tencentcloud.faceid.v20180301.models.DetectAIFakeFacesRequest`
@@ -891,11 +891,17 @@ Config = {"CopyWarn":true,"ReshootWarn":true}
891
891
  :param _IsEncrypt: 是否需要对返回中的敏感信息进行加密。默认false。
892
892
  其中敏感信息包括:Response.IdNum、Response.Name
893
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`
894
898
  """
895
899
  self._ImageBase64 = None
896
900
  self._ImageUrl = None
897
901
  self._Config = None
898
902
  self._IsEncrypt = None
903
+ self._IsEncryptResponse = None
904
+ self._Encryption = None
899
905
 
900
906
  @property
901
907
  def ImageBase64(self):
@@ -929,12 +935,32 @@ Config = {"CopyWarn":true,"ReshootWarn":true}
929
935
  def IsEncrypt(self, IsEncrypt):
930
936
  self._IsEncrypt = IsEncrypt
931
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
+
932
954
 
933
955
  def _deserialize(self, params):
934
956
  self._ImageBase64 = params.get("ImageBase64")
935
957
  self._ImageUrl = params.get("ImageUrl")
936
958
  self._Config = params.get("Config")
937
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"))
938
964
  memeber_set = set(params.keys())
939
965
  for name, value in vars(self).items():
940
966
  property_name = name[1:]
@@ -988,6 +1014,8 @@ class CheckIdCardInformationResponse(AbstractModel):
988
1014
  :param _Encryption: 敏感数据加密信息。
989
1015
  注意:此字段可能返回 null,表示取不到有效值。
990
1016
  :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
1017
+ :param _EncryptedBody: 加密后的数据
1018
+ :type EncryptedBody: str
991
1019
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
992
1020
  :type RequestId: str
993
1021
  """
@@ -1004,6 +1032,7 @@ class CheckIdCardInformationResponse(AbstractModel):
1004
1032
  self._Warnings = None
1005
1033
  self._Quality = None
1006
1034
  self._Encryption = None
1035
+ self._EncryptedBody = None
1007
1036
  self._RequestId = None
1008
1037
 
1009
1038
  @property
@@ -1110,6 +1139,14 @@ class CheckIdCardInformationResponse(AbstractModel):
1110
1139
  def Encryption(self, Encryption):
1111
1140
  self._Encryption = Encryption
1112
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
+
1113
1150
  @property
1114
1151
  def RequestId(self):
1115
1152
  return self._RequestId
@@ -1135,6 +1172,7 @@ class CheckIdCardInformationResponse(AbstractModel):
1135
1172
  if params.get("Encryption") is not None:
1136
1173
  self._Encryption = Encryption()
1137
1174
  self._Encryption._deserialize(params.get("Encryption"))
1175
+ self._EncryptedBody = params.get("EncryptedBody")
1138
1176
  self._RequestId = params.get("RequestId")
1139
1177
 
1140
1178
 
@@ -1423,9 +1461,15 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
1423
1461
  2- 传入的是视频类型
1424
1462
  其他 - 返回错误码InvalidParameter
1425
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
1426
1468
  """
1427
1469
  self._FaceInput = None
1428
1470
  self._FaceInputType = None
1471
+ self._Encryption = None
1472
+ self._EncryptedBody = None
1429
1473
 
1430
1474
  @property
1431
1475
  def FaceInput(self):
@@ -1443,10 +1487,30 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
1443
1487
  def FaceInputType(self, FaceInputType):
1444
1488
  self._FaceInputType = FaceInputType
1445
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
+
1446
1506
 
1447
1507
  def _deserialize(self, params):
1448
1508
  self._FaceInput = params.get("FaceInput")
1449
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")
1450
1514
  memeber_set = set(params.keys())
1451
1515
  for name, value in vars(self).items():
1452
1516
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.0.1213
3
+ Version: 3.0.1222
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.1222
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1213