tencentcloud-sdk-python-ocr 3.1.58__tar.gz → 3.1.60__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.
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/setup.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/ocr/v20181119/models.py +26 -26
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ocr-3.1.60/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ocr-3.1.58/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/README.rst +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.58 → tencentcloud_sdk_python_ocr-3.1.60}/tencentcloud_sdk_python_ocr.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.60
|
|
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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.60
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.60,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ocr SDK for Python',
|
|
@@ -11673,21 +11673,21 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11673
11673
|
|
|
11674
11674
|
def __init__(self):
|
|
11675
11675
|
r"""
|
|
11676
|
-
:param _ImageBase64:
|
|
11676
|
+
:param _ImageBase64: <p>图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
11677
11677
|
:type ImageBase64: str
|
|
11678
|
-
:param _ImageUrl:
|
|
11678
|
+
:param _ImageUrl: <p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
11679
11679
|
:type ImageUrl: str
|
|
11680
|
-
:param _IsWords:
|
|
11680
|
+
:param _IsWords: <p>是否返回单字信息,默认值为false,注:仅ConfigID配置为OCR时支持。</p>
|
|
11681
11681
|
:type IsWords: bool
|
|
11682
|
-
:param _EnableDetectSplit:
|
|
11682
|
+
:param _EnableDetectSplit: <p>是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关,注:仅ConfigID配置为OCR时支持。</p>
|
|
11683
11683
|
:type EnableDetectSplit: bool
|
|
11684
|
-
:param _IsPdf:
|
|
11684
|
+
:param _IsPdf: <p>是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。</p>
|
|
11685
11685
|
:type IsPdf: bool
|
|
11686
|
-
:param _PdfPageNumber:
|
|
11686
|
+
:param _PdfPageNumber: <p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。</p>
|
|
11687
11687
|
:type PdfPageNumber: int
|
|
11688
|
-
:param _EnableDetectText:
|
|
11688
|
+
:param _EnableDetectText: <p>文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。</p>
|
|
11689
11689
|
:type EnableDetectText: bool
|
|
11690
|
-
:param _ConfigID:
|
|
11690
|
+
:param _ConfigID: <p>配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,默认值为OCR</p>
|
|
11691
11691
|
:type ConfigID: str
|
|
11692
11692
|
"""
|
|
11693
11693
|
self._ImageBase64 = None
|
|
@@ -11701,7 +11701,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11701
11701
|
|
|
11702
11702
|
@property
|
|
11703
11703
|
def ImageBase64(self):
|
|
11704
|
-
r"""
|
|
11704
|
+
r"""<p>图片/PDF的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
11705
11705
|
:rtype: str
|
|
11706
11706
|
"""
|
|
11707
11707
|
return self._ImageBase64
|
|
@@ -11712,7 +11712,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11712
11712
|
|
|
11713
11713
|
@property
|
|
11714
11714
|
def ImageUrl(self):
|
|
11715
|
-
r"""
|
|
11715
|
+
r"""<p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
11716
11716
|
:rtype: str
|
|
11717
11717
|
"""
|
|
11718
11718
|
return self._ImageUrl
|
|
@@ -11723,7 +11723,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11723
11723
|
|
|
11724
11724
|
@property
|
|
11725
11725
|
def IsWords(self):
|
|
11726
|
-
r"""
|
|
11726
|
+
r"""<p>是否返回单字信息,默认值为false,注:仅ConfigID配置为OCR时支持。</p>
|
|
11727
11727
|
:rtype: bool
|
|
11728
11728
|
"""
|
|
11729
11729
|
return self._IsWords
|
|
@@ -11734,7 +11734,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11734
11734
|
|
|
11735
11735
|
@property
|
|
11736
11736
|
def EnableDetectSplit(self):
|
|
11737
|
-
r"""
|
|
11737
|
+
r"""<p>是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关,注:仅ConfigID配置为OCR时支持。</p>
|
|
11738
11738
|
:rtype: bool
|
|
11739
11739
|
"""
|
|
11740
11740
|
return self._EnableDetectSplit
|
|
@@ -11745,7 +11745,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11745
11745
|
|
|
11746
11746
|
@property
|
|
11747
11747
|
def IsPdf(self):
|
|
11748
|
-
r"""
|
|
11748
|
+
r"""<p>是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。</p>
|
|
11749
11749
|
:rtype: bool
|
|
11750
11750
|
"""
|
|
11751
11751
|
return self._IsPdf
|
|
@@ -11756,7 +11756,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11756
11756
|
|
|
11757
11757
|
@property
|
|
11758
11758
|
def PdfPageNumber(self):
|
|
11759
|
-
r"""
|
|
11759
|
+
r"""<p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。</p>
|
|
11760
11760
|
:rtype: int
|
|
11761
11761
|
"""
|
|
11762
11762
|
return self._PdfPageNumber
|
|
@@ -11767,7 +11767,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11767
11767
|
|
|
11768
11768
|
@property
|
|
11769
11769
|
def EnableDetectText(self):
|
|
11770
|
-
r"""
|
|
11770
|
+
r"""<p>文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。</p>
|
|
11771
11771
|
:rtype: bool
|
|
11772
11772
|
"""
|
|
11773
11773
|
return self._EnableDetectText
|
|
@@ -11778,7 +11778,7 @@ class GeneralAccurateOCRRequest(AbstractModel):
|
|
|
11778
11778
|
|
|
11779
11779
|
@property
|
|
11780
11780
|
def ConfigID(self):
|
|
11781
|
-
r"""
|
|
11781
|
+
r"""<p>配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,默认值为OCR</p>
|
|
11782
11782
|
:rtype: str
|
|
11783
11783
|
"""
|
|
11784
11784
|
return self._ConfigID
|
|
@@ -11814,11 +11814,11 @@ class GeneralAccurateOCRResponse(AbstractModel):
|
|
|
11814
11814
|
|
|
11815
11815
|
def __init__(self):
|
|
11816
11816
|
r"""
|
|
11817
|
-
:param _TextDetections:
|
|
11817
|
+
:param _TextDetections: <p>检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。</p>
|
|
11818
11818
|
:type TextDetections: list of TextDetection
|
|
11819
|
-
:param _Angel:
|
|
11819
|
+
:param _Angel: <p>图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a></p>
|
|
11820
11820
|
:type Angel: float
|
|
11821
|
-
:param _Angle:
|
|
11821
|
+
:param _Angle: <p>图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a></p>
|
|
11822
11822
|
:type Angle: float
|
|
11823
11823
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11824
11824
|
:type RequestId: str
|
|
@@ -11830,7 +11830,7 @@ class GeneralAccurateOCRResponse(AbstractModel):
|
|
|
11830
11830
|
|
|
11831
11831
|
@property
|
|
11832
11832
|
def TextDetections(self):
|
|
11833
|
-
r"""
|
|
11833
|
+
r"""<p>检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。</p>
|
|
11834
11834
|
:rtype: list of TextDetection
|
|
11835
11835
|
"""
|
|
11836
11836
|
return self._TextDetections
|
|
@@ -11843,7 +11843,7 @@ class GeneralAccurateOCRResponse(AbstractModel):
|
|
|
11843
11843
|
def Angel(self):
|
|
11844
11844
|
warnings.warn("parameter `Angel` is deprecated", DeprecationWarning)
|
|
11845
11845
|
|
|
11846
|
-
r"""
|
|
11846
|
+
r"""<p>图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a></p>
|
|
11847
11847
|
:rtype: float
|
|
11848
11848
|
"""
|
|
11849
11849
|
return self._Angel
|
|
@@ -11856,7 +11856,7 @@ class GeneralAccurateOCRResponse(AbstractModel):
|
|
|
11856
11856
|
|
|
11857
11857
|
@property
|
|
11858
11858
|
def Angle(self):
|
|
11859
|
-
r"""
|
|
11859
|
+
r"""<p>图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a></p>
|
|
11860
11860
|
:rtype: float
|
|
11861
11861
|
"""
|
|
11862
11862
|
return self._Angle
|
|
@@ -42071,9 +42071,9 @@ class VehicleRegCertInfo(AbstractModel):
|
|
|
42071
42071
|
|
|
42072
42072
|
def __init__(self):
|
|
42073
42073
|
r"""
|
|
42074
|
-
:param _Name: <p>识别出的字段名称(关键字)
|
|
42074
|
+
:param _Name: <p>识别出的字段名称(关键字),支持以下字段:<br>【注册登记信息栏/摘要信息栏、转移登记摘要信息栏】<br>车辆型号、车辆识别代号/车架号、发动机号、制造厂名称、轴距、轮胎数、总质量、外廓尺寸、轴数、车辆出厂日期、发证日期、使用性质、车辆获得方式、车辆类型、国产/进口、燃料种类、车身颜色、发动机型号、车辆品牌、编号、转向形式、<br>机动车所有人1、身份证明名称1、号码1、登记机关1、登记日期1<br>机动车所有人2、身份证明名称2、号码2、登记机关2、登记日期2<br>机动车所有人3、身份证明名称3、号码3、登记机关3、登记日期3<br>机动车所有人4、身份证明名称4、号码4、登记机关4、登记日期4<br>机动车所有人5、身份证明名称5、号码5、登记机关5、登记日期5<br>机动车所有人6、身份证明名称6、号码6、登记机关6、登记日期6<br>机动车所有人7、身份证明名称7、号码7、登记机关7、登记日期7<br>【登记栏】<br>机动车登记证书编号、标题(目前支持转让登记、抵押登记、解除抵押)<br>[标题:转让登记]<br>姓名/名称、身份证明名称/号码、获得方式、机动车登记编号、转让登记日期<br>[标题:抵押登记]<br>抵押权人姓名/名称、身份证明名称/号码、抵押登记日期<br>[标题:解除抵押]<br>解除抵押日期</p>
|
|
42075
42075
|
:type Name: str
|
|
42076
|
-
:param _Value: <p>识别出的字段名称对应的值,也就是字段name
|
|
42076
|
+
:param _Value: <p>识别出的字段名称对应的值,也就是字段name对应的字符串结果。</p>
|
|
42077
42077
|
:type Value: str
|
|
42078
42078
|
"""
|
|
42079
42079
|
self._Name = None
|
|
@@ -42081,7 +42081,7 @@ class VehicleRegCertInfo(AbstractModel):
|
|
|
42081
42081
|
|
|
42082
42082
|
@property
|
|
42083
42083
|
def Name(self):
|
|
42084
|
-
r"""<p>识别出的字段名称(关键字)
|
|
42084
|
+
r"""<p>识别出的字段名称(关键字),支持以下字段:<br>【注册登记信息栏/摘要信息栏、转移登记摘要信息栏】<br>车辆型号、车辆识别代号/车架号、发动机号、制造厂名称、轴距、轮胎数、总质量、外廓尺寸、轴数、车辆出厂日期、发证日期、使用性质、车辆获得方式、车辆类型、国产/进口、燃料种类、车身颜色、发动机型号、车辆品牌、编号、转向形式、<br>机动车所有人1、身份证明名称1、号码1、登记机关1、登记日期1<br>机动车所有人2、身份证明名称2、号码2、登记机关2、登记日期2<br>机动车所有人3、身份证明名称3、号码3、登记机关3、登记日期3<br>机动车所有人4、身份证明名称4、号码4、登记机关4、登记日期4<br>机动车所有人5、身份证明名称5、号码5、登记机关5、登记日期5<br>机动车所有人6、身份证明名称6、号码6、登记机关6、登记日期6<br>机动车所有人7、身份证明名称7、号码7、登记机关7、登记日期7<br>【登记栏】<br>机动车登记证书编号、标题(目前支持转让登记、抵押登记、解除抵押)<br>[标题:转让登记]<br>姓名/名称、身份证明名称/号码、获得方式、机动车登记编号、转让登记日期<br>[标题:抵押登记]<br>抵押权人姓名/名称、身份证明名称/号码、抵押登记日期<br>[标题:解除抵押]<br>解除抵押日期</p>
|
|
42085
42085
|
:rtype: str
|
|
42086
42086
|
"""
|
|
42087
42087
|
return self._Name
|
|
@@ -42092,7 +42092,7 @@ class VehicleRegCertInfo(AbstractModel):
|
|
|
42092
42092
|
|
|
42093
42093
|
@property
|
|
42094
42094
|
def Value(self):
|
|
42095
|
-
r"""<p>识别出的字段名称对应的值,也就是字段name
|
|
42095
|
+
r"""<p>识别出的字段名称对应的值,也就是字段name对应的字符串结果。</p>
|
|
42096
42096
|
:rtype: str
|
|
42097
42097
|
"""
|
|
42098
42098
|
return self._Value
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ocr
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.60
|
|
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.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.60
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.60
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.58
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|