tencentcloud-sdk-python-ocr 3.0.1350__tar.gz → 3.0.1352__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.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud/ocr/v20181119/models.py +143 -0
  5. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  6. tencentcloud-sdk-python-ocr-3.0.1352/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-ocr-3.0.1350/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  8. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/README.rst +0 -0
  9. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/setup.cfg +0 -0
  10. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud/ocr/__init__.py +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1350 → tencentcloud-sdk-python-ocr-3.0.1352}/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.1350
3
+ Version: 3.0.1352
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.1350"],
11
+ install_requires=["tencentcloud-sdk-python-common==3.0.1352"],
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.1350'
17
+ __version__ = '3.0.1352'
@@ -4008,6 +4008,42 @@ class ClassifyStoreNameResponse(AbstractModel):
4008
4008
  self._RequestId = params.get("RequestId")
4009
4009
 
4010
4010
 
4011
+ class ConfigAdvanced(AbstractModel):
4012
+ """支持模版的单个属性配置
4013
+
4014
+ """
4015
+
4016
+ def __init__(self):
4017
+ r"""
4018
+ :param _Scene: 模版的单个属性配置
4019
+ :type Scene: str
4020
+ """
4021
+ self._Scene = None
4022
+
4023
+ @property
4024
+ def Scene(self):
4025
+ """模版的单个属性配置
4026
+ :rtype: str
4027
+ """
4028
+ return self._Scene
4029
+
4030
+ @Scene.setter
4031
+ def Scene(self, Scene):
4032
+ self._Scene = Scene
4033
+
4034
+
4035
+ def _deserialize(self, params):
4036
+ self._Scene = params.get("Scene")
4037
+ memeber_set = set(params.keys())
4038
+ for name, value in vars(self).items():
4039
+ property_name = name[1:]
4040
+ if property_name in memeber_set:
4041
+ memeber_set.remove(property_name)
4042
+ if len(memeber_set) > 0:
4043
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4044
+
4045
+
4046
+
4011
4047
  class ContentInfo(AbstractModel):
4012
4048
  """卡证字段信息返回值
4013
4049
 
@@ -29934,11 +29970,14 @@ BookingConfirmation -- 配舱通知书识别模板
29934
29970
  AirWayBill -- 航空运单识别模板
29935
29971
  DispatchWeightNote -- 磅单发货单识别模板
29936
29972
  ReceiptWeightNote -- 磅单收货单识别模板
29973
+ ArticalRecognize -- 手写作文模版
29937
29974
  :type ConfigId: str
29938
29975
  :param _EnableCoord: 是否开启全文字段坐标值的识别
29939
29976
  :type EnableCoord: bool
29940
29977
  :param _OutputParentKey: 是否开启父子key识别,默认是
29941
29978
  :type OutputParentKey: bool
29979
+ :param _ConfigAdvanced: 模版的单个属性配置
29980
+ :type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
29942
29981
  """
29943
29982
  self._ImageUrl = None
29944
29983
  self._ImageBase64 = None
@@ -29948,6 +29987,7 @@ ReceiptWeightNote -- 磅单收货单识别模板
29948
29987
  self._ConfigId = None
29949
29988
  self._EnableCoord = None
29950
29989
  self._OutputParentKey = None
29990
+ self._ConfigAdvanced = None
29951
29991
 
29952
29992
  @property
29953
29993
  def ImageUrl(self):
@@ -30021,6 +30061,7 @@ BookingConfirmation -- 配舱通知书识别模板
30021
30061
  AirWayBill -- 航空运单识别模板
30022
30062
  DispatchWeightNote -- 磅单发货单识别模板
30023
30063
  ReceiptWeightNote -- 磅单收货单识别模板
30064
+ ArticalRecognize -- 手写作文模版
30024
30065
  :rtype: str
