tencentcloud-sdk-python 3.0.1403__py2.py3-none-any.whl → 3.0.1405__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/bi/v20220105/models.py +162 -0
- tencentcloud/cdb/v20170320/models.py +2 -2
- tencentcloud/cfs/v20190719/models.py +14 -14
- tencentcloud/cls/v20201016/models.py +15 -0
- tencentcloud/essbasic/v20210526/models.py +2 -2
- tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +46 -0
- tencentcloud/iotexplorer/v20190423/models.py +306 -0
- tencentcloud/lke/v20231130/models.py +36 -4
- tencentcloud/monitor/v20180724/models.py +79 -0
- tencentcloud/monitor/v20180724/monitor_client.py +23 -0
- tencentcloud/mps/v20190612/models.py +286 -0
- tencentcloud/ocr/v20181119/models.py +0 -577
- tencentcloud/ocr/v20181119/ocr_client.py +0 -50
- tencentcloud/ssl/v20191205/errorcodes.py +6 -0
- tencentcloud/ssl/v20191205/models.py +181 -0
- tencentcloud/ssl/v20191205/ssl_client.py +23 -0
- tencentcloud/tcbr/v20220217/models.py +30 -0
- {tencentcloud_sdk_python-3.0.1403.dist-info → tencentcloud_sdk_python-3.0.1405.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python-3.0.1403.dist-info → tencentcloud_sdk_python-3.0.1405.dist-info}/RECORD +23 -23
- {tencentcloud_sdk_python-3.0.1403.dist-info → tencentcloud_sdk_python-3.0.1405.dist-info}/LICENSE +0 -0
- {tencentcloud_sdk_python-3.0.1403.dist-info → tencentcloud_sdk_python-3.0.1405.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python-3.0.1403.dist-info → tencentcloud_sdk_python-3.0.1405.dist-info}/top_level.txt +0 -0
@@ -8549,13 +8549,9 @@ WeightNote -- 磅单
|
|
8549
8549
|
MedicalMeter -- 血压仪表识别
|
8550
8550
|
BillOfLading -- 海运提单
|
8551
8551
|
EntrustmentBook -- 海运托书
|
8552
|
-
WordRecognize -- 手写英文作文模版
|
8553
8552
|
Statement -- 对账单识别模板
|
8554
8553
|
BookingConfirmation -- 配舱通知书识别模板
|
8555
8554
|
AirWayBill -- 航空运单识别模板
|
8556
|
-
DispatchWeightNote -- 磅单发货单识别模板
|
8557
|
-
ReceiptWeightNote -- 磅单收货单识别模板
|
8558
|
-
ArticalRecognize -- 手写作文模版
|
8559
8555
|
Table -- 表格模版
|
8560
8556
|
SteelLabel -- 实物标签识别模板
|
8561
8557
|
CarInsurance -- 车辆保险单识别模板
|
@@ -8657,13 +8653,9 @@ WeightNote -- 磅单
|
|
8657
8653
|
MedicalMeter -- 血压仪表识别
|
8658
8654
|
BillOfLading -- 海运提单
|
8659
8655
|
EntrustmentBook -- 海运托书
|
8660
|
-
WordRecognize -- 手写英文作文模版
|
8661
8656
|
Statement -- 对账单识别模板
|
8662
8657
|
BookingConfirmation -- 配舱通知书识别模板
|
8663
8658
|
AirWayBill -- 航空运单识别模板
|
8664
|
-
DispatchWeightNote -- 磅单发货单识别模板
|
8665
|
-
ReceiptWeightNote -- 磅单收货单识别模板
|
8666
|
-
ArticalRecognize -- 手写作文模版
|
8667
8659
|
Table -- 表格模版
|
8668
8660
|
SteelLabel -- 实物标签识别模板
|
8669
8661
|
CarInsurance -- 车辆保险单识别模板
|
@@ -30779,575 +30771,6 @@ class SmartStructuralOCRResponse(AbstractModel):
|
|
30779
30771
|
self._RequestId = params.get("RequestId")
|
30780
30772
|
|
30781
30773
|
|
30782
|
-
class SmartStructuralOCRV2Request(AbstractModel):
|
30783
|
-
"""SmartStructuralOCRV2请求参数结构体
|
30784
|
-
|
30785
|
-
"""
|
30786
|
-
|
30787
|
-
def __init__(self):
|
30788
|
-
r"""
|
30789
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
30790
|
-
:type ImageUrl: str
|
30791
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
30792
|
-
:type ImageBase64: str
|
30793
|
-
:param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
30794
|
-
:type IsPdf: bool
|
30795
|
-
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
30796
|
-
:type PdfPageNumber: int
|
30797
|
-
:param _ItemNames: 自定义结构化功能需返回的字段名称,例:
|
30798
|
-
若客户只想返回姓名、性别两个字段的识别结果,则输入
|
30799
|
-
ItemNames=["姓名","性别"]
|
30800
|
-
:type ItemNames: list of str
|
30801
|
-
:param _ReturnFullText: 是否开启全文字段识别
|
30802
|
-
:type ReturnFullText: bool
|
30803
|
-
:param _ConfigId: 配置id支持:
|
30804
|
-
General -- 通用场景
|
30805
|
-
OnlineTaxiItinerary -- 网约车行程单
|
30806
|
-
RideHailingDriverLicense -- 网约车驾驶证
|
30807
|
-
RideHailingTransportLicense -- 网约车运输证
|
30808
|
-
WayBill -- 快递运单
|
30809
|
-
AccountOpeningPermit -- 银行开户许可证
|
30810
|
-
InvoiceEng -- 海外发票模版
|
30811
|
-
Coin --钱币识别模板
|
30812
|
-
OnboardingDocuments -- 入职材料识别
|
30813
|
-
PropertyOwnershipCertificate -- 房产证识别
|
30814
|
-
RealEstateCertificate --不动产权证识别
|
30815
|
-
HouseEncumbranceCertificate -- 他权证识别
|
30816
|
-
CarInsurance -- 车险保单
|
30817
|
-
MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合一模板
|
30818
|
-
:type ConfigId: str
|
30819
|
-
:param _EnableSealRecognize: 是否打开印章识别
|
30820
|
-
:type EnableSealRecognize: bool
|
30821
|
-
"""
|
30822
|
-
self._ImageUrl = None
|
30823
|
-
self._ImageBase64 = None
|
30824
|
-
self._IsPdf = None
|
30825
|
-
self._PdfPageNumber = None
|
30826
|
-
self._ItemNames = None
|
30827
|
-
self._ReturnFullText = None
|
30828
|
-
self._ConfigId = None
|
30829
|
-
self._EnableSealRecognize = None
|
30830
|
-
|
30831
|
-
@property
|
30832
|
-
def ImageUrl(self):
|
30833
|
-
"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
30834
|
-
:rtype: str
|
30835
|
-
"""
|
30836
|
-
return self._ImageUrl
|
30837
|
-
|
30838
|
-
@ImageUrl.setter
|
30839
|
-
def ImageUrl(self, ImageUrl):
|
30840
|
-
self._ImageUrl = ImageUrl
|
30841
|
-
|
30842
|
-
@property
|
30843
|
-
def ImageBase64(self):
|
30844
|
-
"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
30845
|
-
:rtype: str
|
30846
|
-
"""
|
30847
|
-
return self._ImageBase64
|
30848
|
-
|
30849
|
-
@ImageBase64.setter
|
30850
|
-
def ImageBase64(self, ImageBase64):
|
30851
|
-
self._ImageBase64 = ImageBase64
|
30852
|
-
|
30853
|
-
@property
|
30854
|
-
def IsPdf(self):
|
30855
|
-
"""是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
30856
|
-
:rtype: bool
|
30857
|
-
"""
|
30858
|
-
return self._IsPdf
|
30859
|
-
|
30860
|
-
@IsPdf.setter
|
30861
|
-
def IsPdf(self, IsPdf):
|
30862
|
-
self._IsPdf = IsPdf
|
30863
|
-
|
30864
|
-
@property
|
30865
|
-
def PdfPageNumber(self):
|
30866
|
-
"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
30867
|
-
:rtype: int
|
30868
|
-
"""
|
30869
|
-
return self._PdfPageNumber
|
30870
|
-
|
30871
|
-
@PdfPageNumber.setter
|
30872
|
-
def PdfPageNumber(self, PdfPageNumber):
|
30873
|
-
self._PdfPageNumber = PdfPageNumber
|
30874
|
-
|
30875
|
-
@property
|
30876
|
-
def ItemNames(self):
|
30877
|
-
"""自定义结构化功能需返回的字段名称,例:
|
30878
|
-
若客户只想返回姓名、性别两个字段的识别结果,则输入
|
30879
|
-
ItemNames=["姓名","性别"]
|
30880
|
-
:rtype: list of str
|
30881
|
-
"""
|
30882
|
-
return self._ItemNames
|
30883
|
-
|
30884
|
-
@ItemNames.setter
|
30885
|
-
def ItemNames(self, ItemNames):
|
30886
|
-
self._ItemNames = ItemNames
|
30887
|
-
|
30888
|
-
@property
|
30889
|
-
def ReturnFullText(self):
|
30890
|
-
"""是否开启全文字段识别
|
30891
|
-
:rtype: bool
|
30892
|
-
"""
|
30893
|
-
return self._ReturnFullText
|
30894
|
-
|
30895
|
-
@ReturnFullText.setter
|
30896
|
-
def ReturnFullText(self, ReturnFullText):
|
30897
|
-
self._ReturnFullText = ReturnFullText
|
30898
|
-
|
30899
|
-
@property
|
30900
|
-
def ConfigId(self):
|
30901
|
-
"""配置id支持:
|
30902
|
-
General -- 通用场景
|
30903
|
-
OnlineTaxiItinerary -- 网约车行程单
|
30904
|
-
RideHailingDriverLicense -- 网约车驾驶证
|
30905
|
-
RideHailingTransportLicense -- 网约车运输证
|
30906
|
-
WayBill -- 快递运单
|
30907
|
-
AccountOpeningPermit -- 银行开户许可证
|
30908
|
-
InvoiceEng -- 海外发票模版
|
30909
|
-
Coin --钱币识别模板
|
30910
|
-
OnboardingDocuments -- 入职材料识别
|
30911
|
-
PropertyOwnershipCertificate -- 房产证识别
|
30912
|
-
RealEstateCertificate --不动产权证识别
|
30913
|
-
HouseEncumbranceCertificate -- 他权证识别
|
30914
|
-
CarInsurance -- 车险保单
|
30915
|
-
MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合一模板
|
30916
|
-
:rtype: str
|
30917
|
-
"""
|
30918
|
-
return self._ConfigId
|
30919
|
-
|
30920
|
-
@ConfigId.setter
|
30921
|
-
def ConfigId(self, ConfigId):
|
30922
|
-
self._ConfigId = ConfigId
|
30923
|
-
|
30924
|
-
@property
|
30925
|
-
def EnableSealRecognize(self):
|
30926
|
-
"""是否打开印章识别
|
30927
|
-
:rtype: bool
|
30928
|
-
"""
|
30929
|
-
return self._EnableSealRecognize
|
30930
|
-
|
30931
|
-
@EnableSealRecognize.setter
|
30932
|
-
def EnableSealRecognize(self, EnableSealRecognize):
|
30933
|
-
self._EnableSealRecognize = EnableSealRecognize
|
30934
|
-
|
30935
|
-
|
30936
|
-
def _deserialize(self, params):
|
30937
|
-
self._ImageUrl = params.get("ImageUrl")
|
30938
|
-
self._ImageBase64 = params.get("ImageBase64")
|
30939
|
-
self._IsPdf = params.get("IsPdf")
|
30940
|
-
self._PdfPageNumber = params.get("PdfPageNumber")
|
30941
|
-
self._ItemNames = params.get("ItemNames")
|
30942
|
-
self._ReturnFullText = params.get("ReturnFullText")
|
30943
|
-
self._ConfigId = params.get("ConfigId")
|
30944
|
-
self._EnableSealRecognize = params.get("EnableSealRecognize")
|
30945
|
-
memeber_set = set(params.keys())
|
30946
|
-
for name, value in vars(self).items():
|
30947
|
-
property_name = name[1:]
|
30948
|
-
if property_name in memeber_set:
|
30949
|
-
memeber_set.remove(property_name)
|
30950
|
-
if len(memeber_set) > 0:
|
30951
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
30952
|
-
|
30953
|
-
|
30954
|
-
|
30955
|
-
class SmartStructuralOCRV2Response(AbstractModel):
|
30956
|
-
"""SmartStructuralOCRV2返回参数结构体
|
30957
|
-
|
30958
|
-
"""
|
30959
|
-
|
30960
|
-
def __init__(self):
|
30961
|
-
r"""
|
30962
|
-
:param _Angle: 图片旋转角度(角度制),文本的水平方向
|
30963
|
-
为 0;顺时针为正,逆时针为负
|
30964
|
-
:type Angle: float
|
30965
|
-
:param _StructuralList: 配置结构化文本信息
|
30966
|
-
:type StructuralList: list of GroupInfo
|
30967
|
-
:param _WordList: 还原文本信息
|
30968
|
-
:type WordList: list of WordItem
|
30969
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
30970
|
-
:type RequestId: str
|
30971
|
-
"""
|
30972
|
-
self._Angle = None
|
30973
|
-
self._StructuralList = None
|
30974
|
-
self._WordList = None
|
30975
|
-
self._RequestId = None
|
30976
|
-
|
30977
|
-
@property
|
30978
|
-
def Angle(self):
|
30979
|
-
"""图片旋转角度(角度制),文本的水平方向
|
30980
|
-
为 0;顺时针为正,逆时针为负
|
30981
|
-
:rtype: float
|
30982
|
-
"""
|
30983
|
-
return self._Angle
|
30984
|
-
|
30985
|
-
@Angle.setter
|
30986
|
-
def Angle(self, Angle):
|
30987
|
-
self._Angle = Angle
|
30988
|
-
|
30989
|
-
@property
|
30990
|
-
def StructuralList(self):
|
30991
|
-
"""配置结构化文本信息
|
30992
|
-
:rtype: list of GroupInfo
|
30993
|
-
"""
|
30994
|
-
return self._StructuralList
|
30995
|
-
|
30996
|
-
@StructuralList.setter
|
30997
|
-
def StructuralList(self, StructuralList):
|
30998
|
-
self._StructuralList = StructuralList
|
30999
|
-
|
31000
|
-
@property
|
31001
|
-
def WordList(self):
|
31002
|
-
"""还原文本信息
|
31003
|
-
:rtype: list of WordItem
|
31004
|
-
"""
|
31005
|
-
return self._WordList
|
31006
|
-
|
31007
|
-
@WordList.setter
|
31008
|
-
def WordList(self, WordList):
|
31009
|
-
self._WordList = WordList
|
31010
|
-
|
31011
|
-
@property
|
31012
|
-
def RequestId(self):
|
31013
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
31014
|
-
:rtype: str
|
31015
|
-
"""
|
31016
|
-
return self._RequestId
|
31017
|
-
|
31018
|
-
@RequestId.setter
|
31019
|
-
def RequestId(self, RequestId):
|
31020
|
-
self._RequestId = RequestId
|
31021
|
-
|
31022
|
-
|
31023
|
-
def _deserialize(self, params):
|
31024
|
-
self._Angle = params.get("Angle")
|
31025
|
-
if params.get("StructuralList") is not None:
|
31026
|
-
self._StructuralList = []
|
31027
|
-
for item in params.get("StructuralList"):
|
31028
|
-
obj = GroupInfo()
|
31029
|
-
obj._deserialize(item)
|
31030
|
-
self._StructuralList.append(obj)
|
31031
|
-
if params.get("WordList") is not None:
|
31032
|
-
self._WordList = []
|
31033
|
-
for item in params.get("WordList"):
|
31034
|
-
obj = WordItem()
|
31035
|
-
obj._deserialize(item)
|
31036
|
-
self._WordList.append(obj)
|
31037
|
-
self._RequestId = params.get("RequestId")
|
31038
|
-
|
31039
|
-
|
31040
|
-
class SmartStructuralProRequest(AbstractModel):
|
31041
|
-
"""SmartStructuralPro请求参数结构体
|
31042
|
-
|
31043
|
-
"""
|
31044
|
-
|
31045
|
-
def __init__(self):
|
31046
|
-
r"""
|
31047
|
-
:param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
31048
|
-
:type ImageUrl: str
|
31049
|
-
:param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
31050
|
-
:type ImageBase64: str
|
31051
|
-
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
31052
|
-
:type PdfPageNumber: int
|
31053
|
-
:param _ItemNames: 自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
|
31054
|
-
:type ItemNames: list of str
|
31055
|
-
:param _ItemNamesShowMode: true:仅输出自定义字段
|
31056
|
-
flase:输出默认字段+自定义字段
|
31057
|
-
默认true
|
31058
|
-
:type ItemNamesShowMode: bool
|
31059
|
-
:param _ReturnFullText: 是否开启全文字段识别
|
31060
|
-
:type ReturnFullText: bool
|
31061
|
-
:param _ConfigId: 配置id支持:
|
31062
|
-
General -- 通用场景
|
31063
|
-
InvoiceEng -- 国际invoice模版
|
31064
|
-
WayBillEng --海运订单模板
|
31065
|
-
CustomsDeclaration -- 进出口报关单
|
31066
|
-
WeightNote -- 磅单
|
31067
|
-
MedicalMeter -- 血压仪表识别
|
31068
|
-
BillOfLading -- 海运提单
|
31069
|
-
EntrustmentBook -- 海运托书
|
31070
|
-
WordRecognize -- 手写英文作文模版
|
31071
|
-
Statement -- 对账单识别模板
|
31072
|
-
BookingConfirmation -- 配舱通知书识别模板
|
31073
|
-
AirWayBill -- 航空运单识别模板
|
31074
|
-
DispatchWeightNote -- 磅单发货单识别模板
|
31075
|
-
ReceiptWeightNote -- 磅单收货单识别模板
|
31076
|
-
ArticalRecognize -- 手写作文模版
|
31077
|
-
Table -- 表格模版
|
31078
|
-
SteelLabel -- 实物标签识别模板
|
31079
|
-
CarInsurance -- 车辆保险单识别模板
|
31080
|
-
:type ConfigId: str
|
31081
|
-
:param _EnableCoord: 是否开启全文字段坐标值的识别
|
31082
|
-
:type EnableCoord: bool
|
31083
|
-
:param _OutputParentKey: 是否开启父子key识别,默认是
|
31084
|
-
:type OutputParentKey: bool
|
31085
|
-
:param _ConfigAdvanced: 模版的单个属性配置
|
31086
|
-
:type ConfigAdvanced: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
|
31087
|
-
"""
|
31088
|
-
self._ImageUrl = None
|
31089
|
-
self._ImageBase64 = None
|
31090
|
-
self._PdfPageNumber = None
|
31091
|
-
self._ItemNames = None
|
31092
|
-
self._ItemNamesShowMode = None
|
31093
|
-
self._ReturnFullText = None
|
31094
|
-
self._ConfigId = None
|
31095
|
-
self._EnableCoord = None
|
31096
|
-
self._OutputParentKey = None
|
31097
|
-
self._ConfigAdvanced = None
|
31098
|
-
|
31099
|
-
@property
|
31100
|
-
def ImageUrl(self):
|
31101
|
-
"""图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
31102
|
-
:rtype: str
|
31103
|
-
"""
|
31104
|
-
return self._ImageUrl
|
31105
|
-
|
31106
|
-
@ImageUrl.setter
|
31107
|
-
def ImageUrl(self, ImageUrl):
|
31108
|
-
self._ImageUrl = ImageUrl
|
31109
|
-
|
31110
|
-
@property
|
31111
|
-
def ImageBase64(self):
|
31112
|
-
"""图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
31113
|
-
:rtype: str
|
31114
|
-
"""
|
31115
|
-
return self._ImageBase64
|
31116
|
-
|
31117
|
-
@ImageBase64.setter
|
31118
|
-
def ImageBase64(self, ImageBase64):
|
31119
|
-
self._ImageBase64 = ImageBase64
|
31120
|
-
|
31121
|
-
@property
|
31122
|
-
def PdfPageNumber(self):
|
31123
|
-
"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
31124
|
-
:rtype: int
|
31125
|
-
"""
|
31126
|
-
return self._PdfPageNumber
|
31127
|
-
|
31128
|
-
@PdfPageNumber.setter
|
31129
|
-
def PdfPageNumber(self, PdfPageNumber):
|
31130
|
-
self._PdfPageNumber = PdfPageNumber
|
31131
|
-
|
31132
|
-
@property
|
31133
|
-
def ItemNames(self):
|
31134
|
-
"""自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
|
31135
|
-
:rtype: list of str
|
31136
|
-
"""
|
31137
|
-
return self._ItemNames
|
31138
|
-
|
31139
|
-
@ItemNames.setter
|
31140
|
-
def ItemNames(self, ItemNames):
|
31141
|
-
self._ItemNames = ItemNames
|
31142
|
-
|
31143
|
-
@property
|
31144
|
-
def ItemNamesShowMode(self):
|
31145
|
-
"""true:仅输出自定义字段
|
31146
|
-
flase:输出默认字段+自定义字段
|
31147
|
-
默认true
|
31148
|
-
:rtype: bool
|
31149
|
-
"""
|
31150
|
-
return self._ItemNamesShowMode
|
31151
|
-
|
31152
|
-
@ItemNamesShowMode.setter
|
31153
|
-
def ItemNamesShowMode(self, ItemNamesShowMode):
|
31154
|
-
self._ItemNamesShowMode = ItemNamesShowMode
|
31155
|
-
|
31156
|
-
@property
|
31157
|
-
def ReturnFullText(self):
|
31158
|
-
"""是否开启全文字段识别
|
31159
|
-
:rtype: bool
|
31160
|
-
"""
|
31161
|
-
return self._ReturnFullText
|
31162
|
-
|
31163
|
-
@ReturnFullText.setter
|
31164
|
-
def ReturnFullText(self, ReturnFullText):
|
31165
|
-
self._ReturnFullText = ReturnFullText
|
31166
|
-
|
31167
|
-
@property
|
31168
|
-
def ConfigId(self):
|
31169
|
-
"""配置id支持:
|
31170
|
-
General -- 通用场景
|
31171
|
-
InvoiceEng -- 国际invoice模版
|
31172
|
-
WayBillEng --海运订单模板
|
31173
|
-
CustomsDeclaration -- 进出口报关单
|
31174
|
-
WeightNote -- 磅单
|
31175
|
-
MedicalMeter -- 血压仪表识别
|
31176
|
-
BillOfLading -- 海运提单
|
31177
|
-
EntrustmentBook -- 海运托书
|
31178
|
-
WordRecognize -- 手写英文作文模版
|
31179
|
-
Statement -- 对账单识别模板
|
31180
|
-
BookingConfirmation -- 配舱通知书识别模板
|
31181
|
-
AirWayBill -- 航空运单识别模板
|
31182
|
-
DispatchWeightNote -- 磅单发货单识别模板
|
31183
|
-
ReceiptWeightNote -- 磅单收货单识别模板
|
31184
|
-
ArticalRecognize -- 手写作文模版
|
31185
|
-
Table -- 表格模版
|
31186
|
-
SteelLabel -- 实物标签识别模板
|
31187
|
-
CarInsurance -- 车辆保险单识别模板
|
31188
|
-
:rtype: str
|
31189
|
-
"""
|
31190
|
-
return self._ConfigId
|
31191
|
-
|
31192
|
-
@ConfigId.setter
|
31193
|
-
def ConfigId(self, ConfigId):
|
31194
|
-
self._ConfigId = ConfigId
|
31195
|
-
|
31196
|
-
@property
|
31197
|
-
def EnableCoord(self):
|
31198
|
-
"""是否开启全文字段坐标值的识别
|
31199
|
-
:rtype: bool
|
31200
|
-
"""
|
31201
|
-
return self._EnableCoord
|
31202
|
-
|
31203
|
-
@EnableCoord.setter
|
31204
|
-
def EnableCoord(self, EnableCoord):
|
31205
|
-
self._EnableCoord = EnableCoord
|
31206
|
-
|
31207
|
-
@property
|
31208
|
-
def OutputParentKey(self):
|
31209
|
-
"""是否开启父子key识别,默认是
|
31210
|
-
:rtype: bool
|
31211
|
-
"""
|
31212
|
-
return self._OutputParentKey
|
31213
|
-
|
31214
|
-
@OutputParentKey.setter
|
31215
|
-
def OutputParentKey(self, OutputParentKey):
|
31216
|
-
self._OutputParentKey = OutputParentKey
|
31217
|
-
|
31218
|
-
@property
|
31219
|
-
def ConfigAdvanced(self):
|
31220
|
-
"""模版的单个属性配置
|
31221
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.ConfigAdvanced`
|
31222
|
-
"""
|
31223
|
-
return self._ConfigAdvanced
|
31224
|
-
|
31225
|
-
@ConfigAdvanced.setter
|
31226
|
-
def ConfigAdvanced(self, ConfigAdvanced):
|
31227
|
-
self._ConfigAdvanced = ConfigAdvanced
|
31228
|
-
|
31229
|
-
|
31230
|
-
def _deserialize(self, params):
|
31231
|
-
self._ImageUrl = params.get("ImageUrl")
|
31232
|
-
self._ImageBase64 = params.get("ImageBase64")
|
31233
|
-
self._PdfPageNumber = params.get("PdfPageNumber")
|
31234
|
-
self._ItemNames = params.get("ItemNames")
|
31235
|
-
self._ItemNamesShowMode = params.get("ItemNamesShowMode")
|
31236
|
-
self._ReturnFullText = params.get("ReturnFullText")
|
31237
|
-
self._ConfigId = params.get("ConfigId")
|
31238
|
-
self._EnableCoord = params.get("EnableCoord")
|
31239
|
-
self._OutputParentKey = params.get("OutputParentKey")
|
31240
|
-
if params.get("ConfigAdvanced") is not None:
|
31241
|
-
self._ConfigAdvanced = ConfigAdvanced()
|
31242
|
-
self._ConfigAdvanced._deserialize(params.get("ConfigAdvanced"))
|
31243
|
-
memeber_set = set(params.keys())
|
31244
|
-
for name, value in vars(self).items():
|
31245
|
-
property_name = name[1:]
|
31246
|
-
if property_name in memeber_set:
|
31247
|
-
memeber_set.remove(property_name)
|
31248
|
-
if len(memeber_set) > 0:
|
31249
|
-
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
31250
|
-
|
31251
|
-
|
31252
|
-
|
31253
|
-
class SmartStructuralProResponse(AbstractModel):
|
31254
|
-
"""SmartStructuralPro返回参数结构体
|
31255
|
-
|
31256
|
-
"""
|
31257
|
-
|
31258
|
-
def __init__(self):
|
31259
|
-
r"""
|
31260
|
-
:param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
|
31261
|
-
:type Angle: float
|
31262
|
-
:param _StructuralList: 配置结构化文本信息
|
31263
|
-
:type StructuralList: list of GroupInfo
|
31264
|
-
:param _WordList: 还原文本信息
|
31265
|
-
:type WordList: list of WordItem
|
31266
|
-
:param _TokenNum: 识别出的token个数
|
31267
|
-
:type TokenNum: int
|
31268
|
-
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
31269
|
-
:type RequestId: str
|
31270
|
-
"""
|
31271
|
-
self._Angle = None
|
31272
|
-
self._StructuralList = None
|
31273
|
-
self._WordList = None
|
31274
|
-
self._TokenNum = None
|
31275
|
-
self._RequestId = None
|
31276
|
-
|
31277
|
-
@property
|
31278
|
-
def Angle(self):
|
31279
|
-
"""图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
|
31280
|
-
:rtype: float
|
31281
|
-
"""
|
31282
|
-
return self._Angle
|
31283
|
-
|
31284
|
-
@Angle.setter
|
31285
|
-
def Angle(self, Angle):
|
31286
|
-
self._Angle = Angle
|
31287
|
-
|
31288
|
-
@property
|
31289
|
-
def StructuralList(self):
|
31290
|
-
"""配置结构化文本信息
|
31291
|
-
:rtype: list of GroupInfo
|
31292
|
-
"""
|
31293
|
-
return self._StructuralList
|
31294
|
-
|
31295
|
-
@StructuralList.setter
|
31296
|
-
def StructuralList(self, StructuralList):
|
31297
|
-
self._StructuralList = StructuralList
|
31298
|
-
|
31299
|
-
@property
|
31300
|
-
def WordList(self):
|
31301
|
-
"""还原文本信息
|
31302
|
-
:rtype: list of WordItem
|
31303
|
-
"""
|
31304
|
-
return self._WordList
|
31305
|
-
|
31306
|
-
@WordList.setter
|
31307
|
-
def WordList(self, WordList):
|
31308
|
-
self._WordList = WordList
|
31309
|
-
|
31310
|
-
@property
|
31311
|
-
def TokenNum(self):
|
31312
|
-
"""识别出的token个数
|
31313
|
-
:rtype: int
|
31314
|
-
"""
|
31315
|
-
return self._TokenNum
|
31316
|
-
|
31317
|
-
@TokenNum.setter
|
31318
|
-
def TokenNum(self, TokenNum):
|
31319
|
-
self._TokenNum = TokenNum
|
31320
|
-
|
31321
|
-
@property
|
31322
|
-
def RequestId(self):
|
31323
|
-
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
31324
|
-
:rtype: str
|
31325
|
-
"""
|
31326
|
-
return self._RequestId
|
31327
|
-
|
31328
|
-
@RequestId.setter
|
31329
|
-
def RequestId(self, RequestId):
|
31330
|
-
self._RequestId = RequestId
|
31331
|
-
|
31332
|
-
|
31333
|
-
def _deserialize(self, params):
|
31334
|
-
self._Angle = params.get("Angle")
|
31335
|
-
if params.get("StructuralList") is not None:
|
31336
|
-
self._StructuralList = []
|
31337
|
-
for item in params.get("StructuralList"):
|
31338
|
-
obj = GroupInfo()
|
31339
|
-
obj._deserialize(item)
|
31340
|
-
self._StructuralList.append(obj)
|
31341
|
-
if params.get("WordList") is not None:
|
31342
|
-
self._WordList = []
|
31343
|
-
for item in params.get("WordList"):
|
31344
|
-
obj = WordItem()
|
31345
|
-
obj._deserialize(item)
|
31346
|
-
self._WordList.append(obj)
|
31347
|
-
self._TokenNum = params.get("TokenNum")
|
31348
|
-
self._RequestId = params.get("RequestId")
|
31349
|
-
|
31350
|
-
|
31351
30774
|
class StoreInfo(AbstractModel):
|
31352
30775
|
"""门头照识别结果
|
31353
30776
|
|
@@ -2342,56 +2342,6 @@ class OcrClient(AbstractClient):
|
|
2342
2342
|
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2343
2343
|
|
2344
2344
|
|
2345
|
-
def SmartStructuralOCRV2(self, request):
|
2346
|
-
"""本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
2347
|
-
|
2348
|
-
默认接口请求频率限制:5次/秒。
|
2349
|
-
|
2350
|
-
:param request: Request instance for SmartStructuralOCRV2.
|
2351
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralOCRV2Request`
|
2352
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralOCRV2Response`
|
2353
|
-
|
2354
|
-
"""
|
2355
|
-
try:
|
2356
|
-
params = request._serialize()
|
2357
|
-
headers = request.headers
|
2358
|
-
body = self.call("SmartStructuralOCRV2", params, headers=headers)
|
2359
|
-
response = json.loads(body)
|
2360
|
-
model = models.SmartStructuralOCRV2Response()
|
2361
|
-
model._deserialize(response["Response"])
|
2362
|
-
return model
|
2363
|
-
except Exception as e:
|
2364
|
-
if isinstance(e, TencentCloudSDKException):
|
2365
|
-
raise
|
2366
|
-
else:
|
2367
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2368
|
-
|
2369
|
-
|
2370
|
-
def SmartStructuralPro(self, request):
|
2371
|
-
"""本接口支持识别并提取场景复杂、版式多等结构化场景的字段信息。重点场景包括:金融、医疗、交通、出行、保险。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
2372
|
-
|
2373
|
-
默认接口请求频率限制:5次/秒。
|
2374
|
-
|
2375
|
-
:param request: Request instance for SmartStructuralPro.
|
2376
|
-
:type request: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProRequest`
|
2377
|
-
:rtype: :class:`tencentcloud.ocr.v20181119.models.SmartStructuralProResponse`
|
2378
|
-
|
2379
|
-
"""
|
2380
|
-
try:
|
2381
|
-
params = request._serialize()
|
2382
|
-
headers = request.headers
|
2383
|
-
body = self.call("SmartStructuralPro", params, headers=headers)
|
2384
|
-
response = json.loads(body)
|
2385
|
-
model = models.SmartStructuralProResponse()
|
2386
|
-
model._deserialize(response["Response"])
|
2387
|
-
return model
|
2388
|
-
except Exception as e:
|
2389
|
-
if isinstance(e, TencentCloudSDKException):
|
2390
|
-
raise
|
2391
|
-
else:
|
2392
|
-
raise TencentCloudSDKException(type(e).__name__, str(e))
|
2393
|
-
|
2394
|
-
|
2395
2345
|
def TableOCR(self, request):
|
2396
2346
|
"""<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
|
2397
2347
|
|
@@ -155,6 +155,12 @@ FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWRESUBMIT = 'FailedOperation.Certificate
|
|
155
155
|
# 证书当前状态不允许进行域名验证。
|
156
156
|
FAILEDOPERATION_CERTIFICATESTATUSNOTALLOWVERIFY = 'FailedOperation.CertificateStatusNotAllowVerify'
|
157
157
|
|
158
|
+
# 上传证书的托管续费证书不能手动提交订单
|
159
|
+
FAILEDOPERATION_CERTIFICATESUBMITHOSTINGCERTERROR = 'FailedOperation.CertificateSubmitHostingCertError'
|
160
|
+
|
161
|
+
# 证书操作参数无效,证书ID数量超过100。
|
162
|
+
FAILEDOPERATION_CERTIFICATESYNCTASKCERTIFICATEIDCOUNTINVALID = 'FailedOperation.CertificateSyncTaskCertificateIdCountInvalid'
|
163
|
+
|
158
164
|
# 证书关联云资源查询任务ID无效
|
159
165
|
FAILEDOPERATION_CERTIFICATESYNCTASKIDINVALID = 'FailedOperation.CertificateSyncTaskIdInvalid'
|
160
166
|
|