tencentcloud-sdk-python 3.0.1351__py2.py3-none-any.whl → 3.0.1353__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/batch/v20170312/batch_client.py +0 -46
- tencentcloud/batch/v20170312/errorcodes.py +0 -9
- tencentcloud/batch/v20170312/models.py +21 -962
- tencentcloud/bi/v20220105/models.py +145 -0
- tencentcloud/cam/v20190116/errorcodes.py +3 -0
- tencentcloud/cam/v20190116/models.py +0 -82
- tencentcloud/cbs/v20170312/models.py +6 -14
- tencentcloud/cdn/v20180606/models.py +0 -46
- tencentcloud/chdfs/v20201112/models.py +2 -2
- tencentcloud/cls/v20201016/cls_client.py +92 -0
- tencentcloud/cls/v20201016/models.py +908 -26
- tencentcloud/controlcenter/v20230110/models.py +0 -58
- tencentcloud/cvm/v20170312/cvm_client.py +1 -1
- tencentcloud/cvm/v20170312/models.py +2 -6
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +603 -10
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +942 -49
- tencentcloud/dcdb/v20180411/models.py +175 -2
- tencentcloud/dlc/v20210125/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/errorcodes.py +3 -0
- tencentcloud/dlc/v20210125/models.py +284 -0
- tencentcloud/dnspod/v20210323/models.py +0 -70
- tencentcloud/ess/v20201111/models.py +6 -6
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/gs/v20191118/models.py +51 -4
- tencentcloud/hai/v20230812/models.py +2 -18
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/iotexplorer/v20190423/models.py +141 -420
- tencentcloud/live/v20180801/models.py +4 -6
- tencentcloud/lkeap/v20240522/models.py +12 -6
- tencentcloud/mariadb/v20170312/models.py +151 -2
- tencentcloud/mps/v20190612/models.py +10 -10
- tencentcloud/mqtt/v20240516/models.py +97 -14
- tencentcloud/ocr/v20181119/errorcodes.py +0 -3
- tencentcloud/ocr/v20181119/models.py +143 -558
- tencentcloud/ocr/v20181119/ocr_client.py +0 -23
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/partners/v20180321/models.py +15 -0
- tencentcloud/sqlserver/v20180328/models.py +15 -0
- tencentcloud/tcb/v20180608/models.py +20 -0
- tencentcloud/tdmq/v20200217/models.py +45 -0
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/teo/v20220901/models.py +85 -12
- tencentcloud/tione/v20211111/models.py +35 -3
- tencentcloud/trro/v20220325/models.py +992 -44
- tencentcloud/trro/v20220325/trro_client.py +117 -0
- tencentcloud/tse/v20201207/models.py +0 -34
- tencentcloud/vdb/v20230616/models.py +1438 -40
- tencentcloud/vdb/v20230616/vdb_client.py +184 -0
- tencentcloud/vod/v20180717/models.py +15 -0
- tencentcloud/vod/v20240718/errorcodes.py +33 -0
- tencentcloud/vod/v20240718/models.py +1839 -0
- tencentcloud/vod/v20240718/vod_client.py +146 -0
- tencentcloud/vpc/v20170312/models.py +300 -0
- tencentcloud/vpc/v20170312/vpc_client.py +26 -0
- tencentcloud/wedata/v20210820/models.py +808 -0
- tencentcloud/wedata/v20210820/wedata_client.py +46 -0
- tencentcloud/weilingwith/v20230427/weilingwith_client.py +3 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/RECORD +66 -66
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1351.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/top_level.txt +0 -0
@@ -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
|
|
@@ -4535,329 +4571,6 @@ class DetectedWords(AbstractModel):
|
|
4535
4571
|
|
4536
4572
|
|
4537
4573
|
|
4538
|
-
class DocumentElement(AbstractModel):
|
4539
|
-
"""文档元素字段
|
4540
|
-
|
4541
|
-
"""
|
4542
|
-
|
4543
|
-
def __init__(self):
|
4544
|
-
r"""
|
4545
|
-
:param _Index: 文档元素索引
|
4546
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4547
|
-
:type Index: int
|
4548
|
-
:param _Type: 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
4549
|
-
|
4550
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4551
|
-
:type Type: str
|
4552
|
-
:param _Text: 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
4553
|
-
|
4554
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4555
|
-
:type Text: str
|
4556
|
-
:param _Polygon: 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
4557
|
-
|
4558
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4559
|
-
:type Polygon: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
4560
|
-
:param _Level: 元素层级
|
4561
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4562
|
-
:type Level: int
|
4563
|
-
:param _InsetImageName: 入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
|
4564
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4565
|
-
:type InsetImageName: str
|
4566
|
-
:param _Elements: 嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
4567
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4568
|
-
:type Elements: list of DocumentElement
|
4569
|
-
"""
|
4570
|
-
self._Index = None
|
4571
|
-
self._Type = None
|
4572
|
-
self._Text = None
|
4573
|
-
self._Polygon = None
|
4574
|
-
self._Level = None
|
4575
|
-
self._InsetImageName = None
|
4576
|
-
self._Elements = None
|
4577
|
-
|
4578
|
-
@property
|
4579
|
-
def Index(self):
|
4580
|
-
"""文档元素索引
|
4581
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4582
|
-
:rtype: int
|
4583
|
-
"""
|
4584
|
-
return self._Index
|
4585
|
-
|
4586
|
-
@Index.setter
|
4587
|
-
def Index(self, Index):
|
4588
|
-
self._Index = Index
|
4589
|
-
|
4590
|
-
@property
|
4591
|
-
def Type(self):
|
4592
|
-
"""元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
4593
|
-
|
4594
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4595
|
-
:rtype: str
|
4596
|
-
"""
|
4597
|
-
return self._Type
|
4598
|
-
|
4599
|
-
@Type.setter
|
4600
|
-
def Type(self, Type):
|
4601
|
-
self._Type = Type
|
4602
|
-
|
4603
|
-
@property
|
4604
|
-
def Text(self):
|
4605
|
-
"""元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
4606
|
-
|
4607
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4608
|
-
:rtype: str
|
4609
|
-
"""
|
4610
|
-
return self._Text
|
4611
|
-
|
4612
|
-
@Text.setter
|
4613
|
-
def Text(self, Text):
|
4614
|
-
self._Text = Text
|
4615
|
-
|
4616
|
-
@property
|
4617
|
-
def Polygon(self):
|
4618
|
-
"""元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
4619
|
-
|
4620
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4621
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
4622
|
-
"""
|
4623
|
-
return self._Polygon
|
4624
|
-
|
4625
|
-
@Polygon.setter
|
4626
|
-
def Polygon(self, Polygon):
|
4627
|
-
self._Polygon = Polygon
|
4628
|
-
|
4629
|
-
@property
|
4630
|
-
def Level(self):
|
4631
|
-
"""元素层级
|
4632
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4633
|
-
:rtype: int
|
4634
|
-
"""
|
4635
|
-
return self._Level
|
4636
|
-
|
4637
|
-
@Level.setter
|
4638
|
-
def Level(self, Level):
|
4639
|
-
self._Level = Level
|
4640
|
-
|
4641
|
-
@property
|
4642
|
-
def InsetImageName(self):
|
4643
|
-
"""入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
|
4644
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4645
|
-
:rtype: str
|
4646
|
-
"""
|
4647
|
-
return self._InsetImageName
|
4648
|
-
|
4649
|
-
@InsetImageName.setter
|
4650
|
-
def InsetImageName(self, InsetImageName):
|
4651
|
-
self._InsetImageName = InsetImageName
|
4652
|
-
|
4653
|
-
@property
|
4654
|
-
def Elements(self):
|
4655
|
-
"""嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
4656
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4657
|
-
:rtype: list of DocumentElement
|
4658
|
-
"""
|
4659
|
-
return self._Elements
|
4660
|
-
|
4661
|
-
@Elements.setter
|
4662
|
-
def Elements(self, Elements):
|
4663
|
-
self._Elements = Elements
|
4664
|
-
|
4665
|
-
|
4666
|
-
def _deserialize(self, params):
|
4667
|
-
self._Index = params.get("Index")
|
4668
|
-
self._Type = params.get("Type")
|
4669
|
-
self._Text = params.get("Text")
|
4670
|
-
if params.get("Polygon") is not None:
|
4671
|
-
self._Polygon = Polygon()
|
4672
|
-
self._Polygon._deserialize(params.get("Polygon"))
|
4673
|
-
self._Level = params.get("Level")
|
4674
|
-
self._InsetImageName = params.get("InsetImageName")
|
4675
|
-
if params.get("Elements") is not None:
|
4676
|
-
self._Elements = []
|
4677
|
-
for item in params.get("Elements"):
|
4678
|
-
obj = DocumentElement()
|
4679
|
-
obj._deserialize(item)
|
4680
|
-
self._Elements.append(obj)
|
4681
|
-
memeber_set = set(params.keys())
|
4682
|
-
for name, value in vars(self).items():
|
4683
|
-
property_name = name[1:]
|
4684
|
-
if property_name in memeber_set:
|
4685
|
-
memeber_set.remove(property_name)
|
4686
|
-
if len(memeber_set) > 0:
|
4687
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4688
|
-
|
4689
|
-
|
4690
|
-
|
4691
|
-
class DocumentRecognizeInfo(AbstractModel):
|
4692
|
-
"""单页文档识别的内容
|
4693
|
-
|
4694
|
-
"""
|
4695
|
-
|
4696
|
-
def __init__(self):
|
4697
|
-
r"""
|
4698
|
-
:param _PageNumber: 输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
4699
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4700
|
-
:type PageNumber: int
|
4701
|
-
:param _Angle: 旋转角度
|
4702
|
-
|
4703
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4704
|
-
:type Angle: int
|
4705
|
-
:param _Height: AI算法识别处理后的图片高度
|
4706
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4707
|
-
:type Height: int
|
4708
|
-
:param _Width: AI算法识别处理后的图片宽度
|
4709
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4710
|
-
:type Width: int
|
4711
|
-
:param _OriginHeight: 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
4712
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4713
|
-
:type OriginHeight: int
|
4714
|
-
:param _OriginWidth: 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
4715
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4716
|
-
:type OriginWidth: int
|
4717
|
-
:param _Elements: 文档元素信息
|
4718
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4719
|
-
:type Elements: list of DocumentElement
|
4720
|
-
:param _RotatedAngle: 旋转角度
|
4721
|
-
|
4722
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4723
|
-
:type RotatedAngle: float
|
4724
|
-
"""
|
4725
|
-
self._PageNumber = None
|
4726
|
-
self._Angle = None
|
4727
|
-
self._Height = None
|
4728
|
-
self._Width = None
|
4729
|
-
self._OriginHeight = None
|
4730
|
-
self._OriginWidth = None
|
4731
|
-
self._Elements = None
|
4732
|
-
self._RotatedAngle = None
|
4733
|
-
|
4734
|
-
@property
|
4735
|
-
def PageNumber(self):
|
4736
|
-
"""输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
4737
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4738
|
-
:rtype: int
|
4739
|
-
"""
|
4740
|
-
return self._PageNumber
|
4741
|
-
|
4742
|
-
@PageNumber.setter
|
4743
|
-
def PageNumber(self, PageNumber):
|
4744
|
-
self._PageNumber = PageNumber
|
4745
|
-
|
4746
|
-
@property
|
4747
|
-
def Angle(self):
|
4748
|
-
warnings.warn("parameter `Angle` is deprecated", DeprecationWarning)
|
4749
|
-
|
4750
|
-
"""旋转角度
|
4751
|
-
|
4752
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4753
|
-
:rtype: int
|
4754
|
-
"""
|
4755
|
-
return self._Angle
|
4756
|
-
|
4757
|
-
@Angle.setter
|
4758
|
-
def Angle(self, Angle):
|
4759
|
-
warnings.warn("parameter `Angle` is deprecated", DeprecationWarning)
|
4760
|
-
|
4761
|
-
self._Angle = Angle
|
4762
|
-
|
4763
|
-
@property
|
4764
|
-
def Height(self):
|
4765
|
-
"""AI算法识别处理后的图片高度
|
4766
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4767
|
-
:rtype: int
|
4768
|
-
"""
|
4769
|
-
return self._Height
|
4770
|
-
|
4771
|
-
@Height.setter
|
4772
|
-
def Height(self, Height):
|
4773
|
-
self._Height = Height
|
4774
|
-
|
4775
|
-
@property
|
4776
|
-
def Width(self):
|
4777
|
-
"""AI算法识别处理后的图片宽度
|
4778
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4779
|
-
:rtype: int
|
4780
|
-
"""
|
4781
|
-
return self._Width
|
4782
|
-
|
4783
|
-
@Width.setter
|
4784
|
-
def Width(self, Width):
|
4785
|
-
self._Width = Width
|
4786
|
-
|
4787
|
-
@property
|
4788
|
-
def OriginHeight(self):
|
4789
|
-
"""图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
4790
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4791
|
-
:rtype: int
|
4792
|
-
"""
|
4793
|
-
return self._OriginHeight
|
4794
|
-
|
4795
|
-
@OriginHeight.setter
|
4796
|
-
def OriginHeight(self, OriginHeight):
|
4797
|
-
self._OriginHeight = OriginHeight
|
4798
|
-
|
4799
|
-
@property
|
4800
|
-
def OriginWidth(self):
|
4801
|
-
"""图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
4802
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4803
|
-
:rtype: int
|
4804
|
-
"""
|
4805
|
-
return self._OriginWidth
|
4806
|
-
|
4807
|
-
@OriginWidth.setter
|
4808
|
-
def OriginWidth(self, OriginWidth):
|
4809
|
-
self._OriginWidth = OriginWidth
|
4810
|
-
|
4811
|
-
@property
|
4812
|
-
def Elements(self):
|
4813
|
-
"""文档元素信息
|
4814
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4815
|
-
:rtype: list of DocumentElement
|
4816
|
-
"""
|
4817
|
-
return self._Elements
|
4818
|
-
|
4819
|
-
@Elements.setter
|
4820
|
-
def Elements(self, Elements):
|
4821
|
-
self._Elements = Elements
|
4822
|
-
|
4823
|
-
@property
|
4824
|
-
def RotatedAngle(self):
|
4825
|
-
"""旋转角度
|
4826
|
-
|
4827
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4828
|
-
:rtype: float
|
4829
|
-
"""
|
4830
|
-
return self._RotatedAngle
|
4831
|
-
|
4832
|
-
@RotatedAngle.setter
|
4833
|
-
def RotatedAngle(self, RotatedAngle):
|
4834
|
-
self._RotatedAngle = RotatedAngle
|
4835
|
-
|
4836
|
-
|
4837
|
-
def _deserialize(self, params):
|
4838
|
-
self._PageNumber = params.get("PageNumber")
|
4839
|
-
self._Angle = params.get("Angle")
|
4840
|
-
self._Height = params.get("Height")
|
4841
|
-
self._Width = params.get("Width")
|
4842
|
-
self._OriginHeight = params.get("OriginHeight")
|
4843
|
-
self._OriginWidth = params.get("OriginWidth")
|
4844
|
-
if params.get("Elements") is not None:
|
4845
|
-
self._Elements = []
|
4846
|
-
for item in params.get("Elements"):
|
4847
|
-
obj = DocumentElement()
|
4848
|
-
obj._deserialize(item)
|
4849
|
-
self._Elements.append(obj)
|
4850
|
-
self._RotatedAngle = params.get("RotatedAngle")
|
4851
|
-
memeber_set = set(params.keys())
|
4852
|
-
for name, value in vars(self).items():
|
4853
|
-
property_name = name[1:]
|
4854
|
-
if property_name in memeber_set:
|
4855
|
-
memeber_set.remove(property_name)
|
4856
|
-
if len(memeber_set) > 0:
|
4857
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4858
|
-
|
4859
|
-
|
4860
|
-
|
4861
4574
|
class DriverLicenseOCRRequest(AbstractModel):
|
4862
4575
|
"""DriverLicenseOCR请求参数结构体
|
4863
4576
|
|
@@ -26439,241 +26152,6 @@ class RecognizeValidIDCardOCRResponse(AbstractModel):
|
|
26439
26152
|
self._RequestId = params.get("RequestId")
|
26440
26153
|
|
26441
26154
|
|
26442
|
-
class ReconstructDocumentConfig(AbstractModel):
|
26443
|
-
"""ReconstructDocument配置选项
|
26444
|
-
|
26445
|
-
"""
|
26446
|
-
|
26447
|
-
def __init__(self):
|
26448
|
-
r"""
|
26449
|
-
:param _EnableInsetImage: 生成的Markdown中是否嵌入图片
|
26450
|
-
:type EnableInsetImage: bool
|
26451
|
-
"""
|
26452
|
-
self._EnableInsetImage = None
|
26453
|
-
|
26454
|
-
@property
|
26455
|
-
def EnableInsetImage(self):
|
26456
|
-
"""生成的Markdown中是否嵌入图片
|
26457
|
-
:rtype: bool
|
26458
|
-
"""
|
26459
|
-
return self._EnableInsetImage
|
26460
|
-
|
26461
|
-
@EnableInsetImage.setter
|
26462
|
-
def EnableInsetImage(self, EnableInsetImage):
|
26463
|
-
self._EnableInsetImage = EnableInsetImage
|
26464
|
-
|
26465
|
-
|
26466
|
-
def _deserialize(self, params):
|
26467
|
-
self._EnableInsetImage = params.get("EnableInsetImage")
|
26468
|
-
memeber_set = set(params.keys())
|
26469
|
-
for name, value in vars(self).items():
|
26470
|
-
property_name = name[1:]
|
26471
|
-
if property_name in memeber_set:
|
26472
|
-
memeber_set.remove(property_name)
|
26473
|
-
if len(memeber_set) > 0:
|
26474
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
26475
|
-
|
26476
|
-
|
26477
|
-
|
26478
|
-
class ReconstructDocumentRequest(AbstractModel):
|
26479
|
-
"""ReconstructDocument请求参数结构体
|
26480
|
-
|
26481
|
-
"""
|
26482
|
-
|
26483
|
-
def __init__(self):
|
26484
|
-
r"""
|
26485
|
-
:param _FileType: PDF,Image
|
26486
|
-
:type FileType: str
|
26487
|
-
:param _FileBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
26488
|
-
:type FileBase64: str
|
26489
|
-
:param _FileUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26490
|
-
:type FileUrl: str
|
26491
|
-
:param _FileStartPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
26492
|
-
:type FileStartPageNumber: int
|
26493
|
-
:param _FileEndPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
26494
|
-
单次调用,最多支持10页pdf的智能识别。
|
26495
|
-
:type FileEndPageNumber: int
|
26496
|
-
:param _Config: 配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
26497
|
-
:type Config: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentConfig`
|
26498
|
-
"""
|
26499
|
-
self._FileType = None
|
26500
|
-
self._FileBase64 = None
|
26501
|
-
self._FileUrl = None
|
26502
|
-
self._FileStartPageNumber = None
|
26503
|
-
self._FileEndPageNumber = None
|
26504
|
-
self._Config = None
|
26505
|
-
|
26506
|
-
@property
|
26507
|
-
def FileType(self):
|
26508
|
-
"""PDF,Image
|
26509
|
-
:rtype: str
|
26510
|
-
"""
|
26511
|
-
return self._FileType
|
26512
|
-
|
26513
|
-
@FileType.setter
|
26514
|
-
def FileType(self, FileType):
|
26515
|
-
self._FileType = FileType
|
26516
|
-
|
26517
|
-
@property
|
26518
|
-
def FileBase64(self):
|
26519
|
-
"""图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
26520
|
-
:rtype: str
|
26521
|
-
"""
|
26522
|
-
return self._FileBase64
|
26523
|
-
|
26524
|
-
@FileBase64.setter
|
26525
|
-
def FileBase64(self, FileBase64):
|
26526
|
-
self._FileBase64 = FileBase64
|
26527
|
-
|
26528
|
-
@property
|
26529
|
-
def FileUrl(self):
|
26530
|
-
"""图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26531
|
-
:rtype: str
|
26532
|
-
"""
|
26533
|
-
return self._FileUrl
|
26534
|
-
|
26535
|
-
@FileUrl.setter
|
26536
|
-
def FileUrl(self, FileUrl):
|
26537
|
-
self._FileUrl = FileUrl
|
26538
|
-
|
26539
|
-
@property
|
26540
|
-
def FileStartPageNumber(self):
|
26541
|
-
"""当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
26542
|
-
:rtype: int
|
26543
|
-
"""
|
26544
|
-
return self._FileStartPageNumber
|
26545
|
-
|
26546
|
-
@FileStartPageNumber.setter
|
26547
|
-
def FileStartPageNumber(self, FileStartPageNumber):
|
26548
|
-
self._FileStartPageNumber = FileStartPageNumber
|
26549
|
-
|
26550
|
-
@property
|
26551
|
-
def FileEndPageNumber(self):
|
26552
|
-
"""当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
26553
|
-
单次调用,最多支持10页pdf的智能识别。
|
26554
|
-
:rtype: int
|
26555
|
-
"""
|
26556
|
-
return self._FileEndPageNumber
|
26557
|
-
|
26558
|
-
@FileEndPageNumber.setter
|
26559
|
-
def FileEndPageNumber(self, FileEndPageNumber):
|
26560
|
-
self._FileEndPageNumber = FileEndPageNumber
|
26561
|
-
|
26562
|
-
@property
|
26563
|
-
def Config(self):
|
26564
|
-
"""配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
26565
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentConfig`
|
26566
|
-
"""
|
26567
|
-
return self._Config
|
26568
|
-
|
26569
|
-
@Config.setter
|
26570
|
-
def Config(self, Config):
|
26571
|
-
self._Config = Config
|
26572
|
-
|
26573
|
-
|
26574
|
-
def _deserialize(self, params):
|
26575
|
-
self._FileType = params.get("FileType")
|
26576
|
-
self._FileBase64 = params.get("FileBase64")
|
26577
|
-
self._FileUrl = params.get("FileUrl")
|
26578
|
-
self._FileStartPageNumber = params.get("FileStartPageNumber")
|
26579
|
-
self._FileEndPageNumber = params.get("FileEndPageNumber")
|
26580
|
-
if params.get("Config") is not None:
|
26581
|
-
self._Config = ReconstructDocumentConfig()
|
26582
|
-
self._Config._deserialize(params.get("Config"))
|
26583
|
-
memeber_set = set(params.keys())
|
26584
|
-
for name, value in vars(self).items():
|
26585
|
-
property_name = name[1:]
|
26586
|
-
if property_name in memeber_set:
|
26587
|
-
memeber_set.remove(property_name)
|
26588
|
-
if len(memeber_set) > 0:
|
26589
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
26590
|
-
|
26591
|
-
|
26592
|
-
|
26593
|
-
class ReconstructDocumentResponse(AbstractModel):
|
26594
|
-
"""ReconstructDocument返回参数结构体
|
26595
|
-
|
26596
|
-
"""
|
26597
|
-
|
26598
|
-
def __init__(self):
|
26599
|
-
r"""
|
26600
|
-
:param _MarkdownBase64: 识别生成的Markdown文件base64编码的字符串
|
26601
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26602
|
-
:type MarkdownBase64: str
|
26603
|
-
:param _InsetImagePackage: 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
26604
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26605
|
-
:type InsetImagePackage: str
|
26606
|
-
:param _DocumentRecognizeInfo: 输入文件中嵌入的图片中文字内容的识别结果
|
26607
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26608
|
-
:type DocumentRecognizeInfo: list of DocumentRecognizeInfo
|
26609
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
26610
|
-
:type RequestId: str
|
26611
|
-
"""
|
26612
|
-
self._MarkdownBase64 = None
|
26613
|
-
self._InsetImagePackage = None
|
26614
|
-
self._DocumentRecognizeInfo = None
|
26615
|
-
self._RequestId = None
|
26616
|
-
|
26617
|
-
@property
|
26618
|
-
def MarkdownBase64(self):
|
26619
|
-
"""识别生成的Markdown文件base64编码的字符串
|
26620
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26621
|
-
:rtype: str
|
26622
|
-
"""
|
26623
|
-
return self._MarkdownBase64
|
26624
|
-
|
26625
|
-
@MarkdownBase64.setter
|
26626
|
-
def MarkdownBase64(self, MarkdownBase64):
|
26627
|
-
self._MarkdownBase64 = MarkdownBase64
|
26628
|
-
|
26629
|
-
@property
|
26630
|
-
def InsetImagePackage(self):
|
26631
|
-
"""输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
26632
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26633
|
-
:rtype: str
|
26634
|
-
"""
|
26635
|
-
return self._InsetImagePackage
|
26636
|
-
|
26637
|
-
@InsetImagePackage.setter
|
26638
|
-
def InsetImagePackage(self, InsetImagePackage):
|
26639
|
-
self._InsetImagePackage = InsetImagePackage
|
26640
|
-
|
26641
|
-
@property
|
26642
|
-
def DocumentRecognizeInfo(self):
|
26643
|
-
"""输入文件中嵌入的图片中文字内容的识别结果
|
26644
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26645
|
-
:rtype: list of DocumentRecognizeInfo
|
26646
|
-
"""
|
26647
|
-
return self._DocumentRecognizeInfo
|
26648
|
-
|
26649
|
-
@DocumentRecognizeInfo.setter
|
26650
|
-
def DocumentRecognizeInfo(self, DocumentRecognizeInfo):
|
26651
|
-
self._DocumentRecognizeInfo = DocumentRecognizeInfo
|
26652
|
-
|
26653
|
-
@property
|
26654
|
-
def RequestId(self):
|
26655
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
26656
|
-
:rtype: str
|
26657
|
-
"""
|
26658
|
-
return self._RequestId
|
26659
|
-
|
26660
|
-
@RequestId.setter
|
26661
|
-
def RequestId(self, RequestId):
|
26662
|
-
self._RequestId = RequestId
|
26663
|
-
|
26664
|
-
|
26665
|
-
def _deserialize(self, params):
|
26666
|
-
self._MarkdownBase64 = params.get("MarkdownBase64")
|
26667
|
-
self._InsetImagePackage = params.get("InsetImagePackage")
|
26668
|
-
if params.get("DocumentRecognizeInfo") is not None:
|
26669
|
-
self._DocumentRecognizeInfo = []
|
26670
|
-
for item in params.get("DocumentRecognizeInfo"):
|
26671
|
-
obj = DocumentRecognizeInfo()
|
26672
|
-
obj._deserialize(item)
|
26673
|
-
self._DocumentRecognizeInfo.append(obj)
|
26674
|
-
self._RequestId = params.get("RequestId")
|
26675
|
-
|
26676
|
-
|
26677
26155
|
class Rect(AbstractModel):
|
26678
26156
|
"""矩形坐标
|
26679
26157
|
|
@@ -29934,11 +29412,14 @@ BookingConfirmation -- 配舱通知书识别模板
|
|
29934
29412
|
AirWayBill -- 航空运单识别模板
|
29935
29413
|
DispatchWeightNote -- 磅单发货单识别模板
|
29936
29414
|
ReceiptWeightNote -- 磅单收货单识别模板
|
29415
|
+
ArticalRecognize -- 手写作文模版
|
29937
29416
|
:type ConfigId: str
|
29938
29417
|
:param _EnableCoord: 是否开启全文字段坐标值的识别
|
29939
29418
|
:type EnableCoord: bool
|
29940
29419
|
:param _OutputParentKey: 是否开启父子key识别,默认是
|
29941
29420
|
:type OutputParentKey: bool
|
29421
|
+
:param _ConfigAdvanced: 模版的单个属性配置
|
29422
|
+
:type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
|
29942
29423
|
"""
|
29943
29424
|
self._ImageUrl = None
|
29944
29425
|
self._ImageBase64 = None
|
@@ -29948,6 +29429,7 @@ ReceiptWeightNote -- 磅单收货单识别模板
|
|
29948
29429
|
self._ConfigId = None
|
29949
29430
|
self._EnableCoord = None
|
29950
29431
|
self._OutputParentKey = None
|
29432
|
+
self._ConfigAdvanced = None
|
29951
29433
|
|
29952
29434
|
@property
|
29953
29435
|
def ImageUrl(self):
|
@@ -30021,6 +29503,7 @@ BookingConfirmation -- 配舱通知书识别模板
|
|
30021
29503
|
AirWayBill -- 航空运单识别模板
|
30022
29504
|
DispatchWeightNote -- 磅单发货单识别模板
|
30023
29505
|
ReceiptWeightNote -- 磅单收货单识别模板
|
29506
|
+
ArticalRecognize -- 手写作文模版
|
30024
29507
|
:rtype: str
|
30025
29508
|
"""
|
30026
29509
|
return self._ConfigId
|
@@ -30051,6 +29534,17 @@ ReceiptWeightNote -- 磅单收货单识别模板
|
|
30051
29534
|
def OutputParentKey(self, OutputParentKey):
|
30052
29535
|
self._OutputParentKey = OutputParentKey
|
30053
29536
|
|
29537
|
+
@property
|
29538
|
+
def ConfigAdvanced(self):
|
29539
|
+
"""模版的单个属性配置
|
29540
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
|
29541
|
+
"""
|
29542
|
+
return self._ConfigAdvanced
|
29543
|
+
|
29544
|
+
@ConfigAdvanced.setter
|
29545
|
+
def ConfigAdvanced(self, ConfigAdvanced):
|
29546
|
+
self._ConfigAdvanced = ConfigAdvanced
|
29547
|
+
|
30054
29548
|
|
30055
29549
|
def _deserialize(self, params):
|
30056
29550
|
self._ImageUrl = params.get("ImageUrl")
|
@@ -30061,6 +29555,9 @@ ReceiptWeightNote -- 磅单收货单识别模板
|
|
30061
29555
|
self._ConfigId = params.get("ConfigId")
|
30062
29556
|
self._EnableCoord = params.get("EnableCoord")
|
30063
29557
|
self._OutputParentKey = params.get("OutputParentKey")
|
29558
|
+
if params.get("ConfigAdvanced") is not None:
|
29559
|
+
self._ConfigAdvanced = ConfigAdvanced()
|
29560
|
+
self._ConfigAdvanced._deserialize(params.get("ConfigAdvanced"))
|
30064
29561
|
memeber_set = set(params.keys())
|
30065
29562
|
for name, value in vars(self).items():
|
30066
29563
|
property_name = name[1:]
|
@@ -41470,6 +40967,94 @@ class WordItem(AbstractModel):
|
|
41470
40967
|
|
41471
40968
|
"""
|
41472
40969
|
|
40970
|
+
def __init__(self):
|
40971
|
+
r"""
|
40972
|
+
:param _DetectedText: 文本块内容
|
40973
|
+
:type DetectedText: str
|
40974
|
+
:param _Coord: 四点坐标
|
40975
|
+
:type Coord: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
40976
|
+
:param _AdvancedInfo: 描述性信息
|
40977
|
+
:type AdvancedInfo: str
|
40978
|
+
:param _WordCoord: 单词的四点坐标
|
40979
|
+
:type WordCoord: list of WordPolygon
|
40980
|
+
"""
|
40981
|
+
self._DetectedText = None
|
40982
|
+
self._Coord = None
|
40983
|
+
self._AdvancedInfo = None
|
40984
|
+
self._WordCoord = None
|
40985
|
+
|
40986
|
+
@property
|
40987
|
+
def DetectedText(self):
|
40988
|
+
"""文本块内容
|
40989
|
+
:rtype: str
|
40990
|
+
"""
|
40991
|
+
return self._DetectedText
|
40992
|
+
|
40993
|
+
@DetectedText.setter
|
40994
|
+
def DetectedText(self, DetectedText):
|
40995
|
+
self._DetectedText = DetectedText
|
40996
|
+
|
40997
|
+
@property
|
40998
|
+
def Coord(self):
|
40999
|
+
"""四点坐标
|
41000
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
41001
|
+
"""
|
41002
|
+
return self._Coord
|
41003
|
+
|
41004
|
+
@Coord.setter
|
41005
|
+
def Coord(self, Coord):
|
41006
|
+
self._Coord = Coord
|
41007
|
+
|
41008
|
+
@property
|
41009
|
+
def AdvancedInfo(self):
|
41010
|
+
"""描述性信息
|
41011
|
+
:rtype: str
|
41012
|
+
"""
|
41013
|
+
return self._AdvancedInfo
|
41014
|
+
|
41015
|
+
@AdvancedInfo.setter
|
41016
|
+
def AdvancedInfo(self, AdvancedInfo):
|
41017
|
+
self._AdvancedInfo = AdvancedInfo
|
41018
|
+
|
41019
|
+
@property
|
41020
|
+
def WordCoord(self):
|
41021
|
+
"""单词的四点坐标
|
41022
|
+
:rtype: list of WordPolygon
|
41023
|
+
"""
|
41024
|
+
return self._WordCoord
|
41025
|
+
|
41026
|
+
@WordCoord.setter
|
41027
|
+
def WordCoord(self, WordCoord):
|
41028
|
+
self._WordCoord = WordCoord
|
41029
|
+
|
41030
|
+
|
41031
|
+
def _deserialize(self, params):
|
41032
|
+
self._DetectedText = params.get("DetectedText")
|
41033
|
+
if params.get("Coord") is not None:
|
41034
|
+
self._Coord = Polygon()
|
41035
|
+
self._Coord._deserialize(params.get("Coord"))
|
41036
|
+
self._AdvancedInfo = params.get("AdvancedInfo")
|
41037
|
+
if params.get("WordCoord") is not None:
|
41038
|
+
self._WordCoord = []
|
41039
|
+
for item in params.get("WordCoord"):
|
41040
|
+
obj = WordPolygon()
|
41041
|
+
obj._deserialize(item)
|
41042
|
+
self._WordCoord.append(obj)
|
41043
|
+
memeber_set = set(params.keys())
|
41044
|
+
for name, value in vars(self).items():
|
41045
|
+
property_name = name[1:]
|
41046
|
+
if property_name in memeber_set:
|
41047
|
+
memeber_set.remove(property_name)
|
41048
|
+
if len(memeber_set) > 0:
|
41049
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
41050
|
+
|
41051
|
+
|
41052
|
+
|
41053
|
+
class WordPolygon(AbstractModel):
|
41054
|
+
"""单词坐标信息
|
41055
|
+
|
41056
|
+
"""
|
41057
|
+
|
41473
41058
|
def __init__(self):
|
41474
41059
|
r"""
|
41475
41060
|
:param _DetectedText: 文本块内容
|