tencentcloud-sdk-python-faceid 3.1.163__py2.py3-none-any.whl → 3.1.172__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.163'
17
+ __version__ = '3.1.172'
@@ -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,
@@ -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
 
@@ -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.172
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.172
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,11 @@
1
+ tencentcloud/__init__.py,sha256=4eHOEgjKk9Z7GDdftxM1MrBYFbTAfvCdUqpP0znE_7Q,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=VDl2kNnUvhdm5mMF76cb7hi3FCa98kGbLcTctCUpjcs,398122
8
+ tencentcloud_sdk_python_faceid-3.1.172.dist-info/METADATA,sha256=hWlUVLvcGjhfV9Nty_9VPdJGBTBi-pVWhWTJsb5d0ks,1512
9
+ tencentcloud_sdk_python_faceid-3.1.172.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
+ tencentcloud_sdk_python_faceid-3.1.172.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
+ tencentcloud_sdk_python_faceid-3.1.172.dist-info/RECORD,,
@@ -1,11 +0,0 @@
1
- tencentcloud/__init__.py,sha256=xeYzU6OPCEeZvDaoRpTcAnz05U0ygUdbr2cnP7IeBc8,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=3WgxWw5JFbfYfVnikki7p3JVLO43fPOWZpri73mf-lc,39720
6
- tencentcloud/faceid/v20180301/faceid_client_async.py,sha256=y7UTUignp4yPbT2vIIptw5n5kEhlm2UuJy7gsYaP7f8,28022
7
- tencentcloud/faceid/v20180301/models.py,sha256=YRzpS7JGm3DjuD4zMXTtA7Ie5qrq9uRUZonIeNj_GG8,404183
8
- tencentcloud_sdk_python_faceid-3.1.163.dist-info/METADATA,sha256=yximKn3seGoy0fn7NeUPr2i9dcEN7D87idbXELeC9zc,1512
9
- tencentcloud_sdk_python_faceid-3.1.163.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
10
- tencentcloud_sdk_python_faceid-3.1.163.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
11
- tencentcloud_sdk_python_faceid-3.1.163.dist-info/RECORD,,