tencentcloud-sdk-python 3.0.1352__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/controlcenter/v20230110/models.py +0 -58
- tencentcloud/dbbrain/v20191016/dbbrain_client.py +23 -0
- tencentcloud/dbbrain/v20191016/models.py +375 -0
- tencentcloud/dbbrain/v20210527/dbbrain_client.py +46 -0
- tencentcloud/dbbrain/v20210527/models.py +701 -26
- tencentcloud/dcdb/v20180411/models.py +175 -2
- tencentcloud/dnspod/v20210323/models.py +0 -70
- tencentcloud/facefusion/v20220927/models.py +4 -2
- tencentcloud/gs/v20191118/models.py +16 -4
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +1 -1
- tencentcloud/iotexplorer/v20190423/models.py +49 -412
- tencentcloud/lkeap/v20240522/models.py +12 -6
- tencentcloud/mariadb/v20170312/models.py +151 -2
- tencentcloud/mps/v20190612/models.py +2 -2
- tencentcloud/mqtt/v20240516/models.py +8 -2
- tencentcloud/ocr/v20181119/errorcodes.py +0 -3
- tencentcloud/ocr/v20181119/models.py +0 -558
- tencentcloud/ocr/v20181119/ocr_client.py +0 -23
- tencentcloud/organization/v20210331/models.py +15 -0
- tencentcloud/sqlserver/v20180328/models.py +15 -0
- tencentcloud/tcb/v20180608/models.py +20 -0
- tencentcloud/teo/v20220106/teo_client.py +6 -2
- tencentcloud/tione/v20211111/models.py +35 -3
- tencentcloud/tse/v20201207/models.py +0 -34
- tencentcloud/vod/v20240718/models.py +0 -2
- tencentcloud/vpc/v20170312/models.py +300 -0
- tencentcloud/vpc/v20170312/vpc_client.py +26 -0
- tencentcloud/wedata/v20210820/models.py +17 -0
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/RECORD +43 -43
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1352.dist-info → tencentcloud_sdk_python-3.0.1353.dist-info}/top_level.txt +0 -0
@@ -4571,329 +4571,6 @@ class DetectedWords(AbstractModel):
|
|
4571
4571
|
|
4572
4572
|
|
4573
4573
|
|
4574
|
-
class DocumentElement(AbstractModel):
|
4575
|
-
"""文档元素字段
|
4576
|
-
|
4577
|
-
"""
|
4578
|
-
|
4579
|
-
def __init__(self):
|
4580
|
-
r"""
|
4581
|
-
:param _Index: 文档元素索引
|
4582
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4583
|
-
:type Index: int
|
4584
|
-
:param _Type: 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
4585
|
-
|
4586
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4587
|
-
:type Type: str
|
4588
|
-
:param _Text: 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
4589
|
-
|
4590
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4591
|
-
:type Text: str
|
4592
|
-
:param _Polygon: 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
4593
|
-
|
4594
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4595
|
-
:type Polygon: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
4596
|
-
:param _Level: 元素层级
|
4597
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4598
|
-
:type Level: int
|
4599
|
-
:param _InsetImageName: 入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
|
4600
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4601
|
-
:type InsetImageName: str
|
4602
|
-
:param _Elements: 嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
4603
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4604
|
-
:type Elements: list of DocumentElement
|
4605
|
-
"""
|
4606
|
-
self._Index = None
|
4607
|
-
self._Type = None
|
4608
|
-
self._Text = None
|
4609
|
-
self._Polygon = None
|
4610
|
-
self._Level = None
|
4611
|
-
self._InsetImageName = None
|
4612
|
-
self._Elements = None
|
4613
|
-
|
4614
|
-
@property
|
4615
|
-
def Index(self):
|
4616
|
-
"""文档元素索引
|
4617
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4618
|
-
:rtype: int
|
4619
|
-
"""
|
4620
|
-
return self._Index
|
4621
|
-
|
4622
|
-
@Index.setter
|
4623
|
-
def Index(self, Index):
|
4624
|
-
self._Index = Index
|
4625
|
-
|
4626
|
-
@property
|
4627
|
-
def Type(self):
|
4628
|
-
"""元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
4629
|
-
|
4630
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4631
|
-
:rtype: str
|
4632
|
-
"""
|
4633
|
-
return self._Type
|
4634
|
-
|
4635
|
-
@Type.setter
|
4636
|
-
def Type(self, Type):
|
4637
|
-
self._Type = Type
|
4638
|
-
|
4639
|
-
@property
|
4640
|
-
def Text(self):
|
4641
|
-
"""元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
4642
|
-
|
4643
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4644
|
-
:rtype: str
|
4645
|
-
"""
|
4646
|
-
return self._Text
|
4647
|
-
|
4648
|
-
@Text.setter
|
4649
|
-
def Text(self, Text):
|
4650
|
-
self._Text = Text
|
4651
|
-
|
4652
|
-
@property
|
4653
|
-
def Polygon(self):
|
4654
|
-
"""元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
4655
|
-
|
4656
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4657
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
4658
|
-
"""
|
4659
|
-
return self._Polygon
|
4660
|
-
|
4661
|
-
@Polygon.setter
|
4662
|
-
def Polygon(self, Polygon):
|
4663
|
-
self._Polygon = Polygon
|
4664
|
-
|
4665
|
-
@property
|
4666
|
-
def Level(self):
|
4667
|
-
"""元素层级
|
4668
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4669
|
-
:rtype: int
|
4670
|
-
"""
|
4671
|
-
return self._Level
|
4672
|
-
|
4673
|
-
@Level.setter
|
4674
|
-
def Level(self, Level):
|
4675
|
-
self._Level = Level
|
4676
|
-
|
4677
|
-
@property
|
4678
|
-
def InsetImageName(self):
|
4679
|
-
"""入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
|
4680
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4681
|
-
:rtype: str
|
4682
|
-
"""
|
4683
|
-
return self._InsetImageName
|
4684
|
-
|
4685
|
-
@InsetImageName.setter
|
4686
|
-
def InsetImageName(self, InsetImageName):
|
4687
|
-
self._InsetImageName = InsetImageName
|
4688
|
-
|
4689
|
-
@property
|
4690
|
-
def Elements(self):
|
4691
|
-
"""嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
4692
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4693
|
-
:rtype: list of DocumentElement
|
4694
|
-
"""
|
4695
|
-
return self._Elements
|
4696
|
-
|
4697
|
-
@Elements.setter
|
4698
|
-
def Elements(self, Elements):
|
4699
|
-
self._Elements = Elements
|
4700
|
-
|
4701
|
-
|
4702
|
-
def _deserialize(self, params):
|
4703
|
-
self._Index = params.get("Index")
|
4704
|
-
self._Type = params.get("Type")
|
4705
|
-
self._Text = params.get("Text")
|
4706
|
-
if params.get("Polygon") is not None:
|
4707
|
-
self._Polygon = Polygon()
|
4708
|
-
self._Polygon._deserialize(params.get("Polygon"))
|
4709
|
-
self._Level = params.get("Level")
|
4710
|
-
self._InsetImageName = params.get("InsetImageName")
|
4711
|
-
if params.get("Elements") is not None:
|
4712
|
-
self._Elements = []
|
4713
|
-
for item in params.get("Elements"):
|
4714
|
-
obj = DocumentElement()
|
4715
|
-
obj._deserialize(item)
|
4716
|
-
self._Elements.append(obj)
|
4717
|
-
memeber_set = set(params.keys())
|
4718
|
-
for name, value in vars(self).items():
|
4719
|
-
property_name = name[1:]
|
4720
|
-
if property_name in memeber_set:
|
4721
|
-
memeber_set.remove(property_name)
|
4722
|
-
if len(memeber_set) > 0:
|
4723
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4724
|
-
|
4725
|
-
|
4726
|
-
|
4727
|
-
class DocumentRecognizeInfo(AbstractModel):
|
4728
|
-
"""单页文档识别的内容
|
4729
|
-
|
4730
|
-
"""
|
4731
|
-
|
4732
|
-
def __init__(self):
|
4733
|
-
r"""
|
4734
|
-
:param _PageNumber: 输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
4735
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4736
|
-
:type PageNumber: int
|
4737
|
-
:param _Angle: 旋转角度
|
4738
|
-
|
4739
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4740
|
-
:type Angle: int
|
4741
|
-
:param _Height: AI算法识别处理后的图片高度
|
4742
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4743
|
-
:type Height: int
|
4744
|
-
:param _Width: AI算法识别处理后的图片宽度
|
4745
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4746
|
-
:type Width: int
|
4747
|
-
:param _OriginHeight: 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
4748
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4749
|
-
:type OriginHeight: int
|
4750
|
-
:param _OriginWidth: 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
4751
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4752
|
-
:type OriginWidth: int
|
4753
|
-
:param _Elements: 文档元素信息
|
4754
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4755
|
-
:type Elements: list of DocumentElement
|
4756
|
-
:param _RotatedAngle: 旋转角度
|
4757
|
-
|
4758
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4759
|
-
:type RotatedAngle: float
|
4760
|
-
"""
|
4761
|
-
self._PageNumber = None
|
4762
|
-
self._Angle = None
|
4763
|
-
self._Height = None
|
4764
|
-
self._Width = None
|
4765
|
-
self._OriginHeight = None
|
4766
|
-
self._OriginWidth = None
|
4767
|
-
self._Elements = None
|
4768
|
-
self._RotatedAngle = None
|
4769
|
-
|
4770
|
-
@property
|
4771
|
-
def PageNumber(self):
|
4772
|
-
"""输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
4773
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4774
|
-
:rtype: int
|
4775
|
-
"""
|
4776
|
-
return self._PageNumber
|
4777
|
-
|
4778
|
-
@PageNumber.setter
|
4779
|
-
def PageNumber(self, PageNumber):
|
4780
|
-
self._PageNumber = PageNumber
|
4781
|
-
|
4782
|
-
@property
|
4783
|
-
def Angle(self):
|
4784
|
-
warnings.warn("parameter `Angle` is deprecated", DeprecationWarning)
|
4785
|
-
|
4786
|
-
"""旋转角度
|
4787
|
-
|
4788
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4789
|
-
:rtype: int
|
4790
|
-
"""
|
4791
|
-
return self._Angle
|
4792
|
-
|
4793
|
-
@Angle.setter
|
4794
|
-
def Angle(self, Angle):
|
4795
|
-
warnings.warn("parameter `Angle` is deprecated", DeprecationWarning)
|
4796
|
-
|
4797
|
-
self._Angle = Angle
|
4798
|
-
|
4799
|
-
@property
|
4800
|
-
def Height(self):
|
4801
|
-
"""AI算法识别处理后的图片高度
|
4802
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4803
|
-
:rtype: int
|
4804
|
-
"""
|
4805
|
-
return self._Height
|
4806
|
-
|
4807
|
-
@Height.setter
|
4808
|
-
def Height(self, Height):
|
4809
|
-
self._Height = Height
|
4810
|
-
|
4811
|
-
@property
|
4812
|
-
def Width(self):
|
4813
|
-
"""AI算法识别处理后的图片宽度
|
4814
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4815
|
-
:rtype: int
|
4816
|
-
"""
|
4817
|
-
return self._Width
|
4818
|
-
|
4819
|
-
@Width.setter
|
4820
|
-
def Width(self, Width):
|
4821
|
-
self._Width = Width
|
4822
|
-
|
4823
|
-
@property
|
4824
|
-
def OriginHeight(self):
|
4825
|
-
"""图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
4826
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4827
|
-
:rtype: int
|
4828
|
-
"""
|
4829
|
-
return self._OriginHeight
|
4830
|
-
|
4831
|
-
@OriginHeight.setter
|
4832
|
-
def OriginHeight(self, OriginHeight):
|
4833
|
-
self._OriginHeight = OriginHeight
|
4834
|
-
|
4835
|
-
@property
|
4836
|
-
def OriginWidth(self):
|
4837
|
-
"""图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
4838
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4839
|
-
:rtype: int
|
4840
|
-
"""
|
4841
|
-
return self._OriginWidth
|
4842
|
-
|
4843
|
-
@OriginWidth.setter
|
4844
|
-
def OriginWidth(self, OriginWidth):
|
4845
|
-
self._OriginWidth = OriginWidth
|
4846
|
-
|
4847
|
-
@property
|
4848
|
-
def Elements(self):
|
4849
|
-
"""文档元素信息
|
4850
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4851
|
-
:rtype: list of DocumentElement
|
4852
|
-
"""
|
4853
|
-
return self._Elements
|
4854
|
-
|
4855
|
-
@Elements.setter
|
4856
|
-
def Elements(self, Elements):
|
4857
|
-
self._Elements = Elements
|
4858
|
-
|
4859
|
-
@property
|
4860
|
-
def RotatedAngle(self):
|
4861
|
-
"""旋转角度
|
4862
|
-
|
4863
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
4864
|
-
:rtype: float
|
4865
|
-
"""
|
4866
|
-
return self._RotatedAngle
|
4867
|
-
|
4868
|
-
@RotatedAngle.setter
|
4869
|
-
def RotatedAngle(self, RotatedAngle):
|
4870
|
-
self._RotatedAngle = RotatedAngle
|
4871
|
-
|
4872
|
-
|
4873
|
-
def _deserialize(self, params):
|
4874
|
-
self._PageNumber = params.get("PageNumber")
|
4875
|
-
self._Angle = params.get("Angle")
|
4876
|
-
self._Height = params.get("Height")
|
4877
|
-
self._Width = params.get("Width")
|
4878
|
-
self._OriginHeight = params.get("OriginHeight")
|
4879
|
-
self._OriginWidth = params.get("OriginWidth")
|
4880
|
-
if params.get("Elements") is not None:
|
4881
|
-
self._Elements = []
|
4882
|
-
for item in params.get("Elements"):
|
4883
|
-
obj = DocumentElement()
|
4884
|
-
obj._deserialize(item)
|
4885
|
-
self._Elements.append(obj)
|
4886
|
-
self._RotatedAngle = params.get("RotatedAngle")
|
4887
|
-
memeber_set = set(params.keys())
|
4888
|
-
for name, value in vars(self).items():
|
4889
|
-
property_name = name[1:]
|
4890
|
-
if property_name in memeber_set:
|
4891
|
-
memeber_set.remove(property_name)
|
4892
|
-
if len(memeber_set) > 0:
|
4893
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
4894
|
-
|
4895
|
-
|
4896
|
-
|
4897
4574
|
class DriverLicenseOCRRequest(AbstractModel):
|
4898
4575
|
"""DriverLicenseOCR请求参数结构体
|
4899
4576
|
|
@@ -26475,241 +26152,6 @@ class RecognizeValidIDCardOCRResponse(AbstractModel):
|
|
26475
26152
|
self._RequestId = params.get("RequestId")
|
26476
26153
|
|
26477
26154
|
|
26478
|
-
class ReconstructDocumentConfig(AbstractModel):
|
26479
|
-
"""ReconstructDocument配置选项
|
26480
|
-
|
26481
|
-
"""
|
26482
|
-
|
26483
|
-
def __init__(self):
|
26484
|
-
r"""
|
26485
|
-
:param _EnableInsetImage: 生成的Markdown中是否嵌入图片
|
26486
|
-
:type EnableInsetImage: bool
|
26487
|
-
"""
|
26488
|
-
self._EnableInsetImage = None
|
26489
|
-
|
26490
|
-
@property
|
26491
|
-
def EnableInsetImage(self):
|
26492
|
-
"""生成的Markdown中是否嵌入图片
|
26493
|
-
:rtype: bool
|
26494
|
-
"""
|
26495
|
-
return self._EnableInsetImage
|
26496
|
-
|
26497
|
-
@EnableInsetImage.setter
|
26498
|
-
def EnableInsetImage(self, EnableInsetImage):
|
26499
|
-
self._EnableInsetImage = EnableInsetImage
|
26500
|
-
|
26501
|
-
|
26502
|
-
def _deserialize(self, params):
|
26503
|
-
self._EnableInsetImage = params.get("EnableInsetImage")
|
26504
|
-
memeber_set = set(params.keys())
|
26505
|
-
for name, value in vars(self).items():
|
26506
|
-
property_name = name[1:]
|
26507
|
-
if property_name in memeber_set:
|
26508
|
-
memeber_set.remove(property_name)
|
26509
|
-
if len(memeber_set) > 0:
|
26510
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
26511
|
-
|
26512
|
-
|
26513
|
-
|
26514
|
-
class ReconstructDocumentRequest(AbstractModel):
|
26515
|
-
"""ReconstructDocument请求参数结构体
|
26516
|
-
|
26517
|
-
"""
|
26518
|
-
|
26519
|
-
def __init__(self):
|
26520
|
-
r"""
|
26521
|
-
:param _FileType: PDF,Image
|
26522
|
-
:type FileType: str
|
26523
|
-
:param _FileBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
26524
|
-
:type FileBase64: str
|
26525
|
-
:param _FileUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26526
|
-
:type FileUrl: str
|
26527
|
-
:param _FileStartPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
26528
|
-
:type FileStartPageNumber: int
|
26529
|
-
:param _FileEndPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
26530
|
-
单次调用,最多支持10页pdf的智能识别。
|
26531
|
-
:type FileEndPageNumber: int
|
26532
|
-
:param _Config: 配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
26533
|
-
:type Config: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentConfig`
|
26534
|
-
"""
|
26535
|
-
self._FileType = None
|
26536
|
-
self._FileBase64 = None
|
26537
|
-
self._FileUrl = None
|
26538
|
-
self._FileStartPageNumber = None
|
26539
|
-
self._FileEndPageNumber = None
|
26540
|
-
self._Config = None
|
26541
|
-
|
26542
|
-
@property
|
26543
|
-
def FileType(self):
|
26544
|
-
"""PDF,Image
|
26545
|
-
:rtype: str
|
26546
|
-
"""
|
26547
|
-
return self._FileType
|
26548
|
-
|
26549
|
-
@FileType.setter
|
26550
|
-
def FileType(self, FileType):
|
26551
|
-
self._FileType = FileType
|
26552
|
-
|
26553
|
-
@property
|
26554
|
-
def FileBase64(self):
|
26555
|
-
"""图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
26556
|
-
:rtype: str
|
26557
|
-
"""
|
26558
|
-
return self._FileBase64
|
26559
|
-
|
26560
|
-
@FileBase64.setter
|
26561
|
-
def FileBase64(self, FileBase64):
|
26562
|
-
self._FileBase64 = FileBase64
|
26563
|
-
|
26564
|
-
@property
|
26565
|
-
def FileUrl(self):
|
26566
|
-
"""图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26567
|
-
:rtype: str
|
26568
|
-
"""
|
26569
|
-
return self._FileUrl
|
26570
|
-
|
26571
|
-
@FileUrl.setter
|
26572
|
-
def FileUrl(self, FileUrl):
|
26573
|
-
self._FileUrl = FileUrl
|
26574
|
-
|
26575
|
-
@property
|
26576
|
-
def FileStartPageNumber(self):
|
26577
|
-
"""当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
26578
|
-
:rtype: int
|
26579
|
-
"""
|
26580
|
-
return self._FileStartPageNumber
|
26581
|
-
|
26582
|
-
@FileStartPageNumber.setter
|
26583
|
-
def FileStartPageNumber(self, FileStartPageNumber):
|
26584
|
-
self._FileStartPageNumber = FileStartPageNumber
|
26585
|
-
|
26586
|
-
@property
|
26587
|
-
def FileEndPageNumber(self):
|
26588
|
-
"""当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
26589
|
-
单次调用,最多支持10页pdf的智能识别。
|
26590
|
-
:rtype: int
|
26591
|
-
"""
|
26592
|
-
return self._FileEndPageNumber
|
26593
|
-
|
26594
|
-
@FileEndPageNumber.setter
|
26595
|
-
def FileEndPageNumber(self, FileEndPageNumber):
|
26596
|
-
self._FileEndPageNumber = FileEndPageNumber
|
26597
|
-
|
26598
|
-
@property
|
26599
|
-
def Config(self):
|
26600
|
-
"""配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
26601
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentConfig`
|
26602
|
-
"""
|
26603
|
-
return self._Config
|
26604
|
-
|
26605
|
-
@Config.setter
|
26606
|
-
def Config(self, Config):
|
26607
|
-
self._Config = Config
|
26608
|
-
|
26609
|
-
|
26610
|
-
def _deserialize(self, params):
|
26611
|
-
self._FileType = params.get("FileType")
|
26612
|
-
self._FileBase64 = params.get("FileBase64")
|
26613
|
-
self._FileUrl = params.get("FileUrl")
|
26614
|
-
self._FileStartPageNumber = params.get("FileStartPageNumber")
|
26615
|
-
self._FileEndPageNumber = params.get("FileEndPageNumber")
|
26616
|
-
if params.get("Config") is not None:
|
26617
|
-
self._Config = ReconstructDocumentConfig()
|
26618
|
-
self._Config._deserialize(params.get("Config"))
|
26619
|
-
memeber_set = set(params.keys())
|
26620
|
-
for name, value in vars(self).items():
|
26621
|
-
property_name = name[1:]
|
26622
|
-
if property_name in memeber_set:
|
26623
|
-
memeber_set.remove(property_name)
|
26624
|
-
if len(memeber_set) > 0:
|
26625
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
26626
|
-
|
26627
|
-
|
26628
|
-
|
26629
|
-
class ReconstructDocumentResponse(AbstractModel):
|
26630
|
-
"""ReconstructDocument返回参数结构体
|
26631
|
-
|
26632
|
-
"""
|
26633
|
-
|
26634
|
-
def __init__(self):
|
26635
|
-
r"""
|
26636
|
-
:param _MarkdownBase64: 识别生成的Markdown文件base64编码的字符串
|
26637
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26638
|
-
:type MarkdownBase64: str
|
26639
|
-
:param _InsetImagePackage: 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
26640
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26641
|
-
:type InsetImagePackage: str
|
26642
|
-
:param _DocumentRecognizeInfo: 输入文件中嵌入的图片中文字内容的识别结果
|
26643
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26644
|
-
:type DocumentRecognizeInfo: list of DocumentRecognizeInfo
|
26645
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
26646
|
-
:type RequestId: str
|
26647
|
-
"""
|
26648
|
-
self._MarkdownBase64 = None
|
26649
|
-
self._InsetImagePackage = None
|
26650
|
-
self._DocumentRecognizeInfo = None
|
26651
|
-
self._RequestId = None
|
26652
|
-
|
26653
|
-
@property
|
26654
|
-
def MarkdownBase64(self):
|
26655
|
-
"""识别生成的Markdown文件base64编码的字符串
|
26656
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26657
|
-
:rtype: str
|
26658
|
-
"""
|
26659
|
-
return self._MarkdownBase64
|
26660
|
-
|
26661
|
-
@MarkdownBase64.setter
|
26662
|
-
def MarkdownBase64(self, MarkdownBase64):
|
26663
|
-
self._MarkdownBase64 = MarkdownBase64
|
26664
|
-
|
26665
|
-
@property
|
26666
|
-
def InsetImagePackage(self):
|
26667
|
-
"""输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
26668
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26669
|
-
:rtype: str
|
26670
|
-
"""
|
26671
|
-
return self._InsetImagePackage
|
26672
|
-
|
26673
|
-
@InsetImagePackage.setter
|
26674
|
-
def InsetImagePackage(self, InsetImagePackage):
|
26675
|
-
self._InsetImagePackage = InsetImagePackage
|
26676
|
-
|
26677
|
-
@property
|
26678
|
-
def DocumentRecognizeInfo(self):
|
26679
|
-
"""输入文件中嵌入的图片中文字内容的识别结果
|
26680
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
26681
|
-
:rtype: list of DocumentRecognizeInfo
|
26682
|
-
"""
|
26683
|
-
return self._DocumentRecognizeInfo
|
26684
|
-
|
26685
|
-
@DocumentRecognizeInfo.setter
|
26686
|
-
def DocumentRecognizeInfo(self, DocumentRecognizeInfo):
|
26687
|
-
self._DocumentRecognizeInfo = DocumentRecognizeInfo
|
26688
|
-
|
26689
|
-
@property
|
26690
|
-
def RequestId(self):
|
26691
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
26692
|
-
:rtype: str
|
26693
|
-
"""
|
26694
|
-
return self._RequestId
|
26695
|
-
|
26696
|
-
@RequestId.setter
|
26697
|
-
def RequestId(self, RequestId):
|
26698
|
-
self._RequestId = RequestId
|
26699
|
-
|
26700
|
-
|
26701
|
-
def _deserialize(self, params):
|
26702
|
-
self._MarkdownBase64 = params.get("MarkdownBase64")
|
26703
|
-
self._InsetImagePackage = params.get("InsetImagePackage")
|
26704
|
-
if params.get("DocumentRecognizeInfo") is not None:
|
26705
|
-
self._DocumentRecognizeInfo = []
|
26706
|
-
for item in params.get("DocumentRecognizeInfo"):
|
26707
|
-
obj = DocumentRecognizeInfo()
|
26708
|
-
obj._deserialize(item)
|
26709
|
-
self._DocumentRecognizeInfo.append(obj)
|
26710
|
-
self._RequestId = params.get("RequestId")
|
26711
|
-
|
26712
|
-
|
26713
26155
|
class Rect(AbstractModel):
|
26714
26156
|
"""矩形坐标
|
26715
26157
|
|
@@ -2066,29 +2066,6 @@ class OcrClient(AbstractClient):
|
|
2066
2066
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2067
2067
|
|
2068
2068
|
|
2069
|
-
def ReconstructDocument(self, request):
|
2070
|
-
"""服务已迁移至 [文档解析](https://cloud.tencent.com/document/product/1759/107504),请跳转查看接口文档。该接口支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
2071
|
-
|
2072
|
-
:param request: Request instance for ReconstructDocument.
|
2073
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentRequest`
|
2074
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentResponse`
|
2075
|
-
|
2076
|
-
"""
|
2077
|
-
try:
|
2078
|
-
params = request._serialize()
|
2079
|
-
headers = request.headers
|
2080
|
-
body = self.call("ReconstructDocument", params, headers=headers)
|
2081
|
-
response = json.loads(body)
|
2082
|
-
model = models.ReconstructDocumentResponse()
|
2083
|
-
model._deserialize(response["Response"])
|
2084
|
-
return model
|
2085
|
-
except Exception as e:
|
2086
|
-
if isinstance(e, TencentCloudSDKException):
|
2087
|
-
raise
|
2088
|
-
else:
|
2089
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2090
|
-
|
2091
|
-
|
2092
2069
|
def ResidenceBookletOCR(self, request):
|
2093
2070
|
"""本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
2094
2071
|
|
@@ -3137,8 +3137,11 @@ class CreateSCIMCredentialRequest(AbstractModel):
|
|
3137
3137
|
r"""
|
3138
3138
|
:param _ZoneId: 空间ID。z-前缀开头,后面是12位随机数字/小写字母
|
3139
3139
|
:type ZoneId: str
|
3140
|
+
:param _ExpireDuration: 过期时间(秒),最小1小时,最大99年。如果不传则默认一年过期
|
3141
|
+
:type ExpireDuration: int
|
3140
3142
|
"""
|
3141
3143
|
self._ZoneId = None
|
3144
|
+
self._ExpireDuration = None
|
3142
3145
|
|
3143
3146
|
@property
|
3144
3147
|
def ZoneId(self):
|
@@ -3151,9 +3154,21 @@ class CreateSCIMCredentialRequest(AbstractModel):
|
|
3151
3154
|
def ZoneId(self, ZoneId):
|
3152
3155
|
self._ZoneId = ZoneId
|
3153
3156
|
|
3157
|
+
@property
|
3158
|
+
def ExpireDuration(self):
|
3159
|
+
"""过期时间(秒),最小1小时,最大99年。如果不传则默认一年过期
|
3160
|
+
:rtype: int
|
3161
|
+
"""
|
3162
|
+
return self._ExpireDuration
|
3163
|
+
|
3164
|
+
@ExpireDuration.setter
|
3165
|
+
def ExpireDuration(self, ExpireDuration):
|
3166
|
+
self._ExpireDuration = ExpireDuration
|
3167
|
+
|
3154
3168
|
|
3155
3169
|
def _deserialize(self, params):
|
3156
3170
|
self._ZoneId = params.get("ZoneId")
|
3171
|
+
self._ExpireDuration = params.get("ExpireDuration")
|
3157
3172
|
memeber_set = set(params.keys())
|
3158
3173
|
for name, value in vars(self).items():
|
3159
3174
|
property_name = name[1:]
|
@@ -28466,8 +28466,11 @@ class RestartDBInstanceRequest(AbstractModel):
|
|
28466
28466
|
r"""
|
28467
28467
|
:param _InstanceId: 数据库实例ID,形如mssql-njj2mtpl
|
28468
28468
|
:type InstanceId: str
|
28469
|
+
:param _WaitSwitch: 重启设置,0-立刻重启,1-维护时间窗口内重启,默认0
|
28470
|
+
:type WaitSwitch: int
|
28469
28471
|
"""
|
28470
28472
|
self._InstanceId = None
|
28473
|
+
self._WaitSwitch = None
|
28471
28474
|
|
28472
28475
|
@property
|
28473
28476
|
def InstanceId(self):
|
@@ -28480,9 +28483,21 @@ class RestartDBInstanceRequest(AbstractModel):
|
|
28480
28483
|
def InstanceId(self, InstanceId):
|
28481
28484
|
self._InstanceId = InstanceId
|
28482
28485
|
|
28486
|
+
@property
|
28487
|
+
def WaitSwitch(self):
|
28488
|
+
"""重启设置,0-立刻重启,1-维护时间窗口内重启,默认0
|
28489
|
+
:rtype: int
|
28490
|
+
"""
|
28491
|
+
return self._WaitSwitch
|
28492
|
+
|
28493
|
+
@WaitSwitch.setter
|
28494
|
+
def WaitSwitch(self, WaitSwitch):
|
28495
|
+
self._WaitSwitch = WaitSwitch
|
28496
|
+
|
28483
28497
|
|
28484
28498
|
def _deserialize(self, params):
|
28485
28499
|
self._InstanceId = params.get("InstanceId")
|
28500
|
+
self._WaitSwitch = params.get("WaitSwitch")
|
28486
28501
|
memeber_set = set(params.keys())
|
28487
28502
|
for name, value in vars(self).items():
|
28488
28503
|
property_name = name[1:]
|