tencentcloud-sdk-python-faceid 3.1.201__py2.py3-none-any.whl → 3.1.215__py2.py3-none-any.whl

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/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.201'
17
+ __version__ = '3.1.215'
@@ -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
 
@@ -671,6 +727,87 @@ class BankCardVerificationResponse(AbstractModel):
671
727
  self._RequestId = params.get("RequestId")
672
728
 
673
729
 
730
+ class BlackListItem(AbstractModel):
731
+ r"""BlackListItem
732
+
733
+ """
734
+
735
+ def __init__(self):
736
+ r"""
737
+ :param _ModelId: <p>黑名单条目 ID,客户创建条目时自定义,用于回溯是哪一条命中</p>
738
+ :type ModelId: str
739
+ :param _ModelType: <p>条目类型。当前仅有 face(人脸)</p>
740
+ :type ModelType: str
741
+ :param _FaceScore: <p>人脸相似度,字符串形式表示,保留 4 位小数,取值 0.0000–1.0000</p>
742
+ :type FaceScore: str
743
+ :param _BackgroundScore: <p>背景相似度</p>
744
+ :type BackgroundScore: str
745
+ """
746
+ self._ModelId = None
747
+ self._ModelType = None
748
+ self._FaceScore = None
749
+ self._BackgroundScore = None
750
+
751
+ @property
752
+ def ModelId(self):
753
+ r"""<p>黑名单条目 ID,客户创建条目时自定义,用于回溯是哪一条命中</p>
754
+ :rtype: str
755
+ """
756
+ return self._ModelId
757
+
758
+ @ModelId.setter
759
+ def ModelId(self, ModelId):
760
+ self._ModelId = ModelId
761
+
762
+ @property
763
+ def ModelType(self):
764
+ r"""<p>条目类型。当前仅有 face(人脸)</p>
765
+ :rtype: str
766
+ """
767
+ return self._ModelType
768
+
769
+ @ModelType.setter
770
+ def ModelType(self, ModelType):
771
+ self._ModelType = ModelType
772
+
773
+ @property
774
+ def FaceScore(self):
775
+ r"""<p>人脸相似度,字符串形式表示,保留 4 位小数,取值 0.0000–1.0000</p>
776
+ :rtype: str
777
+ """
778
+ return self._FaceScore
779
+
780
+ @FaceScore.setter
781
+ def FaceScore(self, FaceScore):
782
+ self._FaceScore = FaceScore
783
+
784
+ @property
785
+ def BackgroundScore(self):
786
+ r"""<p>背景相似度</p>
787
+ :rtype: str
788
+ """
789
+ return self._BackgroundScore
790
+
791
+ @BackgroundScore.setter
792
+ def BackgroundScore(self, BackgroundScore):
793
+ self._BackgroundScore = BackgroundScore
794
+
795
+
796
+ def _deserialize(self, params):
797
+ self._ModelId = params.get("ModelId")
798
+ self._ModelType = params.get("ModelType")
799
+ self._FaceScore = params.get("FaceScore")
800
+ self._BackgroundScore = params.get("BackgroundScore")
801
+ memeber_set = set(params.keys())
802
+ for name, value in vars(self).items():
803
+ property_name = name[1:]
804
+ if property_name in memeber_set:
805
+ memeber_set.remove(property_name)
806
+ if len(memeber_set) > 0:
807
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
808
+
809
+
810
+
674
811
  class ChargeDetail(AbstractModel):
675
812
  r"""计费详情
676
813
 
@@ -1792,11 +1929,14 @@ class DetectAIFakeFacesRequest(AbstractModel):
1792
1929
  :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
1793
1930
  :param _EncryptedBody: <p>加密后的密文。</p><ul><li>加密前的数据格式如下:{&quot;FaceInput&quot;:&quot;AAAAA&quot;,&quot;FaceInputType&quot;:1}。</li></ul>
1794
1931
  :type EncryptedBody: str
1932
+ :param _ExtraRiskInfo: <p>一次性携带本次请求的风控上下文,即“是谁、在哪、从哪个 IP 发起”</p>
1933
+ :type ExtraRiskInfo: :class:`tencentcloud.faceid.v20180301.models.ExtraRiskInfo`
1795
1934
  """
