tencentcloud-sdk-python-faceid 3.0.1386__tar.gz → 3.0.1388__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-faceid might be problematic. Click here for more details.
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/setup.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud/faceid/v20180301/models.py +88 -24
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-faceid-3.0.1388/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-faceid-3.0.1386/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/README.rst +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/setup.cfg +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud/faceid/v20180301/faceid_client.py +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
{tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/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.1388"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Faceid SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -1282,9 +1282,7 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
|
1282
1282
|
- 取值范围 [0.00, 100.00]。
|
|
1283
1283
|
- 推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)。
|
|
1284
1284
|
:type Sim: float
|
|
1285
|
-
:param _Result:
|
|
1286
|
-
- 成功情况返回Success,。
|
|
1287
|
-
- 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
1285
|
+
:param _Result: 业务错误码。- 成功情况返回Success。- 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
1288
1286
|
:type Result: str
|
|
1289
1287
|
:param _Description: 业务结果描述。
|
|
1290
1288
|
:type Description: str
|
|
@@ -1358,9 +1356,7 @@ class CheckIdCardInformationResponse(AbstractModel):
|
|
|
1358
1356
|
|
|
1359
1357
|
@property
|
|
1360
1358
|
def Result(self):
|
|
1361
|
-
"""
|
|
1362
|
-
- 成功情况返回Success,。
|
|
1363
|
-
- 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
1359
|
+
"""业务错误码。- 成功情况返回Success。- 错误情况请参考下方错误码 列表中FailedOperation部分
|
|
1364
1360
|
:rtype: str
|
|
1365
1361
|
"""
|
|
1366
1362
|
return self._Result
|
|
@@ -1892,17 +1888,19 @@ class DetectAIFakeFacesRequest(AbstractModel):
|
|
|
1892
1888
|
|
|
1893
1889
|
def __init__(self):
|
|
1894
1890
|
r"""
|
|
1895
|
-
:param _FaceInput:
|
|
1891
|
+
:param _FaceInput: 传入需要进行检测的带有人脸的图片或视频(当前仅支持单人脸检测),使用base64编码的形式。
|
|
1896
1892
|
- 图片的Base64值:
|
|
1897
1893
|
建议整体图像480x640的分辨率,脸部 大小 100X100 以上。
|
|
1898
|
-
Base64
|
|
1894
|
+
Base64编码后的图片数据大小建议不超过3M、最大不可超过10M,仅支持jpg、png格式。
|
|
1899
1895
|
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
1900
1896
|
|
|
1901
1897
|
- 视频的Base64值:
|
|
1902
|
-
Base64
|
|
1898
|
+
Base64编码后的大小建议不超过8M、最大不可超过10M,支持mp4、avi、flv格式。
|
|
1903
1899
|
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
1904
1900
|
视频时长最大支持20s,建议时长2~5s。
|
|
1905
1901
|
建议视频分辨率为480x640,帧率在25fps~30fps之间。
|
|
1902
|
+
|
|
1903
|
+
示例值:/9j/4AAQSkZJRg.....s97n//2Q==
|
|
1906
1904
|
:type FaceInput: str
|
|
1907
1905
|
:param _FaceInputType: 传入的类型。
|
|
1908
1906
|
- 取值范围:
|
|
@@ -1925,17 +1923,19 @@ Base64编码后的大小不超过8M,支持mp4、avi、flv格式。
|
|
|
1925
1923
|
|
|
1926
1924
|
@property
|
|
1927
1925
|
def FaceInput(self):
|
|
1928
|
-
"""
|
|
1926
|
+
"""传入需要进行检测的带有人脸的图片或视频(当前仅支持单人脸检测),使用base64编码的形式。
|
|
1929
1927
|
- 图片的Base64值:
|
|
1930
1928
|
建议整体图像480x640的分辨率,脸部 大小 100X100 以上。
|
|
1931
|
-
Base64
|
|
1929
|
+
Base64编码后的图片数据大小建议不超过3M、最大不可超过10M,仅支持jpg、png格式。
|
|
1932
1930
|
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
1933
1931
|
|
|
1934
1932
|
- 视频的Base64值:
|
|
1935
|
-
Base64
|
|
1933
|
+
Base64编码后的大小建议不超过8M、最大不可超过10M,支持mp4、avi、flv格式。
|
|
1936
1934
|
请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
1937
1935
|
视频时长最大支持20s,建议时长2~5s。
|
|
1938
1936
|
建议视频分辨率为480x640,帧率在25fps~30fps之间。
|
|
1937
|
+
|
|
1938
|
+
示例值:/9j/4AAQSkZJRg.....s97n//2Q==
|
|
1939
1939
|
:rtype: str
|
|
1940
1940
|
"""
|
|
1941
1941
|
return self._FaceInput
|
|
@@ -2118,6 +2118,7 @@ class DetectAuthRequest(AbstractModel):
|
|
|
2118
2118
|
- 最长长度1024位。
|
|
2119
2119
|
:type RedirectUrl: str
|
|
2120
2120
|
:param _Extra: 透传字段,在获取验证结果时返回。
|
|
2121
|
+
- 最长长度1024位。
|
|
2121
2122
|
:type Extra: str
|
|
2122
2123
|
:param _ImageBase64: 用于人脸比对的图像数据,使用base64编码。
|
|
2123
2124
|
- Base64编码后的图片数据大小不超过3M。
|
|
@@ -2220,6 +2221,7 @@ class DetectAuthRequest(AbstractModel):
|
|
|
2220
2221
|
@property
|
|
2221
2222
|
def Extra(self):
|
|
2222
2223
|
"""透传字段,在获取验证结果时返回。
|
|
2224
|
+
- 最长长度1024位。
|
|
2223
2225
|
:rtype: str
|
|
2224
2226
|
"""
|
|
2225
2227
|
return self._Extra
|
|
@@ -3041,6 +3043,7 @@ class DetectInfoText(AbstractModel):
|
|
|
3041
3043
|
2:动作活体
|
|
3042
3044
|
3:静默活体
|
|
3043
3045
|
4:一闪活体(动作+光线)
|
|
3046
|
+
5:远近活体
|
|
3044
3047
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3045
3048
|
:type LivenessMode: int
|
|
3046
3049
|
:param _NFCRequestIds: nfc重复计费requestId列表。
|
|
@@ -3433,6 +3436,7 @@ class DetectInfoText(AbstractModel):
|
|
|
3433
3436
|
2:动作活体
|
|
3434
3437
|
3:静默活体
|
|
3435
3438
|
4:一闪活体(动作+光线)
|
|
3439
|
+
5:远近活体
|
|
3436
3440
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3437
3441
|
:rtype: int
|
|
3438
3442
|
"""
|
|
@@ -5452,10 +5456,17 @@ class GetFaceIdResultRequest(AbstractModel):
|
|
|
5452
5456
|
:param _IsNeedBestFrame: 是否需要拉取截帧。
|
|
5453
5457
|
- 默认false:不需要。
|
|
5454
5458
|
:type IsNeedBestFrame: bool
|
|
5459
|
+
:param _IsEncryptResponse: 是否对回包整体进行加密。
|
|
5460
|
+
:type IsEncryptResponse: bool
|
|
5461
|
+
:param _Encryption: 是否需要对返回中的敏感信息进行加密。
|
|
5462
|
+
只需指定加密算法Algorithm即可,其余字段传入默认值。
|
|
5463
|
+
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
5455
5464
|
"""
|
|
5456
5465
|
self._FaceIdToken = None
|
|
5457
5466
|
self._IsNeedVideo = None
|
|
5458
5467
|
self._IsNeedBestFrame = None
|
|
5468
|
+
self._IsEncryptResponse = None
|
|
5469
|
+
self._Encryption = None
|
|
5459
5470
|
|
|
5460
5471
|
@property
|
|
5461
5472
|
def FaceIdToken(self):
|
|
@@ -5493,11 +5504,38 @@ class GetFaceIdResultRequest(AbstractModel):
|
|
|
5493
5504
|
def IsNeedBestFrame(self, IsNeedBestFrame):
|
|
5494
5505
|
self._IsNeedBestFrame = IsNeedBestFrame
|
|
5495
5506
|
|
|
5507
|
+
@property
|
|
5508
|
+
def IsEncryptResponse(self):
|
|
5509
|
+
"""是否对回包整体进行加密。
|
|
5510
|
+
:rtype: bool
|
|
5511
|
+
"""
|
|
5512
|
+
return self._IsEncryptResponse
|
|
5513
|
+
|
|
5514
|
+
@IsEncryptResponse.setter
|
|
5515
|
+
def IsEncryptResponse(self, IsEncryptResponse):
|
|
5516
|
+
self._IsEncryptResponse = IsEncryptResponse
|
|
5517
|
+
|
|
5518
|
+
@property
|
|
5519
|
+
def Encryption(self):
|
|
5520
|
+
"""是否需要对返回中的敏感信息进行加密。
|
|
5521
|
+
只需指定加密算法Algorithm即可,其余字段传入默认值。
|
|
5522
|
+
:rtype: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
5523
|
+
"""
|
|
5524
|
+
return self._Encryption
|
|
5525
|
+
|
|
5526
|
+
@Encryption.setter
|
|
5527
|
+
def Encryption(self, Encryption):
|
|
5528
|
+
self._Encryption = Encryption
|
|
5529
|
+
|
|
5496
5530
|
|
|
5497
5531
|
def _deserialize(self, params):
|
|
5498
5532
|
self._FaceIdToken = params.get("FaceIdToken")
|
|
5499
5533
|
self._IsNeedVideo = params.get("IsNeedVideo")
|
|
5500
5534
|
self._IsNeedBestFrame = params.get("IsNeedBestFrame")
|
|
5535
|
+
self._IsEncryptResponse = params.get("IsEncryptResponse")
|
|
5536
|
+
if params.get("Encryption") is not None:
|
|
5537
|
+
self._Encryption = Encryption()
|
|
5538
|
+
self._Encryption._deserialize(params.get("Encryption"))
|
|
5501
5539
|
memeber_set = set(params.keys())
|
|
5502
5540
|
for name, value in vars(self).items():
|
|
5503
5541
|
property_name = name[1:]
|
|
@@ -5541,11 +5579,6 @@ class GetFaceIdResultResponse(AbstractModel):
|
|
|
5541
5579
|
:type Extra: str
|
|
5542
5580
|
:param _DeviceInfoTag: plus版:描述当前请求所在设备的风险标签。
|
|
5543
5581
|
- 详情如下:
|
|
5544
|
-
01-设备疑似被Root/设备疑似越狱。
|
|
5545
|
-
02-设备疑似被注入。
|
|
5546
|
-
03-设备疑似为模拟器。
|
|
5547
|
-
04-设备疑似存在风险操作。
|
|
5548
|
-
05-摄像头疑似被劫持。
|
|
5549
5582
|
06-疑似黑产设备。
|
|
5550
5583
|
null-无设备风险。
|
|
5551
5584
|
- 增强版:此字段不生效,默认为null。
|
|
@@ -5586,6 +5619,12 @@ null - 未获取到风险等级。
|
|
|
5586
5619
|
- 增强版:此字段不生效,默认为null。
|
|
5587
5620
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5588
5621
|
:type DeviceInfoLevel: str
|
|
5622
|
+
:param _Encryption: 敏感数据加密信息。
|
|
5623
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5624
|
+
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
5625
|
+
:param _EncryptedBody: 加密后的数据。
|
|
5626
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5627
|
+
:type EncryptedBody: str
|
|
5589
5628
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5590
5629
|
:type RequestId: str
|
|
5591
5630
|
"""
|
|
@@ -5601,6 +5640,8 @@ null - 未获取到风险等级。
|
|
|
5601
5640
|
self._RiskInfoTag = None
|
|
5602
5641
|
self._LivenessInfoTag = None
|
|
5603
5642
|
self._DeviceInfoLevel = None
|
|
5643
|
+
self._Encryption = None
|
|
5644
|
+
self._EncryptedBody = None
|
|
5604
5645
|
self._RequestId = None
|
|
5605
5646
|
|
|
5606
5647
|
@property
|
|
@@ -5703,11 +5744,6 @@ null - 未获取到风险等级。
|
|
|
5703
5744
|
def DeviceInfoTag(self):
|
|
5704
5745
|
"""plus版:描述当前请求所在设备的风险标签。
|
|
5705
5746
|
- 详情如下:
|
|
5706
|
-
01-设备疑似被Root/设备疑似越狱。
|
|
5707
|
-
02-设备疑似被注入。
|
|
5708
|
-
03-设备疑似为模拟器。
|
|
5709
|
-
04-设备疑似存在风险操作。
|
|
5710
|
-
05-摄像头疑似被劫持。
|
|
5711
5747
|
06-疑似黑产设备。
|
|
5712
5748
|
null-无设备风险。
|
|
5713
5749
|
- 增强版:此字段不生效,默认为null。
|
|
@@ -5782,6 +5818,30 @@ null - 未获取到风险等级。
|
|
|
5782
5818
|
def DeviceInfoLevel(self, DeviceInfoLevel):
|
|
5783
5819
|
self._DeviceInfoLevel = DeviceInfoLevel
|
|
5784
5820
|
|
|
5821
|
+
@property
|
|
5822
|
+
def Encryption(self):
|
|
5823
|
+
"""敏感数据加密信息。
|
|
5824
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5825
|
+
:rtype: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
5826
|
+
"""
|
|
5827
|
+
return self._Encryption
|
|
5828
|
+
|
|
5829
|
+
@Encryption.setter
|
|
5830
|
+
def Encryption(self, Encryption):
|
|
5831
|
+
self._Encryption = Encryption
|
|
5832
|
+
|
|
5833
|
+
@property
|
|
5834
|
+
def EncryptedBody(self):
|
|
5835
|
+
"""加密后的数据。
|
|
5836
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
5837
|
+
:rtype: str
|
|
5838
|
+
"""
|
|
5839
|
+
return self._EncryptedBody
|
|
5840
|
+
|
|
5841
|
+
@EncryptedBody.setter
|
|
5842
|
+
def EncryptedBody(self, EncryptedBody):
|
|
5843
|
+
self._EncryptedBody = EncryptedBody
|
|
5844
|
+
|
|
5785
5845
|
@property
|
|
5786
5846
|
def RequestId(self):
|
|
5787
5847
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -5807,6 +5867,10 @@ null - 未获取到风险等级。
|
|
|
5807
5867
|
self._RiskInfoTag = params.get("RiskInfoTag")
|
|
5808
5868
|
self._LivenessInfoTag = params.get("LivenessInfoTag")
|
|
5809
5869
|
self._DeviceInfoLevel = params.get("DeviceInfoLevel")
|
|
5870
|
+
if params.get("Encryption") is not None:
|
|
5871
|
+
self._Encryption = Encryption()
|
|
5872
|
+
self._Encryption._deserialize(params.get("Encryption"))
|
|
5873
|
+
self._EncryptedBody = params.get("EncryptedBody")
|
|
5810
5874
|
self._RequestId = params.get("RequestId")
|
|
5811
5875
|
|
|
5812
5876
|
|
|
@@ -6066,7 +6130,7 @@ BUSINESS:商业库。
|
|
|
6066
6130
|
- 开通地址见https://console.cloud.tencent.com/faceid/cos
|
|
6067
6131
|
- 【注意】选择该参数为true后将不返回base64数据,请根据接入情况谨慎修改。
|
|
6068
6132
|
:type UseCos: bool
|
|
6069
|
-
:param _Encryption:
|
|
6133
|
+
:param _Encryption: 敏感数据加密信息。对传入信息(姓名、身份证号、自传照片)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
6070
6134
|
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
6071
6135
|
:param _RuleId: 用于细分客户使用场景。
|
|
6072
6136
|
- 申请开通服务后,可以在腾讯云慧眼人脸核身控制台(https://console.cloud.tencent.com/faceid) 自助接入里面创建,审核通过后即可调用。
|
|
@@ -6175,7 +6239,7 @@ BUSINESS:商业库。
|
|
|
6175
6239
|
|
|
6176
6240
|
@property
|
|
6177
6241
|
def Encryption(self):
|
|
6178
|
-
"""
|
|
6242
|
+
"""敏感数据加密信息。对传入信息(姓名、身份证号、自传照片)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
6179
6243
|
:rtype: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
6180
6244
|
"""
|
|
6181
6245
|
return self._Encryption
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1388
|
tencentcloud-sdk-python-faceid-3.0.1386/tencentcloud_sdk_python_faceid.egg-info/requires.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1386
|
{tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/README.rst
RENAMED
|
File without changes
|
{tencentcloud-sdk-python-faceid-3.0.1386 → tencentcloud-sdk-python-faceid-3.0.1388}/setup.cfg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|