tencentcloud-sdk-python 3.0.1117__py2.py3-none-any.whl → 3.0.1119__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.
Potentially problematic release.
This version of tencentcloud-sdk-python might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/asr/v20190614/asr_client.py +1 -1
- tencentcloud/asr/v20190614/models.py +3 -4
- tencentcloud/bi/v20220105/models.py +36 -0
- tencentcloud/billing/v20180709/models.py +334 -17
- tencentcloud/ccc/v20200210/ccc_client.py +69 -0
- tencentcloud/ccc/v20200210/errorcodes.py +9 -0
- tencentcloud/ccc/v20200210/models.py +620 -0
- tencentcloud/cdwpg/v20201230/models.py +12 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +46 -0
- tencentcloud/ckafka/v20190819/models.py +288 -1
- tencentcloud/clb/v20180317/models.py +0 -1
- tencentcloud/cloudstudio/v20230508/models.py +52 -4
- tencentcloud/csip/v20221121/models.py +9 -8
- tencentcloud/cwp/v20180228/cwp_client.py +6 -2
- tencentcloud/cwp/v20180228/models.py +166 -0
- tencentcloud/cynosdb/v20190107/cynosdb_client.py +23 -0
- tencentcloud/cynosdb/v20190107/models.py +375 -0
- tencentcloud/dlc/v20210125/models.py +8 -0
- tencentcloud/dsgc/v20190723/models.py +24 -0
- tencentcloud/dts/v20211206/models.py +52 -0
- tencentcloud/es/v20180416/models.py +163 -5
- tencentcloud/ess/v20201111/models.py +51 -34
- tencentcloud/essbasic/v20210526/models.py +26 -7
- tencentcloud/iotexplorer/v20190423/errorcodes.py +3 -0
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +529 -0
- tencentcloud/iotexplorer/v20190423/models.py +3400 -271
- tencentcloud/lcic/v20220817/models.py +90 -0
- tencentcloud/mps/v20190612/models.py +69 -25
- tencentcloud/ocr/v20181119/errorcodes.py +3 -0
- tencentcloud/ocr/v20181119/models.py +443 -0
- tencentcloud/ocr/v20181119/ocr_client.py +23 -0
- tencentcloud/tione/v20211111/models.py +130 -2
- tencentcloud/tms/v20201229/tms_client.py +1 -1
- tencentcloud/tts/v20190823/models.py +13 -0
- tencentcloud/vod/v20180717/models.py +12 -17
- tencentcloud/wedata/v20210820/models.py +285 -7
- {tencentcloud_sdk_python-3.0.1117.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1117.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/RECORD +42 -42
- {tencentcloud_sdk_python-3.0.1117.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1117.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1117.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/top_level.txt +0 -0
|
@@ -3266,6 +3266,251 @@ class DetectedWords(AbstractModel):
|
|
|
3266
3266
|
|
|
3267
3267
|
|
|
3268
3268
|
|
|
3269
|
+
class DocumentElement(AbstractModel):
|
|
3270
|
+
"""文档元素字段
|
|
3271
|
+
|
|
3272
|
+
"""
|
|
3273
|
+
|
|
3274
|
+
def __init__(self):
|
|
3275
|
+
r"""
|
|
3276
|
+
:param _Index: 文档元素索引
|
|
3277
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3278
|
+
:type Index: int
|
|
3279
|
+
:param _Type: 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
|
3280
|
+
|
|
3281
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3282
|
+
:type Type: str
|
|
3283
|
+
:param _Text: 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
|
3284
|
+
|
|
3285
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3286
|
+
:type Text: str
|
|
3287
|
+
:param _Polygon: 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
|
3288
|
+
|
|
3289
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3290
|
+
:type Polygon: :class:`tencentcloud.ocr.v20181119.models.Polygon`
|
|
3291
|
+
:param _Level: 元素层级
|
|
3292
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3293
|
+
:type Level: int
|
|
3294
|
+
:param _Elements: 嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
|
|
3295
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3296
|
+
:type Elements: list of DocumentElement
|
|
3297
|
+
"""
|
|
3298
|
+
self._Index = None
|
|
3299
|
+
self._Type = None
|
|
3300
|
+
self._Text = None
|
|
3301
|
+
self._Polygon = None
|
|
3302
|
+
self._Level = None
|
|
3303
|
+
self._Elements = None
|
|
3304
|
+
|
|
3305
|
+
@property
|
|
3306
|
+
def Index(self):
|
|
3307
|
+
return self._Index
|
|
3308
|
+
|
|
3309
|
+
@Index.setter
|
|
3310
|
+
def Index(self, Index):
|
|
3311
|
+
self._Index = Index
|
|
3312
|
+
|
|
3313
|
+
@property
|
|
3314
|
+
def Type(self):
|
|
3315
|
+
return self._Type
|
|
3316
|
+
|
|
3317
|
+
@Type.setter
|
|
3318
|
+
def Type(self, Type):
|
|
3319
|
+
self._Type = Type
|
|
3320
|
+
|
|
3321
|
+
@property
|
|
3322
|
+
def Text(self):
|
|
3323
|
+
return self._Text
|
|
3324
|
+
|
|
3325
|
+
@Text.setter
|
|
3326
|
+
def Text(self, Text):
|
|
3327
|
+
self._Text = Text
|
|
3328
|
+
|
|
3329
|
+
@property
|
|
3330
|
+
def Polygon(self):
|
|
3331
|
+
return self._Polygon
|
|
3332
|
+
|
|
3333
|
+
@Polygon.setter
|
|
3334
|
+
def Polygon(self, Polygon):
|
|
3335
|
+
self._Polygon = Polygon
|
|
3336
|
+
|
|
3337
|
+
@property
|
|
3338
|
+
def Level(self):
|
|
3339
|
+
return self._Level
|
|
3340
|
+
|
|
3341
|
+
@Level.setter
|
|
3342
|
+
def Level(self, Level):
|
|
3343
|
+
self._Level = Level
|
|
3344
|
+
|
|
3345
|
+
@property
|
|
3346
|
+
def Elements(self):
|
|
3347
|
+
return self._Elements
|
|
3348
|
+
|
|
3349
|
+
@Elements.setter
|
|
3350
|
+
def Elements(self, Elements):
|
|
3351
|
+
self._Elements = Elements
|
|
3352
|
+
|
|
3353
|
+
|
|
3354
|
+
def _deserialize(self, params):
|
|
3355
|
+
self._Index = params.get("Index")
|
|
3356
|
+
self._Type = params.get("Type")
|
|
3357
|
+
self._Text = params.get("Text")
|
|
3358
|
+
if params.get("Polygon") is not None:
|
|
3359
|
+
self._Polygon = Polygon()
|
|
3360
|
+
self._Polygon._deserialize(params.get("Polygon"))
|
|
3361
|
+
self._Level = params.get("Level")
|
|
3362
|
+
if params.get("Elements") is not None:
|
|
3363
|
+
self._Elements = []
|
|
3364
|
+
for item in params.get("Elements"):
|
|
3365
|
+
obj = DocumentElement()
|
|
3366
|
+
obj._deserialize(item)
|
|
3367
|
+
self._Elements.append(obj)
|
|
3368
|
+
memeber_set = set(params.keys())
|
|
3369
|
+
for name, value in vars(self).items():
|
|
3370
|
+
property_name = name[1:]
|
|
3371
|
+
if property_name in memeber_set:
|
|
3372
|
+
memeber_set.remove(property_name)
|
|
3373
|
+
if len(memeber_set) > 0:
|
|
3374
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3375
|
+
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
class DocumentRecognizeInfo(AbstractModel):
|
|
3379
|
+
"""单页文档识别的内容
|
|
3380
|
+
|
|
3381
|
+
"""
|
|
3382
|
+
|
|
3383
|
+
def __init__(self):
|
|
3384
|
+
r"""
|
|
3385
|
+
:param _PageNumber: 输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
|
3386
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3387
|
+
:type PageNumber: int
|
|
3388
|
+
:param _Angle: 旋转角度
|
|
3389
|
+
|
|
3390
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3391
|
+
:type Angle: int
|
|
3392
|
+
:param _Height: AI算法识别处理后的图片高度
|
|
3393
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3394
|
+
:type Height: int
|
|
3395
|
+
:param _Width: AI算法识别处理后的图片宽度
|
|
3396
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3397
|
+
:type Width: int
|
|
3398
|
+
:param _OriginHeight: 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
|
3399
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3400
|
+
:type OriginHeight: int
|
|
3401
|
+
:param _OriginWidth: 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
|
3402
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3403
|
+
:type OriginWidth: int
|
|
3404
|
+
:param _Elements: 文档元素信息
|
|
3405
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3406
|
+
:type Elements: list of DocumentElement
|
|
3407
|
+
:param _RotatedAngle: 旋转角度
|
|
3408
|
+
|
|
3409
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3410
|
+
:type RotatedAngle: float
|
|
3411
|
+
"""
|
|
3412
|
+
self._PageNumber = None
|
|
3413
|
+
self._Angle = None
|
|
3414
|
+
self._Height = None
|
|
3415
|
+
self._Width = None
|
|
3416
|
+
self._OriginHeight = None
|
|
3417
|
+
self._OriginWidth = None
|
|
3418
|
+
self._Elements = None
|
|
3419
|
+
self._RotatedAngle = None
|
|
3420
|
+
|
|
3421
|
+
@property
|
|
3422
|
+
def PageNumber(self):
|
|
3423
|
+
return self._PageNumber
|
|
3424
|
+
|
|
3425
|
+
@PageNumber.setter
|
|
3426
|
+
def PageNumber(self, PageNumber):
|
|
3427
|
+
self._PageNumber = PageNumber
|
|
3428
|
+
|
|
3429
|
+
@property
|
|
3430
|
+
def Angle(self):
|
|
3431
|
+
warnings.warn("parameter `Angle` is deprecated", DeprecationWarning)
|
|
3432
|
+
|
|
3433
|
+
return self._Angle
|
|
3434
|
+
|
|
3435
|
+
@Angle.setter
|
|
3436
|
+
def Angle(self, Angle):
|
|
3437
|
+
warnings.warn("parameter `Angle` is deprecated", DeprecationWarning)
|
|
3438
|
+
|
|
3439
|
+
self._Angle = Angle
|
|
3440
|
+
|
|
3441
|
+
@property
|
|
3442
|
+
def Height(self):
|
|
3443
|
+
return self._Height
|
|
3444
|
+
|
|
3445
|
+
@Height.setter
|
|
3446
|
+
def Height(self, Height):
|
|
3447
|
+
self._Height = Height
|
|
3448
|
+
|
|
3449
|
+
@property
|
|
3450
|
+
def Width(self):
|
|
3451
|
+
return self._Width
|
|
3452
|
+
|
|
3453
|
+
@Width.setter
|
|
3454
|
+
def Width(self, Width):
|
|
3455
|
+
self._Width = Width
|
|
3456
|
+
|
|
3457
|
+
@property
|
|
3458
|
+
def OriginHeight(self):
|
|
3459
|
+
return self._OriginHeight
|
|
3460
|
+
|
|
3461
|
+
@OriginHeight.setter
|
|
3462
|
+
def OriginHeight(self, OriginHeight):
|
|
3463
|
+
self._OriginHeight = OriginHeight
|
|
3464
|
+
|
|
3465
|
+
@property
|
|
3466
|
+
def OriginWidth(self):
|
|
3467
|
+
return self._OriginWidth
|
|
3468
|
+
|
|
3469
|
+
@OriginWidth.setter
|
|
3470
|
+
def OriginWidth(self, OriginWidth):
|
|
3471
|
+
self._OriginWidth = OriginWidth
|
|
3472
|
+
|
|
3473
|
+
@property
|
|
3474
|
+
def Elements(self):
|
|
3475
|
+
return self._Elements
|
|
3476
|
+
|
|
3477
|
+
@Elements.setter
|
|
3478
|
+
def Elements(self, Elements):
|
|
3479
|
+
self._Elements = Elements
|
|
3480
|
+
|
|
3481
|
+
@property
|
|
3482
|
+
def RotatedAngle(self):
|
|
3483
|
+
return self._RotatedAngle
|
|
3484
|
+
|
|
3485
|
+
@RotatedAngle.setter
|
|
3486
|
+
def RotatedAngle(self, RotatedAngle):
|
|
3487
|
+
self._RotatedAngle = RotatedAngle
|
|
3488
|
+
|
|
3489
|
+
|
|
3490
|
+
def _deserialize(self, params):
|
|
3491
|
+
self._PageNumber = params.get("PageNumber")
|
|
3492
|
+
self._Angle = params.get("Angle")
|
|
3493
|
+
self._Height = params.get("Height")
|
|
3494
|
+
self._Width = params.get("Width")
|
|
3495
|
+
self._OriginHeight = params.get("OriginHeight")
|
|
3496
|
+
self._OriginWidth = params.get("OriginWidth")
|
|
3497
|
+
if params.get("Elements") is not None:
|
|
3498
|
+
self._Elements = []
|
|
3499
|
+
for item in params.get("Elements"):
|
|
3500
|
+
obj = DocumentElement()
|
|
3501
|
+
obj._deserialize(item)
|
|
3502
|
+
self._Elements.append(obj)
|
|
3503
|
+
self._RotatedAngle = params.get("RotatedAngle")
|
|
3504
|
+
memeber_set = set(params.keys())
|
|
3505
|
+
for name, value in vars(self).items():
|
|
3506
|
+
property_name = name[1:]
|
|
3507
|
+
if property_name in memeber_set:
|
|
3508
|
+
memeber_set.remove(property_name)
|
|
3509
|
+
if len(memeber_set) > 0:
|
|
3510
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
3511
|
+
|
|
3512
|
+
|
|
3513
|
+
|
|
3269
3514
|
class DriverLicenseOCRRequest(AbstractModel):
|
|
3270
3515
|
"""DriverLicenseOCR请求参数结构体
|
|
3271
3516
|
|
|
@@ -18521,6 +18766,204 @@ class RecognizeTravelCardOCRResponse(AbstractModel):
|
|
|
18521
18766
|
self._RequestId = params.get("RequestId")
|
|
18522
18767
|
|
|
18523
18768
|
|
|
18769
|
+
class ReconstructDocumentConfig(AbstractModel):
|
|
18770
|
+
"""ReconstructDocument配置选项
|
|
18771
|
+
|
|
18772
|
+
"""
|
|
18773
|
+
|
|
18774
|
+
def __init__(self):
|
|
18775
|
+
r"""
|
|
18776
|
+
:param _EnableInsetImage: 生成的Markdown中是否嵌入图片
|
|
18777
|
+
:type EnableInsetImage: bool
|
|
18778
|
+
"""
|
|
18779
|
+
self._EnableInsetImage = None
|
|
18780
|
+
|
|
18781
|
+
@property
|
|
18782
|
+
def EnableInsetImage(self):
|
|
18783
|
+
return self._EnableInsetImage
|
|
18784
|
+
|
|
18785
|
+
@EnableInsetImage.setter
|
|
18786
|
+
def EnableInsetImage(self, EnableInsetImage):
|
|
18787
|
+
self._EnableInsetImage = EnableInsetImage
|
|
18788
|
+
|
|
18789
|
+
|
|
18790
|
+
def _deserialize(self, params):
|
|
18791
|
+
self._EnableInsetImage = params.get("EnableInsetImage")
|
|
18792
|
+
memeber_set = set(params.keys())
|
|
18793
|
+
for name, value in vars(self).items():
|
|
18794
|
+
property_name = name[1:]
|
|
18795
|
+
if property_name in memeber_set:
|
|
18796
|
+
memeber_set.remove(property_name)
|
|
18797
|
+
if len(memeber_set) > 0:
|
|
18798
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18799
|
+
|
|
18800
|
+
|
|
18801
|
+
|
|
18802
|
+
class ReconstructDocumentRequest(AbstractModel):
|
|
18803
|
+
"""ReconstructDocument请求参数结构体
|
|
18804
|
+
|
|
18805
|
+
"""
|
|
18806
|
+
|
|
18807
|
+
def __init__(self):
|
|
18808
|
+
r"""
|
|
18809
|
+
:param _FileType: PDF,Image
|
|
18810
|
+
:type FileType: str
|
|
18811
|
+
:param _FileBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
18812
|
+
:type FileBase64: str
|
|
18813
|
+
:param _FileUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
18814
|
+
:type FileUrl: str
|
|
18815
|
+
:param _FileStartPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
|
|
18816
|
+
:type FileStartPageNumber: int
|
|
18817
|
+
:param _FileEndPageNumber: 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
|
|
18818
|
+
单次调用,最多支持10页pdf的智能识别。
|
|
18819
|
+
:type FileEndPageNumber: int
|
|
18820
|
+
:param _Config: 配置选项,支持配置是否在生成的Markdown中是否嵌入图片
|
|
18821
|
+
:type Config: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentConfig`
|
|
18822
|
+
"""
|
|
18823
|
+
self._FileType = None
|
|
18824
|
+
self._FileBase64 = None
|
|
18825
|
+
self._FileUrl = None
|
|
18826
|
+
self._FileStartPageNumber = None
|
|
18827
|
+
self._FileEndPageNumber = None
|
|
18828
|
+
self._Config = None
|
|
18829
|
+
|
|
18830
|
+
@property
|
|
18831
|
+
def FileType(self):
|
|
18832
|
+
return self._FileType
|
|
18833
|
+
|
|
18834
|
+
@FileType.setter
|
|
18835
|
+
def FileType(self, FileType):
|
|
18836
|
+
self._FileType = FileType
|
|
18837
|
+
|
|
18838
|
+
@property
|
|
18839
|
+
def FileBase64(self):
|
|
18840
|
+
return self._FileBase64
|
|
18841
|
+
|
|
18842
|
+
@FileBase64.setter
|
|
18843
|
+
def FileBase64(self, FileBase64):
|
|
18844
|
+
self._FileBase64 = FileBase64
|
|
18845
|
+
|
|
18846
|
+
@property
|
|
18847
|
+
def FileUrl(self):
|
|
18848
|
+
return self._FileUrl
|
|
18849
|
+
|
|
18850
|
+
@FileUrl.setter
|
|
18851
|
+
def FileUrl(self, FileUrl):
|
|
18852
|
+
self._FileUrl = FileUrl
|
|
18853
|
+
|
|
18854
|
+
@property
|
|
18855
|
+
def FileStartPageNumber(self):
|
|
18856
|
+
return self._FileStartPageNumber
|
|
18857
|
+
|
|
18858
|
+
@FileStartPageNumber.setter
|
|
18859
|
+
def FileStartPageNumber(self, FileStartPageNumber):
|
|
18860
|
+
self._FileStartPageNumber = FileStartPageNumber
|
|
18861
|
+
|
|
18862
|
+
@property
|
|
18863
|
+
def FileEndPageNumber(self):
|
|
18864
|
+
return self._FileEndPageNumber
|
|
18865
|
+
|
|
18866
|
+
@FileEndPageNumber.setter
|
|
18867
|
+
def FileEndPageNumber(self, FileEndPageNumber):
|
|
18868
|
+
self._FileEndPageNumber = FileEndPageNumber
|
|
18869
|
+
|
|
18870
|
+
@property
|
|
18871
|
+
def Config(self):
|
|
18872
|
+
return self._Config
|
|
18873
|
+
|
|
18874
|
+
@Config.setter
|
|
18875
|
+
def Config(self, Config):
|
|
18876
|
+
self._Config = Config
|
|
18877
|
+
|
|
18878
|
+
|
|
18879
|
+
def _deserialize(self, params):
|
|
18880
|
+
self._FileType = params.get("FileType")
|
|
18881
|
+
self._FileBase64 = params.get("FileBase64")
|
|
18882
|
+
self._FileUrl = params.get("FileUrl")
|
|
18883
|
+
self._FileStartPageNumber = params.get("FileStartPageNumber")
|
|
18884
|
+
self._FileEndPageNumber = params.get("FileEndPageNumber")
|
|
18885
|
+
if params.get("Config") is not None:
|
|
18886
|
+
self._Config = ReconstructDocumentConfig()
|
|
18887
|
+
self._Config._deserialize(params.get("Config"))
|
|
18888
|
+
memeber_set = set(params.keys())
|
|
18889
|
+
for name, value in vars(self).items():
|
|
18890
|
+
property_name = name[1:]
|
|
18891
|
+
if property_name in memeber_set:
|
|
18892
|
+
memeber_set.remove(property_name)
|
|
18893
|
+
if len(memeber_set) > 0:
|
|
18894
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
18895
|
+
|
|
18896
|
+
|
|
18897
|
+
|
|
18898
|
+
class ReconstructDocumentResponse(AbstractModel):
|
|
18899
|
+
"""ReconstructDocument返回参数结构体
|
|
18900
|
+
|
|
18901
|
+
"""
|
|
18902
|
+
|
|
18903
|
+
def __init__(self):
|
|
18904
|
+
r"""
|
|
18905
|
+
:param _MarkdownBase64: 识别生成的Markdown文件base64编码的字符串
|
|
18906
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18907
|
+
:type MarkdownBase64: str
|
|
18908
|
+
:param _InsetImagePackage: 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
|
18909
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18910
|
+
:type InsetImagePackage: str
|
|
18911
|
+
:param _DocumentRecognizeInfo: 输入文件中嵌入的图片中文字内容的识别结果
|
|
18912
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
18913
|
+
:type DocumentRecognizeInfo: list of DocumentRecognizeInfo
|
|
18914
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
18915
|
+
:type RequestId: str
|
|
18916
|
+
"""
|
|
18917
|
+
self._MarkdownBase64 = None
|
|
18918
|
+
self._InsetImagePackage = None
|
|
18919
|
+
self._DocumentRecognizeInfo = None
|
|
18920
|
+
self._RequestId = None
|
|
18921
|
+
|
|
18922
|
+
@property
|
|
18923
|
+
def MarkdownBase64(self):
|
|
18924
|
+
return self._MarkdownBase64
|
|
18925
|
+
|
|
18926
|
+
@MarkdownBase64.setter
|
|
18927
|
+
def MarkdownBase64(self, MarkdownBase64):
|
|
18928
|
+
self._MarkdownBase64 = MarkdownBase64
|
|
18929
|
+
|
|
18930
|
+
@property
|
|
18931
|
+
def InsetImagePackage(self):
|
|
18932
|
+
return self._InsetImagePackage
|
|
18933
|
+
|
|
18934
|
+
@InsetImagePackage.setter
|
|
18935
|
+
def InsetImagePackage(self, InsetImagePackage):
|
|
18936
|
+
self._InsetImagePackage = InsetImagePackage
|
|
18937
|
+
|
|
18938
|
+
@property
|
|
18939
|
+
def DocumentRecognizeInfo(self):
|
|
18940
|
+
return self._DocumentRecognizeInfo
|
|
18941
|
+
|
|
18942
|
+
@DocumentRecognizeInfo.setter
|
|
18943
|
+
def DocumentRecognizeInfo(self, DocumentRecognizeInfo):
|
|
18944
|
+
self._DocumentRecognizeInfo = DocumentRecognizeInfo
|
|
18945
|
+
|
|
18946
|
+
@property
|
|
18947
|
+
def RequestId(self):
|
|
18948
|
+
return self._RequestId
|
|
18949
|
+
|
|
18950
|
+
@RequestId.setter
|
|
18951
|
+
def RequestId(self, RequestId):
|
|
18952
|
+
self._RequestId = RequestId
|
|
18953
|
+
|
|
18954
|
+
|
|
18955
|
+
def _deserialize(self, params):
|
|
18956
|
+
self._MarkdownBase64 = params.get("MarkdownBase64")
|
|
18957
|
+
self._InsetImagePackage = params.get("InsetImagePackage")
|
|
18958
|
+
if params.get("DocumentRecognizeInfo") is not None:
|
|
18959
|
+
self._DocumentRecognizeInfo = []
|
|
18960
|
+
for item in params.get("DocumentRecognizeInfo"):
|
|
18961
|
+
obj = DocumentRecognizeInfo()
|
|
18962
|
+
obj._deserialize(item)
|
|
18963
|
+
self._DocumentRecognizeInfo.append(obj)
|
|
18964
|
+
self._RequestId = params.get("RequestId")
|
|
18965
|
+
|
|
18966
|
+
|
|
18524
18967
|
class Rect(AbstractModel):
|
|
18525
18968
|
"""矩形坐标
|
|
18526
18969
|
|
|
@@ -1997,6 +1997,29 @@ class OcrClient(AbstractClient):
|
|
|
1997
1997
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
1998
1998
|
|
|
1999
1999
|
|
|
2000
|
+
def ReconstructDocument(self, request):
|
|
2001
|
+
"""支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
|
|
2002
|
+
|
|
2003
|
+
:param request: Request instance for ReconstructDocument.
|
|
2004
|
+
:type request: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentRequest`
|
|
2005
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.ReconstructDocumentResponse`
|
|
2006
|
+
|
|
2007
|
+
"""
|
|
2008
|
+
try:
|
|
2009
|
+
params = request._serialize()
|
|
2010
|
+
headers = request.headers
|
|
2011
|
+
body = self.call("ReconstructDocument", params, headers=headers)
|
|
2012
|
+
response = json.loads(body)
|
|
2013
|
+
model = models.ReconstructDocumentResponse()
|
|
2014
|
+
model._deserialize(response["Response"])
|
|
2015
|
+
return model
|
|
2016
|
+
except Exception as e:
|
|
2017
|
+
if isinstance(e, TencentCloudSDKException):
|
|
2018
|
+
raise
|
|
2019
|
+
else:
|
|
2020
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
2021
|
+
|
|
2022
|
+
|
|
2000
2023
|
def ResidenceBookletOCR(self, request):
|
|
2001
2024
|
"""本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
|
2002
2025
|
|
|
@@ -2525,7 +2525,7 @@ HYBRID_PAID:
|
|
|
2525
2525
|
:type ServiceCategory: str
|
|
2526
2526
|
:param _Command: 服务的启动命令
|
|
2527
2527
|
:type Command: str
|
|
2528
|
-
:param _ServiceEIP: 是否开启TIONE
|
|
2528
|
+
:param _ServiceEIP: 是否开启TIONE内网访问外部,此功能仅支持后付费机型与从TIONE平台购买的预付费机型;使用从CVM选择资源组时此配置不生效。
|
|
2529
2529
|
:type ServiceEIP: :class:`tencentcloud.tione.v20211111.models.ServiceEIP`
|
|
2530
2530
|
"""
|
|
2531
2531
|
self._ServiceGroupId = None
|
|
@@ -7407,6 +7407,38 @@ class DescribeBuildInImagesRequest(AbstractModel):
|
|
|
7407
7407
|
|
|
7408
7408
|
"""
|
|
7409
7409
|
|
|
7410
|
+
def __init__(self):
|
|
7411
|
+
r"""
|
|
7412
|
+
:param _ImageFilters: 镜像过滤器
|
|
7413
|
+
:type ImageFilters: list of ImageFIlter
|
|
7414
|
+
"""
|
|
7415
|
+
self._ImageFilters = None
|
|
7416
|
+
|
|
7417
|
+
@property
|
|
7418
|
+
def ImageFilters(self):
|
|
7419
|
+
return self._ImageFilters
|
|
7420
|
+
|
|
7421
|
+
@ImageFilters.setter
|
|
7422
|
+
def ImageFilters(self, ImageFilters):
|
|
7423
|
+
self._ImageFilters = ImageFilters
|
|
7424
|
+
|
|
7425
|
+
|
|
7426
|
+
def _deserialize(self, params):
|
|
7427
|
+
if params.get("ImageFilters") is not None:
|
|
7428
|
+
self._ImageFilters = []
|
|
7429
|
+
for item in params.get("ImageFilters"):
|
|
7430
|
+
obj = ImageFIlter()
|
|
7431
|
+
obj._deserialize(item)
|
|
7432
|
+
self._ImageFilters.append(obj)
|
|
7433
|
+
memeber_set = set(params.keys())
|
|
7434
|
+
for name, value in vars(self).items():
|
|
7435
|
+
property_name = name[1:]
|
|
7436
|
+
if property_name in memeber_set:
|
|
7437
|
+
memeber_set.remove(property_name)
|
|
7438
|
+
if len(memeber_set) > 0:
|
|
7439
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
7440
|
+
|
|
7441
|
+
|
|
7410
7442
|
|
|
7411
7443
|
class DescribeBuildInImagesResponse(AbstractModel):
|
|
7412
7444
|
"""DescribeBuildInImages返回参数结构体
|
|
@@ -12315,6 +12347,63 @@ class HyperParameter(AbstractModel):
|
|
|
12315
12347
|
|
|
12316
12348
|
|
|
12317
12349
|
|
|
12350
|
+
class ImageFIlter(AbstractModel):
|
|
12351
|
+
"""镜像列表过滤
|
|
12352
|
+
|
|
12353
|
+
"""
|
|
12354
|
+
|
|
12355
|
+
def __init__(self):
|
|
12356
|
+
r"""
|
|
12357
|
+
:param _Name: 过滤字段名称
|
|
12358
|
+
:type Name: str
|
|
12359
|
+
:param _Values: 过滤值
|
|
12360
|
+
:type Values: list of str
|
|
12361
|
+
:param _Negative: 是否反选
|
|
12362
|
+
:type Negative: bool
|
|
12363
|
+
"""
|
|
12364
|
+
self._Name = None
|
|
12365
|
+
self._Values = None
|
|
12366
|
+
self._Negative = None
|
|
12367
|
+
|
|
12368
|
+
@property
|
|
12369
|
+
def Name(self):
|
|
12370
|
+
return self._Name
|
|
12371
|
+
|
|
12372
|
+
@Name.setter
|
|
12373
|
+
def Name(self, Name):
|
|
12374
|
+
self._Name = Name
|
|
12375
|
+
|
|
12376
|
+
@property
|
|
12377
|
+
def Values(self):
|
|
12378
|
+
return self._Values
|
|
12379
|
+
|
|
12380
|
+
@Values.setter
|
|
12381
|
+
def Values(self, Values):
|
|
12382
|
+
self._Values = Values
|
|
12383
|
+
|
|
12384
|
+
@property
|
|
12385
|
+
def Negative(self):
|
|
12386
|
+
return self._Negative
|
|
12387
|
+
|
|
12388
|
+
@Negative.setter
|
|
12389
|
+
def Negative(self, Negative):
|
|
12390
|
+
self._Negative = Negative
|
|
12391
|
+
|
|
12392
|
+
|
|
12393
|
+
def _deserialize(self, params):
|
|
12394
|
+
self._Name = params.get("Name")
|
|
12395
|
+
self._Values = params.get("Values")
|
|
12396
|
+
self._Negative = params.get("Negative")
|
|
12397
|
+
memeber_set = set(params.keys())
|
|
12398
|
+
for name, value in vars(self).items():
|
|
12399
|
+
property_name = name[1:]
|
|
12400
|
+
if property_name in memeber_set:
|
|
12401
|
+
memeber_set.remove(property_name)
|
|
12402
|
+
if len(memeber_set) > 0:
|
|
12403
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
12404
|
+
|
|
12405
|
+
|
|
12406
|
+
|
|
12318
12407
|
class ImageInfo(AbstractModel):
|
|
12319
12408
|
"""镜像描述信息
|
|
12320
12409
|
|
|
@@ -12338,6 +12427,9 @@ class ImageInfo(AbstractModel):
|
|
|
12338
12427
|
:param _ImageName: 镜像名称
|
|
12339
12428
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
12340
12429
|
:type ImageName: str
|
|
12430
|
+
:param _SupportDataPipeline: 是否支持数据构建
|
|
12431
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12432
|
+
:type SupportDataPipeline: bool
|
|
12341
12433
|
"""
|
|
12342
12434
|
self._ImageType = None
|
|
12343
12435
|
self._ImageUrl = None
|
|
@@ -12345,6 +12437,7 @@ class ImageInfo(AbstractModel):
|
|
|
12345
12437
|
self._RegistryId = None
|
|
12346
12438
|
self._AllowSaveAllContent = None
|
|
12347
12439
|
self._ImageName = None
|
|
12440
|
+
self._SupportDataPipeline = None
|
|
12348
12441
|
|
|
12349
12442
|
@property
|
|
12350
12443
|
def ImageType(self):
|
|
@@ -12394,6 +12487,14 @@ class ImageInfo(AbstractModel):
|
|
|
12394
12487
|
def ImageName(self, ImageName):
|
|
12395
12488
|
self._ImageName = ImageName
|
|
12396
12489
|
|
|
12490
|
+
@property
|
|
12491
|
+
def SupportDataPipeline(self):
|
|
12492
|
+
return self._SupportDataPipeline
|
|
12493
|
+
|
|
12494
|
+
@SupportDataPipeline.setter
|
|
12495
|
+
def SupportDataPipeline(self, SupportDataPipeline):
|
|
12496
|
+
self._SupportDataPipeline = SupportDataPipeline
|
|
12497
|
+
|
|
12397
12498
|
|
|
12398
12499
|
def _deserialize(self, params):
|
|
12399
12500
|
self._ImageType = params.get("ImageType")
|
|
@@ -12402,6 +12503,7 @@ class ImageInfo(AbstractModel):
|
|
|
12402
12503
|
self._RegistryId = params.get("RegistryId")
|
|
12403
12504
|
self._AllowSaveAllContent = params.get("AllowSaveAllContent")
|
|
12404
12505
|
self._ImageName = params.get("ImageName")
|
|
12506
|
+
self._SupportDataPipeline = params.get("SupportDataPipeline")
|
|
12405
12507
|
memeber_set = set(params.keys())
|
|
12406
12508
|
for name, value in vars(self).items():
|
|
12407
12509
|
property_name = name[1:]
|
|
@@ -12796,6 +12898,12 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:手动续费(取消自动续费)且到期不
|
|
|
12796
12898
|
:type SpecFeatures: list of str
|
|
12797
12899
|
:param _CvmInstanceId: 纳管cvmid
|
|
12798
12900
|
:type CvmInstanceId: str
|
|
12901
|
+
:param _ErrCode: 部署失败错误码
|
|
12902
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12903
|
+
:type ErrCode: str
|
|
12904
|
+
:param _ErrMsg: 部署失败错误信息
|
|
12905
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
12906
|
+
:type ErrMsg: str
|
|
12799
12907
|
"""
|
|
12800
12908
|
self._InstanceId = None
|
|
12801
12909
|
self._UsedResource = None
|
|
@@ -12809,6 +12917,8 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:手动续费(取消自动续费)且到期不
|
|
|
12809
12917
|
self._SpecAlias = None
|
|
12810
12918
|
self._SpecFeatures = None
|
|
12811
12919
|
self._CvmInstanceId = None
|
|
12920
|
+
self._ErrCode = None
|
|
12921
|
+
self._ErrMsg = None
|
|
12812
12922
|
|
|
12813
12923
|
@property
|
|
12814
12924
|
def InstanceId(self):
|
|
@@ -12906,6 +13016,22 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:手动续费(取消自动续费)且到期不
|
|
|
12906
13016
|
def CvmInstanceId(self, CvmInstanceId):
|
|
12907
13017
|
self._CvmInstanceId = CvmInstanceId
|
|
12908
13018
|
|
|
13019
|
+
@property
|
|
13020
|
+
def ErrCode(self):
|
|
13021
|
+
return self._ErrCode
|
|
13022
|
+
|
|
13023
|
+
@ErrCode.setter
|
|
13024
|
+
def ErrCode(self, ErrCode):
|
|
13025
|
+
self._ErrCode = ErrCode
|
|
13026
|
+
|
|
13027
|
+
@property
|
|
13028
|
+
def ErrMsg(self):
|
|
13029
|
+
return self._ErrMsg
|
|
13030
|
+
|
|
13031
|
+
@ErrMsg.setter
|
|
13032
|
+
def ErrMsg(self, ErrMsg):
|
|
13033
|
+
self._ErrMsg = ErrMsg
|
|
13034
|
+
|
|
12909
13035
|
|
|
12910
13036
|
def _deserialize(self, params):
|
|
12911
13037
|
self._InstanceId = params.get("InstanceId")
|
|
@@ -12924,6 +13050,8 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:手动续费(取消自动续费)且到期不
|
|
|
12924
13050
|
self._SpecAlias = params.get("SpecAlias")
|
|
12925
13051
|
self._SpecFeatures = params.get("SpecFeatures")
|
|
12926
13052
|
self._CvmInstanceId = params.get("CvmInstanceId")
|
|
13053
|
+
self._ErrCode = params.get("ErrCode")
|
|
13054
|
+
self._ErrMsg = params.get("ErrMsg")
|
|
12927
13055
|
memeber_set = set(params.keys())
|
|
12928
13056
|
for name, value in vars(self).items():
|
|
12929
13057
|
property_name = name[1:]
|
|
@@ -14532,7 +14660,7 @@ HYBRID_PAID:
|
|
|
14532
14660
|
:type ModelTurboEnable: bool
|
|
14533
14661
|
:param _Command: 服务的启动命令
|
|
14534
14662
|
:type Command: str
|
|
14535
|
-
:param _ServiceEIP: 是否开启TIONE
|
|
14663
|
+
:param _ServiceEIP: 是否开启TIONE内网访问外部,此功能仅支持后付费机型与从TIONE平台购买的预付费机型;使用从CVM选择资源组时此配置不生效。
|
|
14536
14664
|
:type ServiceEIP: :class:`tencentcloud.tione.v20211111.models.ServiceEIP`
|
|
14537
14665
|
"""
|
|
14538
14666
|
self._ServiceId = None
|