1796
1935
  self._FaceInput = None
1797
1936
  self._FaceInputType = None
1798
1937
  self._Encryption = None
1799
1938
  self._EncryptedBody = None
1939
+ self._ExtraRiskInfo = None
1800
1940
 
1801
1941
  @property
1802
1942
  def FaceInput(self):
@@ -1842,6 +1982,17 @@ class DetectAIFakeFacesRequest(AbstractModel):
1842
1982
  def EncryptedBody(self, EncryptedBody):
1843
1983
  self._EncryptedBody = EncryptedBody
1844
1984
 
1985
+ @property
1986
+ def ExtraRiskInfo(self):
1987
+ r"""<p>一次性携带本次请求的风控上下文,即“是谁、在哪、从哪个 IP 发起”</p>
1988
+ :rtype: :class:`tencentcloud.faceid.v20180301.models.ExtraRiskInfo`
1989
+ """
1990
+ return self._ExtraRiskInfo
1991
+
1992
+ @ExtraRiskInfo.setter
1993
+ def ExtraRiskInfo(self, ExtraRiskInfo):
1994
+ self._ExtraRiskInfo = ExtraRiskInfo
1995
+
1845
1996
 
1846
1997
  def _deserialize(self, params):
1847
1998
  self._FaceInput = params.get("FaceInput")
@@ -1850,6 +2001,9 @@ class DetectAIFakeFacesRequest(AbstractModel):
1850
2001
  self._Encryption = Encryption()
1851
2002
  self._Encryption._deserialize(params.get("Encryption"))
1852
2003
  self._EncryptedBody = params.get("EncryptedBody")
2004
+ if params.get("ExtraRiskInfo") is not None:
2005
+ self._ExtraRiskInfo = ExtraRiskInfo()
2006
+ self._ExtraRiskInfo._deserialize(params.get("ExtraRiskInfo"))
1853
2007
  memeber_set = set(params.keys())
1854
2008
  for name, value in vars(self).items():
1855
2009
  property_name = name[1:]
@@ -1873,12 +2027,16 @@ class DetectAIFakeFacesResponse(AbstractModel):
1873
2027
  :type AttackRiskDetailList: list of AttackRiskDetail
1874
2028
  :param _ExtraInfo: <p>返回额外信息(包括命中模板的详细信息)。</p>
1875
2029
  :type ExtraInfo: :class:`tencentcloud.faceid.v20180301.models.ExtraInfo`
2030
+ :param _ExtraRiskResult: <p>附加风险结论的独立容器,回答“本次附加风险检查是否可信、有没有发现问题”。</p>
2031
+ 注意:此字段可能返回 null,表示取不到有效值。
2032
+ :type ExtraRiskResult: :class:`tencentcloud.faceid.v20180301.models.ExtraRiskResult`
1876
2033
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1877
2034
  :type RequestId: str
