tencentcloud-sdk-python-faceid 3.1.163__tar.gz → 3.1.178__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 (17) hide show
  1. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/setup.py +1 -1
  3. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/faceid/v20180301/faceid_client.py +0 -23
  5. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/faceid/v20180301/faceid_client_async.py +0 -18
  6. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/faceid/v20180301/models.py +4 -175
  7. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_faceid-3.1.178/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_faceid-3.1.163/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/README.rst +0 -0
  11. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/faceid/__init__.py +0 -0
  13. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/faceid/v20180301/__init__.py +0 -0
  14. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_faceid-3.1.163 → tencentcloud_sdk_python_faceid-3.1.178}/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.163
3
+ Version: 3.1.178
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.163
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.178
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.163,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.178,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Faceid SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.163'
17
+ __version__ = '3.1.178'
@@ -624,29 +624,6 @@ class FaceidClient(AbstractClient):
624
624
  raise TencentCloudSDKException(type(e).__name__, str(e))
625
625
 
626
626
 
627
- def ImageRecognition(self, request):
628
- r"""传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
629
-
630
- :param request: Request instance for ImageRecognition.
631
- :type request: :class:`tencentcloud.faceid.v20180301.models.ImageRecognitionRequest`
632
- :rtype: :class:`tencentcloud.faceid.v20180301.models.ImageRecognitionResponse`
633
-
634
- """
635
- try:
636
- params = request._serialize()
637
- headers = request.headers
638
- body = self.call("ImageRecognition", params, headers=headers)
639
- response = json.loads(body)
640
- model = models.ImageRecognitionResponse()
641
- model._deserialize(response["Response"])
642
- return model
643
- except Exception as e:
644
- if isinstance(e, TencentCloudSDKException):
645
- raise
646
- else:
647
- raise TencentCloudSDKException(type(e).__name__, str(e))
648
-
649
-
650
627
  def ImageRecognitionV2(self, request):
651
628
  r"""传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人。
652
629
 
@@ -493,24 +493,6 @@ class FaceidClient(AbstractClient):
493
493
 
494
494
  return await self.call_and_deserialize(**kwargs)
495
495
 
496
- async def ImageRecognition(
497
- self,
498
- request: models.ImageRecognitionRequest,
499
- opts: Dict = None,
500
- ) -> models.ImageRecognitionResponse:
501
- """
502
- 传入照片和身份信息,判断该照片与权威库的证件照是否属于同一个人(该接口已停止接入,新客户请使用<a href="https://cloud.tencent.com/document/product/1007/102203">照片人脸核身(V2.0)</a>接口)。
503
- """
504
-
505
- kwargs = {}
506
- kwargs["action"] = "ImageRecognition"
507
- kwargs["params"] = request._serialize()
508
- kwargs["resp_cls"] = models.ImageRecognitionResponse
509
- kwargs["headers"] = request.headers
510
- kwargs["opts"] = opts or {}
511
-
512
- return await self.call_and_deserialize(**kwargs)
513
-
514
496
  async def ImageRecognitionV2(
515
497
  self,
516
498
  request: models.ImageRecognitionV2Request,
@@ -1117,7 +1117,7 @@ class CheckIdCardInformationRequest(AbstractModel):
1117
1117
  r"""
1118
1118
  :param _ImageBase64: <p>身份证人像面的 Base64 值。</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经Base64编码后不超过 7M。</li><li>请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。</li><li>ImageBase64、ImageUrl二者必须提供其中之一。若都提供了,则按照ImageUrl&gt;ImageBase64的优先级使用参数。</li></ul>
1119
1119
  :type ImageBase64: str
1120
- :param _ImageUrl: <p>身份证人像面的 Url 地址</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。</li><li>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。</li><li>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</li></ul>
1120
+ :param _ImageUrl: <p>身份证人像面的 Url 地址</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。</li><li>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。</li><li>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</li></ul>
1121
1121
  :type ImageUrl: str
1122
1122
  :param _Config: <p>配置。</p><ul><li><p>以下可选字段均为bool 类型,默认false。<br>CopyWarn,复印件告警。<br>BorderCheckWarn,边框和框内遮挡告警。<br>ReshootWarn,翻拍告警。<br>DetectPsWarn,PS检测告警(疑似存在PS痕迹)。<br>TempIdWarn,临时身份证告警。<br>Quality,图片质量告警(评价图片模糊程度)。</p></li><li><p>SDK 设置方式参考:<br>Config = Json.stringify({&quot;CopyWarn&quot;:true,&quot;ReshootWarn&quot;:true})。</p></li><li><p>API 3.0 Explorer 设置方式参考:<br>Config = {&quot;CopyWarn&quot;:true,&quot;ReshootWarn&quot;:true}。</p></li></ul>
