tencentcloud-sdk-python-ocr 3.0.1431__py2.py3-none-any.whl → 3.0.1436__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 +54 -4
- {tencentcloud_sdk_python_ocr-3.0.1431.dist-info → tencentcloud_sdk_python_ocr-3.0.1436.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.0.1436.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_ocr-3.0.1431.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_ocr-3.0.1431.dist-info → tencentcloud_sdk_python_ocr-3.0.1436.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.0.1431.dist-info → tencentcloud_sdk_python_ocr-3.0.1436.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -16326,6 +16326,8 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
16326
16326
|
-9108 证件模糊告警
|
16327
16327
|
-9109 告警能力未开通
|
16328
16328
|
:type WarnCardInfos: list of int
|
16329
|
+
:param _CardCount: 输入图片中的卡证数量(仅请求曼谷地域[ap-bangkok]返回)
|
16330
|
+
:type CardCount: int
|
16329
16331
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
16330
16332
|
:type RequestId: str
|
16331
16333
|
"""
|
@@ -16346,6 +16348,7 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
16346
16348
|
self._Type = None
|
16347
16349
|
self._PassportRecognizeInfos = None
|
16348
16350
|
self._WarnCardInfos = None
|
16351
|
+
self._CardCount = None
|
16349
16352
|
self._RequestId = None
|
16350
16353
|
|
16351
16354
|
@property
|
@@ -16554,6 +16557,17 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
16554
16557
|
def WarnCardInfos(self, WarnCardInfos):
|
16555
16558
|
self._WarnCardInfos = WarnCardInfos
|
16556
16559
|
|
16560
|
+
@property
|
16561
|
+
def CardCount(self):
|
16562
|
+
"""输入图片中的卡证数量(仅请求曼谷地域[ap-bangkok]返回)
|
16563
|
+
:rtype: int
|
16564
|
+
"""
|
16565
|
+
return self._CardCount
|
16566
|
+
|
16567
|
+
@CardCount.setter
|
16568
|
+
def CardCount(self, CardCount):
|
16569
|
+
self._CardCount = CardCount
|
16570
|
+
|
16557
16571
|
@property
|
16558
16572
|
def RequestId(self):
|
16559
16573
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -16586,6 +16600,7 @@ class MLIDPassportOCRResponse(AbstractModel):
|
|
16586
16600
|
self._PassportRecognizeInfos = PassportRecognizeInfos()
|
16587
16601
|
self._PassportRecognizeInfos._deserialize(params.get("PassportRecognizeInfos"))
|
16588
16602
|
self._WarnCardInfos = params.get("WarnCardInfos")
|
16603
|
+
self._CardCount = params.get("CardCount")
|
16589
16604
|
self._RequestId = params.get("RequestId")
|
16590
16605
|
|
16591
16606
|
|
@@ -26010,9 +26025,9 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26010
26025
|
|
26011
26026
|
def __init__(self):
|
26012
26027
|
r"""
|
26013
|
-
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26028
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
26014
26029
|
:type ImageBase64: str
|
26015
|
-
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26030
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26016
26031
|
:type ImageUrl: str
|
26017
26032
|
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
|
26018
26033
|
:type PdfPageNumber: int
|
@@ -26023,7 +26038,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26023
26038
|
|
26024
26039
|
@property
|
26025
26040
|
def ImageBase64(self):
|
26026
|
-
"""图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26041
|
+
"""图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
26027
26042
|
:rtype: str
|
26028
26043
|
"""
|
26029
26044
|
return self._ImageBase64
|
@@ -26034,7 +26049,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26034
26049
|
|
26035
26050
|
@property
|
26036
26051
|
def ImageUrl(self):
|
26037
|
-
"""图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26052
|
+
"""图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26038
26053
|
:rtype: str
|
26039
26054
|
"""
|
26040
26055
|
return self._ImageUrl
|
@@ -26657,6 +26672,8 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
26657
26672
|
:type WarnCardInfos: list of int
|
26658
26673
|
:param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
|
26659
26674
|
:type AdvancedInfo: str
|
26675
|
+
:param _CardCount: 卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)
|
26676
|
+
:type CardCount: int
|
26660
26677
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
26661
26678
|
:type RequestId: str
|
26662
26679
|
"""
|
@@ -26677,6 +26694,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
26677
26694
|
self._PortraitImage = None
|
26678
26695
|
self._WarnCardInfos = None
|
26679
26696
|
self._AdvancedInfo = None
|
26697
|
+
self._CardCount = None
|
26680
26698
|
self._RequestId = None
|
26681
26699
|
|
26682
26700
|
@property
|
@@ -26876,6 +26894,17 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
26876
26894
|
|
26877
26895
|
self._AdvancedInfo = AdvancedInfo
|
26878
26896
|
|
26897
|
+
@property
|
26898
|
+
def CardCount(self):
|
26899
|
+
"""卡证正面图片中,证件主体的数量(仅请求曼谷地域[ap-bangkok]返回)
|
26900
|
+
:rtype: int
|
26901
|
+
"""
|
26902
|
+
return self._CardCount
|
26903
|
+
|
26904
|
+
@CardCount.setter
|
26905
|
+
def CardCount(self, CardCount):
|
26906
|
+
self._CardCount = CardCount
|
26907
|
+
|
26879
26908
|
@property
|
26880
26909
|
def RequestId(self):
|
26881
26910
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -26906,6 +26935,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
|
|
26906
26935
|
self._PortraitImage = params.get("PortraitImage")
|
26907
26936
|
self._WarnCardInfos = params.get("WarnCardInfos")
|
26908
26937
|
self._AdvancedInfo = params.get("AdvancedInfo")
|
26938
|
+
self._CardCount = params.get("CardCount")
|
26909
26939
|
self._RequestId = params.get("RequestId")
|
26910
26940
|
|
26911
26941
|
|
@@ -31500,9 +31530,12 @@ class TaxPayment(AbstractModel):
|
|
31500
31530
|
税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
31501
31531
|
示例值:纳税人识别号
|
31502
31532
|
:type Content: list of OtherInvoiceItem
|
31533
|
+
:param _TableItems: 表格。
|
31534
|
+
:type TableItems: list of OtherInvoiceList
|
31503
31535
|
"""
|
31504
31536
|
self._Title = None
|
31505
31537
|
self._Content = None
|
31538
|
+
self._TableItems = None
|
31506
31539
|
|
31507
31540
|
@property
|
31508
31541
|
def Title(self):
|
@@ -31528,6 +31561,17 @@ class TaxPayment(AbstractModel):
|
|
31528
31561
|
def Content(self, Content):
|
31529
31562
|
self._Content = Content
|
31530
31563
|
|
31564
|
+
@property
|
31565
|
+
def TableItems(self):
|
31566
|
+
"""表格。
|
31567
|
+
:rtype: list of OtherInvoiceList
|
31568
|
+
"""
|
31569
|
+
return self._TableItems
|
31570
|
+
|
31571
|
+
@TableItems.setter
|
31572
|
+
def TableItems(self, TableItems):
|
31573
|
+
self._TableItems = TableItems
|
31574
|
+
|
31531
31575
|
|
31532
31576
|
def _deserialize(self, params):
|
31533
31577
|
self._Title = params.get("Title")
|
@@ -31537,6 +31581,12 @@ class TaxPayment(AbstractModel):
|
|
31537
31581
|
obj = OtherInvoiceItem()
|
31538
31582
|
obj._deserialize(item)
|
31539
31583
|
self._Content.append(obj)
|
31584
|
+
if params.get("TableItems") is not None:
|
31585
|
+
self._TableItems = []
|
31586
|
+
for item in params.get("TableItems"):
|
31587
|
+
obj = OtherInvoiceList()
|
31588
|
+
obj._deserialize(item)
|
31589
|
+
self._TableItems.append(obj)
|
31540
31590
|
memeber_set = set(params.keys())
|
31541
31591
|
for name, value in vars(self).items():
|
31542
31592
|
property_name = name[1:]
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1436
|
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.0.
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1436)
|
19
19
|
|
20
20
|
============================
|
21
21
|
Tencent Cloud SDK for Python
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tencentcloud/__init__.py,sha256=yGylr5YIhnByBsGQsKQ7Efv97DKtKNa3248OOHO20Iw,631
|
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=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=Z8B7k5N5b6wYSqz2SsQQ_w_Bw1a5a9QMlJsmSEROOz4,1380640
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
+
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/METADATA,sha256=7UqgxTXpbYpQLVdiUN6fLVz2RsxY_ud2mrftvC1KEiM,1503
|
8
|
+
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
+
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
+
tencentcloud_sdk_python_ocr-3.0.1436.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
tencentcloud/__init__.py,sha256=LskJbBMnh-hPdStEtUMXPBe51iiG3r6WqACy5lMkn6c,631
|
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=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=ifMHVVl2RBd9s_SQzfLSoS4gEOMU8OSHFgwCw1RZTqk,1378568
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
-
tencentcloud_sdk_python_ocr-3.0.1431.dist-info/METADATA,sha256=P-Hg23CCuHHjHdIa3qC5nJ5NOTKAKh2egNxQPItfbck,1503
|
8
|
-
tencentcloud_sdk_python_ocr-3.0.1431.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
-
tencentcloud_sdk_python_ocr-3.0.1431.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
-
tencentcloud_sdk_python_ocr-3.0.1431.dist-info/RECORD,,
|
File without changes
|
File without changes
|