tencentcloud-sdk-python-ocr 3.0.1323__tar.gz → 3.0.1324__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.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/setup.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud/ocr/v20181119/models.py +158 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-ocr-3.0.1324/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-ocr-3.0.1323/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/README.rst +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/setup.cfg +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-ocr-3.0.1323 → tencentcloud-sdk-python-ocr-3.0.1324}/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.1324"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Ocr SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -4271,6 +4271,62 @@ class CreateAIFormTaskResponse(AbstractModel):
|
|
|
4271
4271
|
self._RequestId = params.get("RequestId")
|
|
4272
4272
|
|
|
4273
4273
|
|
|
4274
|
+
class CustomsPaymentReceipt(AbstractModel):
|
|
4275
|
+
"""海关缴款书
|
|
4276
|
+
|
|
4277
|
+
"""
|
|
4278
|
+
|
|
4279
|
+
def __init__(self):
|
|
4280
|
+
r"""
|
|
4281
|
+
:param _Title: 发票名称
|
|
4282
|
+
:type Title: str
|
|
4283
|
+
:param _Content: 识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号
|
|
4284
|
+
:type Content: list of OtherInvoiceItem
|
|
4285
|
+
"""
|
|
4286
|
+
self._Title = None
|
|
4287
|
+
self._Content = None
|
|
4288
|
+
|
|
4289
|
+
@property
|
|
4290
|
+
def Title(self):
|
|
4291
|
+
"""发票名称
|
|
4292
|
+
:rtype: str
|
|
4293
|
+
"""
|
|
4294
|
+
return self._Title
|
|
4295
|
+
|
|
4296
|
+
@Title.setter
|
|
4297
|
+
def Title(self, Title):
|
|
4298
|
+
self._Title = Title
|
|
4299
|
+
|
|
4300
|
+
@property
|
|
4301
|
+
def Content(self):
|
|
4302
|
+
"""识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号
|
|
4303
|
+
:rtype: list of OtherInvoiceItem
|
|
4304
|
+
"""
|
|
4305
|
+
return self._Content
|
|
4306
|
+
|
|
4307
|
+
@Content.setter
|
|
4308
|
+
def Content(self, Content):
|
|
4309
|
+
self._Content = Content
|
|
4310
|
+
|
|
4311
|
+
|
|
4312
|
+
def _deserialize(self, params):
|
|
4313
|
+
self._Title = params.get("Title")
|
|
4314
|
+
if params.get("Content") is not None:
|
|
4315
|
+
self._Content = []
|
|
4316
|
+
for item in params.get("Content"):
|
|
4317
|
+
obj = OtherInvoiceItem()
|
|
4318
|
+
obj._deserialize(item)
|
|
4319
|
+
self._Content.append(obj)
|
|
4320
|
+
memeber_set = set(params.keys())
|
|
4321
|
+
for name, value in vars(self).items():
|
|
4322
|
+
property_name = name[1:]
|
|
4323
|
+
if property_name in memeber_set:
|
|
4324
|
+
memeber_set.remove(property_name)
|
|
4325
|
+
if len(memeber_set) > 0:
|
|
4326
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4327
|
+
|
|
4328
|
+
|
|
4329
|
+
|
|
4274
4330
|
class DetailInformationOfAirTicketTupleList(AbstractModel):
|
|
4275
4331
|
"""机票详细信息元组
|
|
4276
4332
|
|
|
@@ -14327,6 +14383,8 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
|
14327
14383
|
15:非税发票
|
|
14328
14384
|
16:全电发票
|
|
14329
14385
|
17:医疗发票
|
|
14386
|
+
18:完税凭证
|
|
14387
|
+
19:海关缴款书
|
|
14330
14388
|
:type Type: int
|
|
14331
14389
|
:param _Polygon: 该发票在原图片中的四点坐标。
|
|
14332
14390
|
:type Polygon: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
|
@@ -14391,6 +14449,8 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
|
14391
14449
|
15:非税发票
|
|
14392
14450
|
16:全电发票
|
|
14393
14451
|
17:医疗发票
|
|
14452
|
+
18:完税凭证
|
|
14453
|
+
19:海关缴款书
|
|
14394
14454
|
:rtype: int
|
|
14395
14455
|
"""
|
|
14396
14456
|
return self._Type
|
|
@@ -29054,6 +29114,12 @@ class SingleInvoiceItem(AbstractModel):
|
|
|
29054
29114
|
:param _ElectronicFlightTicketFull: 电子发票(机票行程单)
|
|
29055
29115
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
29056
29116
|
:type ElectronicFlightTicketFull: :class:`tencentcloud.ocr.v20181119.models.ElectronicFlightTicketFull`
|
|
29117
|
+
:param _TaxPayment: 完税凭证
|
|
29118
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
29119
|
+
:type TaxPayment: :class:`tencentcloud.ocr.v20181119.models.TaxPayment`
|
|
29120
|
+
:param _CustomsPaymentReceipt: 海关缴款
|
|
29121
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
29122
|
+
:type CustomsPaymentReceipt: :class:`tencentcloud.ocr.v20181119.models.CustomsPaymentReceipt`
|
|
29057
29123
|
"""
|
|
29058
29124
|
self._VatSpecialInvoice = None
|
|
29059
29125
|
self._VatCommonInvoice = None
|
|
@@ -29082,6 +29148,8 @@ class SingleInvoiceItem(AbstractModel):
|
|
|
29082
29148
|
self._VatSalesList = None
|
|
29083
29149
|
self._ElectronicTrainTicketFull = None
|
|
29084
29150
|
self._ElectronicFlightTicketFull = None
|
|
29151
|
+
self._TaxPayment = None
|
|
29152
|
+
self._CustomsPaymentReceipt = None
|
|
29085
29153
|
|
|
29086
29154
|
@property
|
|
29087
29155
|
def VatSpecialInvoice(self):
|
|
@@ -29407,6 +29475,30 @@ class SingleInvoiceItem(AbstractModel):
|
|
|
29407
29475
|
def ElectronicFlightTicketFull(self, ElectronicFlightTicketFull):
|
|
29408
29476
|
self._ElectronicFlightTicketFull = ElectronicFlightTicketFull
|
|
29409
29477
|
|
|
29478
|
+
@property
|
|
29479
|
+
def TaxPayment(self):
|
|
29480
|
+
"""完税凭证
|
|
29481
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
29482
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.TaxPayment`
|
|
29483
|
+
"""
|
|
29484
|
+
return self._TaxPayment
|
|
29485
|
+
|
|
29486
|
+
@TaxPayment.setter
|
|
29487
|
+
def TaxPayment(self, TaxPayment):
|
|
29488
|
+
self._TaxPayment = TaxPayment
|
|
29489
|
+
|
|
29490
|
+
@property
|
|
29491
|
+
def CustomsPaymentReceipt(self):
|
|
29492
|
+
"""海关缴款
|
|
29493
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
29494
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.CustomsPaymentReceipt`
|
|
29495
|
+
"""
|
|
29496
|
+
return self._CustomsPaymentReceipt
|
|
29497
|
+
|
|
29498
|
+
@CustomsPaymentReceipt.setter
|
|
29499
|
+
def CustomsPaymentReceipt(self, CustomsPaymentReceipt):
|
|
29500
|
+
self._CustomsPaymentReceipt = CustomsPaymentReceipt
|
|
29501
|
+
|
|
29410
29502
|
|
|
29411
29503
|
def _deserialize(self, params):
|
|
29412
29504
|
if params.get("VatSpecialInvoice") is not None:
|
|
@@ -29490,6 +29582,12 @@ class SingleInvoiceItem(AbstractModel):
|
|
|
29490
29582
|
if params.get("ElectronicFlightTicketFull") is not None:
|
|
29491
29583
|
self._ElectronicFlightTicketFull = ElectronicFlightTicketFull()
|
|
29492
29584
|
self._ElectronicFlightTicketFull._deserialize(params.get("ElectronicFlightTicketFull"))
|
|
29585
|
+
if params.get("TaxPayment") is not None:
|
|
29586
|
+
self._TaxPayment = TaxPayment()
|
|
29587
|
+
self._TaxPayment._deserialize(params.get("TaxPayment"))
|
|
29588
|
+
if params.get("CustomsPaymentReceipt") is not None:
|
|
29589
|
+
self._CustomsPaymentReceipt = CustomsPaymentReceipt()
|
|
29590
|
+
self._CustomsPaymentReceipt._deserialize(params.get("CustomsPaymentReceipt"))
|
|
29493
29591
|
memeber_set = set(params.keys())
|
|
29494
29592
|
for name, value in vars(self).items():
|
|
29495
29593
|
property_name = name[1:]
|
|
@@ -31073,6 +31171,66 @@ class TableTitle(AbstractModel):
|
|
|
31073
31171
|
|
|
31074
31172
|
|
|
31075
31173
|
|
|
31174
|
+
class TaxPayment(AbstractModel):
|
|
31175
|
+
"""完税凭证
|
|
31176
|
+
|
|
31177
|
+
"""
|
|
31178
|
+
|
|
31179
|
+
def __init__(self):
|
|
31180
|
+
r"""
|
|
31181
|
+
:param _Title: 发票名称
|
|
31182
|
+
:type Title: str
|
|
31183
|
+
:param _Content: 识别出的字段名称(关键字),支持以下字段:
|
|
31184
|
+
税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
|
31185
|
+
示例值:纳税人识别号
|
|
31186
|
+
:type Content: list of OtherInvoiceItem
|
|
31187
|
+
"""
|
|
31188
|
+
self._Title = None
|
|
31189
|
+
self._Content = None
|
|
31190
|
+
|
|
31191
|
+
@property
|
|
31192
|
+
def Title(self):
|
|
31193
|
+
"""发票名称
|
|
31194
|
+
:rtype: str
|
|
31195
|
+
"""
|
|
31196
|
+
return self._Title
|
|
31197
|
+
|
|
31198
|
+
@Title.setter
|
|
31199
|
+
def Title(self, Title):
|
|
31200
|
+
self._Title = Title
|
|
31201
|
+
|
|
31202
|
+
@property
|
|
31203
|
+
def Content(self):
|
|
31204
|
+
"""识别出的字段名称(关键字),支持以下字段:
|
|
31205
|
+
税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
|
31206
|
+
示例值:纳税人识别号
|
|
31207
|
+
:rtype: list of OtherInvoiceItem
|
|
31208
|
+
"""
|
|
31209
|
+
return self._Content
|
|
31210
|
+
|
|
31211
|
+
@Content.setter
|
|
31212
|
+
def Content(self, Content):
|
|
31213
|
+
self._Content = Content
|
|
31214
|
+
|
|
31215
|
+
|
|
31216
|
+
def _deserialize(self, params):
|
|
31217
|
+
self._Title = params.get("Title")
|
|
31218
|
+
if params.get("Content") is not None:
|
|
31219
|
+
self._Content = []
|
|
31220
|
+
for item in params.get("Content"):
|
|
31221
|
+
obj = OtherInvoiceItem()
|
|
31222
|
+
obj._deserialize(item)
|
|
31223
|
+
self._Content.append(obj)
|
|
31224
|
+
memeber_set = set(params.keys())
|
|
31225
|
+
for name, value in vars(self).items():
|
|
31226
|
+
property_name = name[1:]
|
|
31227
|
+
if property_name in memeber_set:
|
|
31228
|
+
memeber_set.remove(property_name)
|
|
31229
|
+
if len(memeber_set) > 0:
|
|
31230
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
31231
|
+
|
|
31232
|
+
|
|
31233
|
+
|
|
31076
31234
|
class TaxiInvoiceOCRRequest(AbstractModel):
|
|
31077
31235
|
"""TaxiInvoiceOCR请求参数结构体
|
|
31078
31236
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1324
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1323
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|