tencentcloud-sdk-python-ocr 3.0.1433__tar.gz → 3.0.1437__tar.gz

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-ocr might be problematic. Click here for more details.

Files changed (16) hide show
  1. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/PKG-INFO +1 -1
  2. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/setup.py +1 -1
  3. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud/ocr/v20181119/models.py +90 -4
  5. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +1 -1
  6. tencentcloud-sdk-python-ocr-3.0.1437/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  7. tencentcloud-sdk-python-ocr-3.0.1433/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  8. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/README.rst +0 -0
  9. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/setup.cfg +0 -0
  10. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud/ocr/__init__.py +0 -0
  11. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  12. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  13. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  15. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  16. {tencentcloud-sdk-python-ocr-3.0.1433 → tencentcloud-sdk-python-ocr-3.0.1437}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1433
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
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-ocr',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1433,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.0.1437,<4.0.0"],
12
12
  version=tencentcloud.__version__,
13
13
  description='Tencent Cloud Ocr SDK for Python',
14
14
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1433'
17
+ __version__ = '3.0.1437'
@@ -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以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
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以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
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以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
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以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
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: 1.2
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.0.1433
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
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.0.1437
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1433