1878
2035
  """
1879
2036
  self._AttackRiskLevel = None
1880
2037
  self._AttackRiskDetailList = None
1881
2038
  self._ExtraInfo = None
2039
+ self._ExtraRiskResult = None
1882
2040
  self._RequestId = None
1883
2041
 
1884
2042
  @property
@@ -1914,6 +2072,18 @@ class DetectAIFakeFacesResponse(AbstractModel):
1914
2072
  def ExtraInfo(self, ExtraInfo):
1915
2073
  self._ExtraInfo = ExtraInfo
1916
2074
 
2075
+ @property
2076
+ def ExtraRiskResult(self):
2077
+ r"""<p>附加风险结论的独立容器,回答“本次附加风险检查是否可信、有没有发现问题”。</p>
2078
+ 注意:此字段可能返回 null,表示取不到有效值。
2079
+ :rtype: :class:`tencentcloud.faceid.v20180301.models.ExtraRiskResult`
2080
+ """
2081
+ return self._ExtraRiskResult
2082
+
2083
+ @ExtraRiskResult.setter
2084
+ def ExtraRiskResult(self, ExtraRiskResult):
2085
+ self._ExtraRiskResult = ExtraRiskResult
2086
+
1917
2087
  @property
1918
2088
  def RequestId(self):
1919
2089
  r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
@@ -1937,6 +2107,9 @@ class DetectAIFakeFacesResponse(AbstractModel):
1937
2107
  if params.get("ExtraInfo") is not None:
1938
2108
  self._ExtraInfo = ExtraInfo()
1939
2109
  self._ExtraInfo._deserialize(params.get("ExtraInfo"))
2110
+ if params.get("ExtraRiskResult") is not None:
2111
+ self._ExtraRiskResult = ExtraRiskResult()
2112
+ self._ExtraRiskResult._deserialize(params.get("ExtraRiskResult"))
1940
2113
  self._RequestId = params.get("RequestId")
1941
2114
 
1942
2115
 
@@ -3734,6 +3907,178 @@ class ExtraInfo(AbstractModel):
3734
3907
 
3735
3908
 
3736
3909
 
3910
+ class ExtraRiskInfo(AbstractModel):
3911
+ r"""ExtraRiskInfo
3912
+
3913
+ """
3914
+
3915
+ def __init__(self):
3916
+ r"""
3917
+ :param _PersonId: <p>客户业务域内稳定且唯一的人员标识,用于把同一人员的多次位置上报关联起来,判断是否存在异常位移。</p><p>入参限制:长度 ≤ 128 字符;不可含控制字符(ASCII &lt; 0x20 或 0x7F);建议传脱敏标识,勿传明文身份证号/手机号</p>
3918
+ :type PersonId: str
3919
+ :param _Latitude: <p>设备采集时的纬度,WGS84 十进制度 </p><p>入参限制:与 Longitude 必须成对出现;取值 [-90, 90];须为有效数字,不接受 NaN/Inf;JSON 中按字符串传(如 &quot;22.5431&quot;)</p>
3920
+ :type Latitude: str
3921
+ :param _Longitude: <p>设备采集时的经度,WGS84 十进制度 </p><p>入参限制:与 Latitude 必须成对出现;取值 [-180, 180];其余同上</p>
3922
+ :type Longitude: str
3923
+ :param _Ip: <p>设备采集时的公网出口 IP </p><p>入参限制:长度 ≤ 64;须为可解析的 IPv4/IPv6;私网、回环、链路本地、组播地址视为不可定位</p>
3924
+ :type Ip: str
3925
+ """
3926
+ self._PersonId = None
3927
+ self._Latitude = None
3928
+ self._Longitude = None
3929
+ self._Ip = None
3930
+
3931
+ @property
3932
+ def PersonId(self):
3933
+ r"""<p>客户业务域内稳定且唯一的人员标识,用于把同一人员的多次位置上报关联起来,判断是否存在异常位移。</p><p>入参限制:长度 ≤ 128 字符;不可含控制字符(ASCII &lt; 0x20 或 0x7F);建议传脱敏标识,勿传明文身份证号/手机号</p>
3934
+ :rtype: str
3935
+ """
3936
+ return self._PersonId
3937
+
3938
+ @PersonId.setter
3939
+ def PersonId(self, PersonId):
3940
+ self._PersonId = PersonId
3941
+
3942
+ @property
3943
+ def Latitude(self):
3944
+ r"""<p>设备采集时的纬度,WGS84 十进制度 </p><p>入参限制:与 Longitude 必须成对出现;取值 [-90, 90];须为有效数字,不接受 NaN/Inf;JSON 中按字符串传(如 &quot;22.5431&quot;)</p>
3945
+ :rtype: str
3946
+ """
3947
+ return self._Latitude
3948
+
3949
+ @Latitude.setter
3950
+ def Latitude(self, Latitude):
3951
+ self._Latitude = Latitude
3952
+
3953
+ @property
3954
+ def Longitude(self):
3955
+ r"""<p>设备采集时的经度,WGS84 十进制度 </p><p>入参限制:与 Latitude 必须成对出现;取值 [-180, 180];其余同上</p>
3956
+ :rtype: str
3957
+ """
3958
+ return self._Longitude
3959
+
3960
+ @Longitude.setter
3961
+ def Longitude(self, Longitude):
3962
+ self._Longitude = Longitude
3963
+
3964
+ @property
3965
+ def Ip(self):
3966
+ r"""<p>设备采集时的公网出口 IP </p><p>入参限制:长度 ≤ 64;须为可解析的 IPv4/IPv6;私网、回环、链路本地、组播地址视为不可定位</p>
3967
+ :rtype: str
3968
+ """
3969
+ return self._Ip
3970
+
3971
+ @Ip.setter
3972
+ def Ip(self, Ip):
3973
+ self._Ip = Ip
3974
+
3975
+
3976
+ def _deserialize(self, params):
3977
+ self._PersonId = params.get("PersonId")
3978
+ self._Latitude = params.get("Latitude")
3979
+ self._Longitude = params.get("Longitude")
3980
+ self._Ip = params.get("Ip")
3981
+ memeber_set = set(params.keys())
3982
+ for name, value in vars(self).items():
3983
+ property_name = name[1:]
3984
+ if property_name in memeber_set:
3985
+ memeber_set.remove(property_name)
3986
+ if len(memeber_set) > 0:
3987
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3988
+
3989
+
3990
+
3991
+ class ExtraRiskResult(AbstractModel):
3992
+ r"""ExtraRiskResult
3993
+
3994
+ """
3995
+
3996
+ def __init__(self):
3997
+ r"""
3998
+ :param _Status: <p>本次附加检查的完成度,回答“这次结果可否采信”。</p><p>枚举值:</p><ul><li>Completed: 本次请求所需的检查均已给出结论(命中或通过)</li><li>Partial: 至少一项检查未能给出结论:依赖不可用、数据不足、入参不完整或非法。结果仅供参考,不代表安全</li></ul>
3999
+ :type Status: str
4000
+ :param _RiskLevel: <p>附加风险等级,可能为空字符串</p><p>枚举值:</p><ul><li>High: 存在已生效的风险命中项(此时 RiskDetailList 非空)</li><li>Low: 检查已完成,且确认无命中</li><li>&quot;&quot;(空字符串) : 未识别:本次没有任何一项检查能给出结论,或检查未全部完成。既不代表有风险,也不代表安全</li></ul>
4001
+ :type RiskLevel: str
4002
+ :param _BlackListResult: <p>命中的风险项列表,未命中时为空数组 []</p>
4003
+ :type BlackListResult: list of BlackListItem
4004
+ :param _RiskDetailList: <p>人脸黑名单命中明细,未命中时为空数组 []</p>
4005
+ :type RiskDetailList: list of RiskDetailItem
4006
+ """
4007
+ self._Status = None
4008
+ self._RiskLevel = None
4009
+ self._BlackListResult = None
4010
+ self._RiskDetailList = None
4011
+
4012
+ @property
4013
+ def Status(self):
4014
+ r"""<p>本次附加检查的完成度,回答“这次结果可否采信”。</p><p>枚举值:</p><ul><li>Completed: 本次请求所需的检查均已给出结论(命中或通过)</li><li>Partial: 至少一项检查未能给出结论:依赖不可用、数据不足、入参不完整或非法。结果仅供参考,不代表安全</li></ul>
4015
+ :rtype: str
4016
+ """
4017
+ return self._Status
4018
+
4019
+ @Status.setter
4020
+ def Status(self, Status):
4021
+ self._Status = Status
4022
+
4023
+ @property
4024
+ def RiskLevel(self):
4025
+ r"""<p>附加风险等级,可能为空字符串</p><p>枚举值:</p><ul><li>High: 存在已生效的风险命中项(此时 RiskDetailList 非空)</li><li>Low: 检查已完成,且确认无命中</li><li>&quot;&quot;(空字符串) : 未识别:本次没有任何一项检查能给出结论,或检查未全部完成。既不代表有风险,也不代表安全</li></ul>
4026
+ :rtype: str
4027
+ """
4028
+ return self._RiskLevel
4029
+
4030
+ @RiskLevel.setter
4031
+ def RiskLevel(self, RiskLevel):
4032
+ self._RiskLevel = RiskLevel
4033
+
4034
+ @property
4035
+ def BlackListResult(self):
4036
+ r"""<p>命中的风险项列表,未命中时为空数组 []</p>
4037
+ :rtype: list of BlackListItem
4038
+ """
4039
+ return self._BlackListResult
4040
+
4041
+ @BlackListResult.setter
4042
+ def BlackListResult(self, BlackListResult):
4043
+ self._BlackListResult = BlackListResult
4044
+
4045
+ @property
4046
+ def RiskDetailList(self):
4047
+ r"""<p>人脸黑名单命中明细,未命中时为空数组 []</p>
4048
+ :rtype: list of RiskDetailItem
4049
+ """
4050
+ return self._RiskDetailList
4051
+
4052
+ @RiskDetailList.setter
4053
+ def RiskDetailList(self, RiskDetailList):
4054
+ self._RiskDetailList = RiskDetailList
4055
+
4056
+
4057
+ def _deserialize(self, params):
4058
+ self._Status = params.get("Status")
4059
+ self._RiskLevel = params.get("RiskLevel")
4060
+ if params.get("BlackListResult") is not None:
4061
+ self._BlackListResult = []
4062
+ for item in params.get("BlackListResult"):
4063
+ obj = BlackListItem()
4064
+ obj._deserialize(item)
4065
+ self._BlackListResult.append(obj)
4066
+ if params.get("RiskDetailList") is not None:
4067
+ self._RiskDetailList = []
4068
+ for item in params.get("RiskDetailList"):
4069
+ obj = RiskDetailItem()
4070
+ obj._deserialize(item)
4071
+ self._RiskDetailList.append(obj)
4072
+ memeber_set = set(params.keys())
4073
+ for name, value in vars(self).items():
4074
+ property_name = name[1:]
4075
+ if property_name in memeber_set:
4076
+ memeber_set.remove(property_name)
4077
+ if len(memeber_set) > 0:
4078
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4079
+
4080
+
4081
+
3737
4082
  class GetActionSequenceRequest(AbstractModel):
3738
4083
  r"""GetActionSequence请求参数结构体
