tencentcloud-sdk-python-ocr 3.1.111__tar.gz → 3.1.115__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.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/setup.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/ocr/v20181119/models.py +184 -400
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/ocr/v20181119/ocr_client.py +24 -54
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/ocr/v20181119/ocr_client_async.py +19 -44
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ocr-3.1.115/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ocr-3.1.111/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/README.rst +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.111 → tencentcloud_sdk_python_ocr-3.1.115}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.115
|
|
4
4
|
Summary: Tencent Cloud Ocr 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.115
|
|
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-ocr',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.115,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ocr SDK for Python',
|
|
@@ -17765,6 +17765,10 @@ class MarkInfo(AbstractModel):
|
|
|
17765
17765
|
:type QuestionImagePositions: list of Positions
|
|
17766
17766
|
:param _RightAnswer: <p>题目级正确答案(步骤批改时使用,包含完整解题步骤)</p>
|
|
17767
17767
|
:type RightAnswer: str
|
|
17768
|
+
:param _Subject: <p>学科(如语文、数学、英语)</p>
|
|
17769
|
+
:type Subject: str
|
|
17770
|
+
:param _QuestionType: <p>题型(如选择题、填空题、计算题、应用题、判断题、作文题)</p>
|
|
17771
|
+
:type QuestionType: str
|
|
17768
17772
|
"""
|
|
17769
17773
|
self._MarkItemTitle = None
|
|
17770
17774
|
self._AnswerInfos = None
|
|
@@ -17772,6 +17776,8 @@ class MarkInfo(AbstractModel):
|
|
|
17772
17776
|
self._QuestionPositions = None
|
|
17773
17777
|
self._QuestionImagePositions = None
|
|
17774
17778
|
self._RightAnswer = None
|
|
17779
|
+
self._Subject = None
|
|
17780
|
+
self._QuestionType = None
|
|
17775
17781
|
|
|
17776
17782
|
@property
|
|
17777
17783
|
def MarkItemTitle(self):
|
|
@@ -17839,6 +17845,28 @@ class MarkInfo(AbstractModel):
|
|
|
17839
17845
|
def RightAnswer(self, RightAnswer):
|
|
17840
17846
|
self._RightAnswer = RightAnswer
|
|
17841
17847
|
|
|
17848
|
+
@property
|
|
17849
|
+
def Subject(self):
|
|
17850
|
+
r"""<p>学科(如语文、数学、英语)</p>
|
|
17851
|
+
:rtype: str
|
|
17852
|
+
"""
|
|
17853
|
+
return self._Subject
|
|
17854
|
+
|
|
17855
|
+
@Subject.setter
|
|
17856
|
+
def Subject(self, Subject):
|
|
17857
|
+
self._Subject = Subject
|
|
17858
|
+
|
|
17859
|
+
@property
|
|
17860
|
+
def QuestionType(self):
|
|
17861
|
+
r"""<p>题型(如选择题、填空题、计算题、应用题、判断题、作文题)</p>
|
|
17862
|
+
:rtype: str
|
|
17863
|
+
"""
|
|
17864
|
+
return self._QuestionType
|
|
17865
|
+
|
|
17866
|
+
@QuestionType.setter
|
|
17867
|
+
def QuestionType(self, QuestionType):
|
|
17868
|
+
self._QuestionType = QuestionType
|
|
17869
|
+
|
|
17842
17870
|
|
|
17843
17871
|
def _deserialize(self, params):
|
|
17844
17872
|
self._MarkItemTitle = params.get("MarkItemTitle")
|
|
@@ -17862,6 +17890,8 @@ class MarkInfo(AbstractModel):
|
|
|
17862
17890
|
obj._deserialize(item)
|
|
17863
17891
|
self._QuestionImagePositions.append(obj)
|
|
17864
17892
|
self._RightAnswer = params.get("RightAnswer")
|
|
17893
|
+
self._Subject = params.get("Subject")
|
|
17894
|
+
self._QuestionType = params.get("QuestionType")
|
|
17865
17895
|
memeber_set = set(params.keys())
|
|
17866
17896
|
for name, value in vars(self).items():
|
|
17867
17897
|
property_name = name[1:]
|
|
@@ -25014,252 +25044,6 @@ class RecognizeGeneralInvoiceResponse(AbstractModel):
|
|
|
25014
25044
|
self._RequestId = params.get("RequestId")
|
|
25015
25045
|
|
|
25016
25046
|
|
|
25017
|
-
class RecognizeHealthCodeOCRRequest(AbstractModel):
|
|
25018
|
-
r"""RecognizeHealthCodeOCR请求参数结构体
|
|
25019
|
-
|
|
25020
|
-
"""
|
|
25021
|
-
|
|
25022
|
-
def __init__(self):
|
|
25023
|
-
r"""
|
|
25024
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
25025
|
-
:type ImageBase64: str
|
|
25026
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
25027
|
-
:type ImageUrl: str
|
|
25028
|
-
:param _Type: 需要识别的健康码类型列表,为空或不填表示默认为自动识别。
|
|
25029
|
-
0:自动识别
|
|
25030
|
-
:type Type: int
|
|
25031
|
-
"""
|
|
25032
|
-
self._ImageBase64 = None
|
|
25033
|
-
self._ImageUrl = None
|
|
25034
|
-
self._Type = None
|
|
25035
|
-
|
|
25036
|
-
@property
|
|
25037
|
-
def ImageBase64(self):
|
|
25038
|
-
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
25039
|
-
:rtype: str
|
|
25040
|
-
"""
|
|
25041
|
-
return self._ImageBase64
|
|
25042
|
-
|
|
25043
|
-
@ImageBase64.setter
|
|
25044
|
-
def ImageBase64(self, ImageBase64):
|
|
25045
|
-
self._ImageBase64 = ImageBase64
|
|
25046
|
-
|
|
25047
|
-
@property
|
|
25048
|
-
def ImageUrl(self):
|
|
25049
|
-
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
25050
|
-
:rtype: str
|
|
25051
|
-
"""
|
|
25052
|
-
return self._ImageUrl
|
|
25053
|
-
|
|
25054
|
-
@ImageUrl.setter
|
|
25055
|
-
def ImageUrl(self, ImageUrl):
|
|
25056
|
-
self._ImageUrl = ImageUrl
|
|
25057
|
-
|
|
25058
|
-
@property
|
|
25059
|
-
def Type(self):
|
|
25060
|
-
r"""需要识别的健康码类型列表,为空或不填表示默认为自动识别。
|
|
25061
|
-
0:自动识别
|
|
25062
|
-
:rtype: int
|
|
25063
|
-
"""
|
|
25064
|
-
return self._Type
|
|
25065
|
-
|
|
25066
|
-
@Type.setter
|
|
25067
|
-
def Type(self, Type):
|
|
25068
|
-
self._Type = Type
|
|
25069
|
-
|
|
25070
|
-
|
|
25071
|
-
def _deserialize(self, params):
|
|
25072
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
25073
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
25074
|
-
self._Type = params.get("Type")
|
|
25075
|
-
memeber_set = set(params.keys())
|
|
25076
|
-
for name, value in vars(self).items():
|
|
25077
|
-
property_name = name[1:]
|
|
25078
|
-
if property_name in memeber_set:
|
|
25079
|
-
memeber_set.remove(property_name)
|
|
25080
|
-
if len(memeber_set) > 0:
|
|
25081
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
25082
|
-
|
|
25083
|
-
|
|
25084
|
-
|
|
25085
|
-
class RecognizeHealthCodeOCRResponse(AbstractModel):
|
|
25086
|
-
r"""RecognizeHealthCodeOCR返回参数结构体
|
|
25087
|
-
|
|
25088
|
-
"""
|
|
25089
|
-
|
|
25090
|
-
def __init__(self):
|
|
25091
|
-
r"""
|
|
25092
|
-
:param _Name: 持码人姓名,如:王*(允许返回空值)
|
|
25093
|
-
:type Name: str
|
|
25094
|
-
:param _IDNumber: 持码人身份证号,如:11**************01(允许返回空值)
|
|
25095
|
-
:type IDNumber: str
|
|
25096
|
-
:param _Time: 健康码更新时间(允许返回空值)
|
|
25097
|
-
:type Time: str
|
|
25098
|
-
:param _Color: 健康码颜色:绿色、黄色、红色(允许返回空值)
|
|
25099
|
-
:type Color: str
|
|
25100
|
-
:param _TestingInterval: 核酸检测间隔时长(允许返回空值)
|
|
25101
|
-
:type TestingInterval: str
|
|
25102
|
-
:param _TestingResult: 核酸检测结果:阴性、阳性、暂无核酸检测记录(允许返回空值)
|
|
25103
|
-
:type TestingResult: str
|
|
25104
|
-
:param _TestingTime: 核酸检测时间(允许返回空值)
|
|
25105
|
-
:type TestingTime: str
|
|
25106
|
-
:param _Vaccination: 疫苗接种信息,返回接种针数或接种情况(允许返回空值)
|
|
25107
|
-
:type Vaccination: str
|
|
25108
|
-
:param _SpotName: 场所名称(允许返回空值)
|
|
25109
|
-
:type SpotName: str
|
|
25110
|
-
:param _VaccinationTime: 疫苗接种时间
|
|
25111
|
-
:type VaccinationTime: str
|
|
25112
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25113
|
-
:type RequestId: str
|
|
25114
|
-
"""
|
|
25115
|
-
self._Name = None
|
|
25116
|
-
self._IDNumber = None
|
|
25117
|
-
self._Time = None
|
|
25118
|
-
self._Color = None
|
|
25119
|
-
self._TestingInterval = None
|
|
25120
|
-
self._TestingResult = None
|
|
25121
|
-
self._TestingTime = None
|
|
25122
|
-
self._Vaccination = None
|
|
25123
|
-
self._SpotName = None
|
|
25124
|
-
self._VaccinationTime = None
|
|
25125
|
-
self._RequestId = None
|
|
25126
|
-
|
|
25127
|
-
@property
|
|
25128
|
-
def Name(self):
|
|
25129
|
-
r"""持码人姓名,如:王*(允许返回空值)
|
|
25130
|
-
:rtype: str
|
|
25131
|
-
"""
|
|
25132
|
-
return self._Name
|
|
25133
|
-
|
|
25134
|
-
@Name.setter
|
|
25135
|
-
def Name(self, Name):
|
|
25136
|
-
self._Name = Name
|
|
25137
|
-
|
|
25138
|
-
@property
|
|
25139
|
-
def IDNumber(self):
|
|
25140
|
-
r"""持码人身份证号,如:11**************01(允许返回空值)
|
|
25141
|
-
:rtype: str
|
|
25142
|
-
"""
|
|
25143
|
-
return self._IDNumber
|
|
25144
|
-
|
|
25145
|
-
@IDNumber.setter
|
|
25146
|
-
def IDNumber(self, IDNumber):
|
|
25147
|
-
self._IDNumber = IDNumber
|
|
25148
|
-
|
|
25149
|
-
@property
|
|
25150
|
-
def Time(self):
|
|
25151
|
-
r"""健康码更新时间(允许返回空值)
|
|
25152
|
-
:rtype: str
|
|
25153
|
-
"""
|
|
25154
|
-
return self._Time
|
|
25155
|
-
|
|
25156
|
-
@Time.setter
|
|
25157
|
-
def Time(self, Time):
|
|
25158
|
-
self._Time = Time
|
|
25159
|
-
|
|
25160
|
-
@property
|
|
25161
|
-
def Color(self):
|
|
25162
|
-
r"""健康码颜色:绿色、黄色、红色(允许返回空值)
|
|
25163
|
-
:rtype: str
|
|
25164
|
-
"""
|
|
25165
|
-
return self._Color
|
|
25166
|
-
|
|
25167
|
-
@Color.setter
|
|
25168
|
-
def Color(self, Color):
|
|
25169
|
-
self._Color = Color
|
|
25170
|
-
|
|
25171
|
-
@property
|
|
25172
|
-
def TestingInterval(self):
|
|
25173
|
-
r"""核酸检测间隔时长(允许返回空值)
|
|
25174
|
-
:rtype: str
|
|
25175
|
-
"""
|
|
25176
|
-
return self._TestingInterval
|
|
25177
|
-
|
|
25178
|
-
@TestingInterval.setter
|
|
25179
|
-
def TestingInterval(self, TestingInterval):
|
|
25180
|
-
self._TestingInterval = TestingInterval
|
|
25181
|
-
|
|
25182
|
-
@property
|
|
25183
|
-
def TestingResult(self):
|
|
25184
|
-
r"""核酸检测结果:阴性、阳性、暂无核酸检测记录(允许返回空值)
|
|
25185
|
-
:rtype: str
|
|
25186
|
-
"""
|
|
25187
|
-
return self._TestingResult
|
|
25188
|
-
|
|
25189
|
-
@TestingResult.setter
|
|
25190
|
-
def TestingResult(self, TestingResult):
|
|
25191
|
-
self._TestingResult = TestingResult
|
|
25192
|
-
|
|
25193
|
-
@property
|
|
25194
|
-
def TestingTime(self):
|
|
25195
|
-
r"""核酸检测时间(允许返回空值)
|
|
25196
|
-
:rtype: str
|
|
25197
|
-
"""
|
|
25198
|
-
return self._TestingTime
|
|
25199
|
-
|
|
25200
|
-
@TestingTime.setter
|
|
25201
|
-
def TestingTime(self, TestingTime):
|
|
25202
|
-
self._TestingTime = TestingTime
|
|
25203
|
-
|
|
25204
|
-
@property
|
|
25205
|
-
def Vaccination(self):
|
|
25206
|
-
r"""疫苗接种信息,返回接种针数或接种情况(允许返回空值)
|
|
25207
|
-
:rtype: str
|
|
25208
|
-
"""
|
|
25209
|
-
return self._Vaccination
|
|
25210
|
-
|
|
25211
|
-
@Vaccination.setter
|
|
25212
|
-
def Vaccination(self, Vaccination):
|
|
25213
|
-
self._Vaccination = Vaccination
|
|
25214
|
-
|
|
25215
|
-
@property
|
|
25216
|
-
def SpotName(self):
|
|
25217
|
-
r"""场所名称(允许返回空值)
|
|
25218
|
-
:rtype: str
|
|
25219
|
-
"""
|
|
25220
|
-
return self._SpotName
|
|
25221
|
-
|
|
25222
|
-
@SpotName.setter
|
|
25223
|
-
def SpotName(self, SpotName):
|
|
25224
|
-
self._SpotName = SpotName
|
|
25225
|
-
|
|
25226
|
-
@property
|
|
25227
|
-
def VaccinationTime(self):
|
|
25228
|
-
r"""疫苗接种时间
|
|
25229
|
-
:rtype: str
|
|
25230
|
-
"""
|
|
25231
|
-
return self._VaccinationTime
|
|
25232
|
-
|
|
25233
|
-
@VaccinationTime.setter
|
|
25234
|
-
def VaccinationTime(self, VaccinationTime):
|
|
25235
|
-
self._VaccinationTime = VaccinationTime
|
|
25236
|
-
|
|
25237
|
-
@property
|
|
25238
|
-
def RequestId(self):
|
|
25239
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
25240
|
-
:rtype: str
|
|
25241
|
-
"""
|
|
25242
|
-
return self._RequestId
|
|
25243
|
-
|
|
25244
|
-
@RequestId.setter
|
|
25245
|
-
def RequestId(self, RequestId):
|
|
25246
|
-
self._RequestId = RequestId
|
|
25247
|
-
|
|
25248
|
-
|
|
25249
|
-
def _deserialize(self, params):
|
|
25250
|
-
self._Name = params.get("Name")
|
|
25251
|
-
self._IDNumber = params.get("IDNumber")
|
|
25252
|
-
self._Time = params.get("Time")
|
|
25253
|
-
self._Color = params.get("Color")
|
|
25254
|
-
self._TestingInterval = params.get("TestingInterval")
|
|
25255
|
-
self._TestingResult = params.get("TestingResult")
|
|
25256
|
-
self._TestingTime = params.get("TestingTime")
|
|
25257
|
-
self._Vaccination = params.get("Vaccination")
|
|
25258
|
-
self._SpotName = params.get("SpotName")
|
|
25259
|
-
self._VaccinationTime = params.get("VaccinationTime")
|
|
25260
|
-
self._RequestId = params.get("RequestId")
|
|
25261
|
-
|
|
25262
|
-
|
|
25263
25047
|
class RecognizeMedicalInvoiceOCRRequest(AbstractModel):
|
|
25264
25048
|
r"""RecognizeMedicalInvoiceOCR请求参数结构体
|
|
25265
25049
|
|
|
@@ -26352,160 +26136,6 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
|
26352
26136
|
self._RequestId = params.get("RequestId")
|
|
26353
26137
|
|
|
26354
26138
|
|
|
26355
|
-
class RecognizeTravelCardOCRRequest(AbstractModel):
|
|
26356
|
-
r"""RecognizeTravelCardOCR请求参数结构体
|
|
26357
|
-
|
|
26358
|
-
"""
|
|
26359
|
-
|
|
26360
|
-
def __init__(self):
|
|
26361
|
-
r"""
|
|
26362
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
26363
|
-
:type ImageBase64: str
|
|
26364
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
26365
|
-
:type ImageUrl: str
|
|
26366
|
-
"""
|
|
26367
|
-
self._ImageBase64 = None
|
|
26368
|
-
self._ImageUrl = None
|
|
26369
|
-
|
|
26370
|
-
@property
|
|
26371
|
-
def ImageBase64(self):
|
|
26372
|
-
r"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
26373
|
-
:rtype: str
|
|
26374
|
-
"""
|
|
26375
|
-
return self._ImageBase64
|
|
26376
|
-
|
|
26377
|
-
@ImageBase64.setter
|
|
26378
|
-
def ImageBase64(self, ImageBase64):
|
|
26379
|
-
self._ImageBase64 = ImageBase64
|
|
26380
|
-
|
|
26381
|
-
@property
|
|
26382
|
-
def ImageUrl(self):
|
|
26383
|
-
r"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
26384
|
-
:rtype: str
|
|
26385
|
-
"""
|
|
26386
|
-
return self._ImageUrl
|
|
26387
|
-
|
|
26388
|
-
@ImageUrl.setter
|
|
26389
|
-
def ImageUrl(self, ImageUrl):
|
|
26390
|
-
self._ImageUrl = ImageUrl
|
|
26391
|
-
|
|
26392
|
-
|
|
26393
|
-
def _deserialize(self, params):
|
|
26394
|
-
self._ImageBase64 = params.get("ImageBase64")
|
|
26395
|
-
self._ImageUrl = params.get("ImageUrl")
|
|
26396
|
-
memeber_set = set(params.keys())
|
|
26397
|
-
for name, value in vars(self).items():
|
|
26398
|
-
property_name = name[1:]
|
|
26399
|
-
if property_name in memeber_set:
|
|
26400
|
-
memeber_set.remove(property_name)
|
|
26401
|
-
if len(memeber_set) > 0:
|
|
26402
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
26403
|
-
|
|
26404
|
-
|
|
26405
|
-
|
|
26406
|
-
class RecognizeTravelCardOCRResponse(AbstractModel):
|
|
26407
|
-
r"""RecognizeTravelCardOCR返回参数结构体
|
|
26408
|
-
|
|
26409
|
-
"""
|
|
26410
|
-
|
|
26411
|
-
def __init__(self):
|
|
26412
|
-
r"""
|
|
26413
|
-
:param _Time: 行程卡更新时间,格式为:XXXX.XX.XX XX:XX:XX
|
|
26414
|
-
:type Time: str
|
|
26415
|
-
:param _Color: 行程卡颜色:绿色、黄色、红色
|
|
26416
|
-
:type Color: str
|
|
26417
|
-
:param _ReachedCity: 7天内到达或途经的城市(自2022年7月8日起,通信行程卡查询结果的覆盖时间范围由“14天”调整为“7天”)
|
|
26418
|
-
:type ReachedCity: list of str
|
|
26419
|
-
:param _RiskArea: 7天内到达或途径存在中高风险地区的城市(自2022年6月29日起,通信行程卡取消“星号”标记,改字段将返回空值)
|
|
26420
|
-
:type RiskArea: list of str
|
|
26421
|
-
:param _Telephone: 电话号码
|
|
26422
|
-
:type Telephone: str
|
|
26423
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26424
|
-
:type RequestId: str
|
|
26425
|
-
"""
|
|
26426
|
-
self._Time = None
|
|
26427
|
-
self._Color = None
|
|
26428
|
-
self._ReachedCity = None
|
|
26429
|
-
self._RiskArea = None
|
|
26430
|
-
self._Telephone = None
|
|
26431
|
-
self._RequestId = None
|
|
26432
|
-
|
|
26433
|
-
@property
|
|
26434
|
-
def Time(self):
|
|
26435
|
-
r"""行程卡更新时间,格式为:XXXX.XX.XX XX:XX:XX
|
|
26436
|
-
:rtype: str
|
|
26437
|
-
"""
|
|
26438
|
-
return self._Time
|
|
26439
|
-
|
|
26440
|
-
@Time.setter
|
|
26441
|
-
def Time(self, Time):
|
|
26442
|
-
self._Time = Time
|
|
26443
|
-
|
|
26444
|
-
@property
|
|
26445
|
-
def Color(self):
|
|
26446
|
-
r"""行程卡颜色:绿色、黄色、红色
|
|
26447
|
-
:rtype: str
|
|
26448
|
-
"""
|
|
26449
|
-
return self._Color
|
|
26450
|
-
|
|
26451
|
-
@Color.setter
|
|
26452
|
-
def Color(self, Color):
|
|
26453
|
-
self._Color = Color
|
|
26454
|
-
|
|
26455
|
-
@property
|
|
26456
|
-
def ReachedCity(self):
|
|
26457
|
-
r"""7天内到达或途经的城市(自2022年7月8日起,通信行程卡查询结果的覆盖时间范围由“14天”调整为“7天”)
|
|
26458
|
-
:rtype: list of str
|
|
26459
|
-
"""
|
|
26460
|
-
return self._ReachedCity
|
|
26461
|
-
|
|
26462
|
-
@ReachedCity.setter
|
|
26463
|
-
def ReachedCity(self, ReachedCity):
|
|
26464
|
-
self._ReachedCity = ReachedCity
|
|
26465
|
-
|
|
26466
|
-
@property
|
|
26467
|
-
def RiskArea(self):
|
|
26468
|
-
r"""7天内到达或途径存在中高风险地区的城市(自2022年6月29日起,通信行程卡取消“星号”标记,改字段将返回空值)
|
|
26469
|
-
:rtype: list of str
|
|
26470
|
-
"""
|
|
26471
|
-
return self._RiskArea
|
|
26472
|
-
|
|
26473
|
-
@RiskArea.setter
|
|
26474
|
-
def RiskArea(self, RiskArea):
|
|
26475
|
-
self._RiskArea = RiskArea
|
|
26476
|
-
|
|
26477
|
-
@property
|
|
26478
|
-
def Telephone(self):
|
|
26479
|
-
r"""电话号码
|
|
26480
|
-
:rtype: str
|
|
26481
|
-
"""
|
|
26482
|
-
return self._Telephone
|
|
26483
|
-
|
|
26484
|
-
@Telephone.setter
|
|
26485
|
-
def Telephone(self, Telephone):
|
|
26486
|
-
self._Telephone = Telephone
|
|
26487
|
-
|
|
26488
|
-
@property
|
|
26489
|
-
def RequestId(self):
|
|
26490
|
-
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
26491
|
-
:rtype: str
|
|
26492
|
-
"""
|
|
26493
|
-
return self._RequestId
|
|
26494
|
-
|
|
26495
|
-
@RequestId.setter
|
|
26496
|
-
def RequestId(self, RequestId):
|
|
26497
|
-
self._RequestId = RequestId
|
|
26498
|
-
|
|
26499
|
-
|
|
26500
|
-
def _deserialize(self, params):
|
|
26501
|
-
self._Time = params.get("Time")
|
|
26502
|
-
self._Color = params.get("Color")
|
|
26503
|
-
self._ReachedCity = params.get("ReachedCity")
|
|
26504
|
-
self._RiskArea = params.get("RiskArea")
|
|
26505
|
-
self._Telephone = params.get("Telephone")
|
|
26506
|
-
self._RequestId = params.get("RequestId")
|
|
26507
|
-
|
|
26508
|
-
|
|
26509
26139
|
class RecognizeValidIDCardOCRRequest(AbstractModel):
|
|
26510
26140
|
r"""RecognizeValidIDCardOCR请求参数结构体
|
|
26511
26141
|
|
|
@@ -40560,6 +40190,160 @@ class VehicleRegCertOCRResponse(AbstractModel):
|
|
|
40560
40190
|
self._RequestId = params.get("RequestId")
|
|
40561
40191
|
|
|
40562
40192
|
|
|
40193
|
+
class VerifyBizLicenseEnterprise3Request(AbstractModel):
|
|
40194
|
+
r"""VerifyBizLicenseEnterprise3请求参数结构体
|
|
40195
|
+
|
|
40196
|
+
"""
|
|
40197
|
+
|
|
40198
|
+
def __init__(self):
|
|
40199
|
+
r"""
|
|
40200
|
+
:param _CreditCode: <p>统一社会信用代码</p>
|
|
40201
|
+
:type CreditCode: str
|
|
40202
|
+
:param _EntName: <p>企业名称</p>
|
|
40203
|
+
:type EntName: str
|
|
40204
|
+
:param _LrName: <p>法人代表</p>
|
|
40205
|
+
:type LrName: str
|
|
40206
|
+
:param _VerifyType: <p>核验类型 </p><p>枚举值:</p><ul><li>ENT_2META: 企业名称 、统一社会信用代码</li><li>ENT_3META: 企业名称 、统一社会信用代码 、法人代表名称</li></ul>
|
|
40207
|
+
:type VerifyType: str
|
|
40208
|
+
"""
|
|
40209
|
+
self._CreditCode = None
|
|
40210
|
+
self._EntName = None
|
|
40211
|
+
self._LrName = None
|
|
40212
|
+
self._VerifyType = None
|
|
40213
|
+
|
|
40214
|
+
@property
|
|
40215
|
+
def CreditCode(self):
|
|
40216
|
+
r"""<p>统一社会信用代码</p>
|
|
40217
|
+
:rtype: str
|
|
40218
|
+
"""
|
|
40219
|
+
return self._CreditCode
|
|
40220
|
+
|
|
40221
|
+
@CreditCode.setter
|
|
40222
|
+
def CreditCode(self, CreditCode):
|
|
40223
|
+
self._CreditCode = CreditCode
|
|
40224
|
+
|
|
40225
|
+
@property
|
|
40226
|
+
def EntName(self):
|
|
40227
|
+
r"""<p>企业名称</p>
|
|
40228
|
+
:rtype: str
|
|
40229
|
+
"""
|
|
40230
|
+
return self._EntName
|
|
40231
|
+
|
|
40232
|
+
@EntName.setter
|
|
40233
|
+
def EntName(self, EntName):
|
|
40234
|
+
self._EntName = EntName
|
|
40235
|
+
|
|
40236
|
+
@property
|
|
40237
|
+
def LrName(self):
|
|
40238
|
+
r"""<p>法人代表</p>
|
|
40239
|
+
:rtype: str
|
|
40240
|
+
"""
|
|
40241
|
+
return self._LrName
|
|
40242
|
+
|
|
40243
|
+
@LrName.setter
|
|
40244
|
+
def LrName(self, LrName):
|
|
40245
|
+
self._LrName = LrName
|
|
40246
|
+
|
|
40247
|
+
@property
|
|
40248
|
+
def VerifyType(self):
|
|
40249
|
+
r"""<p>核验类型 </p><p>枚举值:</p><ul><li>ENT_2META: 企业名称 、统一社会信用代码</li><li>ENT_3META: 企业名称 、统一社会信用代码 、法人代表名称</li></ul>
|
|
40250
|
+
:rtype: str
|
|
40251
|
+
"""
|
|
40252
|
+
return self._VerifyType
|
|
40253
|
+
|
|
40254
|
+
@VerifyType.setter
|
|
40255
|
+
def VerifyType(self, VerifyType):
|
|
40256
|
+
self._VerifyType = VerifyType
|
|
40257
|
+
|
|
40258
|
+
|
|
40259
|
+
def _deserialize(self, params):
|
|
40260
|
+
self._CreditCode = params.get("CreditCode")
|
|
40261
|
+
self._EntName = params.get("EntName")
|
|
40262
|
+
self._LrName = params.get("LrName")
|
|
40263
|
+
self._VerifyType = params.get("VerifyType")
|
|
40264
|
+
memeber_set = set(params.keys())
|
|
40265
|
+
for name, value in vars(self).items():
|
|
40266
|
+
property_name = name[1:]
|
|
40267
|
+
if property_name in memeber_set:
|
|
40268
|
+
memeber_set.remove(property_name)
|
|
40269
|
+
if len(memeber_set) > 0:
|
|
40270
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
40271
|
+
|
|
40272
|
+
|
|
40273
|
+
|
|
40274
|
+
class VerifyBizLicenseEnterprise3Response(AbstractModel):
|
|
40275
|
+
r"""VerifyBizLicenseEnterprise3返回参数结构体
|
|
40276
|
+
|
|
40277
|
+
"""
|
|
40278
|
+
|
|
40279
|
+
def __init__(self):
|
|
40280
|
+
r"""
|
|
40281
|
+
:param _StatusCode: <p>0 成功,计费<br>1 系统异常,不计费<br>2 查询无结果,不计费</p>
|
|
40282
|
+
:type StatusCode: int
|
|
40283
|
+
:param _VerifyResult: <p>验证结果<br>1:三要素完全匹配<br>0:三要素不完全匹配<br>仅StatusCode为0时返回</p>
|
|
40284
|
+
:type VerifyResult: int
|
|
40285
|
+
:param _OperatingStatus: <p>企业状态</p><p>枚举值:</p><ul><li>1: 开业(在营)/ 在营</li><li>2: 迁出 / 非在营</li><li>3: 注销</li><li>4: 吊销</li><li>5: 撤销</li><li>6: 停业</li><li>7: 撤销登记</li><li>0: 其他</li><li>/: 无法查询</li></ul><p>企业状态 当VerifyType参数为ENT_2META时,可返回: 0-7, / 当VerifyType参数为ENT_3META时,可返回 1,2</p>
|
|
40286
|
+
:type OperatingStatus: str
|
|
40287
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
40288
|
+
:type RequestId: str
|
|
40289
|
+
"""
|
|
40290
|
+
self._StatusCode = None
|
|
40291
|
+
self._VerifyResult = None
|
|
40292
|
+
self._OperatingStatus = None
|
|
40293
|
+
self._RequestId = None
|
|
40294
|
+
|
|
40295
|
+
@property
|
|
40296
|
+
def StatusCode(self):
|
|
40297
|
+
r"""<p>0 成功,计费<br>1 系统异常,不计费<br>2 查询无结果,不计费</p>
|
|
40298
|
+
:rtype: int
|
|
40299
|
+
"""
|
|
40300
|
+
return self._StatusCode
|
|
40301
|
+
|
|
40302
|
+
@StatusCode.setter
|
|
40303
|
+
def StatusCode(self, StatusCode):
|
|
40304
|
+
self._StatusCode = StatusCode
|
|
40305
|
+
|
|
40306
|
+
@property
|
|
40307
|
+
def VerifyResult(self):
|
|
40308
|
+
r"""<p>验证结果<br>1:三要素完全匹配<br>0:三要素不完全匹配<br>仅StatusCode为0时返回</p>
|
|
40309
|
+
:rtype: int
|
|
40310
|
+
"""
|
|
40311
|
+
return self._VerifyResult
|
|
40312
|
+
|
|
40313
|
+
@VerifyResult.setter
|
|
40314
|
+
def VerifyResult(self, VerifyResult):
|
|
40315
|
+
self._VerifyResult = VerifyResult
|
|
40316
|
+
|
|
40317
|
+
@property
|
|
40318
|
+
def OperatingStatus(self):
|
|
40319
|
+
r"""<p>企业状态</p><p>枚举值:</p><ul><li>1: 开业(在营)/ 在营</li><li>2: 迁出 / 非在营</li><li>3: 注销</li><li>4: 吊销</li><li>5: 撤销</li><li>6: 停业</li><li>7: 撤销登记</li><li>0: 其他</li><li>/: 无法查询</li></ul><p>企业状态 当VerifyType参数为ENT_2META时,可返回: 0-7, / 当VerifyType参数为ENT_3META时,可返回 1,2</p>
|
|
40320
|
+
:rtype: str
|
|
40321
|
+
"""
|
|
40322
|
+
return self._OperatingStatus
|
|
40323
|
+
|
|
40324
|
+
@OperatingStatus.setter
|
|
40325
|
+
def OperatingStatus(self, OperatingStatus):
|
|
40326
|
+
self._OperatingStatus = OperatingStatus
|
|
40327
|
+
|
|
40328
|
+
@property
|
|
40329
|
+
def RequestId(self):
|
|
40330
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
40331
|
+
:rtype: str
|
|
40332
|
+
"""
|
|
40333
|
+
return self._RequestId
|
|
40334
|
+
|
|
40335
|
+
@RequestId.setter
|
|
40336
|
+
def RequestId(self, RequestId):
|
|
40337
|
+
self._RequestId = RequestId
|
|
40338
|
+
|
|
40339
|
+
|
|
40340
|
+
def _deserialize(self, params):
|
|
40341
|
+
self._StatusCode = params.get("StatusCode")
|
|
40342
|
+
self._VerifyResult = params.get("VerifyResult")
|
|
40343
|
+
self._OperatingStatus = params.get("OperatingStatus")
|
|
40344
|
+
self._RequestId = params.get("RequestId")
|
|
40345
|
+
|
|
40346
|
+
|
|
40563
40347
|
class VerifyBizLicenseEnterprise4Request(AbstractModel):
|
|
40564
40348
|
r"""VerifyBizLicenseEnterprise4请求参数结构体
|
|
40565
40349
|
|
|
@@ -1830,33 +1830,6 @@ class OcrClient(AbstractClient):
|
|
|
1830
1830
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1831
1831
|
|
|
1832
1832
|
|
|
1833
|
-
def RecognizeHealthCodeOCR(self, request):
|
|
1834
|
-
r"""产品规划
|
|
1835
|
-
|
|
1836
|
-
本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
|
1837
|
-
|
|
1838
|
-
默认接口请求频率限制:10次/秒。
|
|
1839
|
-
|
|
1840
|
-
:param request: Request instance for RecognizeHealthCodeOCR.
|
|
1841
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeHealthCodeOCRRequest`
|
|
1842
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeHealthCodeOCRResponse`
|
|
1843
|
-
|
|
1844
|
-
"""
|
|
1845
|
-
try:
|
|
1846
|
-
params = request._serialize()
|
|
1847
|
-
headers = request.headers
|
|
1848
|
-
body = self.call("RecognizeHealthCodeOCR", params, headers=headers)
|
|
1849
|
-
response = json.loads(body)
|
|
1850
|
-
model = models.RecognizeHealthCodeOCRResponse()
|
|
1851
|
-
model._deserialize(response["Response"])
|
|
1852
|
-
return model
|
|
1853
|
-
except Exception as e:
|
|
1854
|
-
if isinstance(e, TencentCloudSDKException):
|
|
1855
|
-
raise
|
|
1856
|
-
else:
|
|
1857
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
1833
|
def RecognizeMedicalInvoiceOCR(self, request):
|
|
1861
1834
|
r"""医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
|
|
1862
1835
|
|
|
@@ -1982,33 +1955,6 @@ class OcrClient(AbstractClient):
|
|
|
1982
1955
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1983
1956
|
|
|
1984
1957
|
|
|
1985
|
-
def RecognizeTravelCardOCR(self, request):
|
|
1986
|
-
r"""产品规划
|
|
1987
|
-
|
|
1988
|
-
本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
|
1989
|
-
|
|
1990
|
-
默认接口请求频率限制:20次/秒。
|
|
1991
|
-
|
|
1992
|
-
:param request: Request instance for RecognizeTravelCardOCR.
|
|
1993
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeTravelCardOCRRequest`
|
|
1994
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeTravelCardOCRResponse`
|
|
1995
|
-
|
|
1996
|
-
"""
|
|
1997
|
-
try:
|
|
1998
|
-
params = request._serialize()
|
|
1999
|
-
headers = request.headers
|
|
2000
|
-
body = self.call("RecognizeTravelCardOCR", params, headers=headers)
|
|
2001
|
-
response = json.loads(body)
|
|
2002
|
-
model = models.RecognizeTravelCardOCRResponse()
|
|
2003
|
-
model._deserialize(response["Response"])
|
|
2004
|
-
return model
|
|
2005
|
-
except Exception as e:
|
|
2006
|
-
if isinstance(e, TencentCloudSDKException):
|
|
2007
|
-
raise
|
|
2008
|
-
else:
|
|
2009
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
1958
|
def RecognizeValidIDCardOCR(self, request):
|
|
2013
1959
|
r"""本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
|
|
2014
1960
|
|
|
@@ -2417,6 +2363,30 @@ class OcrClient(AbstractClient):
|
|
|
2417
2363
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2418
2364
|
|
|
2419
2365
|
|
|
2366
|
+
def VerifyBizLicenseEnterprise3(self, request):
|
|
2367
|
+
r"""提供比对核验企业名称、统一社会信用代码、法人姓名一致性的服务,助力快速核验企业资质。
|
|
2368
|
+
注意:核验准确率在99%以上,存在个别特殊情况下核验结果不准确,请选用前知悉。
|
|
2369
|
+
|
|
2370
|
+
:param request: Request instance for VerifyBizLicenseEnterprise3.
|
|
2371
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.VerifyBizLicenseEnterprise3Request`
|
|
2372
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.VerifyBizLicenseEnterprise3Response`
|
|
2373
|
+
|
|
2374
|
+
"""
|
|
2375
|
+
try:
|
|
2376
|
+
params = request._serialize()
|
|
2377
|
+
headers = request.headers
|
|
2378
|
+
body = self.call("VerifyBizLicenseEnterprise3", params, headers=headers)
|
|
2379
|
+
response = json.loads(body)
|
|
2380
|
+
model = models.VerifyBizLicenseEnterprise3Response()
|
|
2381
|
+
model._deserialize(response["Response"])
|
|
2382
|
+
return model
|
|
2383
|
+
except Exception as e:
|
|
2384
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2385
|
+
raise
|
|
2386
|
+
else:
|
|
2387
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2388
|
+
|
|
2389
|
+
|
|
2420
2390
|
def VerifyBizLicenseEnterprise4(self, request):
|
|
2421
2391
|
r"""提供比对校验企业名称、统一社会信用代码、法人姓名、注册登记证件号码一致性的服务,助力快速核验企业资质。
|
|
2422
2392
|
注意:
|
|
@@ -1564,28 +1564,6 @@ class OcrClient(AbstractClient):
|
|
|
1564
1564
|
|
|
1565
1565
|
return await self.call_and_deserialize(**kwargs)
|
|
1566
1566
|
|
|
1567
|
-
async def RecognizeHealthCodeOCR(
|
|
1568
|
-
self,
|
|
1569
|
-
request: models.RecognizeHealthCodeOCRRequest,
|
|
1570
|
-
opts: Dict = None,
|
|
1571
|
-
) -> models.RecognizeHealthCodeOCRResponse:
|
|
1572
|
-
"""
|
|
1573
|
-
产品规划
|
|
1574
|
-
|
|
1575
|
-
本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
|
1576
|
-
|
|
1577
|
-
默认接口请求频率限制:10次/秒。
|
|
1578
|
-
"""
|
|
1579
|
-
|
|
1580
|
-
kwargs = {}
|
|
1581
|
-
kwargs["action"] = "RecognizeHealthCodeOCR"
|
|
1582
|
-
kwargs["params"] = request._serialize()
|
|
1583
|
-
kwargs["resp_cls"] = models.RecognizeHealthCodeOCRResponse
|
|
1584
|
-
kwargs["headers"] = request.headers
|
|
1585
|
-
kwargs["opts"] = opts or {}
|
|
1586
|
-
|
|
1587
|
-
return await self.call_and_deserialize(**kwargs)
|
|
1588
|
-
|
|
1589
1567
|
async def RecognizeMedicalInvoiceOCR(
|
|
1590
1568
|
self,
|
|
1591
1569
|
request: models.RecognizeMedicalInvoiceOCRRequest,
|
|
@@ -1686,28 +1664,6 @@ class OcrClient(AbstractClient):
|
|
|
1686
1664
|
|
|
1687
1665
|
return await self.call_and_deserialize(**kwargs)
|
|
1688
1666
|
|
|
1689
|
-
async def RecognizeTravelCardOCR(
|
|
1690
|
-
self,
|
|
1691
|
-
request: models.RecognizeTravelCardOCRRequest,
|
|
1692
|
-
opts: Dict = None,
|
|
1693
|
-
) -> models.RecognizeTravelCardOCRResponse:
|
|
1694
|
-
"""
|
|
1695
|
-
产品规划
|
|
1696
|
-
|
|
1697
|
-
本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
|
1698
|
-
|
|
1699
|
-
默认接口请求频率限制:20次/秒。
|
|
1700
|
-
"""
|
|
1701
|
-
|
|
1702
|
-
kwargs = {}
|
|
1703
|
-
kwargs["action"] = "RecognizeTravelCardOCR"
|
|
1704
|
-
kwargs["params"] = request._serialize()
|
|
1705
|
-
kwargs["resp_cls"] = models.RecognizeTravelCardOCRResponse
|
|
1706
|
-
kwargs["headers"] = request.headers
|
|
1707
|
-
kwargs["opts"] = opts or {}
|
|
1708
|
-
|
|
1709
|
-
return await self.call_and_deserialize(**kwargs)
|
|
1710
|
-
|
|
1711
1667
|
async def RecognizeValidIDCardOCR(
|
|
1712
1668
|
self,
|
|
1713
1669
|
request: models.RecognizeValidIDCardOCRRequest,
|
|
@@ -2036,6 +1992,25 @@ class OcrClient(AbstractClient):
|
|
|
2036
1992
|
|
|
2037
1993
|
return await self.call_and_deserialize(**kwargs)
|
|
2038
1994
|
|
|
1995
|
+
async def VerifyBizLicenseEnterprise3(
|
|
1996
|
+
self,
|
|
1997
|
+
request: models.VerifyBizLicenseEnterprise3Request,
|
|
1998
|
+
opts: Dict = None,
|
|
1999
|
+
) -> models.VerifyBizLicenseEnterprise3Response:
|
|
2000
|
+
"""
|
|
2001
|
+
提供比对核验企业名称、统一社会信用代码、法人姓名一致性的服务,助力快速核验企业资质。
|
|
2002
|
+
注意:核验准确率在99%以上,存在个别特殊情况下核验结果不准确,请选用前知悉。
|
|
2003
|
+
"""
|
|
2004
|
+
|
|
2005
|
+
kwargs = {}
|
|
2006
|
+
kwargs["action"] = "VerifyBizLicenseEnterprise3"
|
|
2007
|
+
kwargs["params"] = request._serialize()
|
|
2008
|
+
kwargs["resp_cls"] = models.VerifyBizLicenseEnterprise3Response
|
|
2009
|
+
kwargs["headers"] = request.headers
|
|
2010
|
+
kwargs["opts"] = opts or {}
|
|
2011
|
+
|
|
2012
|
+
return await self.call_and_deserialize(**kwargs)
|
|
2013
|
+
|
|
2039
2014
|
async def VerifyBizLicenseEnterprise4(
|
|
2040
2015
|
self,
|
|
2041
2016
|
request: models.VerifyBizLicenseEnterprise4Request,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.115
|
|
4
4
|
Summary: Tencent Cloud Ocr 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.115
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.115
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.111
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|