tencentcloud-sdk-python-ocr 3.0.1428__tar.gz → 3.0.1431__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-ocr might be problematic. Click here for more details.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud/ocr/v20181119/models.py +189 -92
  5. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud/ocr/v20181119/ocr_client.py +25 -0
  6. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  7. tencentcloud-sdk-python-ocr-3.0.1431/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  8. tencentcloud-sdk-python-ocr-3.0.1428/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  9. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/README.rst +0 -0
  10. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/setup.cfg +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud/ocr/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1428 → tencentcloud-sdk-python-ocr-3.0.1431}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1428
3
+ Version: 3.0.1431
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
@@ -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.1428,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1431,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ocr SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1428'
17
+ __version__ = '3.0.1431'
@@ -15890,19 +15890,13 @@ class MLIDCardOCRRequest(AbstractModel):
15890
15890
 
15891
15891
  def __init__(self):
15892
15892
  r"""
15893
- :param _ImageBase64: 图片的 Base64 值。
15894
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15895
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
15893
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
15896
15894
  :type ImageBase64: str
15897
- :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15895
+ :param _BackImageBase64: 卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15898
15896
  :type BackImageBase64: str
15899
- :param _ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )
15900
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15901
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
15902
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
15903
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15897
+ :param _ImageUrl: 图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15904
15898
  :type ImageUrl: str
15905
- :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15899
+ :param _BackImageUrl: 卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15906
15900
  :type BackImageUrl: str
15907
15901
  :param _RetImage: 是否返回图片,默认false
15908
15902
  :type RetImage: bool
@@ -15915,9 +15909,7 @@ class MLIDCardOCRRequest(AbstractModel):
15915
15909
 
15916
15910
  @property
15917
15911
  def ImageBase64(self):
15918
- """图片的 Base64 值。
15919
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15920
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
15912
+ """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。
15921
15913
  :rtype: str
15922
15914
  """
15923
15915
  return self._ImageBase64
@@ -15928,7 +15920,7 @@ class MLIDCardOCRRequest(AbstractModel):
15928
15920
 
15929
15921
  @property
15930
15922
  def BackImageBase64(self):
15931
- """卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15923
+ """卡证背面图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
15932
15924
  :rtype: str
15933
15925
  """
15934
15926
  return self._BackImageBase64
@@ -15939,11 +15931,7 @@ class MLIDCardOCRRequest(AbstractModel):
15939
15931
 
15940
15932
  @property
15941
15933
  def ImageUrl(self):
15942
- """图片的 Url 地址。( 中国地区之外不支持这个字段 )
15943
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
15944
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
15945
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
15946
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15934
+ """图片的 Url 地址。( 中国地区之外不支持这个字段 )支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15947
15935
  :rtype: str
15948
15936
  """
15949
15937
  return self._ImageUrl
@@ -15954,7 +15942,7 @@ class MLIDCardOCRRequest(AbstractModel):
15954
15942
 
15955
15943
  @property
15956
15944
  def BackImageUrl(self):
15957
- """卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15945
+ """卡证背面图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
15958
15946
  :rtype: str
15959
15947
  """
15960
15948
  return self._BackImageUrl
@@ -16006,21 +15994,11 @@ class MLIDCardOCRResponse(AbstractModel):
16006
15994
  :type Address: str
16007
15995
  :param _Sex: 性别
16008
15996
  :type Sex: str
16009
- :param _Warn: 告警码
16010
- -9103 证照翻拍告警
16011
- -9102 证照复印件告警
16012
- -9106 证件遮挡告警
16013
- -9107 模糊图片告警
15997
+ :param _Warn: 该字段已废弃, 将固定返回空数组,不建议使用。
16014
15998
  :type Warn: list of int
16015
15999
  :param _Image: 证件图片
16016
16000
  :type Image: str
16017
- :param _AdvancedInfo: 此字段为扩展字段。
16018
- 返回字段识别结果的置信度,格式如下
16019
- {
16020
- 字段名:{
16021
- Confidence:0.9999
16022
- }
16023
- }
16001
+ :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
16024
16002
  :type AdvancedInfo: str
16025
16003
  :param _Type: 证件类型
16026
16004
  MyKad 身份证
@@ -16108,11 +16086,7 @@ MyKid 儿童卡
16108
16086
  def Warn(self):
16109
16087
  warnings.warn("parameter `Warn` is deprecated", DeprecationWarning)
16110
16088
 
16111
- """告警码
16112
- -9103 证照翻拍告警
16113
- -9102 证照复印件告警
16114
- -9106 证件遮挡告警
16115
- -9107 模糊图片告警
16089
+ """该字段已废弃, 将固定返回空数组,不建议使用。
16116
16090
  :rtype: list of int
16117
16091
  """
16118
16092
  return self._Warn