3739
4084
 
@@ -3815,6 +4160,90 @@ class GetActionSequenceResponse(AbstractModel):
3815
4160
  self._RequestId = params.get("RequestId")
3816
4161
 
3817
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
+
3818
4247
  class GetDetectInfoEnhancedRequest(AbstractModel):
3819
4248
  r"""GetDetectInfoEnhanced请求参数结构体
3820
4249
 
@@ -10226,6 +10655,57 @@ OtherMismatch:其他不一致。
10226
10655
  self._RequestId = params.get("RequestId")
10227
10656
 
10228
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
+
10229
10709
  class RetrievalLivenessExtraInfo(AbstractModel):
10230
10710
  r"""模板检索详细信息
10231
10711
 
@@ -10298,6 +10778,42 @@ class RetrievalLivenessExtraInfo(AbstractModel):
10298
10778
 
10299
10779
 
10300
10780
 
10781
+ class RiskDetailItem(AbstractModel):
10782
+ r"""RiskDetailItem
10783
+
10784
+ """
10785
+
10786
+ def __init__(self):
10787
+ r"""
10788
+ :param _Type: <p>风险项类型</p><p>枚举值:</p><ul><li>IpLocationMismatch: 上报坐标所在国家/地区与 IP 归属国家/地区不一致</li><li>AbnormalLocationChange: 同一人员短时间内发生物理上不可能的位移 </li><li>BlacklistHit: 命中客户自建人脸黑名单</li></ul>
10789
+ :type Type: str
10790
+ """
10791
+ self._Type = None
10792
+
10793
+ @property
10794
+ def Type(self):
10795
+ r"""<p>风险项类型</p><p>枚举值:</p><ul><li>IpLocationMismatch: 上报坐标所在国家/地区与 IP 归属国家/地区不一致</li><li>AbnormalLocationChange: 同一人员短时间内发生物理上不可能的位移 </li><li>BlacklistHit: 命中客户自建人脸黑名单</li></ul>
10796
+ :rtype: str
10797
+ """
10798
+ return self._Type
10799
+
10800
+ @Type.setter
10801
+ def Type(self, Type):
10802
+ self._Type = Type
10803
+
10804
+
10805
+ def _deserialize(self, params):
10806
+ self._Type = params.get("Type")
10807
+ memeber_set = set(params.keys())
10808
+ for name, value in vars(self).items():
10809
+ property_name = name[1:]
10810
+ if property_name in memeber_set:
10811
+ memeber_set.remove(property_name)
10812
+ if len(memeber_set) > 0:
10813
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10814
+
10815
+
10816
+
10301
10817
  class RuleIdConfig(AbstractModel):
