tencentcloud-sdk-python-faceid 3.1.126__tar.gz → 3.1.131__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.126 → tencentcloud_sdk_python_faceid-3.1.131}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/setup.py +1 -1
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/faceid/v20180301/models.py +114 -110
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud_sdk_python_faceid.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_faceid-3.1.131/tencentcloud_sdk_python_faceid.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_faceid-3.1.126/tencentcloud_sdk_python_faceid.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/README.rst +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/setup.cfg +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/faceid/__init__.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/faceid/v20180301/__init__.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/faceid/v20180301/errorcodes.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/faceid/v20180301/faceid_client.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud/faceid/v20180301/faceid_client_async.py +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud_sdk_python_faceid.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/tencentcloud_sdk_python_faceid.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/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.131
|
|
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.131
|
|
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.131,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Faceid SDK for Python',
|
|
@@ -2288,55 +2288,46 @@ class DetectDetail(AbstractModel):
|
|
|
2288
2288
|
|
|
2289
2289
|
def __init__(self):
|
|
2290
2290
|
r"""
|
|
2291
|
-
:param _ReqTime:
|
|
2291
|
+
:param _ReqTime: <p>请求时间戳。</p>
|
|
2292
2292
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2293
2293
|
:type ReqTime: str
|
|
2294
|
-
:param _Seq:
|
|
2294
|
+
:param _Seq: <p>本次活体一比一请求的唯一标记。</p>
|
|
2295
2295
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2296
2296
|
:type Seq: str
|
|
2297
|
-
:param _Idcard:
|
|
2297
|
+
:param _Idcard: <p>参与本次活体一比一的身份证号。</p>
|
|
2298
2298
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2299
2299
|
:type Idcard: str
|
|
2300
|
-
:param _Name:
|
|
2300
|
+
:param _Name: <p>参与本次活体一比一的姓名。</p>
|
|
2301
2301
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2302
2302
|
:type Name: str
|
|
2303
|
-
:param _Sim:
|
|
2303
|
+
:param _Sim: <p>本次活体一比一的相似度。</p>
|
|
2304
2304
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2305
2305
|
:type Sim: str
|
|
2306
|
-
:param _IsNeedCharge:
|
|
2306
|
+
:param _IsNeedCharge: <p>本次活体一比一是否收费</p>
|
|
2307
2307
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2308
2308
|
:type IsNeedCharge: bool
|
|
2309
|
-
:param _Errcode:
|
|
2309
|
+
:param _Errcode: <p>本次活体一比一最终结果。0为成功</p>
|
|
2310
2310
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2311
2311
|
:type Errcode: int
|
|
2312
|
-
:param _Errmsg:
|
|
2312
|
+
:param _Errmsg: <p>本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)</p>
|
|
2313
2313
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2314
2314
|
:type Errmsg: str
|
|
2315
|
-
:param _Livestatus:
|
|
2315
|
+
:param _Livestatus: <p>本次活体结果。0为成功</p>
|
|
2316
2316
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2317
2317
|
:type Livestatus: int
|
|
2318
|
-
:param _Livemsg:
|
|
2318
|
+
:param _Livemsg: <p>本次活体结果描述。(仅描述用,文案更新时不会通知。)</p>
|
|
2319
2319
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2320
2320
|
:type Livemsg: str
|
|
2321
|
-
:param _Comparestatus:
|
|
2321
|
+
:param _Comparestatus: <p>本次一比一结果。0为成功</p>
|
|
2322
2322
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2323
2323
|
:type Comparestatus: int
|
|
2324
|
-
:param _Comparemsg:
|
|
2324
|
+
:param _Comparemsg: <p>本次一比一结果描述。(仅描述用,文案更新时不会通知。)</p>
|
|
2325
2325
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2326
2326
|
:type Comparemsg: str
|
|
2327
|
-
:param _CompareLibType:
|
|
2328
|
-
公安商业库;
|
|
2329
|
-
业务方自有库(用户上传照片、客户的混合库、混合部署库);
|
|
2330
|
-
二次验证库;
|
|
2331
|
-
人工审核库;
|
|
2327
|
+
:param _CompareLibType: <p>比对库源类型。包括:商业库;业务方自有库(用户上传照片、客户的混合库、混合部署库);二次验证库;人工审核库;</p>
|
|
2332
2328
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2333
2329
|
:type CompareLibType: str
|
|
2334
|
-
:param _LivenessMode:
|
|
2335
|
-
0:未知
|
|
2336
|
-
1:数字活体
|
|
2337
|
-
2:动作活体
|
|
2338
|
-
3:静默活体
|
|
2339
|
-
4:一闪活体(动作+光线)
|
|
2330
|
+
:param _LivenessMode: <p>枚举活体检测类型:<br>0:未知<br>1:数字活体<br>2:动作活体<br>3:静默活体<br>4:一闪活体(动作+光线)</p>
|
|
2340
2331
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2341
2332
|
:type LivenessMode: int
|
|
2342
2333
|
"""
|
|
@@ -2357,7 +2348,7 @@ class DetectDetail(AbstractModel):
|
|
|
2357
2348
|
|
|
2358
2349
|
@property
|
|
2359
2350
|
def ReqTime(self):
|
|
2360
|
-
r"""
|
|
2351
|
+
r"""<p>请求时间戳。</p>
|
|
2361
2352
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2362
2353
|
:rtype: str
|
|
2363
2354
|
"""
|
|
@@ -2369,7 +2360,7 @@ class DetectDetail(AbstractModel):
|
|
|
2369
2360
|
|
|
2370
2361
|
@property
|
|
2371
2362
|
def Seq(self):
|
|
2372
|
-
r"""
|
|
2363
|
+
r"""<p>本次活体一比一请求的唯一标记。</p>
|
|
2373
2364
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2374
2365
|
:rtype: str
|
|
2375
2366
|
"""
|
|
@@ -2381,7 +2372,7 @@ class DetectDetail(AbstractModel):
|
|
|
2381
2372
|
|
|
2382
2373
|
@property
|
|
2383
2374
|
def Idcard(self):
|
|
2384
|
-
r"""
|
|
2375
|
+
r"""<p>参与本次活体一比一的身份证号。</p>
|
|
2385
2376
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2386
2377
|
:rtype: str
|
|
2387
2378
|
"""
|
|
@@ -2393,7 +2384,7 @@ class DetectDetail(AbstractModel):
|
|
|
2393
2384
|
|
|
2394
2385
|
@property
|
|
2395
2386
|
def Name(self):
|
|
2396
|
-
r"""
|
|
2387
|
+
r"""<p>参与本次活体一比一的姓名。</p>
|
|
2397
2388
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2398
2389
|
:rtype: str
|
|
2399
2390
|
"""
|
|
@@ -2405,7 +2396,7 @@ class DetectDetail(AbstractModel):
|
|
|
2405
2396
|
|
|
2406
2397
|
@property
|
|
2407
2398
|
def Sim(self):
|
|
2408
|
-
r"""
|
|
2399
|
+
r"""<p>本次活体一比一的相似度。</p>
|
|
2409
2400
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2410
2401
|
:rtype: str
|
|
2411
2402
|
"""
|
|
@@ -2417,7 +2408,7 @@ class DetectDetail(AbstractModel):
|
|
|
2417
2408
|
|
|
2418
2409
|
@property
|
|
2419
2410
|
def IsNeedCharge(self):
|
|
2420
|
-
r"""
|
|
2411
|
+
r"""<p>本次活体一比一是否收费</p>
|
|
2421
2412
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2422
2413
|
:rtype: bool
|
|
2423
2414
|
"""
|
|
@@ -2429,7 +2420,7 @@ class DetectDetail(AbstractModel):
|
|
|
2429
2420
|
|
|
2430
2421
|
@property
|
|
2431
2422
|
def Errcode(self):
|
|
2432
|
-
r"""
|
|
2423
|
+
r"""<p>本次活体一比一最终结果。0为成功</p>
|
|
2433
2424
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2434
2425
|
:rtype: int
|
|
2435
2426
|
"""
|
|
@@ -2441,7 +2432,7 @@ class DetectDetail(AbstractModel):
|
|
|
2441
2432
|
|
|
2442
2433
|
@property
|
|
2443
2434
|
def Errmsg(self):
|
|
2444
|
-
r"""
|
|
2435
|
+
r"""<p>本次活体一比一最终结果描述。(仅描述用,文案更新时不会通知。)</p>
|
|
2445
2436
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2446
2437
|
:rtype: str
|
|
2447
2438
|
"""
|
|
@@ -2453,7 +2444,7 @@ class DetectDetail(AbstractModel):
|
|
|
2453
2444
|
|
|
2454
2445
|
@property
|
|
2455
2446
|
def Livestatus(self):
|
|
2456
|
-
r"""
|
|
2447
|
+
r"""<p>本次活体结果。0为成功</p>
|
|
2457
2448
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2458
2449
|
:rtype: int
|
|
2459
2450
|
"""
|
|
@@ -2465,7 +2456,7 @@ class DetectDetail(AbstractModel):
|
|
|
2465
2456
|
|
|
2466
2457
|
@property
|
|
2467
2458
|
def Livemsg(self):
|
|
2468
|
-
r"""
|
|
2459
|
+
r"""<p>本次活体结果描述。(仅描述用,文案更新时不会通知。)</p>
|
|
2469
2460
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2470
2461
|
:rtype: str
|
|
2471
2462
|
"""
|
|
@@ -2477,7 +2468,7 @@ class DetectDetail(AbstractModel):
|
|
|
2477
2468
|
|
|
2478
2469
|
@property
|
|
2479
2470
|
def Comparestatus(self):
|
|
2480
|
-
r"""
|
|
2471
|
+
r"""<p>本次一比一结果。0为成功</p>
|
|
2481
2472
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2482
2473
|
:rtype: int
|
|
2483
2474
|
"""
|
|
@@ -2489,7 +2480,7 @@ class DetectDetail(AbstractModel):
|
|
|
2489
2480
|
|
|
2490
2481
|
@property
|
|
2491
2482
|
def Comparemsg(self):
|
|
2492
|
-
r"""
|
|
2483
|
+
r"""<p>本次一比一结果描述。(仅描述用,文案更新时不会通知。)</p>
|
|
2493
2484
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2494
2485
|
:rtype: str
|
|
2495
2486
|
"""
|
|
@@ -2501,11 +2492,7 @@ class DetectDetail(AbstractModel):
|
|
|
2501
2492
|
|
|
2502
2493
|
@property
|
|
2503
2494
|
def CompareLibType(self):
|
|
2504
|
-
r"""
|
|
2505
|
-
公安商业库;
|
|
2506
|
-
业务方自有库(用户上传照片、客户的混合库、混合部署库);
|
|
2507
|
-
二次验证库;
|
|
2508
|
-
人工审核库;
|
|
2495
|
+
r"""<p>比对库源类型。包括:商业库;业务方自有库(用户上传照片、客户的混合库、混合部署库);二次验证库;人工审核库;</p>
|
|
2509
2496
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2510
2497
|
:rtype: str
|
|
2511
2498
|
"""
|
|
@@ -2517,12 +2504,7 @@ class DetectDetail(AbstractModel):
|
|
|
2517
2504
|
|
|
2518
2505
|
@property
|
|
2519
2506
|
def LivenessMode(self):
|
|
2520
|
-
r"""
|
|
2521
|
-
0:未知
|
|
2522
|
-
1:数字活体
|
|
2523
|
-
2:动作活体
|
|
2524
|
-
3:静默活体
|
|
2525
|
-
4:一闪活体(动作+光线)
|
|
2507
|
+
r"""<p>枚举活体检测类型:<br>0:未知<br>1:数字活体<br>2:动作活体<br>3:静默活体<br>4:一闪活体(动作+光线)</p>
|
|
2526
2508
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2527
2509
|
:rtype: int
|
|
2528
2510
|
"""
|
|
@@ -6969,37 +6951,29 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
6969
6951
|
|
|
6970
6952
|
def __init__(self):
|
|
6971
6953
|
r"""
|
|
6972
|
-
:param _IdCard:
|
|
6973
|
-
- 姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。
|
|
6974
|
-
- 若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
|
|
6954
|
+
:param _IdCard: <p>身份证号。</p><ul><li>姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。</li><li>若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。</li></ul>
|
|
6975
6955
|
:type IdCard: str
|
|
6976
|
-
:param _Name:
|
|
6956
|
+
:param _Name: <p>姓名。</p>
|
|
6977
6957
|
:type Name: str
|
|
6978
|
-
:param _ImageBase64:
|
|
6979
|
-
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
6980
|
-
- 支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
6958
|
+
:param _ImageBase64: <p>身份证人像面的 Base64 值。</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。</li></ul>
|
|
6981
6959
|
:type ImageBase64: str
|
|
6982
|
-
:param _ImageUrl:
|
|
6983
|
-
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
6984
|
-
- 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
|
6985
|
-
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
6986
|
-
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
6960
|
+
:param _ImageUrl: <p>身份证人像面的 Url 地址。</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。</li><li>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。</li><li>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</li></ul>
|
|
6987
6961
|
:type ImageUrl: str
|
|
6988
|
-
:param _Encryption:
|
|
6989
|
-
- 对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
6962
|
+
:param _Encryption: <p>敏感数据加密信息。</p><ul><li>对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</li></ul>
|
|
6990
6963
|
:type Encryption: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
6964
|
+
:param _Config: <p>告警配置。</p><ul><li>仅当使用ImageBase64或者ImageUrl时,告警配置生效</li><li>以下可选字段均为bool 类型,默认false。<ul><li>CopyWarn,复印件告警。</li><li>BorderCheckWarn,边框和框内遮挡告警。</li><li>ReshootWarn,翻拍告警。</li><li>DetectPsWarn,PS检测告警(疑似存在PS痕迹)。</li><li>TempIdWarn,临时身份证告警。</li><li>Quality,图片质量告警(评价图片模糊程度)。</li></ul></li><li>SDK 设置方式参考:Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})。</li><li>API 3.0 Explorer 设置方式参考:Config = {"CopyWarn":true,"Quality":true}。</li></ul>
|
|
6965
|
+
:type Config: str
|
|
6991
6966
|
"""
|
|
6992
6967
|
self._IdCard = None
|
|
6993
6968
|
self._Name = None
|
|
6994
6969
|
self._ImageBase64 = None
|
|
6995
6970
|
self._ImageUrl = None
|
|
6996
6971
|
self._Encryption = None
|
|
6972
|
+
self._Config = None
|
|
6997
6973
|
|
|
6998
6974
|
@property
|
|
6999
6975
|
def IdCard(self):
|
|
7000
|
-
r"""
|
|
7001
|
-
- 姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。
|
|
7002
|
-
- 若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。
|
|
6976
|
+
r"""<p>身份证号。</p><ul><li>姓名和身份证号、ImageBase64、ImageUrl三者必须提供其中之一。</li><li>若都提供了,则按照姓名和身份证号>ImageBase64>ImageUrl的优先级使用参数。</li></ul>
|
|
7003
6977
|
:rtype: str
|
|
7004
6978
|
"""
|
|
7005
6979
|
return self._IdCard
|
|
@@ -7010,7 +6984,7 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
7010
6984
|
|
|
7011
6985
|
@property
|
|
7012
6986
|
def Name(self):
|
|
7013
|
-
r"""
|
|
6987
|
+
r"""<p>姓名。</p>
|
|
7014
6988
|
:rtype: str
|
|
7015
6989
|
"""
|
|
7016
6990
|
return self._Name
|
|
@@ -7021,9 +6995,7 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
7021
6995
|
|
|
7022
6996
|
@property
|
|
7023
6997
|
def ImageBase64(self):
|
|
7024
|
-
r"""
|
|
7025
|
-
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
7026
|
-
- 支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。
|
|
6998
|
+
r"""<p>身份证人像面的 Base64 值。</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经Base64编码后不超过 3M。请使用标准的Base64编码方式(带=补位),编码规范参考RFC4648。</li></ul>
|
|
7027
6999
|
:rtype: str
|
|
7028
7000
|
"""
|
|
7029
7001
|
return self._ImageBase64
|
|
@@ -7034,11 +7006,7 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
7034
7006
|
|
|
7035
7007
|
@property
|
|
7036
7008
|
def ImageUrl(self):
|
|
7037
|
-
r"""
|
|
7038
|
-
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
7039
|
-
- 支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。
|
|
7040
|
-
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
7041
|
-
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
7009
|
+
r"""<p>身份证人像面的 Url 地址。</p><ul><li>支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。</li><li>支持的图片大小:所下载图片经 Base64 编码后不超过 3M。图片下载时间不超过 3 秒。</li><li>图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。</li><li>非腾讯云存储的 Url 速度和稳定性可能受一定影响。</li></ul>
|
|
7042
7010
|
:rtype: str
|
|
7043
7011
|
"""
|
|
7044
7012
|
return self._ImageUrl
|
|
@@ -7049,8 +7017,7 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
7049
7017
|
|
|
7050
7018
|
@property
|
|
7051
7019
|
def Encryption(self):
|
|
7052
|
-
r"""
|
|
7053
|
-
- 对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。
|
|
7020
|
+
r"""<p>敏感数据加密信息。</p><ul><li>对传入信息(姓名、身份证号)有加密需求的用户可使用此参数,详情请点击左侧链接。</li></ul>
|
|
7054
7021
|
:rtype: :class:`tencentcloud.faceid.v20180301.models.Encryption`
|
|
7055
7022
|
"""
|
|
7056
7023
|
return self._Encryption
|
|
@@ -7059,6 +7026,17 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
7059
7026
|
def Encryption(self, Encryption):
|
|
7060
7027
|
self._Encryption = Encryption
|
|
7061
7028
|
|
|
7029
|
+
@property
|
|
7030
|
+
def Config(self):
|
|
7031
|
+
r"""<p>告警配置。</p><ul><li>仅当使用ImageBase64或者ImageUrl时,告警配置生效</li><li>以下可选字段均为bool 类型,默认false。<ul><li>CopyWarn,复印件告警。</li><li>BorderCheckWarn,边框和框内遮挡告警。</li><li>ReshootWarn,翻拍告警。</li><li>DetectPsWarn,PS检测告警(疑似存在PS痕迹)。</li><li>TempIdWarn,临时身份证告警。</li><li>Quality,图片质量告警(评价图片模糊程度)。</li></ul></li><li>SDK 设置方式参考:Config = Json.stringify({"CopyWarn":true,"ReshootWarn":true})。</li><li>API 3.0 Explorer 设置方式参考:Config = {"CopyWarn":true,"Quality":true}。</li></ul>
|
|
7032
|
+
:rtype: str
|
|
7033
|
+
"""
|
|
7034
|
+
return self._Config
|
|
7035
|
+
|
|
7036
|
+
@Config.setter
|
|
7037
|
+
def Config(self, Config):
|
|
7038
|
+
self._Config = Config
|
|
7039
|
+
|
|
7062
7040
|
|
|
7063
7041
|
def _deserialize(self, params):
|
|
7064
7042
|
self._IdCard = params.get("IdCard")
|
|
@@ -7068,6 +7046,7 @@ class IdCardOCRVerificationRequest(AbstractModel):
|
|
|
7068
7046
|
if params.get("Encryption") is not None:
|
|
7069
7047
|
self._Encryption = Encryption()
|
|
7070
7048
|
self._Encryption._deserialize(params.get("Encryption"))
|
|
7049
|
+
self._Config = params.get("Config")
|
|
7071
7050
|
memeber_set = set(params.keys())
|
|
7072
7051
|
for name, value in vars(self).items():
|
|
7073
7052
|
property_name = name[1:]
|
|
@@ -7085,36 +7064,32 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7085
7064
|
|
|
7086
7065
|
def __init__(self):
|
|
7087
7066
|
r"""
|
|
7088
|
-
:param _Result:
|
|
7089
|
-
- 收费结果码:
|
|
7090
|
-
0: 姓名和身份证号一致。
|
|
7091
|
-
-1: 姓名和身份证号不一致。
|
|
7092
|
-
- 不收费结果码:
|
|
7093
|
-
-2: 非法身份证号(长度、校验位等不正确)。
|
|
7094
|
-
-3: 非法姓名(长度、格式等不正确)。
|
|
7095
|
-
-4: 证件库服务异常。
|
|
7096
|
-
-5: 证件库中无此身份证记录。
|
|
7097
|
-
-6: 权威比对系统升级中,请稍后再试。
|
|
7098
|
-
-7: 认证次数超过当日限制。
|
|
7067
|
+
:param _Result: <p>认证结果码,收费情况如下。</p><ul><li>收费结果码:<br>0: 姓名和身份证号一致。<br>-1: 姓名和身份证号不一致。</li><li>不收费结果码:<br>-2: 非法身份证号(长度、校验位等不正确)。<br>-3: 非法姓名(长度、格式等不正确)。<br>-4: 证件库服务异常。<br>-5: 证件库中无此身份证记录。<br>-6: 权威比对系统升级中,请稍后再试。<br>-7: 认证次数超过当日限制。</li></ul>
|
|
7099
7068
|
:type Result: str
|
|
7100
|
-
:param _Description:
|
|
7069
|
+
:param _Description: <p>业务结果描述。</p>
|
|
7101
7070
|
:type Description: str
|
|
7102
|
-
:param _Name:
|
|
7071
|
+
:param _Name: <p>用于验证的姓名。</p>
|
|
7103
7072
|
:type Name: str
|
|
7104
|
-
:param _IdCard:
|
|
7073
|
+
:param _IdCard: <p>用于验证的身份证号。</p>
|
|
7105
7074
|
:type IdCard: str
|
|
7106
|
-
:param _Sex: OCR
|
|
7075
|
+
:param _Sex: <p>OCR得到的性别。</p>
|
|
7107
7076
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7108
7077
|
:type Sex: str
|
|
7109
|
-
:param _Nation: OCR
|
|
7078
|
+
:param _Nation: <p>OCR得到的民族。</p>
|
|
7110
7079
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7111
7080
|
:type Nation: str
|
|
7112
|
-
:param _Birth: OCR
|
|
7081
|
+
:param _Birth: <p>OCR得到的生日。</p>
|
|
7113
7082
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7114
7083
|
:type Birth: str
|
|
7115
|
-
:param _Address: OCR
|
|
7084
|
+
:param _Address: <p>OCR得到的地址。</p>
|
|
7116
7085
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7117
7086
|
:type Address: str
|
|
7087
|
+
:param _Portrait: <p>身份证头像照片的base64编码</p>
|
|
7088
|
+
:type Portrait: str
|
|
7089
|
+
:param _Warnings: <p>告警信息。</p><ul><li>Code 告警码列表和释义:<br> '-9101':身份证边框不完整告警。<br> '-9102':身份证复印件告警。<br> '-9103':身份证翻拍告警。<br> '-9105':身份证框内遮挡告警。'<br> '-9104':临时身份证告警。<br> '-9106':身份证 PS 告警(疑似存在PS痕迹)。<br> '-9107':身份证反光告警。<br> '-9108':身份证复印件告警(仅黑白复印件)。<br> '-9109':身份证有效日期不合法告警。<br> '-8001':图片模糊告警。</li><li>多个会用“|” 隔开,如 "-9101|-9106|-9104"。</li></ul>
|
|
7090
|
+
:type Warnings: str
|
|
7091
|
+
:param _Quality: <p>图片质量分数。</p><ul><li>当请求Config中配置图片模糊告警该参数才有意义。</li><li><ul><li>取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。</li></ul></li></ul>
|
|
7092
|
+
:type Quality: float
|
|
7118
7093
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7119
7094
|
:type RequestId: str
|
|
7120
7095
|
"""
|
|
@@ -7126,21 +7101,14 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7126
7101
|
self._Nation = None
|
|
7127
7102
|
self._Birth = None
|
|
7128
7103
|
self._Address = None
|
|
7104
|
+
self._Portrait = None
|
|
7105
|
+
self._Warnings = None
|
|
7106
|
+
self._Quality = None
|
|
7129
7107
|
self._RequestId = None
|
|
7130
7108
|
|
|
7131
7109
|
@property
|
|
7132
7110
|
def Result(self):
|
|
7133
|
-
r"""
|
|
7134
|
-
- 收费结果码:
|
|
7135
|
-
0: 姓名和身份证号一致。
|
|
7136
|
-
-1: 姓名和身份证号不一致。
|
|
7137
|
-
- 不收费结果码:
|
|
7138
|
-
-2: 非法身份证号(长度、校验位等不正确)。
|
|
7139
|
-
-3: 非法姓名(长度、格式等不正确)。
|
|
7140
|
-
-4: 证件库服务异常。
|
|
7141
|
-
-5: 证件库中无此身份证记录。
|
|
7142
|
-
-6: 权威比对系统升级中,请稍后再试。
|
|
7143
|
-
-7: 认证次数超过当日限制。
|
|
7111
|
+
r"""<p>认证结果码,收费情况如下。</p><ul><li>收费结果码:<br>0: 姓名和身份证号一致。<br>-1: 姓名和身份证号不一致。</li><li>不收费结果码:<br>-2: 非法身份证号(长度、校验位等不正确)。<br>-3: 非法姓名(长度、格式等不正确)。<br>-4: 证件库服务异常。<br>-5: 证件库中无此身份证记录。<br>-6: 权威比对系统升级中,请稍后再试。<br>-7: 认证次数超过当日限制。</li></ul>
|
|
7144
7112
|
:rtype: str
|
|
7145
7113
|
"""
|
|
7146
7114
|
return self._Result
|
|
@@ -7151,7 +7119,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7151
7119
|
|
|
7152
7120
|
@property
|
|
7153
7121
|
def Description(self):
|
|
7154
|
-
r"""
|
|
7122
|
+
r"""<p>业务结果描述。</p>
|
|
7155
7123
|
:rtype: str
|
|
7156
7124
|
"""
|
|
7157
7125
|
return self._Description
|
|
@@ -7162,7 +7130,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7162
7130
|
|
|
7163
7131
|
@property
|
|
7164
7132
|
def Name(self):
|
|
7165
|
-
r"""
|
|
7133
|
+
r"""<p>用于验证的姓名。</p>
|
|
7166
7134
|
:rtype: str
|
|
7167
7135
|
"""
|
|
7168
7136
|
return self._Name
|
|
@@ -7173,7 +7141,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7173
7141
|
|
|
7174
7142
|
@property
|
|
7175
7143
|
def IdCard(self):
|
|
7176
|
-
r"""
|
|
7144
|
+
r"""<p>用于验证的身份证号。</p>
|
|
7177
7145
|
:rtype: str
|
|
7178
7146
|
"""
|
|
7179
7147
|
return self._IdCard
|
|
@@ -7184,7 +7152,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7184
7152
|
|
|
7185
7153
|
@property
|
|
7186
7154
|
def Sex(self):
|
|
7187
|
-
r"""OCR
|
|
7155
|
+
r"""<p>OCR得到的性别。</p>
|
|
7188
7156
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7189
7157
|
:rtype: str
|
|
7190
7158
|
"""
|
|
@@ -7196,7 +7164,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7196
7164
|
|
|
7197
7165
|
@property
|
|
7198
7166
|
def Nation(self):
|
|
7199
|
-
r"""OCR
|
|
7167
|
+
r"""<p>OCR得到的民族。</p>
|
|
7200
7168
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7201
7169
|
:rtype: str
|
|
7202
7170
|
"""
|
|
@@ -7208,7 +7176,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7208
7176
|
|
|
7209
7177
|
@property
|
|
7210
7178
|
def Birth(self):
|
|
7211
|
-
r"""OCR
|
|
7179
|
+
r"""<p>OCR得到的生日。</p>
|
|
7212
7180
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7213
7181
|
:rtype: str
|
|
7214
7182
|
"""
|
|
@@ -7220,7 +7188,7 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7220
7188
|
|
|
7221
7189
|
@property
|
|
7222
7190
|
def Address(self):
|
|
7223
|
-
r"""OCR
|
|
7191
|
+
r"""<p>OCR得到的地址。</p>
|
|
7224
7192
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7225
7193
|
:rtype: str
|
|
7226
7194
|
"""
|
|
@@ -7230,6 +7198,39 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7230
7198
|
def Address(self, Address):
|
|
7231
7199
|
self._Address = Address
|
|
7232
7200
|
|
|
7201
|
+
@property
|
|
7202
|
+
def Portrait(self):
|
|
7203
|
+
r"""<p>身份证头像照片的base64编码</p>
|
|
7204
|
+
:rtype: str
|
|
7205
|
+
"""
|
|
7206
|
+
return self._Portrait
|
|
7207
|
+
|
|
7208
|
+
@Portrait.setter
|
|
7209
|
+
def Portrait(self, Portrait):
|
|
7210
|
+
self._Portrait = Portrait
|
|
7211
|
+
|
|
7212
|
+
@property
|
|
7213
|
+
def Warnings(self):
|
|
7214
|
+
r"""<p>告警信息。</p><ul><li>Code 告警码列表和释义:<br> '-9101':身份证边框不完整告警。<br> '-9102':身份证复印件告警。<br> '-9103':身份证翻拍告警。<br> '-9105':身份证框内遮挡告警。'<br> '-9104':临时身份证告警。<br> '-9106':身份证 PS 告警(疑似存在PS痕迹)。<br> '-9107':身份证反光告警。<br> '-9108':身份证复印件告警(仅黑白复印件)。<br> '-9109':身份证有效日期不合法告警。<br> '-8001':图片模糊告警。</li><li>多个会用“|” 隔开,如 "-9101|-9106|-9104"。</li></ul>
|
|
7215
|
+
:rtype: str
|
|
7216
|
+
"""
|
|
7217
|
+
return self._Warnings
|
|
7218
|
+
|
|
7219
|
+
@Warnings.setter
|
|
7220
|
+
def Warnings(self, Warnings):
|
|
7221
|
+
self._Warnings = Warnings
|
|
7222
|
+
|
|
7223
|
+
@property
|
|
7224
|
+
def Quality(self):
|
|
7225
|
+
r"""<p>图片质量分数。</p><ul><li>当请求Config中配置图片模糊告警该参数才有意义。</li><li><ul><li>取值范围(0~100),目前默认阈值是50分,低于50分会触发模糊告警。</li></ul></li></ul>
|
|
7226
|
+
:rtype: float
|
|
7227
|
+
"""
|
|
7228
|
+
return self._Quality
|
|
7229
|
+
|
|
7230
|
+
@Quality.setter
|
|
7231
|
+
def Quality(self, Quality):
|
|
7232
|
+
self._Quality = Quality
|
|
7233
|
+
|
|
7233
7234
|
@property
|
|
7234
7235
|
def RequestId(self):
|
|
7235
7236
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -7251,6 +7252,9 @@ class IdCardOCRVerificationResponse(AbstractModel):
|
|
|
7251
7252
|
self._Nation = params.get("Nation")
|
|
7252
7253
|
self._Birth = params.get("Birth")
|
|
7253
7254
|
self._Address = params.get("Address")
|
|
7255
|
+
self._Portrait = params.get("Portrait")
|
|
7256
|
+
self._Warnings = params.get("Warnings")
|
|
7257
|
+
self._Quality = params.get("Quality")
|
|
7254
7258
|
self._RequestId = params.get("RequestId")
|
|
7255
7259
|
|
|
7256
7260
|
|
|
@@ -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.131
|
|
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.131
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.131
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.126
|
{tencentcloud_sdk_python_faceid-3.1.126 → tencentcloud_sdk_python_faceid-3.1.131}/README.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|