tencentcloud-sdk-python-faceid 3.1.207__tar.gz → 3.1.215__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.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/setup.py +1 -1
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/faceid/v20180301/errorcodes.py +3 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/faceid/v20180301/faceid_client.py +27 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/faceid/v20180301/faceid_client_async.py +22 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/faceid/v20180301/models.py +191 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_faceid-3.1.215/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_faceid-3.1.207/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/README.rst +0 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/setup.cfg +0 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/tencentcloud_sdk_python_faceid.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-faceid
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.215
|
|
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
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.215
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.215,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Faceid SDK for Python',
|
|
@@ -230,6 +230,9 @@ FAILEDOPERATION_SILENTTOOSHORT = 'FailedOperation.SilentTooShort'
|
|
|
230
230
|
# STS未授权。
|
|
231
231
|
FAILEDOPERATION_STSUNAUTHERRERROR = 'FailedOperation.StsUnAuthErrError'
|
|
232
232
|
|
|
233
|
+
# 结果处理中,请稍后重试
|
|
234
|
+
FAILEDOPERATION_TRYAGAINLATER = 'FailedOperation.TryAgainLater'
|
|
235
|
+
|
|
233
236
|
# 内部未知错误。
|
|
234
237
|
FAILEDOPERATION_UNKNOWN = 'FailedOperation.UnKnown'
|
|
235
238
|
|
|
@@ -302,6 +302,33 @@ class FaceidClient(AbstractClient):
|
|
|
302
302
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
303
303
|
|
|
304
304
|
|
|
305
|
+
def GetAttackDetail(self, request):
|
|
306
|
+
r"""根据 AI 人脸防护盾接口返回的 SeqId,查询本次检测命中的攻击区域坐标与攻击描述信息。常用于在 AttackRiskLevel 为 High 或 Mid 时,对原始图片/视频帧进行可视化标注与人工复核。
|
|
307
|
+
|
|
308
|
+
检测结果默认保留 3 天,超过保留期后无法再查询。
|
|
309
|
+
|
|
310
|
+
默认接口请求频率限制:10次/秒。
|
|
311
|
+
|
|
312
|
+
:param request: Request instance for GetAttackDetail.
|
|
313
|
+
:type request: :class:`tencentcloud.faceid.v20180301.models.GetAttackDetailRequest`
|
|
314
|
+
:rtype: :class:`tencentcloud.faceid.v20180301.models.GetAttackDetailResponse`
|
|
315
|
+
|
|
316
|
+
"""
|
|
317
|
+
try:
|
|
318
|
+
params = request._serialize()
|
|
319
|
+
headers = request.headers
|
|
320
|
+
body = self.call("GetAttackDetail", params, headers=headers)
|
|
321
|
+
response = json.loads(body)
|
|
322
|
+
model = models.GetAttackDetailResponse()
|
|
323
|
+
model._deserialize(response["Response"])
|
|
324
|
+
return model
|
|
325
|
+
except Exception as e:
|
|
326
|
+
if isinstance(e, TencentCloudSDKException):
|
|
327
|
+
raise
|
|
328
|
+
else:
|
|
329
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
330
|
+
|
|
331
|
+
|
|
305
332
|
def GetDetectInfo(self, request):
|
|
306
333
|
r"""完成验证后,用BizToken调用本接口获取结果信息,BizToken生成后三天内(3\*24\*3,600秒)可多次拉取。
|
|
307
334
|
|
|
@@ -241,6 +241,28 @@ class FaceidClient(AbstractClient):
|
|
|
241
241
|
|
|
242
242
|
return await self.call_and_deserialize(**kwargs)
|
|
243
243
|
|
|
244
|
+
async def GetAttackDetail(
|
|
245
|
+
self,
|
|
246
|
+
request: models.GetAttackDetailRequest,
|
|
247
|
+
opts: Dict = None,
|
|
248
|
+
) -> models.GetAttackDetailResponse:
|
|
249
|
+
"""
|
|
250
|
+
根据 AI 人脸防护盾接口返回的 SeqId,查询本次检测命中的攻击区域坐标与攻击描述信息。常用于在 AttackRiskLevel 为 High 或 Mid 时,对原始图片/视频帧进行可视化标注与人工复核。
|
|
251
|
+
|
|
252
|
+
检测结果默认保留 3 天,超过保留期后无法再查询。
|
|
253
|
+
|
|
254
|
+
默认接口请求频率限制:10次/秒。
|
|
255
|
+
"""
|
|
256
|
+
|
|
257
|
+
kwargs = {}
|
|
258
|
+
kwargs["action"] = "GetAttackDetail"
|
|
259
|
+
kwargs["params"] = request._serialize()
|
|
260
|
+
kwargs["resp_cls"] = models.GetAttackDetailResponse
|
|
261
|
+
kwargs["headers"] = request.headers
|
|
262
|
+
kwargs["opts"] = opts or {}
|
|
263
|
+
|
|
264
|
+
return await self.call_and_deserialize(**kwargs)
|
|
265
|
+
|
|
244
266
|
async def GetDetectInfo(
|
|
245
267
|
self,
|
|
246
268
|
request: models.GetDetectInfoRequest,
|
|
@@ -18,6 +18,62 @@ import warnings
|
|
|
18
18
|
from tencentcloud.common.abstract_model import AbstractModel
|
|
19
19
|
|
|
20
20
|
|
|
21
|
+
class AttackRegion(AbstractModel):
|
|
22
|
+
r"""命中的攻击区域列表
|
|
23
|
+
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""
|
|
28
|
+
:param _Polygon: <p>攻击区域的四点坐标,固定为轴对齐矩形,按 左上 → 右上 → 右下 → 左下 顺时针顺序排列。单位为像素,坐标原点为图像左上角。数组长度固定为 4。</p>
|
|
29
|
+
:type Polygon: list of Point
|
|
30
|
+
:param _Description: <p>攻击描述,对该区域命中的可疑特征进行详细说明。</p>
|
|
31
|
+
:type Description: str
|
|
32
|
+
"""
|
|
33
|
+
self._Polygon = None
|
|
34
|
+
self._Description = None
|
|
35
|
+
|
|
36
|
+
@property
|
|
37
|
+
def Polygon(self):
|
|
38
|
+
r"""<p>攻击区域的四点坐标,固定为轴对齐矩形,按 左上 → 右上 → 右下 → 左下 顺时针顺序排列。单位为像素,坐标原点为图像左上角。数组长度固定为 4。</p>
|
|
39
|
+
:rtype: list of Point
|
|
40
|
+
"""
|
|
41
|
+
return self._Polygon
|
|
42
|
+
|
|
43
|
+
@Polygon.setter
|
|
44
|
+
def Polygon(self, Polygon):
|
|
45
|
+
self._Polygon = Polygon
|
|
46
|
+
|
|
47
|
+
@property
|
|
48
|
+
def Description(self):
|
|
49
|
+
r"""<p>攻击描述,对该区域命中的可疑特征进行详细说明。</p>
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._Description
|
|
53
|
+
|
|
54
|
+
@Description.setter
|
|
55
|
+
def Description(self, Description):
|
|
56
|
+
self._Description = Description
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
def _deserialize(self, params):
|
|
60
|
+
if params.get("Polygon") is not None:
|
|
61
|
+
self._Polygon = []
|
|
62
|
+
for item in params.get("Polygon"):
|
|
63
|
+
obj = Point()
|
|
64
|
+
obj._deserialize(item)
|
|
65
|
+
self._Polygon.append(obj)
|
|
66
|
+
self._Description = params.get("Description")
|
|
67
|
+
memeber_set = set(params.keys())
|
|
68
|
+
for name, value in vars(self).items():
|
|
69
|
+
property_name = name[1:]
|
|
70
|
+
if property_name in memeber_set:
|
|
71
|
+
memeber_set.remove(property_name)
|
|
72
|
+
if len(memeber_set) > 0:
|
|
73
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
21
77
|
class AttackRiskDetail(AbstractModel):
|
|
22
78
|
r"""疑似攻击风险详情
|
|
23
79
|
|
|
@@ -4104,6 +4160,90 @@ class GetActionSequenceResponse(AbstractModel):
|
|
|
4104
4160
|
self._RequestId = params.get("RequestId")
|
|
4105
4161
|
|
|
4106
4162
|
|
|
4163
|
+
class GetAttackDetailRequest(AbstractModel):
|
|
4164
|
+
r"""GetAttackDetail请求参数结构体
|
|
4165
|
+
|
|
4166
|
+
"""
|
|
4167
|
+
|
|
4168
|
+
def __init__(self):
|
|
4169
|
+
r"""
|
|
4170
|
+
:param _SeqId: <p>待查询的检测请求 ID,来自上游检测接口(如 <code>DetectAIFakeFaces</code>)返回的 <code>RequestId</code>。长度 32 ~ 64,仅支持数字、字母及短横线 <code>-</code>。检测结果保留期为 3 天,超期后将返回 <code>ResourceUnavailable.ResultExpired</code>。</p>
|
|
4171
|
+
:type SeqId: str
|
|
4172
|
+
"""
|
|
4173
|
+
self._SeqId = None
|
|
4174
|
+
|
|
4175
|
+
@property
|
|
4176
|
+
def SeqId(self):
|
|
4177
|
+
r"""<p>待查询的检测请求 ID,来自上游检测接口(如 <code>DetectAIFakeFaces</code>)返回的 <code>RequestId</code>。长度 32 ~ 64,仅支持数字、字母及短横线 <code>-</code>。检测结果保留期为 3 天,超期后将返回 <code>ResourceUnavailable.ResultExpired</code>。</p>
|
|
4178
|
+
:rtype: str
|
|
4179
|
+
"""
|
|
4180
|
+
return self._SeqId
|
|
4181
|
+
|
|
4182
|
+
@SeqId.setter
|
|
4183
|
+
def SeqId(self, SeqId):
|
|
4184
|
+
self._SeqId = SeqId
|
|
4185
|
+
|
|
4186
|
+
|
|
4187
|
+
def _deserialize(self, params):
|
|
4188
|
+
self._SeqId = params.get("SeqId")
|
|
4189
|
+
memeber_set = set(params.keys())
|
|
4190
|
+
for name, value in vars(self).items():
|
|
4191
|
+
property_name = name[1:]
|
|
4192
|
+
if property_name in memeber_set:
|
|
4193
|
+
memeber_set.remove(property_name)
|
|
4194
|
+
if len(memeber_set) > 0:
|
|
4195
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
|
|
4199
|
+
class GetAttackDetailResponse(AbstractModel):
|
|
4200
|
+
r"""GetAttackDetail返回参数结构体
|
|
4201
|
+
|
|
4202
|
+
"""
|
|
4203
|
+
|
|
4204
|
+
def __init__(self):
|
|
4205
|
+
r"""
|
|
4206
|
+
:param _AttackRegionList: <p>检测命中的攻击区域列表。本次检测未命中任何攻击区域时返回空数组 []</p>
|
|
4207
|
+
:type AttackRegionList: list of AttackRegion
|
|
4208
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4209
|
+
:type RequestId: str
|
|
4210
|
+
"""
|
|
4211
|
+
self._AttackRegionList = None
|
|
4212
|
+
self._RequestId = None
|
|
4213
|
+
|
|
4214
|
+
@property
|
|
4215
|
+
def AttackRegionList(self):
|
|
4216
|
+
r"""<p>检测命中的攻击区域列表。本次检测未命中任何攻击区域时返回空数组 []</p>
|
|
4217
|
+
:rtype: list of AttackRegion
|
|
4218
|
+
"""
|
|
4219
|
+
return self._AttackRegionList
|
|
4220
|
+
|
|
4221
|
+
@AttackRegionList.setter
|
|
4222
|
+
def AttackRegionList(self, AttackRegionList):
|
|
4223
|
+
self._AttackRegionList = AttackRegionList
|
|
4224
|
+
|
|
4225
|
+
@property
|
|
4226
|
+
def RequestId(self):
|
|
4227
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
4228
|
+
:rtype: str
|
|
4229
|
+
"""
|
|
4230
|
+
return self._RequestId
|
|
4231
|
+
|
|
4232
|
+
@RequestId.setter
|
|
4233
|
+
def RequestId(self, RequestId):
|
|
4234
|
+
self._RequestId = RequestId
|
|
4235
|
+
|
|
4236
|
+
|
|
4237
|
+
def _deserialize(self, params):
|
|
4238
|
+
if params.get("AttackRegionList") is not None:
|
|
4239
|
+
self._AttackRegionList = []
|
|
4240
|
+
for item in params.get("AttackRegionList"):
|
|
4241
|
+
obj = AttackRegion()
|
|
4242
|
+
obj._deserialize(item)
|
|
4243
|
+
self._AttackRegionList.append(obj)
|
|
4244
|
+
self._RequestId = params.get("RequestId")
|
|
4245
|
+
|
|
4246
|
+
|
|
4107
4247
|
class GetDetectInfoEnhancedRequest(AbstractModel):
|
|
4108
4248
|
r"""GetDetectInfoEnhanced请求参数结构体
|
|
4109
4249
|
|
|
@@ -10515,6 +10655,57 @@ OtherMismatch:其他不一致。
|
|
|
10515
10655
|
self._RequestId = params.get("RequestId")
|
|
10516
10656
|
|
|
10517
10657
|
|
|
10658
|
+
class Point(AbstractModel):
|
|
10659
|
+
r"""图像坐标点结构体
|
|
10660
|
+
|
|
10661
|
+
"""
|
|
10662
|
+
|
|
10663
|
+
def __init__(self):
|
|
10664
|
+
r"""
|
|
10665
|
+
:param _X: <p>横坐标,单位像素,取值范围 [0, 图像宽度]</p>
|
|
10666
|
+
:type X: int
|
|
10667
|
+
:param _Y: <p>纵坐标,单位像素,取值范围 [0, 图像高度]</p>
|
|
10668
|
+
:type Y: int
|
|
10669
|
+
"""
|
|
10670
|
+
self._X = None
|
|
10671
|
+
self._Y = None
|
|
10672
|
+
|
|
10673
|
+
@property
|
|
10674
|
+
def X(self):
|
|
10675
|
+
r"""<p>横坐标,单位像素,取值范围 [0, 图像宽度]</p>
|
|
10676
|
+
:rtype: int
|
|
10677
|
+
"""
|
|
10678
|
+
return self._X
|
|
10679
|
+
|
|
10680
|
+
@X.setter
|
|
10681
|
+
def X(self, X):
|
|
10682
|
+
self._X = X
|
|
10683
|
+
|
|
10684
|
+
@property
|
|
10685
|
+
def Y(self):
|
|
10686
|
+
r"""<p>纵坐标,单位像素,取值范围 [0, 图像高度]</p>
|
|
10687
|
+
:rtype: int
|
|
10688
|
+
"""
|
|
10689
|
+
return self._Y
|
|
10690
|
+
|
|
10691
|
+
@Y.setter
|
|
10692
|
+
def Y(self, Y):
|
|
10693
|
+
self._Y = Y
|
|
10694
|
+
|
|
10695
|
+
|
|
10696
|
+
def _deserialize(self, params):
|
|
10697
|
+
self._X = params.get("X")
|
|
10698
|
+
self._Y = params.get("Y")
|
|
10699
|
+
memeber_set = set(params.keys())
|
|
10700
|
+
for name, value in vars(self).items():
|
|
10701
|
+
property_name = name[1:]
|
|
10702
|
+
if property_name in memeber_set:
|
|
10703
|
+
memeber_set.remove(property_name)
|
|
10704
|
+
if len(memeber_set) > 0:
|
|
10705
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
10706
|
+
|
|
10707
|
+
|
|
10708
|
+
|
|
10518
10709
|
class RetrievalLivenessExtraInfo(AbstractModel):
|
|
10519
10710
|
r"""模板检索详细信息
|
|
10520
10711
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-faceid
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.215
|
|
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
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.215
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.215
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.207
|
{tencentcloud_sdk_python_faceid-3.1.207 → tencentcloud_sdk_python_faceid-3.1.215}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|