1123
1123
  :type Config: str
@@ -1148,7 +1148,7 @@ class CheckIdCardInformationRequest(AbstractModel):
1148
1148
 
1149
1149
  @property
1150
1150
  def ImageUrl(self):
1151
- r"""<p>身份证人像面的 Url 地址</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。</li><li>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。</li><li>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</li></ul>
1151
+ r"""<p>身份证人像面的 Url 地址</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。</li><li>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。</li><li>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</li></ul>
1152
1152
  :rtype: str
1153
1153
  """
1154
1154
  return self._ImageUrl
@@ -7275,177 +7275,6 @@ class IdCardVerificationResponse(AbstractModel):
7275
7275
  self._RequestId = params.get("RequestId")
7276
7276
 
7277
7277
 
7278
- class ImageRecognitionRequest(AbstractModel):
7279
- r"""ImageRecognition请求参数结构体
7280
-
7281
- """
7282
-
7283
- def __init__(self):
7284
- r"""
7285
- :param _IdCard: <p>身份证号</p>
7286
- :type IdCard: str
7287
- :param _Name: <p>姓名。中文请使用UTF-8编码。</p>
7288
- :type Name: str
7289
- :param _ImageBase64: <p>用于人脸比对的照片,图片的Base64值;<br>Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。<br>请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。</p>
7290
- :type ImageBase64: str
7291
- :param _Optional: <p>本接口不需要传递此参数。</p>
7292
- :type Optional: str
7293
- :param _Encryption: <p>敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</p>
7294
- :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
7295
- """
7296
- self._IdCard = None
7297
- self._Name = None
7298
- self._ImageBase64 = None
7299
- self._Optional = None
7300
- self._Encryption = None
7301
-
7302
- @property
7303
- def IdCard(self):
7304
- r"""<p>身份证号</p>
7305
- :rtype: str
7306
- """
7307
- return self._IdCard
7308
-
7309
- @IdCard.setter
7310
- def IdCard(self, IdCard):
7311
- self._IdCard = IdCard
7312
-
7313
- @property
7314
- def Name(self):
7315
- r"""<p>姓名。中文请使用UTF-8编码。</p>
7316
- :rtype: str
7317
- """
7318
- return self._Name
7319
-
7320
- @Name.setter
7321
- def Name(self, Name):
7322
- self._Name = Name
7323
-
7324
- @property
7325
- def ImageBase64(self):
7326
- r"""<p>用于人脸比对的照片,图片的Base64值;<br>Base64编码后的图片数据大小不超过3M,仅支持jpg、png格式。<br>请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。</p>
7327
- :rtype: str
7328
- """
7329
- return self._ImageBase64
7330
-
7331
- @ImageBase64.setter
7332
- def ImageBase64(self, ImageBase64):
7333
- self._ImageBase64 = ImageBase64
7334
-
7335
- @property
7336
- def Optional(self):
7337
- r"""<p>本接口不需要传递此参数。</p>
7338
- :rtype: str
7339
- """
7340
- return self._Optional
7341
-
7342
- @Optional.setter
7343
- def Optional(self, Optional):
7344
- self._Optional = Optional
7345
-
7346
- @property
7347
- def Encryption(self):
7348
- r"""<p>敏感数据加密信息。对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</p>
7349
- :rtype: :class:`tencentcloud.faceid.v20180301.models.Encryption`
7350
- """
7351
- return self._Encryption
7352
-
7353
- @Encryption.setter
7354
- def Encryption(self, Encryption):
7355
- self._Encryption = Encryption
7356
-
7357
-
7358
- def _deserialize(self, params):
7359
- self._IdCard = params.get("IdCard")
7360
- self._Name = params.get("Name")
7361
- self._ImageBase64 = params.get("ImageBase64")
7362
- self._Optional = params.get("Optional")
7363
- if params.get("Encryption") is not None:
7364
- self._Encryption = Encryption()
7365
- self._Encryption._deserialize(params.get("Encryption"))
7366
- memeber_set = set(params.keys())
7367
- for name, value in vars(self).items():
7368
- property_name = name[1:]
7369
- if property_name in memeber_set:
7370
- memeber_set.remove(property_name)
7371
- if len(memeber_set) > 0:
7372
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7373
-
7374
-
7375
-
7376
- class ImageRecognitionResponse(AbstractModel):
7377
- r"""ImageRecognition返回参数结构体
7378
-
7379
- """
7380
-
7381
- def __init__(self):
7382
- r"""
7383
- :param _Sim: <p>相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)</p>
7384
- :type Sim: float
7385
- :param _Result: <p>业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分</p>
7386
- :type Result: str
7387
- :param _Description: <p>业务结果描述。</p>
7388
- :type Description: str
7389
- :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7390
- :type RequestId: str
7391
- """
7392
- self._Sim = None
7393
- self._Result = None
7394
- self._Description = None
7395
- self._RequestId = None
7396
-
7397
- @property
7398
- def Sim(self):
7399
- r"""<p>相似度,取值范围 [0.00, 100.00]。推荐相似度大于等于70时可判断为同一人,可根据具体场景自行调整阈值(阈值70的误通过率为千分之一,阈值80的误通过率是万分之一)</p>
7400
- :rtype: float
7401
- """
7402
- return self._Sim
7403
-
7404
- @Sim.setter
7405
- def Sim(self, Sim):
7406
- self._Sim = Sim
7407
-
7408
- @property
7409
- def Result(self):
7410
- r"""<p>业务错误码,成功情况返回Success, 错误情况请参考下方错误码 列表中FailedOperation部分</p>
7411
- :rtype: str
7412
- """
7413
- return self._Result
7414
-
7415
- @Result.setter
7416
- def Result(self, Result):
7417
- self._Result = Result
7418
-
7419
- @property
7420
- def Description(self):
7421
- r"""<p>业务结果描述。</p>
7422
- :rtype: str
7423
- """
7424
- return self._Description
7425
-
7426
- @Description.setter
7427
- def Description(self, Description):
7428
- self._Description = Description
7429
-
7430
- @property
7431
- def RequestId(self):
7432
- r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7433
- :rtype: str
7434
- """
7435
- return self._RequestId
7436
-
7437
- @RequestId.setter
7438
- def RequestId(self, RequestId):
7439
- self._RequestId = RequestId
7440
-
7441
-
7442
- def _deserialize(self, params):
7443
- self._Sim = params.get("Sim")
7444
- self._Result = params.get("Result")
7445
- self._Description = params.get("Description")
7446
- self._RequestId = params.get("RequestId")
7447
-
7448
-
7449
7278
  class ImageRecognitionV2Request(AbstractModel):
