tencentcloud-sdk-python-ocr 3.0.1230__tar.gz → 3.0.1261__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.
Files changed (16) hide show
  1. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud/ocr/v20181119/errorcodes.py +1 -1
  5. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud/ocr/v20181119/models.py +205 -16
  6. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud/ocr/v20181119/ocr_client.py +27 -1
  7. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  8. tencentcloud-sdk-python-ocr-3.0.1261/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud-sdk-python-ocr-3.0.1230/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/README.rst +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/setup.cfg +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1230 → tencentcloud-sdk-python-ocr-3.0.1261}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1230
3
+ Version: 3.0.1261
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.1230"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1261"],
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.1230'
17
+ __version__ = '3.0.1261'
@@ -170,7 +170,7 @@ RESOURCENOTFOUND_NOINVOICE = 'ResourceNotFound.NoInvoice'
170
170
  # 不支持当天发票查询。
171
171
  RESOURCENOTFOUND_NOTSUPPORTCURRENTINVOICEQUERY = 'ResourceNotFound.NotSupportCurrentInvoiceQuery'
172
172
 
173
- # 帐号已欠费。
173
+ # 账号已欠费。
174
174
  RESOURCEUNAVAILABLE_INARREARS = 'ResourceUnavailable.InArrears'
175
175
 
176
176
  # 账号资源包耗尽。
@@ -1582,11 +1582,11 @@ WARN_RESHOOT_CARD翻拍件告警
1582
1582
 
1583
1583
 
1584
1584
  :type Angle: float
1585
- :param _NationalEmblem: 是否有国徽。0为没有,1为有。
1585
+ :param _NationalEmblem: 是否有国徽。false为没有,true为有。
1586
1586
  :type NationalEmblem: bool
1587
- :param _QRCode: 是否有二维码。0为没有,1为有。
1587
+ :param _QRCode: 是否有二维码。false为没有,true为有。
1588
1588
  :type QRCode: bool
1589
- :param _Seal: 是否有印章。0为没有,1为有。
1589
+ :param _Seal: 是否有印章。false为没有,true为有。
1590
1590
  :type Seal: bool
1591
1591
  :param _Title: 标题
1592
1592
  :type Title: str
@@ -1594,6 +1594,8 @@ WARN_RESHOOT_CARD翻拍件告警
1594
1594
  :type SerialNumber: str
1595
1595
  :param _RegistrationAuthority: 登记机关
1596
1596
  :type RegistrationAuthority: str
1597
+ :param _Electronic: 是否是电子营业执照。false为没有,true为有。
1598
+ :type Electronic: bool
1597
1599
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1598
1600
  :type RequestId: str
1599
1601
  """
@@ -1618,6 +1620,7 @@ WARN_RESHOOT_CARD翻拍件告警
1618
1620
  self._Title = None
1619
1621
  self._SerialNumber = None
1620
1622
  self._RegistrationAuthority = None
1623
+ self._Electronic = None
1621
1624
  self._RequestId = None
1622
1625
 
1623
1626
  @property
@@ -1788,6 +1791,14 @@ WARN_RESHOOT_CARD翻拍件告警
1788
1791
  def RegistrationAuthority(self, RegistrationAuthority):
1789
1792
  self._RegistrationAuthority = RegistrationAuthority
1790
1793
 
1794
+ @property
1795
+ def Electronic(self):
1796
+ return self._Electronic
1797
+
1798
+ @Electronic.setter
1799
+ def Electronic(self, Electronic):
1800
+ self._Electronic = Electronic
1801
+
1791
1802
  @property
1792
1803
  def RequestId(self):
1793
1804
  return self._RequestId
@@ -1819,6 +1830,7 @@ WARN_RESHOOT_CARD翻拍件告警
1819
1830
  self._Title = params.get("Title")
1820
1831
  self._SerialNumber = params.get("SerialNumber")
1821
1832
  self._RegistrationAuthority = params.get("RegistrationAuthority")
1833
+ self._Electronic = params.get("Electronic")
1822
1834
  self._RequestId = params.get("RequestId")
1823
1835
 
1824
1836
 
@@ -2859,6 +2871,8 @@ HmtResidentPermitFront: 港澳台居住证正面
2859
2871
  HmtResidentPermitBack: 港澳台居住证背面
2860
2872
  EstateCert: 不动产证
2861
2873
  BizLicense: 营业执照
2874
+ ForeignPermanentResidentFront: 外国人永居证正面识别
2875
+ ForeignPermanentResidentBack: 外国人永居证背面识别
2862
2876
  :type DiscernType: list of str
2863
2877
  """
