tencentcloud-sdk-python-ocr 3.0.1317__tar.gz → 3.0.1319__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-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud/ocr/v20181119/models.py +88 -20
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1319/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1317/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1317 → tencentcloud-sdk-python-ocr-3.0.1319}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-ocr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1319"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -3956,19 +3956,29 @@ class ContentInfo(AbstractModel):
|
|
|
3956
3956
|
:type Content: str
|
|
3957
3957
|
:param _Confidence: 结果置信度
|
|
3958
3958
|
:type Confidence: int
|
|
3959
|
-
:param _IsInComplete:
|
|
3959
|
+
:param _IsInComplete: 字段是否不完整(value内容)
|
|
3960
3960
|
0 字段正常
|
|
3961
3961
|
1 字段不完整
|
|
3962
3962
|
:type IsInComplete: int
|
|
3963
|
-
:param _IsReflect:
|
|
3963
|
+
:param _IsReflect: 字段反光(value内容)
|
|
3964
3964
|
0 字段正常
|
|
3965
3965
|
1 字段有反光
|
|
3966
3966
|
:type IsReflect: int
|
|
3967
|
+
:param _IsKeyInComplete: 字段是否不完整(key内容)
|
|
3968
|
+
0 字段正常
|
|
3969
|
+
1 字段不完整
|
|
3970
|
+
:type IsKeyInComplete: int
|
|
3971
|
+
:param _IsKeyReflect: 字段反光(key内容)
|
|
3972
|
+
0 字段正常
|
|
3973
|
+
1 字段有反光
|
|
3974
|
+
:type IsKeyReflect: int
|
|
3967
3975
|
"""
|
|
3968
3976
|
self._Content = None
|
|
3969
3977
|
self._Confidence = None
|
|
3970
3978
|
self._IsInComplete = None
|
|
3971
3979
|
self._IsReflect = None
|
|
3980
|
+
self._IsKeyInComplete = None
|
|
3981
|
+
self._IsKeyReflect = None
|
|
3972
3982
|
|
|
3973
3983
|
@property
|
|
3974
3984
|
def Content(self):
|
|
@@ -3994,7 +4004,7 @@ class ContentInfo(AbstractModel):
|
|
|
3994
4004
|
|
|
3995
4005
|
@property
|
|
3996
4006
|
def IsInComplete(self):
|
|
3997
|
-
"""
|
|
4007
|
+
"""字段是否不完整(value内容)
|
|
3998
4008
|
0 字段正常
|
|
3999
4009
|
1 字段不完整
|
|
4000
4010
|
:rtype: int
|
|
@@ -4007,7 +4017,7 @@ class ContentInfo(AbstractModel):
|
|
|
4007
4017
|
|
|
4008
4018
|
@property
|
|
4009
4019
|
def IsReflect(self):
|
|
4010
|
-
"""
|
|
4020
|
+
"""字段反光(value内容)
|
|
4011
4021
|
0 字段正常
|
|
4012
4022
|
1 字段有反光
|
|
4013
4023
|
:rtype: int
|
|
@@ -4018,12 +4028,40 @@ class ContentInfo(AbstractModel):
|
|
|
4018
4028
|
def IsReflect(self, IsReflect):
|
|
4019
4029
|
self._IsReflect = IsReflect
|
|
4020
4030
|
|
|
4031
|
+
@property
|
|
4032
|
+
def IsKeyInComplete(self):
|
|
4033
|
+
"""字段是否不完整(key内容)
|
|
4034
|
+
0 字段正常
|
|
4035
|
+
1 字段不完整
|
|
4036
|
+
:rtype: int
|
|
4037
|
+
"""
|
|
4038
|
+
return self._IsKeyInComplete
|
|
4039
|
+
|
|
4040
|
+
@IsKeyInComplete.setter
|
|
4041
|
+
def IsKeyInComplete(self, IsKeyInComplete):
|
|
4042
|
+
self._IsKeyInComplete = IsKeyInComplete
|
|
4043
|
+
|
|
4044
|
+
@property
|
|
4045
|
+
def IsKeyReflect(self):
|
|
4046
|
+
"""字段反光(key内容)
|
|
4047
|
+
0 字段正常
|
|
4048
|
+
1 字段有反光
|
|
4049
|
+
:rtype: int
|
|
4050
|
+
"""
|
|
4051
|
+
return self._IsKeyReflect
|
|
4052
|
+
|
|
4053
|
+
@IsKeyReflect.setter
|
|
4054
|
+
def IsKeyReflect(self, IsKeyReflect):
|
|
4055
|
+
self._IsKeyReflect = IsKeyReflect
|
|
4056
|
+
|
|
4021
4057
|
|
|
4022
4058
|
def _deserialize(self, params):
|
|
4023
4059
|
self._Content = params.get("Content")
|
|
4024
4060
|
self._Confidence = params.get("Confidence")
|
|
4025
4061
|
self._IsInComplete = params.get("IsInComplete")
|
|
4026
4062
|
self._IsReflect = params.get("IsReflect")
|
|
4063
|
+
self._IsKeyInComplete = params.get("IsKeyInComplete")
|
|
4064
|
+
self._IsKeyReflect = params.get("IsKeyReflect")
|
|
4027
4065
|
memeber_set = set(params.keys())
|
|
4028
4066
|
for name, value in vars(self).items():
|
|
4029
4067
|
property_name = name[1:]
|
|
@@ -12105,6 +12143,8 @@ class IDCardConfig(AbstractModel):
|
|
|
12105
12143
|
:type InvalidDateWarn: bool
|
|
12106
12144
|
:param _ReflectWarn: 是否开启反光检测,默认为false
|
|
12107
12145
|
:type ReflectWarn: bool
|
|
12146
|
+
:param _CropPortrait: 是否开启头像剪切
|
|
12147
|
+
:type CropPortrait: bool
|
|
12108
12148
|
"""
|
|
12109
12149
|
self._CopyWarn = None
|
|
12110
12150
|
self._BorderCheckWarn = None
|
|
@@ -12113,6 +12153,7 @@ class IDCardConfig(AbstractModel):
|
|
|
12113
12153
|
self._TempIdWarn = None
|
|
12114
12154
|
self._InvalidDateWarn = None
|
|
12115
12155
|
self._ReflectWarn = None
|
|
12156
|
+
self._CropPortrait = None
|
|
12116
12157
|
|
|
12117
12158
|
@property
|
|
12118
12159
|
def CopyWarn(self):
|
|
@@ -12191,6 +12232,17 @@ class IDCardConfig(AbstractModel):
|
|
|
12191
12232
|
def ReflectWarn(self, ReflectWarn):
|
|
12192
12233
|
self._ReflectWarn = ReflectWarn
|
|
12193
12234
|
|
|
12235
|
+
@property
|
|
12236
|
+
def CropPortrait(self):
|
|
12237
|
+
"""是否开启头像剪切
|
|
12238
|
+
:rtype: bool
|
|
12239
|
+
"""
|
|
12240
|
+
return self._CropPortrait
|
|
12241
|
+
|
|
12242
|
+
@CropPortrait.setter
|
|
12243
|
+
def CropPortrait(self, CropPortrait):
|
|
12244
|
+
self._CropPortrait = CropPortrait
|
|
12245
|
+
|
|
12194
12246
|
|
|
12195
12247
|
def _deserialize(self, params):
|
|
12196
12248
|
self._CopyWarn = params.get("CopyWarn")
|
|
@@ -12200,6 +12252,7 @@ class IDCardConfig(AbstractModel):
|
|
|
12200
12252
|
self._TempIdWarn = params.get("TempIdWarn")
|
|
12201
12253
|
self._InvalidDateWarn = params.get("InvalidDateWarn")
|
|
12202
12254
|
self._ReflectWarn = params.get("ReflectWarn")
|
|
12255
|
+
self._CropPortrait = params.get("CropPortrait")
|
|
12203
12256
|
memeber_set = set(params.keys())
|
|
12204
12257
|
for name, value in vars(self).items():
|
|
12205
12258
|
property_name = name[1:]
|
|
@@ -12428,28 +12481,28 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12428
12481
|
:param _WarnCodes: 警告代码
|
|
12429
12482
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12430
12483
|
:type WarnCodes: list of int
|
|
12431
|
-
:param _Address:
|
|
12484
|
+
:param _Address: 地址(人像面)
|
|
12432
12485
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12433
12486
|
:type Address: str
|
|
12434
|
-
:param _Authority:
|
|
12487
|
+
:param _Authority: 发证机关(国徽面)
|
|
12435
12488
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12436
12489
|
:type Authority: str
|
|
12437
|
-
:param _Birth:
|
|
12490
|
+
:param _Birth: 出生日期(人像面)
|
|
12438
12491
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12439
12492
|
:type Birth: str
|
|
12440
|
-
:param _IdNum:
|
|
12493
|
+
:param _IdNum: 身份证号(人像面)
|
|
12441
12494
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12442
12495
|
:type IdNum: str
|
|
12443
|
-
:param _Name:
|
|
12496
|
+
:param _Name: 名字(人像面)
|
|
12444
12497
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12445
12498
|
:type Name: str
|
|
12446
|
-
:param _Nation:
|
|
12499
|
+
:param _Nation: 民族(人像面)
|
|
12447
12500
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12448
12501
|
:type Nation: str
|
|
12449
|
-
:param _Sex:
|
|
12502
|
+
:param _Sex: 性别(人像面)
|
|
12450
12503
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12451
12504
|
:type Sex: str
|
|
12452
|
-
:param _ValidDate:
|
|
12505
|
+
:param _ValidDate: 证件有效期(国徽面)
|
|
12453
12506
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12454
12507
|
:type ValidDate: str
|
|
12455
12508
|
:param _RequestId: 请求的id
|
|
@@ -12463,6 +12516,8 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12463
12516
|
:type ErrorMessage: str
|
|
12464
12517
|
:param _ImageUrl: 原图地址
|
|
12465
12518
|
:type ImageUrl: str
|
|
12519
|
+
:param _PortraitUrl: 身份证头像照片的地址(人像面)
|
|
12520
|
+
:type PortraitUrl: str
|
|
12466
12521
|
"""
|
|
12467
12522
|
self._WarnCodes = None
|
|
12468
12523
|
self._Address = None
|
|
@@ -12477,6 +12532,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12477
12532
|
self._ErrorCode = None
|
|
12478
12533
|
self._ErrorMessage = None
|
|
12479
12534
|
self._ImageUrl = None
|
|
12535
|
+
self._PortraitUrl = None
|
|
12480
12536
|
|
|
12481
12537
|
@property
|
|
12482
12538
|
def WarnCodes(self):
|
|
@@ -12492,7 +12548,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12492
12548
|
|
|
12493
12549
|
@property
|
|
12494
12550
|
def Address(self):
|
|
12495
|
-
"""
|
|
12551
|
+
"""地址(人像面)
|
|
12496
12552
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12497
12553
|
:rtype: str
|
|
12498
12554
|
"""
|
|
@@ -12504,7 +12560,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12504
12560
|
|
|
12505
12561
|
@property
|
|
12506
12562
|
def Authority(self):
|
|
12507
|
-
"""
|
|
12563
|
+
"""发证机关(国徽面)
|
|
12508
12564
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12509
12565
|
:rtype: str
|
|
12510
12566
|
"""
|
|
@@ -12516,7 +12572,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12516
12572
|
|
|
12517
12573
|
@property
|
|
12518
12574
|
def Birth(self):
|
|
12519
|
-
"""
|
|
12575
|
+
"""出生日期(人像面)
|
|
12520
12576
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12521
12577
|
:rtype: str
|
|
12522
12578
|
"""
|
|
@@ -12528,7 +12584,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12528
12584
|
|
|
12529
12585
|
@property
|
|
12530
12586
|
def IdNum(self):
|
|
12531
|
-
"""
|
|
12587
|
+
"""身份证号(人像面)
|
|
12532
12588
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12533
12589
|
:rtype: str
|
|
12534
12590
|
"""
|
|
@@ -12540,7 +12596,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12540
12596
|
|
|
12541
12597
|
@property
|
|
12542
12598
|
def Name(self):
|
|
12543
|
-
"""
|
|
12599
|
+
"""名字(人像面)
|
|
12544
12600
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12545
12601
|
:rtype: str
|
|
12546
12602
|
"""
|
|
@@ -12552,7 +12608,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12552
12608
|
|
|
12553
12609
|
@property
|
|
12554
12610
|
def Nation(self):
|
|
12555
|
-
"""
|
|
12611
|
+
"""民族(人像面)
|
|
12556
12612
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12557
12613
|
:rtype: str
|
|
12558
12614
|
"""
|
|
@@ -12564,7 +12620,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12564
12620
|
|
|
12565
12621
|
@property
|
|
12566
12622
|
def Sex(self):
|
|
12567
|
-
"""
|
|
12623
|
+
"""性别(人像面)
|
|
12568
12624
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12569
12625
|
:rtype: str
|
|
12570
12626
|
"""
|
|
@@ -12576,7 +12632,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12576
12632
|
|
|
12577
12633
|
@property
|
|
12578
12634
|
def ValidDate(self):
|
|
12579
|
-
"""
|
|
12635
|
+
"""证件有效期(国徽面)
|
|
12580
12636
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12581
12637
|
:rtype: str
|
|
12582
12638
|
"""
|
|
@@ -12633,6 +12689,17 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12633
12689
|
def ImageUrl(self, ImageUrl):
|
|
12634
12690
|
self._ImageUrl = ImageUrl
|
|
12635
12691
|
|
|
12692
|
+
@property
|
|
12693
|
+
def PortraitUrl(self):
|
|
12694
|
+
"""身份证头像照片的地址(人像面)
|
|
12695
|
+
:rtype: str
|
|
12696
|
+
"""
|
|
12697
|
+
return self._PortraitUrl
|
|
12698
|
+
|
|
12699
|
+
@PortraitUrl.setter
|
|
12700
|
+
def PortraitUrl(self, PortraitUrl):
|
|
12701
|
+
self._PortraitUrl = PortraitUrl
|
|
12702
|
+
|
|
12636
12703
|
|
|
12637
12704
|
def _deserialize(self, params):
|
|
12638
12705
|
self._WarnCodes = params.get("WarnCodes")
|
|
@@ -12648,6 +12715,7 @@ class IDCardInfoResult(AbstractModel):
|
|
|
12648
12715
|
self._ErrorCode = params.get("ErrorCode")
|
|
12649
12716
|
self._ErrorMessage = params.get("ErrorMessage")
|
|
12650
12717
|
self._ImageUrl = params.get("ImageUrl")
|
|
12718
|
+
self._PortraitUrl = params.get("PortraitUrl")
|
|
12651
12719
|
memeber_set = set(params.keys())
|
|
12652
12720
|
for name, value in vars(self).items():
|
|
12653
12721
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1319
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1317
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|