@@ -16136,19 +16110,17 @@ MyKid 儿童卡
16136
16110
 
16137
16111
  @property
16138
16112
  def AdvancedInfo(self):
16139
- """此字段为扩展字段。
16140
- 返回字段识别结果的置信度,格式如下
16141
- {
16142
- 字段名:{
16143
- Confidence:0.9999
16144
- }
16145
- }
16113
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16114
+
16115
+ """该字段已废弃, 将固定返回"1",不建议使用。
16146
16116
  :rtype: str
16147
16117
  """
16148
16118
  return self._AdvancedInfo
16149
16119
 
16150
16120
  @AdvancedInfo.setter
16151
16121
  def AdvancedInfo(self, AdvancedInfo):
16122
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16123
+
16152
16124
  self._AdvancedInfo = AdvancedInfo
16153
16125
 
16154
16126
  @property
@@ -16243,11 +16215,11 @@ class MLIDPassportOCRRequest(AbstractModel):
16243
16215
 
16244
16216
  def __init__(self):
16245
16217
  r"""
16246
- :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16218
+ :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16247
16219
  :type ImageBase64: str
16248
16220
  :param _RetImage: 是否返回图片,默认false
16249
16221
  :type RetImage: bool
16250
- :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16222
+ :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16251
16223
  :type ImageUrl: str
16252
16224
  """
16253
16225
  self._ImageBase64 = None
@@ -16256,7 +16228,7 @@ class MLIDPassportOCRRequest(AbstractModel):
16256
16228
 
16257
16229
  @property
16258
16230
  def ImageBase64(self):
16259
- """图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16231
+ """图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
16260
16232
  :rtype: str
16261
16233
  """
16262
16234
  return self._ImageBase64
@@ -16278,7 +16250,7 @@ class MLIDPassportOCRRequest(AbstractModel):
16278
16250
 
16279
16251
  @property
16280
16252
  def ImageUrl(self):
16281
- """图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16253
+ """图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16282
16254
  :rtype: str
16283
16255
  """
16284
16256
  return self._ImageUrl
@@ -16323,22 +16295,13 @@ class MLIDPassportOCRResponse(AbstractModel):
16323
16295
  :type IssuingCountry: str
16324
16296
  :param _Nationality: 国家地区代码(机读码区的解析结果)
16325
16297
  :type Nationality: str
16326
- :param _Warn: 告警码:
16327
- -9103 证照翻拍告警
16328
- -9102 证照复印件告警(包括黑白复印件、彩色复印件)
16329
- -9106 证件遮挡告警
16298
+ :param _Warn: 该字段已废弃, 将固定返回空数组,不建议使用。
16299
+
16330
16300
  :type Warn: list of int
16331
16301
  :param _Image: 证件中的人像图片base64
16332
16302
  :type Image: str
16333
- :param _AdvancedInfo: 扩展字段:
16334
- {
16335
- ID:{
16336
- Confidence:0.9999
16337
- },
16338
- Name:{
16339
- Confidence:0.9996
16340
- }
16341
- }
16303
+ :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
16304
+
16342
16305
  :type AdvancedInfo: str
16343
16306
  :param _CodeSet: 最下方第一行 MRZ Code 序列
16344
16307
  :type CodeSet: str
@@ -16464,16 +16427,18 @@ class MLIDPassportOCRResponse(AbstractModel):
16464
16427
 
16465
16428
  @property
16466
16429
  def Warn(self):
16467
- """告警码:
16468
- -9103 证照翻拍告警
16469
- -9102 证照复印件告警(包括黑白复印件、彩色复印件)
16470
- -9106 证件遮挡告警
16430
+ warnings.warn("parameter `Warn` is deprecated", DeprecationWarning)
16431
+
16432
+ """该字段已废弃, 将固定返回空数组,不建议使用。
16433
+
16471
16434
  :rtype: list of int
16472
16435
  """
16473
16436
  return self._Warn
16474
16437
 
16475
16438
  @Warn.setter
16476
16439
  def Warn(self, Warn):
16440
+ warnings.warn("parameter `Warn` is deprecated", DeprecationWarning)
16441
+
16477
16442
  self._Warn = Warn
16478
16443
 
16479
16444
  @property
@@ -16489,21 +16454,18 @@ class MLIDPassportOCRResponse(AbstractModel):
16489
16454
 
16490
16455
  @property
16491
16456
  def AdvancedInfo(self):
16492
- """扩展字段:
16493
- {
16494
- ID:{
16495
- Confidence:0.9999
16496
- },
16497
- Name:{
16498
- Confidence:0.9996
16499
- }
16500
- }
16457
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16458
+
16459
+ """该字段已废弃, 将固定返回"1",不建议使用。
16460
+
16501
16461
  :rtype: str
