tencentcloud-sdk-python-ocr 3.1.1__tar.gz → 3.1.8__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.1 → tencentcloud_sdk_python_ocr-3.1.8}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/setup.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/v20181119/models.py +94 -32
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ocr-3.1.8/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ocr-3.1.1/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/README.rst +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/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.8
|
|
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.8
|
|
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.8,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ocr SDK for Python',
|
|
@@ -5836,6 +5836,14 @@ class ElectronicAirTransport(AbstractModel):
|
|
|
5836
5836
|
|
|
5837
5837
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
5838
5838
|
:type ElectronicAirTransportDetails: list of ElectronicAirTransportDetail
|
|
5839
|
+
:param _Fare: 票价
|
|
5840
|
+
:type Fare: str
|
|
5841
|
+
:param _FuelSurcharge: 燃油附加费
|
|
5842
|
+
:type FuelSurcharge: str
|
|
5843
|
+
:param _TaxAmount: 增值税税额
|
|
5844
|
+
:type TaxAmount: str
|
|
5845
|
+
:param _DevelopmentFund: 民航发展基金
|
|
5846
|
+
:type DevelopmentFund: str
|
|
5839
5847
|
"""
|
|
5840
5848
|
self._Code = None
|
|
5841
5849
|
self._Number = None
|
|
@@ -5853,6 +5861,10 @@ class ElectronicAirTransport(AbstractModel):
|
|
|
5853
5861
|
self._PassengerNo = None
|
|
5854
5862
|
self._ElectronicNumber = None
|
|
5855
5863
|
self._ElectronicAirTransportDetails = None
|
|
5864
|
+
self._Fare = None
|
|
5865
|
+
self._FuelSurcharge = None
|
|
5866
|
+
self._TaxAmount = None
|
|
5867
|
+
self._DevelopmentFund = None
|
|
5856
5868
|
|
|
5857
5869
|
@property
|
|
5858
5870
|
def Code(self):
|
|
@@ -6048,6 +6060,50 @@ class ElectronicAirTransport(AbstractModel):
|
|
|
6048
6060
|
def ElectronicAirTransportDetails(self, ElectronicAirTransportDetails):
|
|
6049
6061
|
self._ElectronicAirTransportDetails = ElectronicAirTransportDetails
|
|
6050
6062
|
|
|
6063
|
+
@property
|
|
6064
|
+
def Fare(self):
|
|
6065
|
+
r"""票价
|
|
6066
|
+
:rtype: str
|
|
6067
|
+
"""
|
|
6068
|
+
return self._Fare
|
|
6069
|
+
|
|
6070
|
+
@Fare.setter
|
|
6071
|
+
def Fare(self, Fare):
|
|
6072
|
+
self._Fare = Fare
|
|
6073
|
+
|
|
6074
|
+
@property
|
|
6075
|
+
def FuelSurcharge(self):
|
|
6076
|
+
r"""燃油附加费
|
|
6077
|
+
:rtype: str
|
|
6078
|
+
"""
|
|
6079
|
+
return self._FuelSurcharge
|
|
6080
|
+
|
|
6081
|
+
@FuelSurcharge.setter
|
|
6082
|
+
def FuelSurcharge(self, FuelSurcharge):
|
|
6083
|
+
self._FuelSurcharge = FuelSurcharge
|
|
6084
|
+
|
|
6085
|
+
@property
|
|
6086
|
+
def TaxAmount(self):
|
|
6087
|
+
r"""增值税税额
|
|
6088
|
+
:rtype: str
|
|
6089
|
+
"""
|
|
6090
|
+
return self._TaxAmount
|
|
6091
|
+
|
|
6092
|
+
@TaxAmount.setter
|
|
6093
|
+
def TaxAmount(self, TaxAmount):
|
|
6094
|
+
self._TaxAmount = TaxAmount
|
|
6095
|
+
|
|
6096
|
+
@property
|
|
6097
|
+
def DevelopmentFund(self):
|
|
6098
|
+
r"""民航发展基金
|
|
6099
|
+
:rtype: str
|
|
6100
|
+
"""
|
|
6101
|
+
return self._DevelopmentFund
|
|
6102
|
+
|
|
6103
|
+
@DevelopmentFund.setter
|
|
6104
|
+
def DevelopmentFund(self, DevelopmentFund):
|
|
6105
|
+
self._DevelopmentFund = DevelopmentFund
|
|
6106
|
+
|
|
6051
6107
|
|
|
6052
6108
|
def _deserialize(self, params):
|
|
6053
6109
|
self._Code = params.get("Code")
|
|
@@ -6071,6 +6127,10 @@ class ElectronicAirTransport(AbstractModel):
|
|
|
6071
6127
|
obj = ElectronicAirTransportDetail()
|
|
6072
6128
|
obj._deserialize(item)
|
|
6073
6129
|
self._ElectronicAirTransportDetails.append(obj)
|
|
6130
|
+
self._Fare = params.get("Fare")
|
|
6131
|
+
self._FuelSurcharge = params.get("FuelSurcharge")
|
|
6132
|
+
self._TaxAmount = params.get("TaxAmount")
|
|
6133
|
+
self._DevelopmentFund = params.get("DevelopmentFund")
|
|
6074
6134
|
memeber_set = set(params.keys())
|
|
6075
6135
|
for name, value in vars(self).items():
|
|
6076
6136
|
property_name = name[1:]
|
|
@@ -8456,9 +8516,9 @@ class ExtractDocBasicRequest(AbstractModel):
|
|
|
8456
8516
|
|
|
8457
8517
|
def __init__(self):
|
|
8458
8518
|
r"""
|
|
8459
|
-
:param _ImageUrl:
|
|
8519
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8460
8520
|
:type ImageUrl: str
|
|
8461
|
-
:param _ImageBase64:
|
|
8521
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8462
8522
|
:type ImageBase64: str
|
|
8463
8523
|
:param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
8464
8524
|
:type IsPdf: bool
|
|
@@ -8472,6 +8532,7 @@ ItemNames=["姓名","性别"]
|
|
|
8472
8532
|
:type ReturnFullText: bool
|
|
8473
8533
|
:param _ConfigId: 配置id支持:
|
|
8474
8534
|
General -- 通用场景
|
|
8535
|
+
GeneralNoDate -- 无后处理日期格式模版
|
|
8475
8536
|
OnlineTaxiItinerary -- 网约车行程单
|
|
8476
8537
|
RideHailingDriverLicense -- 网约车驾驶证
|
|
8477
8538
|
RideHailingTransportLicense -- 网约车运输证
|
|
@@ -8500,7 +8561,7 @@ MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合
|
|
|
8500
8561
|
|
|
8501
8562
|
@property
|
|
8502
8563
|
def ImageUrl(self):
|
|
8503
|
-
r"""
|
|
8564
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8504
8565
|
:rtype: str
|
|
8505
8566
|
"""
|
|
8506
8567
|
return self._ImageUrl
|
|
@@ -8511,7 +8572,7 @@ MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合
|
|
|
8511
8572
|
|
|
8512
8573
|
@property
|
|
8513
8574
|
def ImageBase64(self):
|
|
8514
|
-
r"""
|
|
8575
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8515
8576
|
:rtype: str
|
|
8516
8577
|
"""
|
|
8517
8578
|
return self._ImageBase64
|
|
@@ -8570,6 +8631,7 @@ ItemNames=["姓名","性别"]
|
|
|
8570
8631
|
def ConfigId(self):
|
|
8571
8632
|
r"""配置id支持:
|
|
8572
8633
|
General -- 通用场景
|
|
8634
|
+
GeneralNoDate -- 无后处理日期格式模版
|
|
8573
8635
|
OnlineTaxiItinerary -- 网约车行程单
|
|
8574
8636
|
RideHailingDriverLicense -- 网约车驾驶证
|
|
8575
8637
|
RideHailingTransportLicense -- 网约车运输证
|
|
@@ -8734,9 +8796,9 @@ class ExtractDocMultiProRequest(AbstractModel):
|
|
|
8734
8796
|
|
|
8735
8797
|
def __init__(self):
|
|
8736
8798
|
r"""
|
|
8737
|
-
:param _ImageUrl:
|
|
8799
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8738
8800
|
:type ImageUrl: str
|
|
8739
|
-
:param _ImageBase64:
|
|
8801
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8740
8802
|
:type ImageBase64: str
|
|
8741
8803
|
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
|
8742
8804
|
:type PdfPageNumber: int
|
|
@@ -8773,7 +8835,7 @@ ReceiptWeightNote -- 磅单收货单识别模板
|
|
|
8773
8835
|
|
|
8774
8836
|
@property
|
|
8775
8837
|
def ImageUrl(self):
|
|
8776
|
-
r"""
|
|
8838
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8777
8839
|
:rtype: str
|
|
8778
8840
|
"""
|
|
8779
8841
|
return self._ImageUrl
|
|
@@ -8784,7 +8846,7 @@ ReceiptWeightNote -- 磅单收货单识别模板
|
|
|
8784
8846
|
|
|
8785
8847
|
@property
|
|
8786
8848
|
def ImageBase64(self):
|
|
8787
|
-
r"""
|
|
8849
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8788
8850
|
:rtype: str
|
|
8789
8851
|
"""
|
|
8790
8852
|
return self._ImageBase64
|
|
@@ -9015,11 +9077,11 @@ class ExtractDocMultiRequest(AbstractModel):
|
|
|
9015
9077
|
|
|
9016
9078
|
def __init__(self):
|
|
9017
9079
|
r"""
|
|
9018
|
-
:param _ImageUrl:
|
|
9080
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
9019
9081
|
:type ImageUrl: str
|
|
9020
|
-
:param _ImageBase64:
|
|
9082
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
9021
9083
|
:type ImageBase64: str
|
|
9022
|
-
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF
|
|
9084
|
+
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为前3页。
|
|
9023
9085
|
:type PdfPageNumber: int
|
|
9024
9086
|
:param _ItemNames: 自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
|
|
9025
9087
|
:type ItemNames: list of str
|
|
@@ -9080,7 +9142,7 @@ en时,添加的key为英语
|
|
|
9080
9142
|
|
|
9081
9143
|
@property
|
|
9082
9144
|
def ImageUrl(self):
|
|
9083
|
-
r"""
|
|
9145
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
9084
9146
|
:rtype: str
|
|
9085
9147
|
"""
|
|
9086
9148
|
return self._ImageUrl
|
|
@@ -9091,7 +9153,7 @@ en时,添加的key为英语
|
|
|
9091
9153
|
|
|
9092
9154
|
@property
|
|
9093
9155
|
def ImageBase64(self):
|
|
9094
|
-
r"""
|
|
9156
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
9095
9157
|
:rtype: str
|
|
9096
9158
|
"""
|
|
9097
9159
|
return self._ImageBase64
|
|
@@ -9102,7 +9164,7 @@ en时,添加的key为英语
|
|
|
9102
9164
|
|
|
9103
9165
|
@property
|
|
9104
9166
|
def PdfPageNumber(self):
|
|
9105
|
-
r"""需要识别的PDF页面的对应页码,仅支持PDF
|
|
9167
|
+
r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为前3页。
|
|
9106
9168
|
:rtype: int
|
|
9107
9169
|
"""
|
|
9108
9170
|
return self._PdfPageNumber
|
|
@@ -12875,9 +12937,9 @@ class HandwritingEssayOCRRequest(AbstractModel):
|
|
|
12875
12937
|
|
|
12876
12938
|
def __init__(self):
|
|
12877
12939
|
r"""
|
|
12878
|
-
:param _ImageUrl:
|
|
12940
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
12879
12941
|
:type ImageUrl: str
|
|
12880
|
-
:param _ImageBase64:
|
|
12942
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
12881
12943
|
:type ImageBase64: str
|
|
12882
12944
|
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
|
12883
12945
|
:type PdfPageNumber: int
|
|
@@ -12896,7 +12958,7 @@ ArticleRecognize -- 手写作文模板
|
|
|
12896
12958
|
|
|
12897
12959
|
@property
|
|
12898
12960
|
def ImageUrl(self):
|
|
12899
|
-
r"""
|
|
12961
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
12900
12962
|
:rtype: str
|
|
12901
12963
|
"""
|
|
12902
12964
|
return self._ImageUrl
|
|
@@ -12907,7 +12969,7 @@ ArticleRecognize -- 手写作文模板
|
|
|
12907
12969
|
|
|
12908
12970
|
@property
|
|
12909
12971
|
def ImageBase64(self):
|
|
12910
|
-
r"""
|
|
12972
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
12911
12973
|
:rtype: str
|
|
12912
12974
|
"""
|
|
12913
12975
|
return self._ImageBase64
|
|
@@ -22387,9 +22449,9 @@ class QuestionSplitLayoutOCRRequest(AbstractModel):
|
|
|
22387
22449
|
|
|
22388
22450
|
def __init__(self):
|
|
22389
22451
|
r"""
|
|
22390
|
-
:param _ImageUrl:
|
|
22452
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22391
22453
|
:type ImageUrl: str
|
|
22392
|
-
:param _ImageBase64:
|
|
22454
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22393
22455
|
:type ImageBase64: str
|
|
22394
22456
|
:param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
22395
22457
|
:type IsPdf: bool
|
|
@@ -22409,7 +22471,7 @@ class QuestionSplitLayoutOCRRequest(AbstractModel):
|
|
|
22409
22471
|
|
|
22410
22472
|
@property
|
|
22411
22473
|
def ImageUrl(self):
|
|
22412
|
-
r"""
|
|
22474
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22413
22475
|
:rtype: str
|
|
22414
22476
|
"""
|
|
22415
22477
|
return self._ImageUrl
|
|
@@ -22420,7 +22482,7 @@ class QuestionSplitLayoutOCRRequest(AbstractModel):
|
|
|
22420
22482
|
|
|
22421
22483
|
@property
|
|
22422
22484
|
def ImageBase64(self):
|
|
22423
|
-
r"""
|
|
22485
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22424
22486
|
:rtype: str
|
|
22425
22487
|
"""
|
|
22426
22488
|
return self._ImageBase64
|
|
@@ -22546,9 +22608,9 @@ class QuestionSplitOCRRequest(AbstractModel):
|
|
|
22546
22608
|
|
|
22547
22609
|
def __init__(self):
|
|
22548
22610
|
r"""
|
|
22549
|
-
:param _ImageUrl:
|
|
22611
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22550
22612
|
:type ImageUrl: str
|
|
22551
|
-
:param _ImageBase64:
|
|
22613
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22552
22614
|
:type ImageBase64: str
|
|
22553
22615
|
:param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
22554
22616
|
:type IsPdf: bool
|
|
@@ -22571,7 +22633,7 @@ class QuestionSplitOCRRequest(AbstractModel):
|
|
|
22571
22633
|
|
|
22572
22634
|
@property
|
|
22573
22635
|
def ImageUrl(self):
|
|
22574
|
-
r"""
|
|
22636
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
22575
22637
|
:rtype: str
|
|
22576
22638
|
"""
|
|
22577
22639
|
return self._ImageUrl
|
|
@@ -22582,7 +22644,7 @@ class QuestionSplitOCRRequest(AbstractModel):
|
|
|
22582
22644
|
|
|
22583
22645
|
@property
|
|
22584
22646
|
def ImageBase64(self):
|
|
22585
|
-
r"""
|
|
22647
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
22586
22648
|
:rtype: str
|
|
22587
22649
|
"""
|
|
22588
22650
|
return self._ImageBase64
|
|
@@ -25750,7 +25812,7 @@ class RecognizeTableAccurateOCRResponse(AbstractModel):
|
|
|
25750
25812
|
:param _PdfPageSize: 图片为PDF时,返回PDF的总页数,默认为0
|
|
25751
25813
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
25752
25814
|
:type PdfPageSize: int
|
|
25753
|
-
:param _Angle: 图片旋转角度(角度制),文本的水平方向为0
|
|
25815
|
+
:param _Angle: 图片旋转角度(角度制),文本的水平方向为0°。
|
|
25754
25816
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
25755
25817
|
:type Angle: float
|
|
25756
25818
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -25799,7 +25861,7 @@ class RecognizeTableAccurateOCRResponse(AbstractModel):
|
|
|
25799
25861
|
|
|
25800
25862
|
@property
|
|
25801
25863
|
def Angle(self):
|
|
25802
|
-
r"""图片旋转角度(角度制),文本的水平方向为0
|
|
25864
|
+
r"""图片旋转角度(角度制),文本的水平方向为0°。
|
|
25803
25865
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
25804
25866
|
:rtype: float
|
|
25805
25867
|
"""
|
|
@@ -30582,9 +30644,9 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
30582
30644
|
|
|
30583
30645
|
def __init__(self):
|
|
30584
30646
|
r"""
|
|
30585
|
-
:param _ImageBase64: 图片/PDF的 Base64
|
|
30647
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
30586
30648
|
:type ImageBase64: str
|
|
30587
|
-
:param _ImageUrl: 图片/PDF的 Url
|
|
30649
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
30588
30650
|
:type ImageUrl: str
|
|
30589
30651
|
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
|
|
30590
30652
|
:type PdfPageNumber: int
|
|
@@ -30607,7 +30669,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
30607
30669
|
|
|
30608
30670
|
@property
|
|
30609
30671
|
def ImageBase64(self):
|
|
30610
|
-
r"""图片/PDF的 Base64
|
|
30672
|
+
r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
30611
30673
|
:rtype: str
|
|
30612
30674
|
"""
|
|
30613
30675
|
return self._ImageBase64
|
|
@@ -30618,7 +30680,7 @@ class SubmitExtractDocAgentJobRequest(AbstractModel):
|
|
|
30618
30680
|
|
|
30619
30681
|
@property
|
|
30620
30682
|
def ImageUrl(self):
|
|
30621
|
-
r"""图片/PDF的 Url
|
|
30683
|
+
r"""图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
30622
30684
|
:rtype: str
|
|
30623
30685
|
"""
|
|
30624
30686
|
return self._ImageUrl
|
|
@@ -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.8
|
|
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.8
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.8
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.1
|
|
File without changes
|
|
File without changes
|
{tencentcloud_sdk_python_ocr-3.1.1 → tencentcloud_sdk_python_ocr-3.1.8}/tencentcloud/ocr/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|