tencentcloud-sdk-python-ocr 3.1.162__py2.py3-none-any.whl → 3.1.169__py2.py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +404 -76
- tencentcloud/ocr/v20181119/ocr_client.py +46 -0
- tencentcloud/ocr/v20181119/ocr_client_async.py +36 -0
- {tencentcloud_sdk_python_ocr-3.1.162.dist-info → tencentcloud_sdk_python_ocr-3.1.169.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.1.169.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_ocr-3.1.162.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_ocr-3.1.162.dist-info → tencentcloud_sdk_python_ocr-3.1.169.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.162.dist-info → tencentcloud_sdk_python_ocr-3.1.169.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -4517,8 +4517,10 @@ class CropEnhanceImageOCRResponse(AbstractModel):
|
|
|
4517
4517
|
:type CroppedWidth: int
|
|
4518
4518
|
:param _CroppedHeight: <p>处理后图的高</p>
|
|
4519
4519
|
:type CroppedHeight: int
|
|
4520
|
-
:param _CroppedImage: <p>图像处理后的jpg图片,base64格式</p>
|
|
4520
|
+
:param _CroppedImage: <p>图像处理后的jpg图片,base64格式</p><p><strong><p><code>该字段后续不返回内容,请使用CroppedImageUrl</code></p></strong></p>
|
|
4521
4521
|
:type CroppedImage: str
|
|
4522
|
+
:param _CroppedImageUrl: <p>图像处理后的jpg图片</p><p>参数格式:url格式</p>
|
|
4523
|
+
:type CroppedImageUrl: str
|
|
4522
4524
|
:param _Position: <p>切图区域的4个角点坐标, 是个长度为8的数组<br>[0,1,2,3,4,5,6,7]</p><p>(0,1) 左上角坐标<br>(2,3) 右上角坐标<br>(4,5) 右下角坐标<br>(6,7) 左下角坐标</p>
|
|
4523
4525
|
:type Position: list of int
|
|
4524
4526
|
:param _Angle: <p>图像角度,AdjustOrientation =1时生效, 返回值如下 -1: 失败 0、90、180、270</p>
|
|
@@ -4530,6 +4532,7 @@ class CropEnhanceImageOCRResponse(AbstractModel):
|
|
|
4530
4532
|
self._CroppedWidth = None
|
|
4531
4533
|
self._CroppedHeight = None
|
|
4532
4534
|
self._CroppedImage = None
|
|
4535
|
+
self._CroppedImageUrl = None
|
|
4533
4536
|
self._Position = None
|
|
4534
4537
|
self._Angle = None
|
|
4535
4538
|
self._RequestId = None
|
|
@@ -4558,7 +4561,7 @@ class CropEnhanceImageOCRResponse(AbstractModel):
|
|
|
4558
4561
|
|
|
4559
4562
|
@property
|
|
4560
4563
|
def CroppedImage(self):
|
|
4561
|
-
r"""<p>图像处理后的jpg图片,base64格式</p>
|
|
4564
|
+
r"""<p>图像处理后的jpg图片,base64格式</p><p><strong><p><code>该字段后续不返回内容,请使用CroppedImageUrl</code></p></strong></p>
|
|
4562
4565
|
:rtype: str
|
|
4563
4566
|
"""
|
|
4564
4567
|
return self._CroppedImage
|
|
@@ -4567,6 +4570,17 @@ class CropEnhanceImageOCRResponse(AbstractModel):
|
|
|
4567
4570
|
def CroppedImage(self, CroppedImage):
|
|
4568
4571
|
self._CroppedImage = CroppedImage
|
|
4569
4572
|
|
|
4573
|
+
@property
|
|
4574
|
+
def CroppedImageUrl(self):
|
|
4575
|
+
r"""<p>图像处理后的jpg图片</p><p>参数格式:url格式</p>
|
|
4576
|
+
:rtype: str
|
|
4577
|
+
"""
|
|
4578
|
+
return self._CroppedImageUrl
|
|
4579
|
+
|
|
4580
|
+
@CroppedImageUrl.setter
|
|
4581
|
+
def CroppedImageUrl(self, CroppedImageUrl):
|
|
4582
|
+
self._CroppedImageUrl = CroppedImageUrl
|
|
4583
|
+
|
|
4570
4584
|
@property
|
|
4571
4585
|
def Position(self):
|
|
4572
4586
|
r"""<p>切图区域的4个角点坐标, 是个长度为8的数组<br>[0,1,2,3,4,5,6,7]</p><p>(0,1) 左上角坐标<br>(2,3) 右上角坐标<br>(4,5) 右下角坐标<br>(6,7) 左下角坐标</p>
|
|
@@ -4606,6 +4620,7 @@ class CropEnhanceImageOCRResponse(AbstractModel):
|
|
|
4606
4620
|
self._CroppedWidth = params.get("CroppedWidth")
|
|
4607
4621
|
self._CroppedHeight = params.get("CroppedHeight")
|
|
4608
4622
|
self._CroppedImage = params.get("CroppedImage")
|
|
4623
|
+
self._CroppedImageUrl = params.get("CroppedImageUrl")
|
|
4609
4624
|
self._Position = params.get("Position")
|
|
4610
4625
|
self._Angle = params.get("Angle")
|
|
4611
4626
|
self._RequestId = params.get("RequestId")
|
|
@@ -5190,6 +5205,135 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5190
5205
|
self._RequestId = params.get("RequestId")
|
|
5191
5206
|
|
|
5192
5207
|
|
|
5208
|
+
class DescribeQuestionSplitJobRequest(AbstractModel):
|
|
5209
|
+
r"""DescribeQuestionSplitJob请求参数结构体
|
|
5210
|
+
|
|
5211
|
+
"""
|
|
5212
|
+
|
|
5213
|
+
def __init__(self):
|
|
5214
|
+
r"""
|
|
5215
|
+
:param _JobId: <p>任务唯一ID。由服务端生成。</p>
|
|
5216
|
+
:type JobId: str
|
|
5217
|
+
"""
|
|
5218
|
+
self._JobId = None
|
|
5219
|
+
|
|
5220
|
+
@property
|
|
5221
|
+
def JobId(self):
|
|
5222
|
+
r"""<p>任务唯一ID。由服务端生成。</p>
|
|
5223
|
+
:rtype: str
|
|
5224
|
+
"""
|
|
5225
|
+
return self._JobId
|
|
5226
|
+
|
|
5227
|
+
@JobId.setter
|
|
5228
|
+
def JobId(self, JobId):
|
|
5229
|
+
self._JobId = JobId
|
|
5230
|
+
|
|
5231
|
+
|
|
5232
|
+
def _deserialize(self, params):
|
|
5233
|
+
self._JobId = params.get("JobId")
|
|
5234
|
+
memeber_set = set(params.keys())
|
|
5235
|
+
for name, value in vars(self).items():
|
|
5236
|
+
property_name = name[1:]
|
|
5237
|
+
if property_name in memeber_set:
|
|
5238
|
+
memeber_set.remove(property_name)
|
|
5239
|
+
if len(memeber_set) > 0:
|
|
5240
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
5241
|
+
|
|
5242
|
+
|
|
5243
|
+
|
|
5244
|
+
class DescribeQuestionSplitJobResponse(AbstractModel):
|
|
5245
|
+
r"""DescribeQuestionSplitJob返回参数结构体
|
|
5246
|
+
|
|
5247
|
+
"""
|
|
5248
|
+
|
|
5249
|
+
def __init__(self):
|
|
5250
|
+
r"""
|
|
5251
|
+
:param _QuestionInfo: <p>切题详情</p>
|
|
5252
|
+
:type QuestionInfo: list of QuestionInfo
|
|
5253
|
+
:param _ErrorCode: <p>任务执行错误码。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5254
|
+
:type ErrorCode: str
|
|
5255
|
+
:param _ErrorMessage: <p>任务执行错误信息。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5256
|
+
:type ErrorMessage: str
|
|
5257
|
+
:param _JobStatus: <p>任务状态。</p><p>枚举值:</p><ul><li>WAIT: 等待中</li><li>RUN: 执行中</li><li>FAIL: 任务失败</li><li>DONE: 任务成功</li></ul>
|
|
5258
|
+
:type JobStatus: str
|
|
5259
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5260
|
+
:type RequestId: str
|
|
5261
|
+
"""
|
|
5262
|
+
self._QuestionInfo = None
|
|
5263
|
+
self._ErrorCode = None
|
|
5264
|
+
self._ErrorMessage = None
|
|
5265
|
+
self._JobStatus = None
|
|
5266
|
+
self._RequestId = None
|
|
5267
|
+
|
|
5268
|
+
@property
|
|
5269
|
+
def QuestionInfo(self):
|
|
5270
|
+
r"""<p>切题详情</p>
|
|
5271
|
+
:rtype: list of QuestionInfo
|
|
5272
|
+
"""
|
|
5273
|
+
return self._QuestionInfo
|
|
5274
|
+
|
|
5275
|
+
@QuestionInfo.setter
|
|
5276
|
+
def QuestionInfo(self, QuestionInfo):
|
|
5277
|
+
self._QuestionInfo = QuestionInfo
|
|
5278
|
+
|
|
5279
|
+
@property
|
|
5280
|
+
def ErrorCode(self):
|
|
5281
|
+
r"""<p>任务执行错误码。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5282
|
+
:rtype: str
|
|
5283
|
+
"""
|
|
5284
|
+
return self._ErrorCode
|
|
5285
|
+
|
|
5286
|
+
@ErrorCode.setter
|
|
5287
|
+
def ErrorCode(self, ErrorCode):
|
|
5288
|
+
self._ErrorCode = ErrorCode
|
|
5289
|
+
|
|
5290
|
+
@property
|
|
5291
|
+
def ErrorMessage(self):
|
|
5292
|
+
r"""<p>任务执行错误信息。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5293
|
+
:rtype: str
|
|
5294
|
+
"""
|
|
5295
|
+
return self._ErrorMessage
|
|
5296
|
+
|
|
5297
|
+
@ErrorMessage.setter
|
|
5298
|
+
def ErrorMessage(self, ErrorMessage):
|
|
5299
|
+
self._ErrorMessage = ErrorMessage
|
|
5300
|
+
|
|
5301
|
+
@property
|
|
5302
|
+
def JobStatus(self):
|
|
5303
|
+
r"""<p>任务状态。</p><p>枚举值:</p><ul><li>WAIT: 等待中</li><li>RUN: 执行中</li><li>FAIL: 任务失败</li><li>DONE: 任务成功</li></ul>
|
|
5304
|
+
:rtype: str
|
|
5305
|
+
"""
|
|
5306
|
+
return self._JobStatus
|
|
5307
|
+
|
|
5308
|
+
@JobStatus.setter
|
|
5309
|
+
def JobStatus(self, JobStatus):
|
|
5310
|
+
self._JobStatus = JobStatus
|
|
5311
|
+
|
|
5312
|
+
@property
|
|
5313
|
+
def RequestId(self):
|
|
5314
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5315
|
+
:rtype: str
|
|
5316
|
+
"""
|
|
5317
|
+
return self._RequestId
|
|
5318
|
+
|
|
5319
|
+
@RequestId.setter
|
|
5320
|
+
def RequestId(self, RequestId):
|
|
5321
|
+
self._RequestId = RequestId
|
|
5322
|
+
|
|
5323
|
+
|
|
5324
|
+
def _deserialize(self, params):
|
|
5325
|
+
if params.get("QuestionInfo") is not None:
|
|
5326
|
+
self._QuestionInfo = []
|
|
5327
|
+
for item in params.get("QuestionInfo"):
|
|
5328
|
+
obj = QuestionInfo()
|
|
5329
|
+
obj._deserialize(item)
|
|
5330
|
+
self._QuestionInfo.append(obj)
|
|
5331
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
5332
|
+
self._ErrorMessage = params.get("ErrorMessage")
|
|
5333
|
+
self._JobStatus = params.get("JobStatus")
|
|
5334
|
+
self._RequestId = params.get("RequestId")
|
|
5335
|
+
|
|
5336
|
+
|
|
5193
5337
|
class DetailInformationOfAirTicketTupleList(AbstractModel):
|
|
5194
5338
|
r"""机票详细信息元组
|
|
5195
5339
|
|
|
@@ -7814,27 +7958,30 @@ class Element(AbstractModel):
|
|
|
7814
7958
|
|
|
7815
7959
|
def __init__(self):
|
|
7816
7960
|
r"""
|
|
7817
|
-
:param _Text:
|
|
7961
|
+
:param _Text: <p>元素内容,当type为figure时该字段内容为图片的位置</p>
|
|
7818
7962
|
:type Text: str
|
|
7819
|
-
:param _Coord:
|
|
7963
|
+
:param _Coord: <p>元素坐标</p>
|
|
7820
7964
|
:type Coord: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
|
7821
|
-
:param _GroupType:
|
|
7965
|
+
:param _GroupType: <p>元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)</p>
|
|
7822
7966
|
:type GroupType: str
|
|
7823
|
-
:param _ResultList:
|
|
7967
|
+
:param _ResultList: <p>结果列表</p>
|
|
7824
7968
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7825
7969
|
:type ResultList: list of ResultList
|
|
7826
|
-
:param _Index:
|
|
7970
|
+
:param _Index: <p>元素索引</p>
|
|
7827
7971
|
:type Index: int
|
|
7972
|
+
:param _PageIndex: <p>元素所在页</p><p>单位:页</p><p>默认值:1</p>
|
|
7973
|
+
:type PageIndex: int
|
|
7828
7974
|
"""
|
|
7829
7975
|
self._Text = None
|
|
7830
7976
|
self._Coord = None
|
|
7831
7977
|
self._GroupType = None
|
|
7832
7978
|
self._ResultList = None
|
|
7833
7979
|
self._Index = None
|
|
7980
|
+
self._PageIndex = None
|
|
7834
7981
|
|
|
7835
7982
|
@property
|
|
7836
7983
|
def Text(self):
|
|
7837
|
-
r"""
|
|
7984
|
+
r"""<p>元素内容,当type为figure时该字段内容为图片的位置</p>
|
|
7838
7985
|
:rtype: str
|
|
7839
7986
|
"""
|
|
7840
7987
|
return self._Text
|
|
@@ -7845,7 +7992,7 @@ class Element(AbstractModel):
|
|
|
7845
7992
|
|
|
7846
7993
|
@property
|
|
7847
7994
|
def Coord(self):
|
|
7848
|
-
r"""
|
|
7995
|
+
r"""<p>元素坐标</p>
|
|
7849
7996
|
:rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
|
7850
7997
|
"""
|
|
7851
7998
|
return self._Coord
|
|
@@ -7856,7 +8003,7 @@ class Element(AbstractModel):
|
|
|
7856
8003
|
|
|
7857
8004
|
@property
|
|
7858
8005
|
def GroupType(self):
|
|
7859
|
-
r"""
|
|
8006
|
+
r"""<p>元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)</p>
|
|
7860
8007
|
:rtype: str
|
|
7861
8008
|
"""
|
|
7862
8009
|
return self._GroupType
|
|
@@ -7867,7 +8014,7 @@ class Element(AbstractModel):
|
|
|
7867
8014
|
|
|
7868
8015
|
@property
|
|
7869
8016
|
def ResultList(self):
|
|
7870
|
-
r"""
|
|
8017
|
+
r"""<p>结果列表</p>
|
|
7871
8018
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
7872
8019
|
:rtype: list of ResultList
|
|
7873
8020
|
"""
|
|
@@ -7879,7 +8026,7 @@ class Element(AbstractModel):
|
|
|
7879
8026
|
|
|
7880
8027
|
@property
|
|
7881
8028
|
def Index(self):
|
|
7882
|
-
r"""
|
|
8029
|
+
r"""<p>元素索引</p>
|
|
7883
8030
|
:rtype: int
|
|
7884
8031
|
"""
|
|
7885
8032
|
return self._Index
|
|
@@ -7888,6 +8035,17 @@ class Element(AbstractModel):
|
|
|
7888
8035
|
def Index(self, Index):
|
|
7889
8036
|
self._Index = Index
|
|
7890
8037
|
|
|
8038
|
+
@property
|
|
8039
|
+
def PageIndex(self):
|
|
8040
|
+
r"""<p>元素所在页</p><p>单位:页</p><p>默认值:1</p>
|
|
8041
|
+
:rtype: int
|
|
8042
|
+
"""
|
|
8043
|
+
return self._PageIndex
|
|
8044
|
+
|
|
8045
|
+
@PageIndex.setter
|
|
8046
|
+
def PageIndex(self, PageIndex):
|
|
8047
|
+
self._PageIndex = PageIndex
|
|
8048
|
+
|
|
7891
8049
|
|
|
7892
8050
|
def _deserialize(self, params):
|
|
7893
8051
|
self._Text = params.get("Text")
|
|
@@ -7902,6 +8060,7 @@ class Element(AbstractModel):
|
|
|
7902
8060
|
obj._deserialize(item)
|
|
7903
8061
|
self._ResultList.append(obj)
|
|
7904
8062
|
self._Index = params.get("Index")
|
|
8063
|
+
self._PageIndex = params.get("PageIndex")
|
|
7905
8064
|
memeber_set = set(params.keys())
|
|
7906
8065
|
for name, value in vars(self).items():
|
|
7907
8066
|
property_name = name[1:]
|
|
@@ -19000,56 +19159,58 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19000
19159
|
|
|
19001
19160
|
def __init__(self):
|
|
19002
19161
|
r"""
|
|
19003
|
-
:param _Title:
|
|
19162
|
+
:param _Title: <p>发票名称</p>
|
|
19004
19163
|
:type Title: str
|
|
19005
|
-
:param _Number:
|
|
19164
|
+
:param _Number: <p>发票号码</p>
|
|
19006
19165
|
:type Number: str
|
|
19007
|
-
:param _Code:
|
|
19166
|
+
:param _Code: <p>发票代码</p>
|
|
19008
19167
|
:type Code: str
|
|
19009
|
-
:param _CheckCode:
|
|
19168
|
+
:param _CheckCode: <p>校验码</p>
|
|
19010
19169
|
:type CheckCode: str
|
|
19011
|
-
:param _Date:
|
|
19170
|
+
:param _Date: <p>开票日期</p>
|
|
19012
19171
|
:type Date: str
|
|
19013
|
-
:param _Total:
|
|
19172
|
+
:param _Total: <p>价税合计(小写)</p>
|
|
19014
19173
|
:type Total: str
|
|
19015
|
-
:param _TotalCn:
|
|
19174
|
+
:param _TotalCn: <p>价税合计(大写)</p>
|
|
19016
19175
|
:type TotalCn: str
|
|
19017
|
-
:param _Buyer:
|
|
19176
|
+
:param _Buyer: <p>交款人名称</p>
|
|
19018
19177
|
:type Buyer: str
|
|
19019
|
-
:param _BuyerTaxID:
|
|
19178
|
+
:param _BuyerTaxID: <p>交款人纳税人识别号</p>
|
|
19020
19179
|
:type BuyerTaxID: str
|
|
19021
|
-
:param _Seller:
|
|
19180
|
+
:param _Seller: <p>收款人名称</p>
|
|
19022
19181
|
:type Seller: str
|
|
19023
|
-
:param _SellerCompany:
|
|
19182
|
+
:param _SellerCompany: <p>收款单位名称</p>
|
|
19024
19183
|
:type SellerCompany: str
|
|
19025
|
-
:param _Remark:
|
|
19184
|
+
:param _Remark: <p>备注</p>
|
|
19026
19185
|
:type Remark: str
|
|
19027
|
-
:param _CurrencyCode:
|
|
19186
|
+
:param _CurrencyCode: <p>币种</p>
|
|
19028
19187
|
:type CurrencyCode: str
|
|
19029
|
-
:param _Reviewer:
|
|
19188
|
+
:param _Reviewer: <p>复核人</p>
|
|
19030
19189
|
:type Reviewer: str
|
|
19031
|
-
:param _QRCodeMark:
|
|
19190
|
+
:param _QRCodeMark: <p>是否存在二维码(1:有,0:无)</p>
|
|
19032
19191
|
:type QRCodeMark: int
|
|
19033
|
-
:param _OtherInfo:
|
|
19192
|
+
:param _OtherInfo: <p>其他信息</p>
|
|
19034
19193
|
:type OtherInfo: str
|
|
19035
|
-
:param _PaymentCode:
|
|
19194
|
+
:param _PaymentCode: <p>缴款码</p>
|
|
19036
19195
|
:type PaymentCode: str
|
|
19037
|
-
:param _ReceiveUnitCode:
|
|
19196
|
+
:param _ReceiveUnitCode: <p>执收单位编码</p>
|
|
19038
19197
|
:type ReceiveUnitCode: str
|
|
19039
|
-
:param _Receiver:
|
|
19198
|
+
:param _Receiver: <p>执收单位名称</p>
|
|
19040
19199
|
:type Receiver: str
|
|
19041
|
-
:param _Operator:
|
|
19200
|
+
:param _Operator: <p>经办人</p>
|
|
19042
19201
|
:type Operator: str
|
|
19043
|
-
:param _PayerAccount:
|
|
19202
|
+
:param _PayerAccount: <p>付款人账号</p>
|
|
19044
19203
|
:type PayerAccount: str
|
|
19045
|
-
:param _PayerBank:
|
|
19204
|
+
:param _PayerBank: <p>付款人开户银行</p>
|
|
19046
19205
|
:type PayerBank: str
|
|
19047
|
-
:param _ReceiverAccount:
|
|
19206
|
+
:param _ReceiverAccount: <p>收款人账号</p>
|
|
19048
19207
|
:type ReceiverAccount: str
|
|
19049
|
-
:param _ReceiverBank:
|
|
19208
|
+
:param _ReceiverBank: <p>收款人开户银行</p>
|
|
19050
19209
|
:type ReceiverBank: str
|
|
19051
|
-
:param _NonTaxItems:
|
|
19210
|
+
:param _NonTaxItems: <p>条目</p>
|
|
19052
19211
|
:type NonTaxItems: list of NonTaxItem
|
|
19212
|
+
:param _BillName: <p>票据名称</p>
|
|
19213
|
+
:type BillName: str
|
|
19053
19214
|
"""
|
|
19054
19215
|
self._Title = None
|
|
19055
19216
|
self._Number = None
|
|
@@ -19076,10 +19237,11 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19076
19237
|
self._ReceiverAccount = None
|
|
19077
19238
|
self._ReceiverBank = None
|
|
19078
19239
|
self._NonTaxItems = None
|
|
19240
|
+
self._BillName = None
|
|
19079
19241
|
|
|
19080
19242
|
@property
|
|
19081
19243
|
def Title(self):
|
|
19082
|
-
r"""
|
|
19244
|
+
r"""<p>发票名称</p>
|
|
19083
19245
|
:rtype: str
|
|
19084
19246
|
"""
|
|
19085
19247
|
return self._Title
|
|
@@ -19090,7 +19252,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19090
19252
|
|
|
19091
19253
|
@property
|
|
19092
19254
|
def Number(self):
|
|
19093
|
-
r"""
|
|
19255
|
+
r"""<p>发票号码</p>
|
|
19094
19256
|
:rtype: str
|
|
19095
19257
|
"""
|
|
19096
19258
|
return self._Number
|
|
@@ -19101,7 +19263,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19101
19263
|
|
|
19102
19264
|
@property
|
|
19103
19265
|
def Code(self):
|
|
19104
|
-
r"""
|
|
19266
|
+
r"""<p>发票代码</p>
|
|
19105
19267
|
:rtype: str
|
|
19106
19268
|
"""
|
|
19107
19269
|
return self._Code
|
|
@@ -19112,7 +19274,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19112
19274
|
|
|
19113
19275
|
@property
|
|
19114
19276
|
def CheckCode(self):
|
|
19115
|
-
r"""
|
|
19277
|
+
r"""<p>校验码</p>
|
|
19116
19278
|
:rtype: str
|
|
19117
19279
|
"""
|
|
19118
19280
|
return self._CheckCode
|
|
@@ -19123,7 +19285,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19123
19285
|
|
|
19124
19286
|
@property
|
|
19125
19287
|
def Date(self):
|
|
19126
|
-
r"""
|
|
19288
|
+
r"""<p>开票日期</p>
|
|
19127
19289
|
:rtype: str
|
|
19128
19290
|
"""
|
|
19129
19291
|
return self._Date
|
|
@@ -19134,7 +19296,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19134
19296
|
|
|
19135
19297
|
@property
|
|
19136
19298
|
def Total(self):
|
|
19137
|
-
r"""
|
|
19299
|
+
r"""<p>价税合计(小写)</p>
|
|
19138
19300
|
:rtype: str
|
|
19139
19301
|
"""
|
|
19140
19302
|
return self._Total
|
|
@@ -19145,7 +19307,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19145
19307
|
|
|
19146
19308
|
@property
|
|
19147
19309
|
def TotalCn(self):
|
|
19148
|
-
r"""
|
|
19310
|
+
r"""<p>价税合计(大写)</p>
|
|
19149
19311
|
:rtype: str
|
|
19150
19312
|
"""
|
|
19151
19313
|
return self._TotalCn
|
|
@@ -19156,7 +19318,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19156
19318
|
|
|
19157
19319
|
@property
|
|
19158
19320
|
def Buyer(self):
|
|
19159
|
-
r"""
|
|
19321
|
+
r"""<p>交款人名称</p>
|
|
19160
19322
|
:rtype: str
|
|
19161
19323
|
"""
|
|
19162
19324
|
return self._Buyer
|
|
@@ -19167,7 +19329,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19167
19329
|
|
|
19168
19330
|
@property
|
|
19169
19331
|
def BuyerTaxID(self):
|
|
19170
|
-
r"""
|
|
19332
|
+
r"""<p>交款人纳税人识别号</p>
|
|
19171
19333
|
:rtype: str
|
|
19172
19334
|
"""
|
|
19173
19335
|
return self._BuyerTaxID
|
|
@@ -19178,7 +19340,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19178
19340
|
|
|
19179
19341
|
@property
|
|
19180
19342
|
def Seller(self):
|
|
19181
|
-
r"""
|
|
19343
|
+
r"""<p>收款人名称</p>
|
|
19182
19344
|
:rtype: str
|
|
19183
19345
|
"""
|
|
19184
19346
|
return self._Seller
|
|
@@ -19189,7 +19351,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19189
19351
|
|
|
19190
19352
|
@property
|
|
19191
19353
|
def SellerCompany(self):
|
|
19192
|
-
r"""
|
|
19354
|
+
r"""<p>收款单位名称</p>
|
|
19193
19355
|
:rtype: str
|
|
19194
19356
|
"""
|
|
19195
19357
|
return self._SellerCompany
|
|
@@ -19200,7 +19362,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19200
19362
|
|
|
19201
19363
|
@property
|
|
19202
19364
|
def Remark(self):
|
|
19203
|
-
r"""
|
|
19365
|
+
r"""<p>备注</p>
|
|
19204
19366
|
:rtype: str
|
|
19205
19367
|
"""
|
|
19206
19368
|
return self._Remark
|
|
@@ -19211,7 +19373,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19211
19373
|
|
|
19212
19374
|
@property
|
|
19213
19375
|
def CurrencyCode(self):
|
|
19214
|
-
r"""
|
|
19376
|
+
r"""<p>币种</p>
|
|
19215
19377
|
:rtype: str
|
|
19216
19378
|
"""
|
|
19217
19379
|
return self._CurrencyCode
|
|
@@ -19222,7 +19384,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19222
19384
|
|
|
19223
19385
|
@property
|
|
19224
19386
|
def Reviewer(self):
|
|
19225
|
-
r"""
|
|
19387
|
+
r"""<p>复核人</p>
|
|
19226
19388
|
:rtype: str
|
|
19227
19389
|
"""
|
|
19228
19390
|
return self._Reviewer
|
|
@@ -19233,7 +19395,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19233
19395
|
|
|
19234
19396
|
@property
|
|
19235
19397
|
def QRCodeMark(self):
|
|
19236
|
-
r"""
|
|
19398
|
+
r"""<p>是否存在二维码(1:有,0:无)</p>
|
|
19237
19399
|
:rtype: int
|
|
19238
19400
|
"""
|
|
19239
19401
|
return self._QRCodeMark
|
|
@@ -19244,7 +19406,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19244
19406
|
|
|
19245
19407
|
@property
|
|
19246
19408
|
def OtherInfo(self):
|
|
19247
|
-
r"""
|
|
19409
|
+
r"""<p>其他信息</p>
|
|
19248
19410
|
:rtype: str
|
|
19249
19411
|
"""
|
|
19250
19412
|
return self._OtherInfo
|
|
@@ -19255,7 +19417,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19255
19417
|
|
|
19256
19418
|
@property
|
|
19257
19419
|
def PaymentCode(self):
|
|
19258
|
-
r"""
|
|
19420
|
+
r"""<p>缴款码</p>
|
|
19259
19421
|
:rtype: str
|
|
19260
19422
|
"""
|
|
19261
19423
|
return self._PaymentCode
|
|
@@ -19266,7 +19428,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19266
19428
|
|
|
19267
19429
|
@property
|
|
19268
19430
|
def ReceiveUnitCode(self):
|
|
19269
|
-
r"""
|
|
19431
|
+
r"""<p>执收单位编码</p>
|
|
19270
19432
|
:rtype: str
|
|
19271
19433
|
"""
|
|
19272
19434
|
return self._ReceiveUnitCode
|
|
@@ -19277,7 +19439,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19277
19439
|
|
|
19278
19440
|
@property
|
|
19279
19441
|
def Receiver(self):
|
|
19280
|
-
r"""
|
|
19442
|
+
r"""<p>执收单位名称</p>
|
|
19281
19443
|
:rtype: str
|
|
19282
19444
|
"""
|
|
19283
19445
|
return self._Receiver
|
|
@@ -19288,7 +19450,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19288
19450
|
|
|
19289
19451
|
@property
|
|
19290
19452
|
def Operator(self):
|
|
19291
|
-
r"""
|
|
19453
|
+
r"""<p>经办人</p>
|
|
19292
19454
|
:rtype: str
|
|
19293
19455
|
"""
|
|
19294
19456
|
return self._Operator
|
|
@@ -19299,7 +19461,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19299
19461
|
|
|
19300
19462
|
@property
|
|
19301
19463
|
def PayerAccount(self):
|
|
19302
|
-
r"""
|
|
19464
|
+
r"""<p>付款人账号</p>
|
|
19303
19465
|
:rtype: str
|
|
19304
19466
|
"""
|
|
19305
19467
|
return self._PayerAccount
|
|
@@ -19310,7 +19472,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19310
19472
|
|
|
19311
19473
|
@property
|
|
19312
19474
|
def PayerBank(self):
|
|
19313
|
-
r"""
|
|
19475
|
+
r"""<p>付款人开户银行</p>
|
|
19314
19476
|
:rtype: str
|
|
19315
19477
|
"""
|
|
19316
19478
|
return self._PayerBank
|
|
@@ -19321,7 +19483,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19321
19483
|
|
|
19322
19484
|
@property
|
|
19323
19485
|
def ReceiverAccount(self):
|
|
19324
|
-
r"""
|
|
19486
|
+
r"""<p>收款人账号</p>
|
|
19325
19487
|
:rtype: str
|
|
19326
19488
|
"""
|
|
19327
19489
|
return self._ReceiverAccount
|
|
@@ -19332,7 +19494,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19332
19494
|
|
|
19333
19495
|
@property
|
|
19334
19496
|
def ReceiverBank(self):
|
|
19335
|
-
r"""
|
|
19497
|
+
r"""<p>收款人开户银行</p>
|
|
19336
19498
|
:rtype: str
|
|
19337
19499
|
"""
|
|
19338
19500
|
return self._ReceiverBank
|
|
@@ -19343,7 +19505,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19343
19505
|
|
|
19344
19506
|
@property
|
|
19345
19507
|
def NonTaxItems(self):
|
|
19346
|
-
r"""
|
|
19508
|
+
r"""<p>条目</p>
|
|
19347
19509
|
:rtype: list of NonTaxItem
|
|
19348
19510
|
"""
|
|
19349
19511
|
return self._NonTaxItems
|
|
@@ -19352,6 +19514,17 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19352
19514
|
def NonTaxItems(self, NonTaxItems):
|
|
19353
19515
|
self._NonTaxItems = NonTaxItems
|
|
19354
19516
|
|
|
19517
|
+
@property
|
|
19518
|
+
def BillName(self):
|
|
19519
|
+
r"""<p>票据名称</p>
|
|
19520
|
+
:rtype: str
|
|
19521
|
+
"""
|
|
19522
|
+
return self._BillName
|
|
19523
|
+
|
|
19524
|
+
@BillName.setter
|
|
19525
|
+
def BillName(self, BillName):
|
|
19526
|
+
self._BillName = BillName
|
|
19527
|
+
|
|
19355
19528
|
|
|
19356
19529
|
def _deserialize(self, params):
|
|
19357
19530
|
self._Title = params.get("Title")
|
|
@@ -19384,6 +19557,7 @@ class NonTaxIncomeBill(AbstractModel):
|
|
|
19384
19557
|
obj = NonTaxItem()
|
|
19385
19558
|
obj._deserialize(item)
|
|
19386
19559
|
self._NonTaxItems.append(obj)
|
|
19560
|
+
self._BillName = params.get("BillName")
|
|
19387
19561
|
memeber_set = set(params.keys())
|
|
19388
19562
|
for name, value in vars(self).items():
|
|
19389
19563
|
property_name = name[1:]
|
|
@@ -26646,26 +26820,28 @@ class ResultList(AbstractModel):
|
|
|
26646
26820
|
|
|
26647
26821
|
def __init__(self):
|
|
26648
26822
|
r"""
|
|
26649
|
-
:param _Question:
|
|
26823
|
+
:param _Question: <p>题干</p>
|
|
26650
26824
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26651
26825
|
:type Question: list of Element
|
|
26652
|
-
:param _Option:
|
|
26826
|
+
:param _Option: <p>选项</p>
|
|
26653
26827
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26654
26828
|
:type Option: list of Element
|
|
26655
|
-
:param _Figure:
|
|
26829
|
+
:param _Figure: <p>插图</p>
|
|
26656
26830
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26657
26831
|
:type Figure: list of Element
|
|
26658
|
-
:param _Table:
|
|
26832
|
+
:param _Table: <p>表格</p>
|
|
26659
26833
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26660
26834
|
:type Table: list of Element
|
|
26661
|
-
:param _Answer:
|
|
26835
|
+
:param _Answer: <p>答案</p>
|
|
26662
26836
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26663
26837
|
:type Answer: list of Element
|
|
26664
|
-
:param _Parse:
|
|
26838
|
+
:param _Parse: <p>解析</p>
|
|
26665
26839
|
:type Parse: list of Element
|
|
26666
|
-
:param _Coord:
|
|
26840
|
+
:param _Coord: <p>整题的坐标,多页单题跨页/单页单题跨栏场景下,存在一道题有多个坐标</p>
|
|
26667
26841
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26668
26842
|
:type Coord: list of Polygon
|
|
26843
|
+
:param _CoordPageIndex: <p>多坐标返回,显示坐标所在页</p><p>默认值:[]</p>
|
|
26844
|
+
:type CoordPageIndex: list of int
|
|
26669
26845
|
"""
|
|
26670
26846
|
self._Question = None
|
|
26671
26847
|
self._Option = None
|
|
@@ -26674,10 +26850,11 @@ class ResultList(AbstractModel):
|
|
|
26674
26850
|
self._Answer = None
|
|
26675
26851
|
self._Parse = None
|
|
26676
26852
|
self._Coord = None
|
|
26853
|
+
self._CoordPageIndex = None
|
|
26677
26854
|
|
|
26678
26855
|
@property
|
|
26679
26856
|
def Question(self):
|
|
26680
|
-
r"""
|
|
26857
|
+
r"""<p>题干</p>
|
|
26681
26858
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26682
26859
|
:rtype: list of Element
|
|
26683
26860
|
"""
|
|
@@ -26689,7 +26866,7 @@ class ResultList(AbstractModel):
|
|
|
26689
26866
|
|
|
26690
26867
|
@property
|
|
26691
26868
|
def Option(self):
|
|
26692
|
-
r"""
|
|
26869
|
+
r"""<p>选项</p>
|
|
26693
26870
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26694
26871
|
:rtype: list of Element
|
|
26695
26872
|
"""
|
|
@@ -26701,7 +26878,7 @@ class ResultList(AbstractModel):
|
|
|
26701
26878
|
|
|
26702
26879
|
@property
|
|
26703
26880
|
def Figure(self):
|
|
26704
|
-
r"""
|
|
26881
|
+
r"""<p>插图</p>
|
|
26705
26882
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26706
26883
|
:rtype: list of Element
|
|
26707
26884
|
"""
|
|
@@ -26713,7 +26890,7 @@ class ResultList(AbstractModel):
|
|
|
26713
26890
|
|
|
26714
26891
|
@property
|
|
26715
26892
|
def Table(self):
|
|
26716
|
-
r"""
|
|
26893
|
+
r"""<p>表格</p>
|
|
26717
26894
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26718
26895
|
:rtype: list of Element
|
|
26719
26896
|
"""
|
|
@@ -26725,7 +26902,7 @@ class ResultList(AbstractModel):
|
|
|
26725
26902
|
|
|
26726
26903
|
@property
|
|
26727
26904
|
def Answer(self):
|
|
26728
|
-
r"""
|
|
26905
|
+
r"""<p>答案</p>
|
|
26729
26906
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26730
26907
|
:rtype: list of Element
|
|
26731
26908
|
"""
|
|
@@ -26737,7 +26914,7 @@ class ResultList(AbstractModel):
|
|
|
26737
26914
|
|
|
26738
26915
|
@property
|
|
26739
26916
|
def Parse(self):
|
|
26740
|
-
r"""
|
|
26917
|
+
r"""<p>解析</p>
|
|
26741
26918
|
:rtype: list of Element
|
|
26742
26919
|
"""
|
|
26743
26920
|
return self._Parse
|
|
@@ -26748,7 +26925,7 @@ class ResultList(AbstractModel):
|
|
|
26748
26925
|
|
|
26749
26926
|
@property
|
|
26750
26927
|
def Coord(self):
|
|
26751
|
-
r"""
|
|
26928
|
+
r"""<p>整题的坐标,多页单题跨页/单页单题跨栏场景下,存在一道题有多个坐标</p>
|
|
26752
26929
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
26753
26930
|
:rtype: list of Polygon
|
|
26754
26931
|
"""
|
|
@@ -26758,6 +26935,17 @@ class ResultList(AbstractModel):
|
|
|
26758
26935
|
def Coord(self, Coord):
|
|
26759
26936
|
self._Coord = Coord
|
|
26760
26937
|
|
|
26938
|
+
@property
|
|
26939
|
+
def CoordPageIndex(self):
|
|
26940
|
+
r"""<p>多坐标返回,显示坐标所在页</p><p>默认值:[]</p>
|
|
26941
|
+
:rtype: list of int
|
|
26942
|
+
"""
|
|
26943
|
+
return self._CoordPageIndex
|
|
26944
|
+
|
|
26945
|
+
@CoordPageIndex.setter
|
|
26946
|
+
def CoordPageIndex(self, CoordPageIndex):
|
|
26947
|
+
self._CoordPageIndex = CoordPageIndex
|
|
26948
|
+
|
|
26761
26949
|
|
|
26762
26950
|
def _deserialize(self, params):
|
|
26763
26951
|
if params.get("Question") is not None:
|
|
@@ -26802,6 +26990,7 @@ class ResultList(AbstractModel):
|
|
|
26802
26990
|
obj = Polygon()
|
|
26803
26991
|
obj._deserialize(item)
|
|
26804
26992
|
self._Coord.append(obj)
|
|
26993
|
+
self._CoordPageIndex = params.get("CoordPageIndex")
|
|
26805
26994
|
memeber_set = set(params.keys())
|
|
26806
26995
|
for name, value in vars(self).items():
|
|
26807
26996
|
property_name = name[1:]
|
|
@@ -29745,6 +29934,130 @@ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
29745
29934
|
self._RequestId = params.get("RequestId")
|
|
29746
29935
|
|
|
29747
29936
|
|
|
29937
|
+
class SubmitQuestionSplitJobRequest(AbstractModel):
|
|
29938
|
+
r"""SubmitQuestionSplitJob请求参数结构体
|
|
29939
|
+
|
|
29940
|
+
"""
|
|
29941
|
+
|
|
29942
|
+
def __init__(self):
|
|
29943
|
+
r"""
|
|
29944
|
+
:param _ImageUrlList: <p>批量ImageUrl图片入口。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p><p>入参限制:要求pdf只能有一个url或base64</p>
|
|
29945
|
+
:type ImageUrlList: list of str
|
|
29946
|
+
:param _ImageBase64List: <p>批量base64图片入口。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p><p>入参限制:要求pdf只能有一个url或base64</p>
|
|
29947
|
+
:type ImageBase64List: list of str
|
|
29948
|
+
:param _ModelType: <p>选择切题模型</p><p>枚举值:</p><ul><li>youtu_crop: 轻量化切题模型,运算速度更快,适合常规切题</li><li>youtu_crop_pro: 属于切题精调大模型,针对双栏、跨栏等复杂版式识别精度大幅提升,但推理耗时更长</li></ul><p>默认值:youtu_crop</p>
|
|
29949
|
+
:type ModelType: str
|
|
29950
|
+
"""
|
|
29951
|
+
self._ImageUrlList = None
|
|
29952
|
+
self._ImageBase64List = None
|
|
29953
|
+
self._ModelType = None
|
|
29954
|
+
|
|
29955
|
+
@property
|
|
29956
|
+
def ImageUrlList(self):
|
|
29957
|
+
r"""<p>批量ImageUrl图片入口。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p><p>入参限制:要求pdf只能有一个url或base64</p>
|
|
29958
|
+
:rtype: list of str
|
|
29959
|
+
"""
|
|
29960
|
+
return self._ImageUrlList
|
|
29961
|
+
|
|
29962
|
+
@ImageUrlList.setter
|
|
29963
|
+
def ImageUrlList(self, ImageUrlList):
|
|
29964
|
+
self._ImageUrlList = ImageUrlList
|
|
29965
|
+
|
|
29966
|
+
@property
|
|
29967
|
+
def ImageBase64List(self):
|
|
29968
|
+
r"""<p>批量base64图片入口。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p><p>入参限制:要求pdf只能有一个url或base64</p>
|
|
29969
|
+
:rtype: list of str
|
|
29970
|
+
"""
|
|
29971
|
+
return self._ImageBase64List
|
|
29972
|
+
|
|
29973
|
+
@ImageBase64List.setter
|
|
29974
|
+
def ImageBase64List(self, ImageBase64List):
|
|
29975
|
+
self._ImageBase64List = ImageBase64List
|
|
29976
|
+
|
|
29977
|
+
@property
|
|
29978
|
+
def ModelType(self):
|
|
29979
|
+
r"""<p>选择切题模型</p><p>枚举值:</p><ul><li>youtu_crop: 轻量化切题模型,运算速度更快,适合常规切题</li><li>youtu_crop_pro: 属于切题精调大模型,针对双栏、跨栏等复杂版式识别精度大幅提升,但推理耗时更长</li></ul><p>默认值:youtu_crop</p>
|
|
29980
|
+
:rtype: str
|
|
29981
|
+
"""
|
|
29982
|
+
return self._ModelType
|
|
29983
|
+
|
|
29984
|
+
@ModelType.setter
|
|
29985
|
+
def ModelType(self, ModelType):
|
|
29986
|
+
self._ModelType = ModelType
|
|
29987
|
+
|
|
29988
|
+
|
|
29989
|
+
def _deserialize(self, params):
|
|
29990
|
+
self._ImageUrlList = params.get("ImageUrlList")
|
|
29991
|
+
self._ImageBase64List = params.get("ImageBase64List")
|
|
29992
|
+
self._ModelType = params.get("ModelType")
|
|
29993
|
+
memeber_set = set(params.keys())
|
|
29994
|
+
for name, value in vars(self).items():
|
|
29995
|
+
property_name = name[1:]
|
|
29996
|
+
if property_name in memeber_set:
|
|
29997
|
+
memeber_set.remove(property_name)
|
|
29998
|
+
if len(memeber_set) > 0:
|
|
29999
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30000
|
+
|
|
30001
|
+
|
|
30002
|
+
|
|
30003
|
+
class SubmitQuestionSplitJobResponse(AbstractModel):
|
|
30004
|
+
r"""SubmitQuestionSplitJob返回参数结构体
|
|
30005
|
+
|
|
30006
|
+
"""
|
|
30007
|
+
|
|
30008
|
+
def __init__(self):
|
|
30009
|
+
r"""
|
|
30010
|
+
:param _JobId: <p>任务唯一ID。由服务端生成。</p>
|
|
30011
|
+
:type JobId: str
|
|
30012
|
+
:param _ImageZipUrl: <p>PDF 转完之后的图片压缩包列表地址。</p>
|
|
30013
|
+
:type ImageZipUrl: str
|
|
30014
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30015
|
+
:type RequestId: str
|
|
30016
|
+
"""
|
|
30017
|
+
self._JobId = None
|
|
30018
|
+
self._ImageZipUrl = None
|
|
30019
|
+
self._RequestId = None
|
|
30020
|
+
|
|
30021
|
+
@property
|
|
30022
|
+
def JobId(self):
|
|
30023
|
+
r"""<p>任务唯一ID。由服务端生成。</p>
|
|
30024
|
+
:rtype: str
|
|
30025
|
+
"""
|
|
30026
|
+
return self._JobId
|
|
30027
|
+
|
|
30028
|
+
@JobId.setter
|
|
30029
|
+
def JobId(self, JobId):
|
|
30030
|
+
self._JobId = JobId
|
|
30031
|
+
|
|
30032
|
+
@property
|
|
30033
|
+
def ImageZipUrl(self):
|
|
30034
|
+
r"""<p>PDF 转完之后的图片压缩包列表地址。</p>
|
|
30035
|
+
:rtype: str
|
|
30036
|
+
"""
|
|
30037
|
+
return self._ImageZipUrl
|
|
30038
|
+
|
|
30039
|
+
@ImageZipUrl.setter
|
|
30040
|
+
def ImageZipUrl(self, ImageZipUrl):
|
|
30041
|
+
self._ImageZipUrl = ImageZipUrl
|
|
30042
|
+
|
|
30043
|
+
@property
|
|
30044
|
+
def RequestId(self):
|
|
30045
|
+
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30046
|
+
:rtype: str
|
|
30047
|
+
"""
|
|
30048
|
+
return self._RequestId
|
|
30049
|
+
|
|
30050
|
+
@RequestId.setter
|
|
30051
|
+
def RequestId(self, RequestId):
|
|
30052
|
+
self._RequestId = RequestId
|
|
30053
|
+
|
|
30054
|
+
|
|
30055
|
+
def _deserialize(self, params):
|
|
30056
|
+
self._JobId = params.get("JobId")
|
|
30057
|
+
self._ImageZipUrl = params.get("ImageZipUrl")
|
|
30058
|
+
self._RequestId = params.get("RequestId")
|
|
30059
|
+
|
|
30060
|
+
|
|
29748
30061
|
class TableCell(AbstractModel):
|
|
29749
30062
|
r"""单元格数据
|
|
29750
30063
|
|
|
@@ -35396,6 +35709,8 @@ class VatElectronicItemInfo(AbstractModel):
|
|
|
35396
35709
|
:type DateStart: str
|
|
35397
35710
|
:param _DateEnd: <p>通行日期止</p>
|
|
35398
35711
|
:type DateEnd: str
|
|
35712
|
+
:param _VinNo: <p>车架号</p>
|
|
35713
|
+
:type VinNo: str
|
|
35399
35714
|
"""
|
|
35400
35715
|
self._Name = None
|
|
35401
35716
|
self._Quantity = None
|
|
@@ -35420,6 +35735,7 @@ class VatElectronicItemInfo(AbstractModel):
|
|
|
35420
35735
|
self._TravelLevel = None
|
|
35421
35736
|
self._DateStart = None
|
|
35422
35737
|
self._DateEnd = None
|
|
35738
|
+
self._VinNo = None
|
|
35423
35739
|
|
|
35424
35740
|
@property
|
|
35425
35741
|
def Name(self):
|
|
@@ -35674,6 +35990,17 @@ class VatElectronicItemInfo(AbstractModel):
|
|
|
35674
35990
|
def DateEnd(self, DateEnd):
|
|
35675
35991
|
self._DateEnd = DateEnd
|
|
35676
35992
|
|
|
35993
|
+
@property
|
|
35994
|
+
def VinNo(self):
|
|
35995
|
+
r"""<p>车架号</p>
|
|
35996
|
+
:rtype: str
|
|
35997
|
+
"""
|
|
35998
|
+
return self._VinNo
|
|
35999
|
+
|
|
36000
|
+
@VinNo.setter
|
|
36001
|
+
def VinNo(self, VinNo):
|
|
36002
|
+
self._VinNo = VinNo
|
|
36003
|
+
|
|
35677
36004
|
|
|
35678
36005
|
def _deserialize(self, params):
|
|
35679
36006
|
self._Name = params.get("Name")
|
|
@@ -35699,6 +36026,7 @@ class VatElectronicItemInfo(AbstractModel):
|
|
|
35699
36026
|
self._TravelLevel = params.get("TravelLevel")
|
|
35700
36027
|
self._DateStart = params.get("DateStart")
|
|
35701
36028
|
self._DateEnd = params.get("DateEnd")
|
|
36029
|
+
self._VinNo = params.get("VinNo")
|
|
35702
36030
|
memeber_set = set(params.keys())
|
|
35703
36031
|
for name, value in vars(self).items():
|
|
35704
36032
|
property_name = name[1:]
|
|
@@ -348,6 +348,29 @@ class OcrClient(AbstractClient):
|
|
|
348
348
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
349
349
|
|
|
350
350
|
|
|
351
|
+
def DescribeQuestionSplitJob(self, request):
|
|
352
|
+
r"""异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
|
|
353
|
+
|
|
354
|
+
:param request: Request instance for DescribeQuestionSplitJob.
|
|
355
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.DescribeQuestionSplitJobRequest`
|
|
356
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.DescribeQuestionSplitJobResponse`
|
|
357
|
+
|
|
358
|
+
"""
|
|
359
|
+
try:
|
|
360
|
+
params = request._serialize()
|
|
361
|
+
headers = request.headers
|
|
362
|
+
body = self.call("DescribeQuestionSplitJob", params, headers=headers)
|
|
363
|
+
response = json.loads(body)
|
|
364
|
+
model = models.DescribeQuestionSplitJobResponse()
|
|
365
|
+
model._deserialize(response["Response"])
|
|
366
|
+
return model
|
|
367
|
+
except Exception as e:
|
|
368
|
+
if isinstance(e, TencentCloudSDKException):
|
|
369
|
+
raise
|
|
370
|
+
else:
|
|
371
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
372
|
+
|
|
373
|
+
|
|
351
374
|
def DriverLicenseOCR(self, request):
|
|
352
375
|
r"""本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
|
|
353
376
|
|
|
@@ -2109,6 +2132,29 @@ class OcrClient(AbstractClient):
|
|
|
2109
2132
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2110
2133
|
|
|
2111
2134
|
|
|
2135
|
+
def SubmitQuestionSplitJob(self, request):
|
|
2136
|
+
r"""异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
|
|
2137
|
+
|
|
2138
|
+
:param request: Request instance for SubmitQuestionSplitJob.
|
|
2139
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.SubmitQuestionSplitJobRequest`
|
|
2140
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.SubmitQuestionSplitJobResponse`
|
|
2141
|
+
|
|
2142
|
+
"""
|
|
2143
|
+
try:
|
|
2144
|
+
params = request._serialize()
|
|
2145
|
+
headers = request.headers
|
|
2146
|
+
body = self.call("SubmitQuestionSplitJob", params, headers=headers)
|
|
2147
|
+
response = json.loads(body)
|
|
2148
|
+
model = models.SubmitQuestionSplitJobResponse()
|
|
2149
|
+
model._deserialize(response["Response"])
|
|
2150
|
+
return model
|
|
2151
|
+
except Exception as e:
|
|
2152
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2153
|
+
raise
|
|
2154
|
+
else:
|
|
2155
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2156
|
+
|
|
2157
|
+
|
|
2112
2158
|
def TableOCR(self, request):
|
|
2113
2159
|
r"""<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
|
|
2114
2160
|
|
|
@@ -282,6 +282,24 @@ class OcrClient(AbstractClient):
|
|
|
282
282
|
|
|
283
283
|
return await self.call_and_deserialize(**kwargs)
|
|
284
284
|
|
|
285
|
+
async def DescribeQuestionSplitJob(
|
|
286
|
+
self,
|
|
287
|
+
request: models.DescribeQuestionSplitJobRequest,
|
|
288
|
+
opts: Dict = None,
|
|
289
|
+
) -> models.DescribeQuestionSplitJobResponse:
|
|
290
|
+
"""
|
|
291
|
+
异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
|
|
292
|
+
"""
|
|
293
|
+
|
|
294
|
+
kwargs = {}
|
|
295
|
+
kwargs["action"] = "DescribeQuestionSplitJob"
|
|
296
|
+
kwargs["params"] = request._serialize()
|
|
297
|
+
kwargs["resp_cls"] = models.DescribeQuestionSplitJobResponse
|
|
298
|
+
kwargs["headers"] = request.headers
|
|
299
|
+
kwargs["opts"] = opts or {}
|
|
300
|
+
|
|
301
|
+
return await self.call_and_deserialize(**kwargs)
|
|
302
|
+
|
|
285
303
|
async def DriverLicenseOCR(
|
|
286
304
|
self,
|
|
287
305
|
request: models.DriverLicenseOCRRequest,
|
|
@@ -1788,6 +1806,24 @@ class OcrClient(AbstractClient):
|
|
|
1788
1806
|
|
|
1789
1807
|
return await self.call_and_deserialize(**kwargs)
|
|
1790
1808
|
|
|
1809
|
+
async def SubmitQuestionSplitJob(
|
|
1810
|
+
self,
|
|
1811
|
+
request: models.SubmitQuestionSplitJobRequest,
|
|
1812
|
+
opts: Dict = None,
|
|
1813
|
+
) -> models.SubmitQuestionSplitJobResponse:
|
|
1814
|
+
"""
|
|
1815
|
+
异步试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,是试卷切题的接口补充。主要解决试卷录题这类多页场景、单题跨页场景。需要 SubmitQuestionSplitOCRJob(提交任务)、DescribeQuestionSplitOCRJob(查询任务)两个接口配套使用,计费发生在提交任务后。
|
|
1816
|
+
"""
|
|
1817
|
+
|
|
1818
|
+
kwargs = {}
|
|
1819
|
+
kwargs["action"] = "SubmitQuestionSplitJob"
|
|
1820
|
+
kwargs["params"] = request._serialize()
|
|
1821
|
+
kwargs["resp_cls"] = models.SubmitQuestionSplitJobResponse
|
|
1822
|
+
kwargs["headers"] = request.headers
|
|
1823
|
+
kwargs["opts"] = opts or {}
|
|
1824
|
+
|
|
1825
|
+
return await self.call_and_deserialize(**kwargs)
|
|
1826
|
+
|
|
1791
1827
|
async def TableOCR(
|
|
1792
1828
|
self,
|
|
1793
1829
|
request: models.TableOCRRequest,
|
|
@@ -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.169
|
|
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.169
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=HnDCMRL5mci0tPT3Sl0Qh_d1hIggRW83QOx62CbPrW8,630
|
|
2
|
+
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
+
tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=7tofJMA8cX-XPSKSRzykx0J1CPSiqxuqk86ii2ONshQ,1381920
|
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=MZX3O0TX_12XtVKVOtA1-2fs0KhOCkJ7LAoo2rpW2Ng,118356
|
|
7
|
+
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=aq83FVT5UoXQ_cwNp5_FHaqcrUXqgPdCmwVI4OA0r30,94327
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.169.dist-info/METADATA,sha256=MBLMrechdJUubmmTQxch0R8N2G9geA4eHjEkijFi-Zc,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.169.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.169.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.169.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=20xUQIfgKYD89TG9v9zxe7TCqwW9_qjtK63BxRvuucw,630
|
|
2
|
-
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
4
|
-
tencentcloud/ocr/v20181119/errorcodes.py,sha256=JIZv0T7mSsIMfQKdQjHDSsF8oW-b9rJTZovBM5qM9xU,7187
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=ByELDs6dteWGzu4u_1NLCR8SmLZg8oGedHV9p43ChEE,1368783
|
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=ZabsztKSo-Wr7q92zk0c73F9LZI-1Aa--SZ1KPQb37Y,115772
|
|
7
|
-
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=t3sEKg7Mebi8piK1TTcVDnNQxVnp0YRil-tPvmtctJ0,92353
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.162.dist-info/METADATA,sha256=PMkdvaTUqkvUTkO6Tq2UwF1T0SvVp0yXto7iv2bUYVo,1497
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.162.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.162.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.162.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|