16502
16462
  """
16503
16463
  return self._AdvancedInfo
16504
16464
 
16505
16465
  @AdvancedInfo.setter
16506
16466
  def AdvancedInfo(self, AdvancedInfo):
16467
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
16468
+
16507
16469
  self._AdvancedInfo = AdvancedInfo
16508
16470
 
16509
16471
  @property
@@ -26206,6 +26168,153 @@ class RecognizeTableAccurateOCRResponse(AbstractModel):
26206
26168
  self._RequestId = params.get("RequestId")
26207
26169
 
26208
26170
 
26171
+ class RecognizeTableMultiOCRRequest(AbstractModel):
26172
+ """RecognizeTableMultiOCR请求参数结构体
26173
+
26174
+ """
26175
+
26176
+ def __init__(self):
26177
+ r"""
26178
+ :param _ImageBase64: 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
26179
+ :type ImageBase64: str
26180
+ :param _ImageUrl: 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
26181
+ :type ImageUrl: str
26182
+ :param _PdfStartPageNumber: 文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。
26183
+ :type PdfStartPageNumber: int
26184
+ :param _PdfEndPageNumber: 文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。
26185
+ :type PdfEndPageNumber: int
26186
+ :param _DataFormat: 配置选项,支持配置输出数据格式。
26187
+
26188
+ * **Mdbase64** 返回 base64 编码的 markdown 格式文本。
26189
+ * **Excelbase64** 返回 base64 编码的 excel 文件。
26190
+ :type DataFormat: str
26191
+ """
26192
+ self._ImageBase64 = None
26193
+ self._ImageUrl = None
26194
+ self._PdfStartPageNumber = None
26195
+ self._PdfEndPageNumber = None
26196
+ self._DataFormat = None
26197
+
26198
+ @property
26199
+ def ImageBase64(self):
26200
+ """图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
26201
+ :rtype: str
26202
+ """
26203
+ return self._ImageBase64
26204
+
26205
+ @ImageBase64.setter
26206
+ def ImageBase64(self, ImageBase64):
26207
+ self._ImageBase64 = ImageBase64
26208
+
26209
+ @property
26210
+ def ImageUrl(self):
26211
+ """图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
26212
+ :rtype: str
26213
+ """
26214
+ return self._ImageUrl
26215
+
26216
+ @ImageUrl.setter
26217
+ def ImageUrl(self, ImageUrl):
26218
+ self._ImageUrl = ImageUrl
26219
+
26220
+ @property
26221
+ def PdfStartPageNumber(self):
26222
+ """文档的起始页码。 当传入文件是PDF型时,用来指定识别的起始页码,识别的页码包含当前值。
26223
+ :rtype: int
26224
+ """
26225
+ return self._PdfStartPageNumber
26226
+
26227
+ @PdfStartPageNumber.setter
26228
+ def PdfStartPageNumber(self, PdfStartPageNumber):
26229
+ self._PdfStartPageNumber = PdfStartPageNumber
26230
+
26231
+ @property
26232
+ def PdfEndPageNumber(self):
26233
+ """文档的结束页码。 当传入文件是PDF类型时,用来指定识别的结束页码,识别的页码包含当前值。单次调用最多支持识别3页内容,即PdfEndPageNumber-PdfStartPageNumber需要不大于3。
26234
+ :rtype: int
26235
+ """
26236
+ return self._PdfEndPageNumber
26237
+
26238
+ @PdfEndPageNumber.setter
26239
+ def PdfEndPageNumber(self, PdfEndPageNumber):
26240
+ self._PdfEndPageNumber = PdfEndPageNumber
26241
+
26242
+ @property
26243
+ def DataFormat(self):
26244
+ """配置选项,支持配置输出数据格式。
26245
+
26246
+ * **Mdbase64** 返回 base64 编码的 markdown 格式文本。
26247
+ * **Excelbase64** 返回 base64 编码的 excel 文件。
26248
+ :rtype: str
26249
+ """
26250
+ return self._DataFormat
26251
+
26252
+ @DataFormat.setter
26253
+ def DataFormat(self, DataFormat):
26254
+ self._DataFormat = DataFormat
26255
+
26256
+
26257
+ def _deserialize(self, params):
26258
+ self._ImageBase64 = params.get("ImageBase64")
26259
+ self._ImageUrl = params.get("ImageUrl")
26260
+ self._PdfStartPageNumber = params.get("PdfStartPageNumber")
26261
+ self._PdfEndPageNumber = params.get("PdfEndPageNumber")
26262
+ self._DataFormat = params.get("DataFormat")
26263
+ memeber_set = set(params.keys())
26264
+ for name, value in vars(self).items():
26265
+ property_name = name[1:]
26266
+ if property_name in memeber_set:
26267
+ memeber_set.remove(property_name)
26268
+ if len(memeber_set) > 0:
26269
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
26270
+
26271
+
26272
+
26273
+ class RecognizeTableMultiOCRResponse(AbstractModel):
26274
+ """RecognizeTableMultiOCR返回参数结构体
26275
+
26276
+ """
26277
+
26278
+ def __init__(self):
26279
+ r"""
26280
+ :param _DataBase64: Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。
26281
+ 注意:此字段可能返回 null,表示取不到有效值。
26282
+ :type DataBase64: str
26283
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26284
+ :type RequestId: str
26285
+ """
26286
+ self._DataBase64 = None
26287
+ self._RequestId = None
26288
+
26289
+ @property
26290
+ def DataBase64(self):
26291
+ """Base64 编码后的 Excel 数据或 Markdown 数据。 注意:此字段可能返回空,表示取不到有效值。
26292
+ 注意:此字段可能返回 null,表示取不到有效值。
26293
+ :rtype: str
26294
+ """
26295
+ return self._DataBase64
26296
+
26297
+ @DataBase64.setter
26298
+ def DataBase64(self, DataBase64):
26299
+ self._DataBase64 = DataBase64
26300
+
26301
+ @property
26302
+ def RequestId(self):
26303
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26304
+ :rtype: str
26305
+ """
26306
+ return self._RequestId
26307
+
26308
+ @RequestId.setter
26309
+ def RequestId(self, RequestId):
26310
+ self._RequestId = RequestId
26311
+
26312
+
26313
+ def _deserialize(self, params):
26314
+ self._DataBase64 = params.get("DataBase64")
26315
+ self._RequestId = params.get("RequestId")
26316
+
26317
+
26209
26318
  class RecognizeTableOCRRequest(AbstractModel):