10302
10818
  r"""RuleId相关配置
10303
10819
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.1.201
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.201
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,11 @@
1
+ tencentcloud/__init__.py,sha256=1vPnuD6sDGnaiKY5SS8rREgo6a-14pFu4nWgcE36zQU,630
2
+ tencentcloud/faceid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/faceid/v20180301/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/faceid/v20180301/errorcodes.py,sha256=307o2SlsUYVkrEPgluNioBLWntA-hrB9UrpnH1w6yYM,10564
5
+ tencentcloud/faceid/v20180301/faceid_client.py,sha256=nsEIPe7rFr6ydXDylbZl9Su25E96wsEFfgd2xs02B_8,39832
6
+ tencentcloud/faceid/v20180301/faceid_client_async.py,sha256=Sp7UF8ZgN_VUdjcynygkvw6ZWdrChrBzauZuM0HQJew,28135
7
+ tencentcloud/faceid/v20180301/models.py,sha256=Mw7TmBaB_r5wbbv0v9r07AQ2FU9yP_v5_2rxEj2itKc,418201
8
+ tencentcloud_sdk_python_faceid-3.1.215.dist-info/METADATA,sha256=9LjWHFPdEWkorCG66zevl65g_-mPVwF24aSZcmJqBaU,1512
9
+ tencentcloud_sdk_python_faceid-3.1.215.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_faceid-3.1.215.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_faceid-3.1.215.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=Ol9T5N-Tu_-YhRRn99msjgYTUzKOWnPB88u1K4kyF-M,630
2
- tencentcloud/faceid/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/faceid/v20180301/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/faceid/v20180301/errorcodes.py,sha256=KjJhJPydFEaWOTKSuQ5cgUAcPHzKOabc4oKsjPnNq0g,10463
5
- tencentcloud/faceid/v20180301/faceid_client.py,sha256=aCa_wAONznGJISq3LUhw4NqVnxj3alWLvgX7cANYuHM,38618
6
- tencentcloud/faceid/v20180301/faceid_client_async.py,sha256=ScpW0wdIW5YXjnHzQDlFq44tDMgnTeKcn3JDqmqHrt8,27224
7
- tencentcloud/faceid/v20180301/models.py,sha256=d1YxBOsWalkmXdE1cG3yX1Jus8NywT8PxFxL0hykj6Q,398260
8
- tencentcloud_sdk_python_faceid-3.1.201.dist-info/METADATA,sha256=idxF1jKXmmA-MU_Ybxyhfmo2U7s7uzT4fSffEfQ2Swg,1512
9
- tencentcloud_sdk_python_faceid-3.1.201.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_faceid-3.1.201.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_faceid-3.1.201.dist-info/RECORD,,