tencentcloud-sdk-python-ocr 3.0.1433__py2.py3-none-any.whl → 3.0.1437__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/ocr/v20181119/models.py +90 -4
- {tencentcloud_sdk_python_ocr-3.0.1433.dist-info → tencentcloud_sdk_python_ocr-3.0.1437.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.0.1437.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_ocr-3.0.1433.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_ocr-3.0.1433.dist-info → tencentcloud_sdk_python_ocr-3.0.1437.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.0.1433.dist-info → tencentcloud_sdk_python_ocr-3.0.1437.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -11899,11 +11899,14 @@ class GetOCRResultResponse(AbstractModel):
|
|
11899
11899
|
:type Type: str
|
11900
11900
|
:param _OCRResult: ocr结果
|
11901
11901
|
:type OCRResult: :class:`tencentcloud.ocr.v20181119.models.OCRResult`
|
11902
|
+
:param _RequestIdInfos: requestid 信息
|
11903
|
+
:type RequestIdInfos: list of RequestIdInfo
|
11902
11904
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11903
11905
|
:type RequestId: str
|
11904
11906
|
"""
|
11905
11907
|
self._Type = None
|
11906
11908
|
self._OCRResult = None
|
11909
|
+
self._RequestIdInfos = None
|
11907
11910
|
self._RequestId = None
|
11908
11911
|
|
11909
11912
|
@property
|
@@ -11928,6 +11931,17 @@ class GetOCRResultResponse(AbstractModel):
|
|
11928
11931
|
def OCRResult(self, OCRResult):
|
11929
11932
|
self._OCRResult = OCRResult
|
11930
11933
|
|
11934
|
+
@property
|
11935
|
+
def RequestIdInfos(self):
|
11936
|
+
"""requestid 信息
|
11937
|
+
:rtype: list of RequestIdInfo
|
11938
|
+
"""
|
11939
|
+
return self._RequestIdInfos
|
11940
|
+
|
11941
|
+
@RequestIdInfos.setter
|
11942
|
+
def RequestIdInfos(self, RequestIdInfos):
|
11943
|
+
self._RequestIdInfos = RequestIdInfos
|
11944
|
+
|
11931
11945
|
@property
|
11932
11946
|
def RequestId(self):
|
11933
11947
|
"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
@@ -11945,6 +11959,12 @@ class GetOCRResultResponse(AbstractModel):
|
|
11945
11959
|
if params.get("OCRResult") is not None:
|
11946
11960
|
self._OCRResult = OCRResult()
|
11947
11961
|
self._OCRResult._deserialize(params.get("OCRResult"))
|
11962
|
+
if params.get("RequestIdInfos") is not None:
|
11963
|
+
self._RequestIdInfos = []
|
11964
|
+
for item in params.get("RequestIdInfos"):
|
11965
|
+
obj = RequestIdInfo()
|
11966
|
+
obj._deserialize(item)
|
11967
|
+
self._RequestIdInfos.append(obj)
|
11948
11968
|
self._RequestId = params.get("RequestId")
|
11949
11969
|
|
11950
11970
|
|
@@ -26025,9 +26045,9 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26025
26045
|
|
26026
26046
|
def __init__(self):
|
26027
26047
|
r"""
|
26028
|
-
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26048
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
26029
26049
|
:type ImageBase64: str
|
26030
|
-
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26050
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26031
26051
|
:type ImageUrl: str
|
26032
26052
|
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
|
26033
26053
|
:type PdfPageNumber: int
|
@@ -26038,7 +26058,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26038
26058
|
|
26039
26059
|
@property
|
26040
26060
|
def ImageBase64(self):
|
26041
|
-
"""图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26061
|
+
"""图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
26042
26062
|
:rtype: str
|
26043
26063
|
"""
|
26044
26064
|
return self._ImageBase64
|
@@ -26049,7 +26069,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26049
26069
|
|
26050
26070
|
@property
|
26051
26071
|
def ImageUrl(self):
|
26052
|
-
"""图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
26072
|
+
"""图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26053
26073
|
:rtype: str
|
26054
26074
|
"""
|
26055
26075
|
return self._ImageUrl
|
@@ -27584,6 +27604,72 @@ Others 其他位置
|
|
27584
27604
|
|
27585
27605
|
|
27586
27606
|
|
27607
|
+
class RequestIdInfo(AbstractModel):
|
27608
|
+
"""请求 id 信息
|
27609
|
+
|
27610
|
+
"""
|
27611
|
+
|
27612
|
+
def __init__(self):
|
27613
|
+
r"""
|
27614
|
+
:param _ApiRequestId: 请求 api 的 requestid
|
27615
|
+
:type ApiRequestId: str
|
27616
|
+
:param _ApiErrorCode: 请求 api 的错误码
|
27617
|
+
:type ApiErrorCode: str
|
27618
|
+
:param _WarnCodes: 告警码
|
27619
|
+
:type WarnCodes: list of int
|
27620
|
+
"""
|
27621
|
+
self._ApiRequestId = None
|
27622
|
+
self._ApiErrorCode = None
|
27623
|
+
self._WarnCodes = None
|
27624
|
+
|
27625
|
+
@property
|
27626
|
+
def ApiRequestId(self):
|
27627
|
+
"""请求 api 的 requestid
|
27628
|
+
:rtype: str
|
27629
|
+
"""
|
27630
|
+
return self._ApiRequestId
|
27631
|
+
|
27632
|
+
@ApiRequestId.setter
|
27633
|
+
def ApiRequestId(self, ApiRequestId):
|
27634
|
+
self._ApiRequestId = ApiRequestId
|
27635
|
+
|
27636
|
+
@property
|
27637
|
+
def ApiErrorCode(self):
|
27638
|
+
"""请求 api 的错误码
|
27639
|
+
:rtype: str
|
27640
|
+
"""
|
27641
|
+
return self._ApiErrorCode
|
27642
|
+
|
27643
|
+
@ApiErrorCode.setter
|
27644
|
+
def ApiErrorCode(self, ApiErrorCode):
|
27645
|
+
self._ApiErrorCode = ApiErrorCode
|
27646
|
+
|
27647
|
+
@property
|
27648
|
+
def WarnCodes(self):
|
27649
|
+
"""告警码
|
27650
|
+
:rtype: list of int
|
27651
|
+
"""
|
27652
|
+
return self._WarnCodes
|
27653
|
+
|
27654
|
+
@WarnCodes.setter
|
27655
|
+
def WarnCodes(self, WarnCodes):
|
27656
|
+
self._WarnCodes = WarnCodes
|
27657
|
+
|
27658
|
+
|
27659
|
+
def _deserialize(self, params):
|
27660
|
+
self._ApiRequestId = params.get("ApiRequestId")
|
27661
|
+
self._ApiErrorCode = params.get("ApiErrorCode")
|
27662
|
+
self._WarnCodes = params.get("WarnCodes")
|
27663
|
+
memeber_set = set(params.keys())
|
27664
|
+
for name, value in vars(self).items():
|
27665
|
+
property_name = name[1:]
|
27666
|
+
if property_name in memeber_set:
|
27667
|
+
memeber_set.remove(property_name)
|
27668
|
+
if len(memeber_set) > 0:
|
27669
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
27670
|
+
|
27671
|
+
|
27672
|
+
|
27587
27673
|
class ResidenceBookletOCRRequest(AbstractModel):
|
27588
27674
|
"""ResidenceBookletOCR请求参数结构体
|
27589
27675
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.1437
|
4
4
|
Summary: Tencent Cloud Ocr SDK for Python
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
6
6
|
Author: Tencent Cloud
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common (<4.0.0,>=3.0.1437)
|
19
19
|
|
20
20
|
============================
|
21
21
|
Tencent Cloud SDK for Python
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tencentcloud/__init__.py,sha256=o4LqfEtqMa55rJmpSfl-0VS8gASeJmJaXItepQso6vA,631
|
2
|
+
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
+
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
tencentcloud/ocr/v20181119/errorcodes.py,sha256=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=YoC-mW86RJt3pdowB5NZ0JY2G2qtQBXe8Ro__QrENjc,1383068
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
+
tencentcloud_sdk_python_ocr-3.0.1437.dist-info/METADATA,sha256=RkDPHH2bOn--lkJYxIByuZ2HtYRl6znhwpC00yTkSiQ,1503
|
8
|
+
tencentcloud_sdk_python_ocr-3.0.1437.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
+
tencentcloud_sdk_python_ocr-3.0.1437.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
+
tencentcloud_sdk_python_ocr-3.0.1437.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
tencentcloud/__init__.py,sha256=VO_dNxr2FCJjFdLeVdDw9jI3LY7N8KMneno9An9rlcI,631
|
2
|
-
tencentcloud/ocr/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
tencentcloud/ocr/v20181119/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
-
tencentcloud/ocr/v20181119/errorcodes.py,sha256=F14bbQDRi4P9JfBfjuTGaR08iiQkY3d3KcyBwscqAtk,6985
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=yEZw6PpbtRD6ewCZ5I0_iTNlCg-bOvhoYCmNOC_Yndo,1380220
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
-
tencentcloud_sdk_python_ocr-3.0.1433.dist-info/METADATA,sha256=MQlrpa1D-tx4LUvpY4jysFGTanXedz00LB6MFfsal4A,1503
|
8
|
-
tencentcloud_sdk_python_ocr-3.0.1433.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
-
tencentcloud_sdk_python_ocr-3.0.1433.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
-
tencentcloud_sdk_python_ocr-3.0.1433.dist-info/RECORD,,
|
File without changes
|
File without changes
|