26210
26319
  """RecognizeTableOCR请求参数结构体
26211
26320
 
@@ -26546,15 +26655,7 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
26546
26655
  -9108 证件模糊告警
26547
26656
  -9109 告警能力未开通
26548
26657
  :type WarnCardInfos: list of int
26549
- :param _AdvancedInfo: 字段置信度:
26550
- {
26551
- "ID": {
26552
- "Confidence": 0.9999
26553
- },
26554
- "ThaiName": {
26555
- "Confidence": 0.9996
26556
- }
26557
- }
26658
+ :param _AdvancedInfo: 该字段已废弃, 将固定返回"1",不建议使用。
26558
26659
  :type AdvancedInfo: str
26559
26660
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
26560
26661
  :type RequestId: str
@@ -26762,21 +26863,17 @@ class RecognizeThaiIDCardOCRResponse(AbstractModel):
26762
26863
 
26763
26864
  @property
26764
26865
  def AdvancedInfo(self):
26765
- """字段置信度:
26766
- {
26767
- "ID": {
26768
- "Confidence": 0.9999
26769
- },
26770
- "ThaiName": {
26771
- "Confidence": 0.9996
26772
- }
26773
- }
26866
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
26867
+
26868
+ """该字段已废弃, 将固定返回"1",不建议使用。
26774
26869
  :rtype: str
26775
26870
  """
26776
26871
  return self._AdvancedInfo
26777
26872
 
26778
26873
  @AdvancedInfo.setter
26779
26874
  def AdvancedInfo(self, AdvancedInfo):
26875
+ warnings.warn("parameter `AdvancedInfo` is deprecated", DeprecationWarning)
26876
+
26780
26877
  self._AdvancedInfo = AdvancedInfo
26781
26878
 
26782
26879
  @property
@@ -2103,6 +2103,31 @@ class OcrClient(AbstractClient):
2103
2103
  raise TencentCloudSDKException(type(e).__name__, str(e))
2104
2104
 
2105
2105
 
2106
+ def RecognizeTableMultiOCR(self, request):
2107
+ """基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
2108
+
2109
+ 默认接口请求频率限制:1次/秒。
2110
+
2111
+ :param request: Request instance for RecognizeTableMultiOCR.
2112
+ :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeTableMultiOCRRequest`
2113
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.RecognizeTableMultiOCRResponse`
2114
+
2115
+ """
2116
+ try:
2117
+ params = request._serialize()
2118
+ headers = request.headers
2119
+ body = self.call("RecognizeTableMultiOCR", params, headers=headers)
2120
+ response = json.loads(body)
2121
+ model = models.RecognizeTableMultiOCRResponse()
2122
+ model._deserialize(response["Response"])
2123
+ return model
2124
+ except Exception as e:
2125
+ if isinstance(e, TencentCloudSDKException):
2126
+ raise
2127
+ else:
2128
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2129
+
2130
+
2106
2131
  def RecognizeTableOCR(self, request):
2107
2132
  """本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
2108
2133
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1428
3
+ Version: 3.0.1431
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1431
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1428