7450
7279
  r"""ImageRecognitionV2请求参数结构体
7451
7280
 
@@ -7463,7 +7292,7 @@ class ImageRecognitionV2Request(AbstractModel):
7463
7292
  :type Optional: str
7464
7293
  :param _Encryption: <p>敏感数据加密信息。</p><ul><li>对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</li></ul>
7465
7294
  :type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
7466
- :param _Extra: <p>自定义描述字段。</p><ul><li>用于描述调用业务信息,出参中将返回此描述字段。 </li><li>每个自定义描述字段支持[1,10]个字符。</li></ul>
7295
+ :param _Extra: <p>自定义描述字段。</p><ul><li><p>用于描述调用业务信息,出参中将返回此描述字段。</p></li><li><p>每个自定义描述字段最长支持10 个字符(即 [0,10] 个字符);不传该参数时,出参中此字段返回空字符串。</p></li></ul>
7467
7296
  :type Extra: str
7468
7297
  """
7469
7298
  self._IdCard = None
@@ -7530,7 +7359,7 @@ class ImageRecognitionV2Request(AbstractModel):
7530
7359
 
7531
7360
  @property
7532
7361
  def Extra(self):
7533
- r"""<p>自定义描述字段。</p><ul><li>用于描述调用业务信息,出参中将返回此描述字段。 </li><li>每个自定义描述字段支持[1,10]个字符。</li></ul>
7362
+ r"""<p>自定义描述字段。</p><ul><li><p>用于描述调用业务信息,出参中将返回此描述字段。</p></li><li><p>每个自定义描述字段最长支持10 个字符(即 [0,10] 个字符);不传该参数时,出参中此字段返回空字符串。</p></li></ul>
7534
7363
  :rtype: str
7535
7364
  """
7536
7365
  return self._Extra
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-faceid
3
- Version: 3.1.163
3
+ Version: 3.1.178
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.163
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.178
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.178
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.163