2864
2878
  self._ImageBase64 = None
@@ -11052,6 +11066,7 @@ MyKid 儿童卡
11052
11066
  -9101 证件边框不完整告警
11053
11067
  -9102 证件复印件告警
11054
11068
  -9103 证件翻拍告警
11069
+ -9104 证件PS告警
11055
11070
  -9107 证件反光告警
11056
11071
  -9108 证件模糊告警
11057
11072
  -9109 告警能力未开通
@@ -11288,6 +11303,15 @@ class MLIDPassportOCRResponse(AbstractModel):
11288
11303
  :type Type: str
11289
11304
  :param _PassportRecognizeInfos: 信息区证件内容
11290
11305
  :type PassportRecognizeInfos: :class:`tencentcloud.ocr.v20181119.models.PassportRecognizeInfos`
11306
+ :param _WarnCardInfos: 告警码
11307
+ -9101 证件边框不完整告警
11308
+ -9102 证件复印件告警
11309
+ -9103 证件翻拍告警
11310
+ -9104 证件PS告警
11311
+ -9107 证件反光告警
11312
+ -9108 证件模糊告警
11313
+ -9109 告警能力未开通
11314
+ :type WarnCardInfos: list of int
11291
11315
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11292
11316
  :type RequestId: str
11293
11317
  """
@@ -11307,6 +11331,7 @@ class MLIDPassportOCRResponse(AbstractModel):
11307
11331
  self._GivenName = None
11308
11332
  self._Type = None
11309
11333
  self._PassportRecognizeInfos = None
11334
+ self._WarnCardInfos = None
11310
11335
  self._RequestId = None
11311
11336
 
11312
11337
  @property
@@ -11437,6 +11462,14 @@ class MLIDPassportOCRResponse(AbstractModel):
11437
11462
  def PassportRecognizeInfos(self, PassportRecognizeInfos):
11438
11463
  self._PassportRecognizeInfos = PassportRecognizeInfos
11439
11464
 
11465
+ @property
11466
+ def WarnCardInfos(self):
11467
+ return self._WarnCardInfos
11468
+
11469
+ @WarnCardInfos.setter
11470
+ def WarnCardInfos(self, WarnCardInfos):
11471
+ self._WarnCardInfos = WarnCardInfos
11472
+
11440
11473
  @property
11441
11474
  def RequestId(self):
11442
11475
  return self._RequestId
@@ -11465,6 +11498,7 @@ class MLIDPassportOCRResponse(AbstractModel):
11465
11498
  if params.get("PassportRecognizeInfos") is not None:
11466
11499
  self._PassportRecognizeInfos = PassportRecognizeInfos()
11467
11500
  self._PassportRecognizeInfos._deserialize(params.get("PassportRecognizeInfos"))
11501
+ self._WarnCardInfos = params.get("WarnCardInfos")
11468
11502
  self._RequestId = params.get("RequestId")
11469
11503
 
11470
11504
 
@@ -16551,7 +16585,7 @@ class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
16551
16585
  :param _ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
16552
16586
  图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
16553
16587
  :type ImageBase64: str
16554
- :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
16588
+ :param _ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
16555
16589
  建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
16556
16590
  :type ImageUrl: str
16557
16591
  :param _CardSide: FRONT:身份证有照片的一面(人像面),
@@ -22422,18 +22456,9 @@ class SmartStructuralOCRV2Request(AbstractModel):
22422
22456
 
22423
22457
  def __init__(self):
22424
22458
  r"""
22425
- :param _ImageUrl: 图片的 Url 地址。
22426
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
22427
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
22428
- 支持的图片像素:需介于20-10000px之间。
22429
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
22430
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
22459
+ :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
22431
22460
  :type ImageUrl: str
22432
- :param _ImageBase64: 图片的 Base64 值。
22433
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
22434
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
22435
- 支持的图片像素:需介于20-10000px之间。
22436
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
22461
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
22437
22462
  :type ImageBase64: str
22438
22463
  :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
22439
22464
  :type IsPdf: bool
@@ -22629,6 +22654,170 @@ class SmartStructuralOCRV2Response(AbstractModel):
22629
22654
  self._RequestId = params.get("RequestId")
22630
22655
 
22631
22656
 
