tencentcloud-sdk-python 3.0.1116__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/cdb/v20170320/cdb_client.py +1 -1
- tencentcloud/cdwpg/v20201230/models.py +12 -0
- tencentcloud/ckafka/v20190819/ckafka_client.py +46 -0
- tencentcloud/ckafka/v20190819/models.py +300 -13
- tencentcloud/clb/v20180317/models.py +0 -1
- tencentcloud/cloudstudio/v20230508/models.py +52 -4
- tencentcloud/cls/v20201016/cls_client.py +4 -3
- tencentcloud/cls/v20201016/models.py +53 -53
- tencentcloud/csip/v20221121/models.py +10 -9
- 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/dlc_client.py +23 -0
- tencentcloud/dlc/v20210125/models.py +161 -0
- tencentcloud/dsgc/v20190723/models.py +24 -0
- tencentcloud/dts/v20211206/models.py +67 -2
- tencentcloud/es/v20180416/models.py +163 -5
- tencentcloud/ess/v20201111/ess_client.py +3 -1
- tencentcloud/ess/v20201111/models.py +51 -34
- tencentcloud/essbasic/v20210526/essbasic_client.py +3 -1
- tencentcloud/essbasic/v20210526/models.py +26 -7
- tencentcloud/faceid/v20180301/models.py +13 -0
- 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/pts/v20210728/models.py +124 -0
- tencentcloud/pts/v20210728/pts_client.py +92 -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 +516 -21
- {tencentcloud_sdk_python-3.0.1116.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1116.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/RECORD +51 -51
- {tencentcloud_sdk_python-3.0.1116.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1116.dist-info → tencentcloud_sdk_python-3.0.1119.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1116.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
|
|
|
@@ -1346,6 +1346,37 @@ class CreateCronJobResponse(AbstractModel):
|
|
|
1346
1346
|
self._RequestId = params.get("RequestId")
|
|
1347
1347
|
|
|
1348
1348
|
|
|
1349
|
+
class CreateEnvironmentRequest(AbstractModel):
|
|
1350
|
+
"""CreateEnvironment请求参数结构体
|
|
1351
|
+
|
|
1352
|
+
"""
|
|
1353
|
+
|
|
1354
|
+
|
|
1355
|
+
class CreateEnvironmentResponse(AbstractModel):
|
|
1356
|
+
"""CreateEnvironment返回参数结构体
|
|
1357
|
+
|
|
1358
|
+
"""
|
|
1359
|
+
|
|
1360
|
+
def __init__(self):
|
|
1361
|
+
r"""
|
|
1362
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
1363
|
+
:type RequestId: str
|
|
1364
|
+
"""
|
|
1365
|
+
self._RequestId = None
|
|
1366
|
+
|
|
1367
|
+
@property
|
|
1368
|
+
def RequestId(self):
|
|
1369
|
+
return self._RequestId
|
|
1370
|
+
|
|
1371
|
+
@RequestId.setter
|
|
1372
|
+
def RequestId(self, RequestId):
|
|
1373
|
+
self._RequestId = RequestId
|
|
1374
|
+
|
|
1375
|
+
|
|
1376
|
+
def _deserialize(self, params):
|
|
1377
|
+
self._RequestId = params.get("RequestId")
|
|
1378
|
+
|
|
1379
|
+
|
|
1349
1380
|
class CreateFileRequest(AbstractModel):
|
|
1350
1381
|
"""CreateFile请求参数结构体
|
|
1351
1382
|
|
|
@@ -2620,6 +2651,37 @@ class DeleteCronJobsResponse(AbstractModel):
|
|
|
2620
2651
|
self._RequestId = params.get("RequestId")
|
|
2621
2652
|
|
|
2622
2653
|
|
|
2654
|
+
class DeleteEnvironmentsRequest(AbstractModel):
|
|
2655
|
+
"""DeleteEnvironments请求参数结构体
|
|
2656
|
+
|
|
2657
|
+
"""
|
|
2658
|
+
|
|
2659
|
+
|
|
2660
|
+
class DeleteEnvironmentsResponse(AbstractModel):
|
|
2661
|
+
"""DeleteEnvironments返回参数结构体
|
|
2662
|
+
|
|
2663
|
+
"""
|
|
2664
|
+
|
|
2665
|
+
def __init__(self):
|
|
2666
|
+
r"""
|
|
2667
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
2668
|
+
:type RequestId: str
|
|
2669
|
+
"""
|
|
2670
|
+
self._RequestId = None
|
|
2671
|
+
|
|
2672
|
+
@property
|
|
2673
|
+
def RequestId(self):
|
|
2674
|
+
return self._RequestId
|
|
2675
|
+
|
|
2676
|
+
@RequestId.setter
|
|
2677
|
+
def RequestId(self, RequestId):
|
|
2678
|
+
self._RequestId = RequestId
|
|
2679
|
+
|
|
2680
|
+
|
|
2681
|
+
def _deserialize(self, params):
|
|
2682
|
+
self._RequestId = params.get("RequestId")
|
|
2683
|
+
|
|
2684
|
+
|
|
2623
2685
|
class DeleteFilesRequest(AbstractModel):
|
|
2624
2686
|
"""DeleteFiles请求参数结构体
|
|
2625
2687
|
|
|
@@ -3578,6 +3640,37 @@ class DescribeCronJobsResponse(AbstractModel):
|
|
|
3578
3640
|
self._RequestId = params.get("RequestId")
|
|
3579
3641
|
|
|
3580
3642
|
|
|
3643
|
+
class DescribeEnvironmentsRequest(AbstractModel):
|
|
3644
|
+
"""DescribeEnvironments请求参数结构体
|
|
3645
|
+
|
|
3646
|
+
"""
|
|
3647
|
+
|
|
3648
|
+
|
|
3649
|
+
class DescribeEnvironmentsResponse(AbstractModel):
|
|
3650
|
+
"""DescribeEnvironments返回参数结构体
|
|
3651
|
+
|
|
3652
|
+
"""
|
|
3653
|
+
|
|
3654
|
+
def __init__(self):
|
|
3655
|
+
r"""
|
|
3656
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3657
|
+
:type RequestId: str
|
|
3658
|
+
"""
|
|
3659
|
+
self._RequestId = None
|
|
3660
|
+
|
|
3661
|
+
@property
|
|
3662
|
+
def RequestId(self):
|
|
3663
|
+
return self._RequestId
|
|
3664
|
+
|
|
3665
|
+
@RequestId.setter
|
|
3666
|
+
def RequestId(self, RequestId):
|
|
3667
|
+
self._RequestId = RequestId
|
|
3668
|
+
|
|
3669
|
+
|
|
3670
|
+
def _deserialize(self, params):
|
|
3671
|
+
self._RequestId = params.get("RequestId")
|
|
3672
|
+
|
|
3673
|
+
|
|
3581
3674
|
class DescribeErrorSummaryRequest(AbstractModel):
|
|
3582
3675
|
"""DescribeErrorSummary请求参数结构体
|
|
3583
3676
|
|
|
@@ -10535,6 +10628,37 @@ class UpdateCronJobResponse(AbstractModel):
|
|
|
10535
10628
|
self._RequestId = params.get("RequestId")
|
|
10536
10629
|
|
|
10537
10630
|
|
|
10631
|
+
class UpdateEnvironmentRequest(AbstractModel):
|
|
10632
|
+
"""UpdateEnvironment请求参数结构体
|
|
10633
|
+
|
|
10634
|
+
"""
|
|
10635
|
+
|
|
10636
|
+
|
|
10637
|
+
class UpdateEnvironmentResponse(AbstractModel):
|
|
10638
|
+
"""UpdateEnvironment返回参数结构体
|
|
10639
|
+
|
|
10640
|
+
"""
|
|
10641
|
+
|
|
10642
|
+
def __init__(self):
|
|
10643
|
+
r"""
|
|
10644
|
+
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
10645
|
+
:type RequestId: str
|
|
10646
|
+
"""
|
|
10647
|
+
self._RequestId = None
|
|
10648
|
+
|
|
10649
|
+
@property
|
|
10650
|
+
def RequestId(self):
|
|
10651
|
+
return self._RequestId
|
|
10652
|
+
|
|
10653
|
+
@RequestId.setter
|
|
10654
|
+
def RequestId(self, RequestId):
|
|
10655
|
+
self._RequestId = RequestId
|
|
10656
|
+
|
|
10657
|
+
|
|
10658
|
+
def _deserialize(self, params):
|
|
10659
|
+
self._RequestId = params.get("RequestId")
|
|
10660
|
+
|
|
10661
|
+
|
|
10538
10662
|
class UpdateFileScenarioRelationRequest(AbstractModel):
|
|
10539
10663
|
"""UpdateFileScenarioRelation请求参数结构体
|
|
10540
10664
|
|