30025
30066
  """
30026
30067
  return self._ConfigId
@@ -30051,6 +30092,17 @@ ReceiptWeightNote -- 磅单收货单识别模板
30051
30092
  def OutputParentKey(self, OutputParentKey):
30052
30093
  self._OutputParentKey = OutputParentKey
30053
30094
 
30095
+ @property
30096
+ def ConfigAdvanced(self):
30097
+ """模版的单个属性配置
30098
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
30099
+ """
30100
+ return self._ConfigAdvanced
30101
+
30102
+ @ConfigAdvanced.setter
30103
+ def ConfigAdvanced(self, ConfigAdvanced):
30104
+ self._ConfigAdvanced = ConfigAdvanced
30105
+
30054
30106
 
30055
30107
  def _deserialize(self, params):
30056
30108
  self._ImageUrl = params.get("ImageUrl")
@@ -30061,6 +30113,9 @@ ReceiptWeightNote -- 磅单收货单识别模板
30061
30113
  self._ConfigId = params.get("ConfigId")
30062
30114
  self._EnableCoord = params.get("EnableCoord")
30063
30115
  self._OutputParentKey = params.get("OutputParentKey")
30116
+ if params.get("ConfigAdvanced") is not None:
30117
+ self._ConfigAdvanced = ConfigAdvanced()
30118
+ self._ConfigAdvanced._deserialize(params.get("ConfigAdvanced"))
30064
30119
  memeber_set = set(params.keys())
30065
30120
  for name, value in vars(self).items():
30066
30121
  property_name = name[1:]
@@ -41470,6 +41525,94 @@ class WordItem(AbstractModel):
41470
41525
 
41471
41526
  """
41472
41527
 
41528
+ def __init__(self):
41529
+ r"""
41530
+ :param _DetectedText: 文本块内容
41531
+ :type DetectedText: str
41532
+ :param _Coord: 四点坐标
41533
+ :type Coord: :class:`tencentcloud.ocr.v20181119.models.Polygon`
41534
+ :param _AdvancedInfo: 描述性信息
41535
+ :type AdvancedInfo: str
41536
+ :param _WordCoord: 单词的四点坐标
41537
+ :type WordCoord: list of WordPolygon
41538
+ """
41539
+ self._DetectedText = None
41540
+ self._Coord = None
41541
+ self._AdvancedInfo = None
41542
+ self._WordCoord = None
41543
+
41544
+ @property
41545
+ def DetectedText(self):
41546
+ """文本块内容
41547
+ :rtype: str
41548
+ """
41549
+ return self._DetectedText
41550
+
41551
+ @DetectedText.setter
41552
+ def DetectedText(self, DetectedText):
41553
+ self._DetectedText = DetectedText
41554
+
41555
+ @property
41556
+ def Coord(self):
41557
+ """四点坐标
41558
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
41559
+ """
41560
+ return self._Coord
41561
+
41562
+ @Coord.setter
41563
+ def Coord(self, Coord):
41564
+ self._Coord = Coord
41565
+
41566
+ @property
41567
+ def AdvancedInfo(self):
41568
+ """描述性信息
41569
+ :rtype: str
41570
+ """
41571
+ return self._AdvancedInfo
41572
+
41573
+ @AdvancedInfo.setter
41574
+ def AdvancedInfo(self, AdvancedInfo):
41575
+ self._AdvancedInfo = AdvancedInfo
41576
+
41577
+ @property
41578
+ def WordCoord(self):
41579
+ """单词的四点坐标
41580
+ :rtype: list of WordPolygon
41581
+ """
41582
+ return self._WordCoord
41583
+
41584
+ @WordCoord.setter
41585
+ def WordCoord(self, WordCoord):
41586
+ self._WordCoord = WordCoord
41587
+
41588
+
41589
+ def _deserialize(self, params):
41590
+ self._DetectedText = params.get("DetectedText")
41591
+ if params.get("Coord") is not None:
41592
+ self._Coord = Polygon()
41593
+ self._Coord._deserialize(params.get("Coord"))
41594
+ self._AdvancedInfo = params.get("AdvancedInfo")
41595
+ if params.get("WordCoord") is not None:
41596
+ self._WordCoord = []
41597
+ for item in params.get("WordCoord"):
41598
+ obj = WordPolygon()
41599
+ obj._deserialize(item)
41600
+ self._WordCoord.append(obj)
41601
+ memeber_set = set(params.keys())
41602
+ for name, value in vars(self).items():
41603
+ property_name = name[1:]
41604
+ if property_name in memeber_set:
41605
+ memeber_set.remove(property_name)
41606
+ if len(memeber_set) > 0:
41607
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
41608
+
41609
+
41610
+
41611
+ class WordPolygon(AbstractModel):
41612
+ """单词坐标信息
41613
+
41614
+ """
41615
+
41473
41616
  def __init__(self):
41474
41617
  r"""
41475
41618
  :param _DetectedText: 文本块内容
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1350
3
+ Version: 3.0.1352
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.1352
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common==3.0.1350