22657
+ class SmartStructuralProRequest(AbstractModel):
22658
+ """SmartStructuralPro请求参数结构体
22659
+
22660
+ """
22661
+
22662
+ def __init__(self):
22663
+ r"""
22664
+ :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
22665
+ :type ImageUrl: str
22666
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
22667
+ :type ImageBase64: str
22668
+ :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
22669
+ :type PdfPageNumber: int
22670
+ :param _ItemNames: 自定义结构化功能需返回的字段名称,例:若客户只想返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
22671
+ :type ItemNames: list of str
22672
+ :param _ReturnFullText: 是否开启全文字段识别
22673
+ :type ReturnFullText: bool
22674
+ :param _ConfigId: 配置id支持:General -- 通用场景 InvoiceEng -- 海运提单、国际invoice模版 WayBillEng --海运订单模板
22675
+ :type ConfigId: str
22676
+ """
22677
+ self._ImageUrl = None
22678
+ self._ImageBase64 = None
22679
+ self._PdfPageNumber = None
22680
+ self._ItemNames = None
22681
+ self._ReturnFullText = None
22682
+ self._ConfigId = None
22683
+
22684
+ @property
22685
+ def ImageUrl(self):
22686
+ return self._ImageUrl
22687
+
22688
+ @ImageUrl.setter
22689
+ def ImageUrl(self, ImageUrl):
22690
+ self._ImageUrl = ImageUrl
22691
+
22692
+ @property
22693
+ def ImageBase64(self):
22694
+ return self._ImageBase64
22695
+
22696
+ @ImageBase64.setter
22697
+ def ImageBase64(self, ImageBase64):
22698
+ self._ImageBase64 = ImageBase64
22699
+
22700
+ @property
22701
+ def PdfPageNumber(self):
22702
+ return self._PdfPageNumber
22703
+
22704
+ @PdfPageNumber.setter
22705
+ def PdfPageNumber(self, PdfPageNumber):
22706
+ self._PdfPageNumber = PdfPageNumber
22707
+
22708
+ @property
22709
+ def ItemNames(self):
22710
+ return self._ItemNames
22711
+
22712
+ @ItemNames.setter
22713
+ def ItemNames(self, ItemNames):
22714
+ self._ItemNames = ItemNames
22715
+
22716
+ @property
22717
+ def ReturnFullText(self):
22718
+ return self._ReturnFullText
22719
+
22720
+ @ReturnFullText.setter
22721
+ def ReturnFullText(self, ReturnFullText):
22722
+ self._ReturnFullText = ReturnFullText
22723
+
22724
+ @property
22725
+ def ConfigId(self):
22726
+ return self._ConfigId
22727
+
22728
+ @ConfigId.setter
22729
+ def ConfigId(self, ConfigId):
22730
+ self._ConfigId = ConfigId
22731
+
22732
+
22733
+ def _deserialize(self, params):
22734
+ self._ImageUrl = params.get("ImageUrl")
22735
+ self._ImageBase64 = params.get("ImageBase64")
22736
+ self._PdfPageNumber = params.get("PdfPageNumber")
22737
+ self._ItemNames = params.get("ItemNames")
22738
+ self._ReturnFullText = params.get("ReturnFullText")
22739
+ self._ConfigId = params.get("ConfigId")
22740
+ memeber_set = set(params.keys())
22741
+ for name, value in vars(self).items():
22742
+ property_name = name[1:]
22743
+ if property_name in memeber_set:
22744
+ memeber_set.remove(property_name)
22745
+ if len(memeber_set) > 0:
22746
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
22747
+
22748
+
22749
+
22750
+ class SmartStructuralProResponse(AbstractModel):
22751
+ """SmartStructuralPro返回参数结构体
22752
+
22753
+ """
22754
+
22755
+ def __init__(self):
22756
+ r"""
22757
+ :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
22758
+ :type Angle: float
22759
+ :param _StructuralList: 配置结构化文本信息
22760
+ :type StructuralList: list of GroupInfo
22761
+ :param _WordList: 还原文本信息
22762
+ :type WordList: list of WordItem
22763
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
22764
+ :type RequestId: str
22765
+ """
22766
+ self._Angle = None
22767
+ self._StructuralList = None
22768
+ self._WordList = None
22769
+ self._RequestId = None
22770
+
22771
+ @property
22772
+ def Angle(self):
22773
+ return self._Angle
22774
+
22775
+ @Angle.setter
22776
+ def Angle(self, Angle):
22777
+ self._Angle = Angle
22778
+
22779
+ @property
22780
+ def StructuralList(self):
22781
+ return self._StructuralList
22782
+
22783
+ @StructuralList.setter
22784
+ def StructuralList(self, StructuralList):
22785
+ self._StructuralList = StructuralList
22786
+
22787
+ @property
22788
+ def WordList(self):
22789
+ return self._WordList
22790
+
22791
+ @WordList.setter
22792
+ def WordList(self, WordList):
22793
+ self._WordList = WordList
22794
+
22795
+ @property
22796
+ def RequestId(self):
22797
+ return self._RequestId
22798
+
22799
+ @RequestId.setter
22800
+ def RequestId(self, RequestId):
22801
+ self._RequestId = RequestId
22802
+
22803
+
22804
+ def _deserialize(self, params):
22805
+ self._Angle = params.get("Angle")
22806
+ if params.get("StructuralList") is not None:
22807
+ self._StructuralList = []
22808
+ for item in params.get("StructuralList"):
22809
+ obj = GroupInfo()
22810
+ obj._deserialize(item)
22811
+ self._StructuralList.append(obj)
22812
+ if params.get("WordList") is not None:
22813
+ self._WordList = []
22814
+ for item in params.get("WordList"):
22815
+ obj = WordItem()
22816
+ obj._deserialize(item)
22817
+ self._WordList.append(obj)
22818
+ self._RequestId = params.get("RequestId")
22819
+
22820
+
22632
22821
  class StoreInfo(AbstractModel):
