tencentcloud-sdk-python-ocr 3.0.1287__tar.gz → 3.0.1301__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.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud/ocr/v20181119/models.py +751 -8
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud/ocr/v20181119/ocr_client.py +55 -9
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1301/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1287/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1287 → tencentcloud-sdk-python-ocr-3.0.1301}/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.1301"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -10984,6 +10984,198 @@ Finger:由手指导致的不完整,仅在不完整告警中返回
|
|
|
10984
10984
|
|
|
10985
10985
|
|
|
10986
10986
|
|
|
10987
|
+
class GetOCRResultRequest(AbstractModel):
|
|
10988
|
+
"""GetOCRResult请求参数结构体
|
|
10989
|
+
|
|
10990
|
+
"""
|
|
10991
|
+
|
|
10992
|
+
def __init__(self):
|
|
10993
|
+
r"""
|
|
10994
|
+
:param _OCRToken: token值
|
|
10995
|
+
:type OCRToken: str
|
|
10996
|
+
"""
|
|
10997
|
+
self._OCRToken = None
|
|
10998
|
+
|
|
10999
|
+
@property
|
|
11000
|
+
def OCRToken(self):
|
|
11001
|
+
"""token值
|
|
11002
|
+
:rtype: str
|
|
11003
|
+
"""
|
|
11004
|
+
return self._OCRToken
|
|
11005
|
+
|
|
11006
|
+
@OCRToken.setter
|
|
11007
|
+
def OCRToken(self, OCRToken):
|
|
11008
|
+
self._OCRToken = OCRToken
|
|
11009
|
+
|
|
11010
|
+
|
|
11011
|
+
def _deserialize(self, params):
|
|
11012
|
+
self._OCRToken = params.get("OCRToken")
|
|
11013
|
+
memeber_set = set(params.keys())
|
|
11014
|
+
for name, value in vars(self).items():
|
|
11015
|
+
property_name = name[1:]
|
|
11016
|
+
if property_name in memeber_set:
|
|
11017
|
+
memeber_set.remove(property_name)
|
|
11018
|
+
if len(memeber_set) > 0:
|
|
11019
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11020
|
+
|
|
11021
|
+
|
|
11022
|
+
|
|
11023
|
+
class GetOCRResultResponse(AbstractModel):
|
|
11024
|
+
"""GetOCRResult返回参数结构体
|
|
11025
|
+
|
|
11026
|
+
"""
|
|
11027
|
+
|
|
11028
|
+
def __init__(self):
|
|
11029
|
+
r"""
|
|
11030
|
+
:param _Type: ocr业务类型
|
|
11031
|
+
:type Type: str
|
|
11032
|
+
:param _OCRResult: ocr结果
|
|
11033
|
+
:type OCRResult: :class:`tencentcloud.ocr.v20181119.models.OCRResult`
|
|
11034
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11035
|
+
:type RequestId: str
|
|
11036
|
+
"""
|
|
11037
|
+
self._Type = None
|
|
11038
|
+
self._OCRResult = None
|
|
11039
|
+
self._RequestId = None
|
|
11040
|
+
|
|
11041
|
+
@property
|
|
11042
|
+
def Type(self):
|
|
11043
|
+
"""ocr业务类型
|
|
11044
|
+
:rtype: str
|
|
11045
|
+
"""
|
|
11046
|
+
return self._Type
|
|
11047
|
+
|
|
11048
|
+
@Type.setter
|
|
11049
|
+
def Type(self, Type):
|
|
11050
|
+
self._Type = Type
|
|
11051
|
+
|
|
11052
|
+
@property
|
|
11053
|
+
def OCRResult(self):
|
|
11054
|
+
"""ocr结果
|
|
11055
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.OCRResult`
|
|
11056
|
+
"""
|
|
11057
|
+
return self._OCRResult
|
|
11058
|
+
|
|
11059
|
+
@OCRResult.setter
|
|
11060
|
+
def OCRResult(self, OCRResult):
|
|
11061
|
+
self._OCRResult = OCRResult
|
|
11062
|
+
|
|
11063
|
+
@property
|
|
11064
|
+
def RequestId(self):
|
|
11065
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11066
|
+
:rtype: str
|
|
11067
|
+
"""
|
|
11068
|
+
return self._RequestId
|
|
11069
|
+
|
|
11070
|
+
@RequestId.setter
|
|
11071
|
+
def RequestId(self, RequestId):
|
|
11072
|
+
self._RequestId = RequestId
|
|
11073
|
+
|
|
11074
|
+
|
|
11075
|
+
def _deserialize(self, params):
|
|
11076
|
+
self._Type = params.get("Type")
|
|
11077
|
+
if params.get("OCRResult") is not None:
|
|
11078
|
+
self._OCRResult = OCRResult()
|
|
11079
|
+
self._OCRResult._deserialize(params.get("OCRResult"))
|
|
11080
|
+
self._RequestId = params.get("RequestId")
|
|
11081
|
+
|
|
11082
|
+
|
|
11083
|
+
class GetOCRTokenRequest(AbstractModel):
|
|
11084
|
+
"""GetOCRToken请求参数结构体
|
|
11085
|
+
|
|
11086
|
+
"""
|
|
11087
|
+
|
|
11088
|
+
def __init__(self):
|
|
11089
|
+
r"""
|
|
11090
|
+
:param _Type: 业务类型,如身份证识别为IDCardOCR
|
|
11091
|
+
:type Type: str
|
|
11092
|
+
:param _IDCardConfig: 身份证配置信息
|
|
11093
|
+
:type IDCardConfig: :class:`tencentcloud.ocr.v20181119.models.IDCardConfig`
|
|
11094
|
+
"""
|
|
11095
|
+
self._Type = None
|
|
11096
|
+
self._IDCardConfig = None
|
|
11097
|
+
|
|
11098
|
+
@property
|
|
11099
|
+
def Type(self):
|
|
11100
|
+
"""业务类型,如身份证识别为IDCardOCR
|
|
11101
|
+
:rtype: str
|
|
11102
|
+
"""
|
|
11103
|
+
return self._Type
|
|
11104
|
+
|
|
11105
|
+
@Type.setter
|
|
11106
|
+
def Type(self, Type):
|
|
11107
|
+
self._Type = Type
|
|
11108
|
+
|
|
11109
|
+
@property
|
|
11110
|
+
def IDCardConfig(self):
|
|
11111
|
+
"""身份证配置信息
|
|
11112
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardConfig`
|
|
11113
|
+
"""
|
|
11114
|
+
return self._IDCardConfig
|
|
11115
|
+
|
|
11116
|
+
@IDCardConfig.setter
|
|
11117
|
+
def IDCardConfig(self, IDCardConfig):
|
|
11118
|
+
self._IDCardConfig = IDCardConfig
|
|
11119
|
+
|
|
11120
|
+
|
|
11121
|
+
def _deserialize(self, params):
|
|
11122
|
+
self._Type = params.get("Type")
|
|
11123
|
+
if params.get("IDCardConfig") is not None:
|
|
11124
|
+
self._IDCardConfig = IDCardConfig()
|
|
11125
|
+
self._IDCardConfig._deserialize(params.get("IDCardConfig"))
|
|
11126
|
+
memeber_set = set(params.keys())
|
|
11127
|
+
for name, value in vars(self).items():
|
|
11128
|
+
property_name = name[1:]
|
|
11129
|
+
if property_name in memeber_set:
|
|
11130
|
+
memeber_set.remove(property_name)
|
|
11131
|
+
if len(memeber_set) > 0:
|
|
11132
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
11133
|
+
|
|
11134
|
+
|
|
11135
|
+
|
|
11136
|
+
class GetOCRTokenResponse(AbstractModel):
|
|
11137
|
+
"""GetOCRToken返回参数结构体
|
|
11138
|
+
|
|
11139
|
+
"""
|
|
11140
|
+
|
|
11141
|
+
def __init__(self):
|
|
11142
|
+
r"""
|
|
11143
|
+
:param _OCRToken: token值
|
|
11144
|
+
:type OCRToken: str
|
|
11145
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11146
|
+
:type RequestId: str
|
|
11147
|
+
"""
|
|
11148
|
+
self._OCRToken = None
|
|
11149
|
+
self._RequestId = None
|
|
11150
|
+
|
|
11151
|
+
@property
|
|
11152
|
+
def OCRToken(self):
|
|
11153
|
+
"""token值
|
|
11154
|
+
:rtype: str
|
|
11155
|
+
"""
|
|
11156
|
+
return self._OCRToken
|
|
11157
|
+
|
|
11158
|
+
@OCRToken.setter
|
|
11159
|
+
def OCRToken(self, OCRToken):
|
|
11160
|
+
self._OCRToken = OCRToken
|
|
11161
|
+
|
|
11162
|
+
@property
|
|
11163
|
+
def RequestId(self):
|
|
11164
|
+
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11165
|
+
:rtype: str
|
|
11166
|
+
"""
|
|
11167
|
+
return self._RequestId
|
|
11168
|
+
|
|
11169
|
+
@RequestId.setter
|
|
11170
|
+
def RequestId(self, RequestId):
|
|
11171
|
+
self._RequestId = RequestId
|
|
11172
|
+
|
|
11173
|
+
|
|
11174
|
+
def _deserialize(self, params):
|
|
11175
|
+
self._OCRToken = params.get("OCRToken")
|
|
11176
|
+
self._RequestId = params.get("RequestId")
|
|
11177
|
+
|
|
11178
|
+
|
|
10987
11179
|
class GetTaskStateRequest(AbstractModel):
|
|
10988
11180
|
"""GetTaskState请求参数结构体
|
|
10989
11181
|
|
|
@@ -11787,6 +11979,132 @@ class HmtResidentPermitOCRResponse(AbstractModel):
|
|
|
11787
11979
|
self._RequestId = params.get("RequestId")
|
|
11788
11980
|
|
|
11789
11981
|
|
|
11982
|
+
class IDCardConfig(AbstractModel):
|
|
11983
|
+
"""身份证配置信息
|
|
11984
|
+
|
|
11985
|
+
"""
|
|
11986
|
+
|
|
11987
|
+
def __init__(self):
|
|
11988
|
+
r"""
|
|
11989
|
+
:param _CopyWarn: 复印件告警,默认为false
|
|
11990
|
+
:type CopyWarn: bool
|
|
11991
|
+
:param _BorderCheckWarn: 边框和框内遮挡告警,默认为false
|
|
11992
|
+
:type BorderCheckWarn: bool
|
|
11993
|
+
:param _ReshootWarn: 翻拍告警,默认为false
|
|
11994
|
+
:type ReshootWarn: bool
|
|
11995
|
+
:param _DetectPsWarn: 疑似存在PS痕迹告警,默认为false
|
|
11996
|
+
:type DetectPsWarn: bool
|
|
11997
|
+
:param _TempIdWarn: 临时身份证告警,默认为false
|
|
11998
|
+
:type TempIdWarn: bool
|
|
11999
|
+
:param _InvalidDateWarn: 身份证有效日期不合法告警,默认为false
|
|
12000
|
+
:type InvalidDateWarn: bool
|
|
12001
|
+
:param _ReflectWarn: 是否开启反光检测,默认为false
|
|
12002
|
+
:type ReflectWarn: bool
|
|
12003
|
+
"""
|
|
12004
|
+
self._CopyWarn = None
|
|
12005
|
+
self._BorderCheckWarn = None
|
|
12006
|
+
self._ReshootWarn = None
|
|
12007
|
+
self._DetectPsWarn = None
|
|
12008
|
+
self._TempIdWarn = None
|
|
12009
|
+
self._InvalidDateWarn = None
|
|
12010
|
+
self._ReflectWarn = None
|
|
12011
|
+
|
|
12012
|
+
@property
|
|
12013
|
+
def CopyWarn(self):
|
|
12014
|
+
"""复印件告警,默认为false
|
|
12015
|
+
:rtype: bool
|
|
12016
|
+
"""
|
|
12017
|
+
return self._CopyWarn
|
|
12018
|
+
|
|
12019
|
+
@CopyWarn.setter
|
|
12020
|
+
def CopyWarn(self, CopyWarn):
|
|
12021
|
+
self._CopyWarn = CopyWarn
|
|
12022
|
+
|
|
12023
|
+
@property
|
|
12024
|
+
def BorderCheckWarn(self):
|
|
12025
|
+
"""边框和框内遮挡告警,默认为false
|
|
12026
|
+
:rtype: bool
|
|
12027
|
+
"""
|
|
12028
|
+
return self._BorderCheckWarn
|
|
12029
|
+
|
|
12030
|
+
@BorderCheckWarn.setter
|
|
12031
|
+
def BorderCheckWarn(self, BorderCheckWarn):
|
|
12032
|
+
self._BorderCheckWarn = BorderCheckWarn
|
|
12033
|
+
|
|
12034
|
+
@property
|
|
12035
|
+
def ReshootWarn(self):
|
|
12036
|
+
"""翻拍告警,默认为false
|
|
12037
|
+
:rtype: bool
|
|
12038
|
+
"""
|
|
12039
|
+
return self._ReshootWarn
|
|
12040
|
+
|
|
12041
|
+
@ReshootWarn.setter
|
|
12042
|
+
def ReshootWarn(self, ReshootWarn):
|
|
12043
|
+
self._ReshootWarn = ReshootWarn
|
|
12044
|
+
|
|
12045
|
+
@property
|
|
12046
|
+
def DetectPsWarn(self):
|
|
12047
|
+
"""疑似存在PS痕迹告警,默认为false
|
|
12048
|
+
:rtype: bool
|
|
12049
|
+
"""
|
|
12050
|
+
return self._DetectPsWarn
|
|
12051
|
+
|
|
12052
|
+
@DetectPsWarn.setter
|
|
12053
|
+
def DetectPsWarn(self, DetectPsWarn):
|
|
12054
|
+
self._DetectPsWarn = DetectPsWarn
|
|
12055
|
+
|
|
12056
|
+
@property
|
|
12057
|
+
def TempIdWarn(self):
|
|
12058
|
+
"""临时身份证告警,默认为false
|
|
12059
|
+
:rtype: bool
|
|
12060
|
+
"""
|
|
12061
|
+
return self._TempIdWarn
|
|
12062
|
+
|
|
12063
|
+
@TempIdWarn.setter
|
|
12064
|
+
def TempIdWarn(self, TempIdWarn):
|
|
12065
|
+
self._TempIdWarn = TempIdWarn
|
|
12066
|
+
|
|
12067
|
+
@property
|
|
12068
|
+
def InvalidDateWarn(self):
|
|
12069
|
+
"""身份证有效日期不合法告警,默认为false
|
|
12070
|
+
:rtype: bool
|
|
12071
|
+
"""
|
|
12072
|
+
return self._InvalidDateWarn
|
|
12073
|
+
|
|
12074
|
+
@InvalidDateWarn.setter
|
|
12075
|
+
def InvalidDateWarn(self, InvalidDateWarn):
|
|
12076
|
+
self._InvalidDateWarn = InvalidDateWarn
|
|
12077
|
+
|
|
12078
|
+
@property
|
|
12079
|
+
def ReflectWarn(self):
|
|
12080
|
+
"""是否开启反光检测,默认为false
|
|
12081
|
+
:rtype: bool
|
|
12082
|
+
"""
|
|
12083
|
+
return self._ReflectWarn
|
|
12084
|
+
|
|
12085
|
+
@ReflectWarn.setter
|
|
12086
|
+
def ReflectWarn(self, ReflectWarn):
|
|
12087
|
+
self._ReflectWarn = ReflectWarn
|
|
12088
|
+
|
|
12089
|
+
|
|
12090
|
+
def _deserialize(self, params):
|
|
12091
|
+
self._CopyWarn = params.get("CopyWarn")
|
|
12092
|
+
self._BorderCheckWarn = params.get("BorderCheckWarn")
|
|
12093
|
+
self._ReshootWarn = params.get("ReshootWarn")
|
|
12094
|
+
self._DetectPsWarn = params.get("DetectPsWarn")
|
|
12095
|
+
self._TempIdWarn = params.get("TempIdWarn")
|
|
12096
|
+
self._InvalidDateWarn = params.get("InvalidDateWarn")
|
|
12097
|
+
self._ReflectWarn = params.get("ReflectWarn")
|
|
12098
|
+
memeber_set = set(params.keys())
|
|
12099
|
+
for name, value in vars(self).items():
|
|
12100
|
+
property_name = name[1:]
|
|
12101
|
+
if property_name in memeber_set:
|
|
12102
|
+
memeber_set.remove(property_name)
|
|
12103
|
+
if len(memeber_set) > 0:
|
|
12104
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12105
|
+
|
|
12106
|
+
|
|
12107
|
+
|
|
11790
12108
|
class IDCardInfo(AbstractModel):
|
|
11791
12109
|
"""身份证信息返回
|
|
11792
12110
|
|
|
@@ -11995,6 +12313,246 @@ class IDCardInfo(AbstractModel):
|
|
|
11995
12313
|
|
|
11996
12314
|
|
|
11997
12315
|
|
|
12316
|
+
class IDCardInfoResult(AbstractModel):
|
|
12317
|
+
"""身份证ocr信息结果
|
|
12318
|
+
|
|
12319
|
+
"""
|
|
12320
|
+
|
|
12321
|
+
def __init__(self):
|
|
12322
|
+
r"""
|
|
12323
|
+
:param _WarnCodes: 警告代码
|
|
12324
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12325
|
+
:type WarnCodes: list of int
|
|
12326
|
+
:param _Address: 地址
|
|
12327
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12328
|
+
:type Address: str
|
|
12329
|
+
:param _Authority: 签发机关
|
|
12330
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12331
|
+
:type Authority: str
|
|
12332
|
+
:param _Birth: 出生日期
|
|
12333
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12334
|
+
:type Birth: str
|
|
12335
|
+
:param _IdNum: 身份证号
|
|
12336
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12337
|
+
:type IdNum: str
|
|
12338
|
+
:param _Name: 名字
|
|
12339
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12340
|
+
:type Name: str
|
|
12341
|
+
:param _Nation: 地区
|
|
12342
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12343
|
+
:type Nation: str
|
|
12344
|
+
:param _Sex: 性别
|
|
12345
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12346
|
+
:type Sex: str
|
|
12347
|
+
:param _ValidDate: 到期时间
|
|
12348
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12349
|
+
:type ValidDate: str
|
|
12350
|
+
:param _RequestId: 请求的id
|
|
12351
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12352
|
+
:type RequestId: str
|
|
12353
|
+
:param _ErrorCode: 错误码
|
|
12354
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12355
|
+
:type ErrorCode: str
|
|
12356
|
+
:param _ErrorMessage: 错误信息
|
|
12357
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12358
|
+
:type ErrorMessage: str
|
|
12359
|
+
:param _ImageUrl: 原图地址
|
|
12360
|
+
:type ImageUrl: str
|
|
12361
|
+
"""
|
|
12362
|
+
self._WarnCodes = None
|
|
12363
|
+
self._Address = None
|
|
12364
|
+
self._Authority = None
|
|
12365
|
+
self._Birth = None
|
|
12366
|
+
self._IdNum = None
|
|
12367
|
+
self._Name = None
|
|
12368
|
+
self._Nation = None
|
|
12369
|
+
self._Sex = None
|
|
12370
|
+
self._ValidDate = None
|
|
12371
|
+
self._RequestId = None
|
|
12372
|
+
self._ErrorCode = None
|
|
12373
|
+
self._ErrorMessage = None
|
|
12374
|
+
self._ImageUrl = None
|
|
12375
|
+
|
|
12376
|
+
@property
|
|
12377
|
+
def WarnCodes(self):
|
|
12378
|
+
"""警告代码
|
|
12379
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12380
|
+
:rtype: list of int
|
|
12381
|
+
"""
|
|
12382
|
+
return self._WarnCodes
|
|
12383
|
+
|
|
12384
|
+
@WarnCodes.setter
|
|
12385
|
+
def WarnCodes(self, WarnCodes):
|
|
12386
|
+
self._WarnCodes = WarnCodes
|
|
12387
|
+
|
|
12388
|
+
@property
|
|
12389
|
+
def Address(self):
|
|
12390
|
+
"""地址
|
|
12391
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12392
|
+
:rtype: str
|
|
12393
|
+
"""
|
|
12394
|
+
return self._Address
|
|
12395
|
+
|
|
12396
|
+
@Address.setter
|
|
12397
|
+
def Address(self, Address):
|
|
12398
|
+
self._Address = Address
|
|
12399
|
+
|
|
12400
|
+
@property
|
|
12401
|
+
def Authority(self):
|
|
12402
|
+
"""签发机关
|
|
12403
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12404
|
+
:rtype: str
|
|
12405
|
+
"""
|
|
12406
|
+
return self._Authority
|
|
12407
|
+
|
|
12408
|
+
@Authority.setter
|
|
12409
|
+
def Authority(self, Authority):
|
|
12410
|
+
self._Authority = Authority
|
|
12411
|
+
|
|
12412
|
+
@property
|
|
12413
|
+
def Birth(self):
|
|
12414
|
+
"""出生日期
|
|
12415
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12416
|
+
:rtype: str
|
|
12417
|
+
"""
|
|
12418
|
+
return self._Birth
|
|
12419
|
+
|
|
12420
|
+
@Birth.setter
|
|
12421
|
+
def Birth(self, Birth):
|
|
12422
|
+
self._Birth = Birth
|
|
12423
|
+
|
|
12424
|
+
@property
|
|
12425
|
+
def IdNum(self):
|
|
12426
|
+
"""身份证号
|
|
12427
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12428
|
+
:rtype: str
|
|
12429
|
+
"""
|
|
12430
|
+
return self._IdNum
|
|
12431
|
+
|
|
12432
|
+
@IdNum.setter
|
|
12433
|
+
def IdNum(self, IdNum):
|
|
12434
|
+
self._IdNum = IdNum
|
|
12435
|
+
|
|
12436
|
+
@property
|
|
12437
|
+
def Name(self):
|
|
12438
|
+
"""名字
|
|
12439
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12440
|
+
:rtype: str
|
|
12441
|
+
"""
|
|
12442
|
+
return self._Name
|
|
12443
|
+
|
|
12444
|
+
@Name.setter
|
|
12445
|
+
def Name(self, Name):
|
|
12446
|
+
self._Name = Name
|
|
12447
|
+
|
|
12448
|
+
@property
|
|
12449
|
+
def Nation(self):
|
|
12450
|
+
"""地区
|
|
12451
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12452
|
+
:rtype: str
|
|
12453
|
+
"""
|
|
12454
|
+
return self._Nation
|
|
12455
|
+
|
|
12456
|
+
@Nation.setter
|
|
12457
|
+
def Nation(self, Nation):
|
|
12458
|
+
self._Nation = Nation
|
|
12459
|
+
|
|
12460
|
+
@property
|
|
12461
|
+
def Sex(self):
|
|
12462
|
+
"""性别
|
|
12463
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12464
|
+
:rtype: str
|
|
12465
|
+
"""
|
|
12466
|
+
return self._Sex
|
|
12467
|
+
|
|
12468
|
+
@Sex.setter
|
|
12469
|
+
def Sex(self, Sex):
|
|
12470
|
+
self._Sex = Sex
|
|
12471
|
+
|
|
12472
|
+
@property
|
|
12473
|
+
def ValidDate(self):
|
|
12474
|
+
"""到期时间
|
|
12475
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12476
|
+
:rtype: str
|
|
12477
|
+
"""
|
|
12478
|
+
return self._ValidDate
|
|
12479
|
+
|
|
12480
|
+
@ValidDate.setter
|
|
12481
|
+
def ValidDate(self, ValidDate):
|
|
12482
|
+
self._ValidDate = ValidDate
|
|
12483
|
+
|
|
12484
|
+
@property
|
|
12485
|
+
def RequestId(self):
|
|
12486
|
+
"""请求的id
|
|
12487
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12488
|
+
:rtype: str
|
|
12489
|
+
"""
|
|
12490
|
+
return self._RequestId
|
|
12491
|
+
|
|
12492
|
+
@RequestId.setter
|
|
12493
|
+
def RequestId(self, RequestId):
|
|
12494
|
+
self._RequestId = RequestId
|
|
12495
|
+
|
|
12496
|
+
@property
|
|
12497
|
+
def ErrorCode(self):
|
|
12498
|
+
"""错误码
|
|
12499
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12500
|
+
:rtype: str
|
|
12501
|
+
"""
|
|
12502
|
+
return self._ErrorCode
|
|
12503
|
+
|
|
12504
|
+
@ErrorCode.setter
|
|
12505
|
+
def ErrorCode(self, ErrorCode):
|
|
12506
|
+
self._ErrorCode = ErrorCode
|
|
12507
|
+
|
|
12508
|
+
@property
|
|
12509
|
+
def ErrorMessage(self):
|
|
12510
|
+
"""错误信息
|
|
12511
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12512
|
+
:rtype: str
|
|
12513
|
+
"""
|
|
12514
|
+
return self._ErrorMessage
|
|
12515
|
+
|
|
12516
|
+
@ErrorMessage.setter
|
|
12517
|
+
def ErrorMessage(self, ErrorMessage):
|
|
12518
|
+
self._ErrorMessage = ErrorMessage
|
|
12519
|
+
|
|
12520
|
+
@property
|
|
12521
|
+
def ImageUrl(self):
|
|
12522
|
+
"""原图地址
|
|
12523
|
+
:rtype: str
|
|
12524
|
+
"""
|
|
12525
|
+
return self._ImageUrl
|
|
12526
|
+
|
|
12527
|
+
@ImageUrl.setter
|
|
12528
|
+
def ImageUrl(self, ImageUrl):
|
|
12529
|
+
self._ImageUrl = ImageUrl
|
|
12530
|
+
|
|
12531
|
+
|
|
12532
|
+
def _deserialize(self, params):
|
|
12533
|
+
self._WarnCodes = params.get("WarnCodes")
|
|
12534
|
+
self._Address = params.get("Address")
|
|
12535
|
+
self._Authority = params.get("Authority")
|
|
12536
|
+
self._Birth = params.get("Birth")
|
|
12537
|
+
self._IdNum = params.get("IdNum")
|
|
12538
|
+
self._Name = params.get("Name")
|
|
12539
|
+
self._Nation = params.get("Nation")
|
|
12540
|
+
self._Sex = params.get("Sex")
|
|
12541
|
+
self._ValidDate = params.get("ValidDate")
|
|
12542
|
+
self._RequestId = params.get("RequestId")
|
|
12543
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
12544
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
|
12545
|
+
self._ImageUrl = params.get("ImageUrl")
|
|
12546
|
+
memeber_set = set(params.keys())
|
|
12547
|
+
for name, value in vars(self).items():
|
|
12548
|
+
property_name = name[1:]
|
|
12549
|
+
if property_name in memeber_set:
|
|
12550
|
+
memeber_set.remove(property_name)
|
|
12551
|
+
if len(memeber_set) > 0:
|
|
12552
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12553
|
+
|
|
12554
|
+
|
|
12555
|
+
|
|
11998
12556
|
class IDCardOCRRequest(AbstractModel):
|
|
11999
12557
|
"""IDCardOCR请求参数结构体
|
|
12000
12558
|
|
|
@@ -12384,6 +12942,65 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
|
12384
12942
|
self._RequestId = params.get("RequestId")
|
|
12385
12943
|
|
|
12386
12944
|
|
|
12945
|
+
class IDCardResult(AbstractModel):
|
|
12946
|
+
"""IDCardResult
|
|
12947
|
+
|
|
12948
|
+
"""
|
|
12949
|
+
|
|
12950
|
+
def __init__(self):
|
|
12951
|
+
r"""
|
|
12952
|
+
:param _Front: 正面结果
|
|
12953
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12954
|
+
:type Front: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
|
|
12955
|
+
:param _Back: 反面结果
|
|
12956
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12957
|
+
:type Back: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
|
|
12958
|
+
"""
|
|
12959
|
+
self._Front = None
|
|
12960
|
+
self._Back = None
|
|
12961
|
+
|
|
12962
|
+
@property
|
|
12963
|
+
def Front(self):
|
|
12964
|
+
"""正面结果
|
|
12965
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12966
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
|
|
12967
|
+
"""
|
|
12968
|
+
return self._Front
|
|
12969
|
+
|
|
12970
|
+
@Front.setter
|
|
12971
|
+
def Front(self, Front):
|
|
12972
|
+
self._Front = Front
|
|
12973
|
+
|
|
12974
|
+
@property
|
|
12975
|
+
def Back(self):
|
|
12976
|
+
"""反面结果
|
|
12977
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12978
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardInfoResult`
|
|
12979
|
+
"""
|
|
12980
|
+
return self._Back
|
|
12981
|
+
|
|
12982
|
+
@Back.setter
|
|
12983
|
+
def Back(self, Back):
|
|
12984
|
+
self._Back = Back
|
|
12985
|
+
|
|
12986
|
+
|
|
12987
|
+
def _deserialize(self, params):
|
|
12988
|
+
if params.get("Front") is not None:
|
|
12989
|
+
self._Front = IDCardInfoResult()
|
|
12990
|
+
self._Front._deserialize(params.get("Front"))
|
|
12991
|
+
if params.get("Back") is not None:
|
|
12992
|
+
self._Back = IDCardInfoResult()
|
|
12993
|
+
self._Back._deserialize(params.get("Back"))
|
|
12994
|
+
memeber_set = set(params.keys())
|
|
12995
|
+
for name, value in vars(self).items():
|
|
12996
|
+
property_name = name[1:]
|
|
12997
|
+
if property_name in memeber_set:
|
|
12998
|
+
memeber_set.remove(property_name)
|
|
12999
|
+
if len(memeber_set) > 0:
|
|
13000
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
13001
|
+
|
|
13002
|
+
|
|
13003
|
+
|
|
12387
13004
|
class ImageCoordinates(AbstractModel):
|
|
12388
13005
|
"""头像位置坐标
|
|
12389
13006
|
|
|
@@ -17935,6 +18552,46 @@ class NonTaxItem(AbstractModel):
|
|
|
17935
18552
|
|
|
17936
18553
|
|
|
17937
18554
|
|
|
18555
|
+
class OCRResult(AbstractModel):
|
|
18556
|
+
"""ocr结果信息
|
|
18557
|
+
|
|
18558
|
+
"""
|
|
18559
|
+
|
|
18560
|
+
def __init__(self):
|
|
18561
|
+
r"""
|
|
18562
|
+
:param _IDCardResult: 身份证结果
|
|
18563
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18564
|
+
:type IDCardResult: :class:`tencentcloud.ocr.v20181119.models.IDCardResult`
|
|
18565
|
+
"""
|
|
18566
|
+
self._IDCardResult = None
|
|
18567
|
+
|
|
18568
|
+
@property
|
|
18569
|
+
def IDCardResult(self):
|
|
18570
|
+
"""身份证结果
|
|
18571
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18572
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.IDCardResult`
|
|
18573
|
+
"""
|
|
18574
|
+
return self._IDCardResult
|
|
18575
|
+
|
|
18576
|
+
@IDCardResult.setter
|
|
18577
|
+
def IDCardResult(self, IDCardResult):
|
|
18578
|
+
self._IDCardResult = IDCardResult
|
|
18579
|
+
|
|
18580
|
+
|
|
18581
|
+
def _deserialize(self, params):
|
|
18582
|
+
if params.get("IDCardResult") is not None:
|
|
18583
|
+
self._IDCardResult = IDCardResult()
|
|
18584
|
+
self._IDCardResult._deserialize(params.get("IDCardResult"))
|
|
18585
|
+
memeber_set = set(params.keys())
|
|
18586
|
+
for name, value in vars(self).items():
|
|
18587
|
+
property_name = name[1:]
|
|
18588
|
+
if property_name in memeber_set:
|
|
18589
|
+
memeber_set.remove(property_name)
|
|
18590
|
+
if len(memeber_set) > 0:
|
|
18591
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18592
|
+
|
|
18593
|
+
|
|
18594
|
+
|
|
17938
18595
|
class OnlineTaxiItineraryInfo(AbstractModel):
|
|
17939
18596
|
"""网约车行程单识别结果
|
|
17940
18597
|
|
|
@@ -28032,6 +28689,8 @@ class SmartStructuralProRequest(AbstractModel):
|
|
|
28032
28689
|
:type ReturnFullText: bool
|
|
28033
28690
|
:param _ConfigId: 配置id支持:General -- 通用场景 InvoiceEng -- 海运提单、国际invoice模版 WayBillEng --海运订单模板
|
|
28034
28691
|
:type ConfigId: str
|
|
28692
|
+
:param _EnableCoord: 是否开启全文字段坐标值的识别
|
|
28693
|
+
:type EnableCoord: bool
|
|
28035
28694
|
"""
|
|
28036
28695
|
self._ImageUrl = None
|
|
28037
28696
|
self._ImageBase64 = None
|
|
@@ -28039,6 +28698,7 @@ class SmartStructuralProRequest(AbstractModel):
|
|
|
28039
28698
|
self._ItemNames = None
|
|
28040
28699
|
self._ReturnFullText = None
|
|
28041
28700
|
self._ConfigId = None
|
|
28701
|
+
self._EnableCoord = None
|
|
28042
28702
|
|
|
28043
28703
|
@property
|
|
28044
28704
|
def ImageUrl(self):
|
|
@@ -28106,6 +28766,17 @@ class SmartStructuralProRequest(AbstractModel):
|
|
|
28106
28766
|
def ConfigId(self, ConfigId):
|
|
28107
28767
|
self._ConfigId = ConfigId
|
|
28108
28768
|
|
|
28769
|
+
@property
|
|
28770
|
+
def EnableCoord(self):
|
|
28771
|
+
"""是否开启全文字段坐标值的识别
|
|
28772
|
+
:rtype: bool
|
|
28773
|
+
"""
|
|
28774
|
+
return self._EnableCoord
|
|
28775
|
+
|
|
28776
|
+
@EnableCoord.setter
|
|
28777
|
+
def EnableCoord(self, EnableCoord):
|
|
28778
|
+
self._EnableCoord = EnableCoord
|
|
28779
|
+
|
|
28109
28780
|
|
|
28110
28781
|
def _deserialize(self, params):
|
|
28111
28782
|
self._ImageUrl = params.get("ImageUrl")
|
|
@@ -28114,6 +28785,7 @@ class SmartStructuralProRequest(AbstractModel):
|
|
|
28114
28785
|
self._ItemNames = params.get("ItemNames")
|
|
28115
28786
|
self._ReturnFullText = params.get("ReturnFullText")
|
|
28116
28787
|
self._ConfigId = params.get("ConfigId")
|
|
28788
|
+
self._EnableCoord = params.get("EnableCoord")
|
|
28117
28789
|
memeber_set = set(params.keys())
|
|
28118
28790
|
for name, value in vars(self).items():
|
|
28119
28791
|
property_name = name[1:]
|
|
@@ -34070,6 +34742,16 @@ class VatElectronicInfo(AbstractModel):
|
|
|
34070
34742
|
:type VatElectronicItems: list of VatElectronicItemInfo
|
|
34071
34743
|
:param _ServiceTypeLabel: 业务类型标志
|
|
34072
34744
|
:type ServiceTypeLabel: str
|
|
34745
|
+
:param _TotalCnMark: 价税合计(大写)前符号
|
|
34746
|
+
:type TotalCnMark: str
|
|
34747
|
+
:param _TotalMark: 价税合计(小写)前字样
|
|
34748
|
+
:type TotalMark: str
|
|
34749
|
+
:param _PretaxAmountMark: 合计金额前字样
|
|
34750
|
+
:type PretaxAmountMark: str
|
|
34751
|
+
:param _TaxMark: 合计税额前字样
|
|
34752
|
+
:type TaxMark: str
|
|
34753
|
+
:param _CompanySealMark: 是否有公司印章(0:没有,1:有)
|
|
34754
|
+
:type CompanySealMark: int
|
|
34073
34755
|
"""
|
|
34074
34756
|
self._Title = None
|
|
34075
34757
|
self._Number = None
|
|
@@ -34088,6 +34770,11 @@ class VatElectronicInfo(AbstractModel):
|
|
|
34088
34770
|
self._SubTax = None
|
|
34089
34771
|
self._VatElectronicItems = None
|
|
34090
34772
|
self._ServiceTypeLabel = None
|
|
34773
|
+
self._TotalCnMark = None
|
|
34774
|
+
self._TotalMark = None
|
|
34775
|
+
self._PretaxAmountMark = None
|
|
34776
|
+
self._TaxMark = None
|
|
34777
|
+
self._CompanySealMark = None
|
|
34091
34778
|
|
|
34092
34779
|
@property
|
|
34093
34780
|
def Title(self):
|
|
@@ -34276,6 +34963,61 @@ class VatElectronicInfo(AbstractModel):
|
|
|
34276
34963
|
def ServiceTypeLabel(self, ServiceTypeLabel):
|
|
34277
34964
|
self._ServiceTypeLabel = ServiceTypeLabel
|
|
34278
34965
|
|
|
34966
|
+
@property
|
|
34967
|
+
def TotalCnMark(self):
|
|
34968
|
+
"""价税合计(大写)前符号
|
|
34969
|
+
:rtype: str
|
|
34970
|
+
"""
|
|
34971
|
+
return self._TotalCnMark
|
|
34972
|
+
|
|
34973
|
+
@TotalCnMark.setter
|
|
34974
|
+
def TotalCnMark(self, TotalCnMark):
|
|
34975
|
+
self._TotalCnMark = TotalCnMark
|
|
34976
|
+
|
|
34977
|
+
@property
|
|
34978
|
+
def TotalMark(self):
|
|
34979
|
+
"""价税合计(小写)前字样
|
|
34980
|
+
:rtype: str
|
|
34981
|
+
"""
|
|
34982
|
+
return self._TotalMark
|
|
34983
|
+
|
|
34984
|
+
@TotalMark.setter
|
|
34985
|
+
def TotalMark(self, TotalMark):
|
|
34986
|
+
self._TotalMark = TotalMark
|
|
34987
|
+
|
|
34988
|
+
@property
|
|
34989
|
+
def PretaxAmountMark(self):
|
|
34990
|
+
"""合计金额前字样
|
|
34991
|
+
:rtype: str
|
|
34992
|
+
"""
|
|
34993
|
+
return self._PretaxAmountMark
|
|
34994
|
+
|
|
34995
|
+
@PretaxAmountMark.setter
|
|
34996
|
+
def PretaxAmountMark(self, PretaxAmountMark):
|
|
34997
|
+
self._PretaxAmountMark = PretaxAmountMark
|
|
34998
|
+
|
|
34999
|
+
@property
|
|
35000
|
+
def TaxMark(self):
|
|
35001
|
+
"""合计税额前字样
|
|
35002
|
+
:rtype: str
|
|
35003
|
+
"""
|
|
35004
|
+
return self._TaxMark
|
|
35005
|
+
|
|
35006
|
+
@TaxMark.setter
|
|
35007
|
+
def TaxMark(self, TaxMark):
|
|
35008
|
+
self._TaxMark = TaxMark
|
|
35009
|
+
|
|
35010
|
+
@property
|
|
35011
|
+
def CompanySealMark(self):
|
|
35012
|
+
"""是否有公司印章(0:没有,1:有)
|
|
35013
|
+
:rtype: int
|
|
35014
|
+
"""
|
|
35015
|
+
return self._CompanySealMark
|
|
35016
|
+
|
|
35017
|
+
@CompanySealMark.setter
|
|
35018
|
+
def CompanySealMark(self, CompanySealMark):
|
|
35019
|
+
self._CompanySealMark = CompanySealMark
|
|
35020
|
+
|
|
34279
35021
|
|
|
34280
35022
|
def _deserialize(self, params):
|
|
34281
35023
|
self._Title = params.get("Title")
|
|
@@ -34300,6 +35042,11 @@ class VatElectronicInfo(AbstractModel):
|
|
|
34300
35042
|
obj._deserialize(item)
|
|
34301
35043
|
self._VatElectronicItems.append(obj)
|
|
34302
35044
|
self._ServiceTypeLabel = params.get("ServiceTypeLabel")
|
|
35045
|
+
self._TotalCnMark = params.get("TotalCnMark")
|
|
35046
|
+
self._TotalMark = params.get("TotalMark")
|
|
35047
|
+
self._PretaxAmountMark = params.get("PretaxAmountMark")
|
|
35048
|
+
self._TaxMark = params.get("TaxMark")
|
|
35049
|
+
self._CompanySealMark = params.get("CompanySealMark")
|
|
34303
35050
|
memeber_set = set(params.keys())
|
|
34304
35051
|
for name, value in vars(self).items():
|
|
34305
35052
|
property_name = name[1:]
|
|
@@ -37104,7 +37851,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
|
|
|
37104
37851
|
:type InvoiceNo: str
|
|
37105
37852
|
:param _InvoiceDate: 开票日期(不支持当天发票查询,支持五年以内开具的发票),格式:“YYYY-MM-DD”,如:2019-12-20。
|
|
37106
37853
|
:type InvoiceDate: str
|
|
37107
|
-
:param _InvoiceCode: 发票代码(10或12
|
|
37854
|
+
:param _InvoiceCode: 发票代码(10或12 位),全电发票为空。查验超过5次后当日无法再查。
|
|
37108
37855
|
:type InvoiceCode: str
|
|
37109
37856
|
:param _InvoiceKind: 票种类型 01:增值税专用发票, 02:货运运输业增值税专用发 票, 03:机动车销售统一发票, 04:增值税普通发票, 08:增值税电子专用发票(含全电), 10:增值税电子普通发票(含全电), 11:增值税普通发票(卷式), 14:增值税电子(通行费)发 票, 15:二手车销售统一发票,16:财务发票, 32:深圳区块链发票(云南区块链因业务调整现已下线)。
|
|
37110
37857
|
:type InvoiceKind: str
|
|
@@ -37120,9 +37867,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
|
|
|
37120
37867
|
:type SellerTaxCode: str
|
|
37121
37868
|
:param _EnableCommonElectronic: 是否开启通用机打电子发票,默认为关闭。
|
|
37122
37869
|
:type EnableCommonElectronic: bool
|
|
37123
|
-
:param _EnableTodayInvoice: 是否允许查验当日发票,默认值为false
|
|
37124
|
-
|
|
37125
|
-
请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的发票。
|
|
37870
|
+
:param _EnableTodayInvoice: 是否允许查验当日发票,默认值为false。请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的当日发票。
|
|
37126
37871
|
:type EnableTodayInvoice: bool
|
|
37127
37872
|
"""
|
|
37128
37873
|
self._InvoiceNo = None
|
|
@@ -37160,7 +37905,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
|
|
|
37160
37905
|
|
|
37161
37906
|
@property
|
|
37162
37907
|
def InvoiceCode(self):
|
|
37163
|
-
"""发票代码(10或12
|
|
37908
|
+
"""发票代码(10或12 位),全电发票为空。查验超过5次后当日无法再查。
|
|
37164
37909
|
:rtype: str
|
|
37165
37910
|
"""
|
|
37166
37911
|
return self._InvoiceCode
|
|
@@ -37239,9 +37984,7 @@ class VatInvoiceVerifyNewRequest(AbstractModel):
|
|
|
37239
37984
|
|
|
37240
37985
|
@property
|
|
37241
37986
|
def EnableTodayInvoice(self):
|
|
37242
|
-
"""是否允许查验当日发票,默认值为false
|
|
37243
|
-
|
|
37244
|
-
请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的发票。
|
|
37987
|
+
"""是否允许查验当日发票,默认值为false。请注意,发票从开具到录入税局需要一定的时间来更新和验证发票信息,打开后仅支持查验已成功录入到税局中的当日发票。
|
|
37245
37988
|
:rtype: bool
|
|
37246
37989
|
"""
|
|
37247
37990
|
return self._EnableTodayInvoice
|
|
@@ -867,6 +867,52 @@ class OcrClient(AbstractClient):
|
|
|
867
867
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
868
868
|
|
|
869
869
|
|
|
870
|
+
def GetOCRResult(self, request):
|
|
871
|
+
"""获取ocr结果
|
|
872
|
+
|
|
873
|
+
:param request: Request instance for GetOCRResult.
|
|
874
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.GetOCRResultRequest`
|
|
875
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GetOCRResultResponse`
|
|
876
|
+
|
|
877
|
+
"""
|
|
878
|
+
try:
|
|
879
|
+
params = request._serialize()
|
|
880
|
+
headers = request.headers
|
|
881
|
+
body = self.call("GetOCRResult", params, headers=headers)
|
|
882
|
+
response = json.loads(body)
|
|
883
|
+
model = models.GetOCRResultResponse()
|
|
884
|
+
model._deserialize(response["Response"])
|
|
885
|
+
return model
|
|
886
|
+
except Exception as e:
|
|
887
|
+
if isinstance(e, TencentCloudSDKException):
|
|
888
|
+
raise
|
|
889
|
+
else:
|
|
890
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
891
|
+
|
|
892
|
+
|
|
893
|
+
def GetOCRToken(self, request):
|
|
894
|
+
"""获取ocr的token值
|
|
895
|
+
|
|
896
|
+
:param request: Request instance for GetOCRToken.
|
|
897
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.GetOCRTokenRequest`
|
|
898
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.GetOCRTokenResponse`
|
|
899
|
+
|
|
900
|
+
"""
|
|
901
|
+
try:
|
|
902
|
+
params = request._serialize()
|
|
903
|
+
headers = request.headers
|
|
904
|
+
body = self.call("GetOCRToken", params, headers=headers)
|
|
905
|
+
response = json.loads(body)
|
|
906
|
+
model = models.GetOCRTokenResponse()
|
|
907
|
+
model._deserialize(response["Response"])
|
|
908
|
+
return model
|
|
909
|
+
except Exception as e:
|
|
910
|
+
if isinstance(e, TencentCloudSDKException):
|
|
911
|
+
raise
|
|
912
|
+
else:
|
|
913
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
914
|
+
|
|
915
|
+
|
|
870
916
|
def GetTaskState(self, request):
|
|
871
917
|
"""智慧表单产品已下线,需要下线相关API
|
|
872
918
|
|
|
@@ -945,12 +991,12 @@ class OcrClient(AbstractClient):
|
|
|
945
991
|
def IDCardOCR(self, request):
|
|
946
992
|
"""本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
|
947
993
|
|
|
948
|
-
|
|
994
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备8种告警功能,如下表所示。
|
|
949
995
|
|
|
950
996
|
<table style="width:650px">
|
|
951
997
|
<thead>
|
|
952
998
|
<tr>
|
|
953
|
-
<th width="150"
|
|
999
|
+
<th width="150">扩展能力</th>
|
|
954
1000
|
<th width="500">能力项</th>
|
|
955
1001
|
</tr>
|
|
956
1002
|
</thead>
|
|
@@ -1164,8 +1210,8 @@ class OcrClient(AbstractClient):
|
|
|
1164
1210
|
|
|
1165
1211
|
|
|
1166
1212
|
def MLIDPassportOCR(self, request):
|
|
1167
|
-
"""
|
|
1168
|
-
|
|
1213
|
+
"""本接口支持以及其他国家、地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍、国家地区代码,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。
|
|
1214
|
+
本接口支持地区范围:可机读护照国家。包括中国港澳台地区、新加坡、马来西亚、泰国、美国、韩国、越南、澳大利亚、缅甸、印度尼西亚、日本、加拿大、老挝、巴基斯坦、哈萨克斯坦、法国、英国、德国、菲律宾、新西兰、印度、意大利、蒙古、孟加拉国、尼日利亚、柬埔寨、西班牙、摩洛哥、吉尔吉斯斯坦、埃及、荷兰、塔吉克斯坦、巴西、乌兹别克斯坦、伊拉克、阿尔及利亚、土耳其、南非、墨西哥、尼泊尔、白俄罗斯、叶门、阿富汗、沙特、肯尼亚、波兰、比利时、瑞典、奥地利、坦桑尼亚、委内瑞拉、阿根廷、喀麦隆、斯里兰卡、衣索比亚、约旦、瑞士、加纳、爱尔兰、哥伦比亚、苏丹、匈牙利、罗马尼亚、阿联酋、文莱、希腊、以色列、巴拿马、丹麦、伊朗、乌干达、挪威、秘鲁、葡萄牙、智利、塞尔维亚、芬兰、尚比亚、亚美尼亚、叙利亚、黎巴嫩、斯洛伐克、卡塔尔、古巴、朝鲜。
|
|
1169
1215
|
|
|
1170
1216
|
默认接口请求频率限制:5次/秒。
|
|
1171
1217
|
|
|
@@ -1443,12 +1489,12 @@ class OcrClient(AbstractClient):
|
|
|
1443
1489
|
|
|
1444
1490
|
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
|
1445
1491
|
|
|
1446
|
-
|
|
1492
|
+
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
|
1447
1493
|
|
|
1448
1494
|
<table style="width:650px">
|
|
1449
1495
|
<thead>
|
|
1450
1496
|
<tr>
|
|
1451
|
-
<th width="150"
|
|
1497
|
+
<th width="150">扩展能力</th>
|
|
1452
1498
|
<th width="500">能力项</th>
|
|
1453
1499
|
</tr>
|
|
1454
1500
|
</thead>
|
|
@@ -1832,7 +1878,7 @@ class OcrClient(AbstractClient):
|
|
|
1832
1878
|
|
|
1833
1879
|
|
|
1834
1880
|
def RecognizeTableAccurateOCR(self, request):
|
|
1835
|
-
"""本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2
|
|
1881
|
+
"""本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
|
1836
1882
|
|
|
1837
1883
|
默认接口请求频率限制:2次/秒。
|
|
1838
1884
|
|
|
@@ -2131,7 +2177,7 @@ class OcrClient(AbstractClient):
|
|
|
2131
2177
|
|
|
2132
2178
|
|
|
2133
2179
|
def SmartStructuralOCRV2(self, request):
|
|
2134
|
-
"""本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/
|
|
2180
|
+
"""本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
|
2135
2181
|
|
|
2136
2182
|
默认接口请求频率限制:5次/秒。
|
|
2137
2183
|
|
|
@@ -2156,7 +2202,7 @@ class OcrClient(AbstractClient):
|
|
|
2156
2202
|
|
|
2157
2203
|
|
|
2158
2204
|
def SmartStructuralPro(self, request):
|
|
2159
|
-
"""本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/
|
|
2205
|
+
"""本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
|
2160
2206
|
|
|
2161
2207
|
默认接口请求频率限制:5次/秒。
|
|
2162
2208
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1301
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1287
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|