22633
22822
  """门头照识别结果
22634
22823
 
@@ -23866,7 +24055,7 @@ class TextArithmetic(AbstractModel):
23866
24055
  ‘10’: 脱式计算
23867
24056
  ‘11’: 解方程
23868
24057
  :type ExpressionType: str
23869
- :param _Answer: 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如1<10<7)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
24058
+ :param _Answer: 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如`1<10<7`)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
23870
24059
  :type Answer: str
23871
24060
  """
23872
24061
  self._DetectedText = None
@@ -1166,6 +1166,7 @@ class OcrClient(AbstractClient):
1166
1166
 
1167
1167
  def MLIDPassportOCR(self, request):
1168
1168
  """本接口支持中国港澳台地区以及其他国家、地区的护照识别。识别字段包括护照ID、姓名、出生日期、性别、有效期、发行国、国籍、国家地区代码,具备护照人像照片的裁剪功能和翻拍、复印件告警功能。
1169
+ 本接口支持地区范围:可机读护照国家。
1169
1170
 
1170
1171
  默认接口请求频率限制:5次/秒。
1171
1172
 
@@ -1760,7 +1761,7 @@ class OcrClient(AbstractClient):
1760
1761
  def RecognizeIndonesiaIDCardOCR(self, request):
1761
1762
  """印尼身份证识别
1762
1763
 
1763
- 默认接口请求频率限制:20次/秒。
1764
+ 默认接口请求频率限制:5次/秒。
1764
1765
 
1765
1766
  :param request: Request instance for RecognizeIndonesiaIDCardOCR.
1766
1767
  :type request: :class:`tencentcloud.ocr.v20181119.models.RecognizeIndonesiaIDCardOCRRequest`
@@ -2272,6 +2273,31 @@ class OcrClient(AbstractClient):
2272
2273
  raise TencentCloudSDKException(type(e).__name__, str(e))
2273
2274
 
2274
2275
 
2276
+ def SmartStructuralPro(self, request):
2277
+ """本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
2278
+
2279
+ 默认接口请求频率限制:1次/秒。
2280
+
2281
+ :param request: Request instance for SmartStructuralPro.
2282
+ :type request: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProRequest`
2283
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProResponse`
2284
+
2285
+ """
2286
+ try:
2287
+ params = request._serialize()
2288
+ headers = request.headers
2289
+ body = self.call("SmartStructuralPro", params, headers=headers)
2290
+ response = json.loads(body)
2291
+ model = models.SmartStructuralProResponse()
2292
+ model._deserialize(response["Response"])
2293
+ return model
2294
+ except Exception as e:
2295
+ if isinstance(e, TencentCloudSDKException):
2296
+ raise
2297
+ else:
2298
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2299
+
2300
+
2275
2301
  def TableOCR(self, request):
2276
2302
  """<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
2277
2303
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1230
3
+ Version: 3.0.1261
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==3.0.1261
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1230