tencentcloud-sdk-python-ocr 3.0.1444__py2.py3-none-any.whl → 3.0.1447__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-ocr might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +19 -4
- tencentcloud/ocr/v20181119/ocr_client.py +7 -23
- {tencentcloud_sdk_python_ocr-3.0.1444.dist-info → tencentcloud_sdk_python_ocr-3.0.1447.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.0.1447.dist-info/RECORD +10 -0
- tencentcloud_sdk_python_ocr-3.0.1444.dist-info/RECORD +0 -10
- {tencentcloud_sdk_python_ocr-3.0.1444.dist-info → tencentcloud_sdk_python_ocr-3.0.1447.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.0.1444.dist-info → tencentcloud_sdk_python_ocr-3.0.1447.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
@@ -26079,9 +26079,9 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26079
26079
|
|
26080
26080
|
def __init__(self):
|
26081
26081
|
r"""
|
26082
|
-
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF
|
26082
|
+
:param _ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
26083
26083
|
:type ImageBase64: str
|
26084
|
-
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF
|
26084
|
+
:param _ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26085
26085
|
:type ImageUrl: str
|
26086
26086
|
:param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
|
26087
26087
|
:type PdfPageNumber: int
|
@@ -26092,7 +26092,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26092
26092
|
|
26093
26093
|
@property
|
26094
26094
|
def ImageBase64(self):
|
26095
|
-
"""图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF
|
26095
|
+
"""图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
26096
26096
|
:rtype: str
|
26097
26097
|
"""
|
26098
26098
|
return self._ImageBase64
|
@@ -26103,7 +26103,7 @@ class RecognizeTableAccurateOCRRequest(AbstractModel):
|
|
26103
26103
|
|
26104
26104
|
@property
|
26105
26105
|
def ImageUrl(self):
|
26106
|
-
"""图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF
|
26106
|
+
"""图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
26107
26107
|
:rtype: str
|
26108
26108
|
"""
|
26109
26109
|
return self._ImageUrl
|
@@ -36801,6 +36801,8 @@ class VatElectronicInfo(AbstractModel):
|
|
36801
36801
|
:type TaxMark: str
|
36802
36802
|
:param _CompanySealMark: 是否有公司印章(0:没有,1:有)
|
36803
36803
|
:type CompanySealMark: int
|
36804
|
+
:param _InvoicePageIndex: 全电类型的多页pdf票据中,支持输出票面页码:当前第几页,一共第几页。
|
36805
|
+
:type InvoicePageIndex: str
|
36804
36806
|
"""
|
36805
36807
|
self._Title = None
|
36806
36808
|
self._Number = None
|
@@ -36824,6 +36826,7 @@ class VatElectronicInfo(AbstractModel):
|
|
36824
36826
|
self._PretaxAmountMark = None
|
36825
36827
|
self._TaxMark = None
|
36826
36828
|
self._CompanySealMark = None
|
36829
|
+
self._InvoicePageIndex = None
|
36827
36830
|
|
36828
36831
|
@property
|
36829
36832
|
def Title(self):
|
@@ -37067,6 +37070,17 @@ class VatElectronicInfo(AbstractModel):
|
|
37067
37070
|
def CompanySealMark(self, CompanySealMark):
|
37068
37071
|
self._CompanySealMark = CompanySealMark
|
37069
37072
|
|
37073
|
+
@property
|
37074
|
+
def InvoicePageIndex(self):
|
37075
|
+
"""全电类型的多页pdf票据中,支持输出票面页码:当前第几页,一共第几页。
|
37076
|
+
:rtype: str
|
37077
|
+
"""
|
37078
|
+
return self._InvoicePageIndex
|
37079
|
+
|
37080
|
+
@InvoicePageIndex.setter
|
37081
|
+
def InvoicePageIndex(self, InvoicePageIndex):
|
37082
|
+
self._InvoicePageIndex = InvoicePageIndex
|
37083
|
+
|
37070
37084
|
|
37071
37085
|
def _deserialize(self, params):
|
37072
37086
|
self._Title = params.get("Title")
|
@@ -37096,6 +37110,7 @@ class VatElectronicInfo(AbstractModel):
|
|
37096
37110
|
self._PretaxAmountMark = params.get("PretaxAmountMark")
|
37097
37111
|
self._TaxMark = params.get("TaxMark")
|
37098
37112
|
self._CompanySealMark = params.get("CompanySealMark")
|
37113
|
+
self._InvoicePageIndex = params.get("InvoicePageIndex")
|
37099
37114
|
memeber_set = set(params.keys())
|
37100
37115
|
for name, value in vars(self).items():
|
37101
37116
|
property_name = name[1:]
|
@@ -627,8 +627,7 @@ class OcrClient(AbstractClient):
|
|
627
627
|
<tr>
|
628
628
|
<th style="width:150px"></th>
|
629
629
|
<th >【荐】通用印刷体识别(高精度版)</th>
|
630
|
-
<th style="width:
|
631
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
630
|
+
<th style="width:300px"><a href="https://cloud.tencent.com/document/product/866/33526">【荐】通用印刷体识别</a></th>
|
632
631
|
</tr>
|
633
632
|
</thead>
|
634
633
|
<tbody>
|
@@ -636,43 +635,36 @@ class OcrClient(AbstractClient):
|
|
636
635
|
<td> 适用场景</td>
|
637
636
|
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
638
637
|
<td>适用于所有通用场景的印刷体识别</td>
|
639
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
640
638
|
</tr>
|
641
639
|
<tr>
|
642
640
|
<td>识别准确率</td>
|
643
641
|
<td>99%</td>
|
644
642
|
<td>96%</td>
|
645
|
-
<td>91%</td>
|
646
643
|
</tr>
|
647
644
|
<tr>
|
648
645
|
<td>价格</td>
|
649
|
-
<td>高</td>
|
650
646
|
<td>中</td>
|
651
647
|
<td>低</td>
|
652
648
|
</tr>
|
653
649
|
<tr>
|
654
650
|
<td>支持的语言</td>
|
655
|
-
<td
|
651
|
+
<td>中文、英文、中英文、泰语、印尼语、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语</td>
|
656
652
|
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
657
|
-
<td>中文、英文、中英文</td>
|
658
653
|
</tr>
|
659
654
|
<tr>
|
660
655
|
<td>自动语言检测</td>
|
661
|
-
<td
|
662
|
-
<td>支持</td>
|
656
|
+
<td>中英文支持;其他语言需要调整输入参数</td>
|
663
657
|
<td>支持</td>
|
664
658
|
</tr>
|
665
659
|
<tr>
|
666
660
|
<td>返回文本行坐标</td>
|
667
661
|
<td>支持</td>
|
668
662
|
<td>支持</td>
|
669
|
-
<td>支持</td>
|
670
663
|
</tr>
|
671
664
|
<tr>
|
672
665
|
<td>自动旋转纠正</td>
|
673
666
|
<td>支持旋转识别,返回角度信息</td>
|
674
667
|
<td>支持旋转识别,返回角度信息</td>
|
675
|
-
<td>支持旋转识别,返回角度信息</td>
|
676
668
|
</tr>
|
677
669
|
</tbody>
|
678
670
|
</table>
|
@@ -711,9 +703,8 @@ class OcrClient(AbstractClient):
|
|
711
703
|
<thead>
|
712
704
|
<tr>
|
713
705
|
<th style="width:150px"></th>
|
714
|
-
<th style="width:
|
706
|
+
<th style="width:250px">【荐】通用印刷体识别</th>
|
715
707
|
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
716
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
717
708
|
</tr>
|
718
709
|
</thead>
|
719
710
|
<tbody>
|
@@ -721,43 +712,36 @@ class OcrClient(AbstractClient):
|
|
721
712
|
<td> 适用场景</td>
|
722
713
|
<td>适用于所有通用场景的印刷体识别</td>
|
723
714
|
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
724
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
725
715
|
</tr>
|
726
716
|
<tr>
|
727
717
|
<td>识别准确率</td>
|
728
718
|
<td>96%</td>
|
729
719
|
<td>99%</td>
|
730
|
-
<td>91%</td>
|
731
720
|
</tr>
|
732
721
|
<tr>
|
733
722
|
<td>价格</td>
|
734
|
-
<td>中</td>
|
735
|
-
<td>高</td>
|
736
723
|
<td>低</td>
|
724
|
+
<td>中</td>
|
737
725
|
</tr>
|
738
726
|
<tr>
|
739
727
|
<td>支持的语言</td>
|
740
728
|
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
741
|
-
<td
|
742
|
-
<td>中文、英文、中英文</td>
|
729
|
+
<td>中文、英文、中英文、泰语、印尼语、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语</td>
|
743
730
|
</tr>
|
744
731
|
<tr>
|
745
732
|
<td>自动语言检测</td>
|
746
733
|
<td>支持</td>
|
747
|
-
<td
|
748
|
-
<td>支持</td>
|
734
|
+
<td>中英文支持;其他语种需要调整输入参数</td>
|
749
735
|
</tr>
|
750
736
|
<tr>
|
751
737
|
<td>返回文本行坐标</td>
|
752
738
|
<td>支持</td>
|
753
739
|
<td>支持</td>
|
754
|
-
<td>支持</td>
|
755
740
|
</tr>
|
756
741
|
<tr>
|
757
742
|
<td>自动旋转纠正</td>
|
758
743
|
<td>支持旋转识别,返回角度信息</td>
|
759
744
|
<td>支持旋转识别,返回角度信息</td>
|
760
|
-
<td>支持旋转识别,返回角度信息</td>
|
761
745
|
</tr>
|
762
746
|
</tbody>
|
763
747
|
</table>
|
@@ -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.1447
|
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.1447)
|
19
19
|
|
20
20
|
============================
|
21
21
|
Tencent Cloud SDK for Python
|
@@ -0,0 +1,10 @@
|
|
1
|
+
tencentcloud/__init__.py,sha256=Clabb3XxBDuEdLmg8E-OO3chnkbKm5mdLeZJzx_dS8c,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=nLvfNavVCs9IYnDZKKUlWTJghNda-BYHouMVMCX5vPs,1384870
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=MQeOCT4xNhcuT28BWO3yyMzXey4ROh2vCxHeUL8mlRY,123091
|
7
|
+
tencentcloud_sdk_python_ocr-3.0.1447.dist-info/METADATA,sha256=kEHIOTDNqziWI9OwH7M46QaRneZvknDcAY9Ygz7jUm4,1503
|
8
|
+
tencentcloud_sdk_python_ocr-3.0.1447.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
+
tencentcloud_sdk_python_ocr-3.0.1447.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
+
tencentcloud_sdk_python_ocr-3.0.1447.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
tencentcloud/__init__.py,sha256=z7pegdPMkssddojtfv7Ov_NQWpfty7HFI6vrZw_JgMU,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=k-76pnHF0Pg5ZHfEaVO_MkZs4GfaCOBDpdFpfd_QEc8,1384472
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=D9rJ5NROJ6i0WjWIUXD0CvY_NTYq74un_lPz_o3DcKQ,123525
|
7
|
-
tencentcloud_sdk_python_ocr-3.0.1444.dist-info/METADATA,sha256=XzDaoi96DKbQYYDAP6zVM-D7-rdFPS4Lxhdm45rSHos,1503
|
8
|
-
tencentcloud_sdk_python_ocr-3.0.1444.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
|
9
|
-
tencentcloud_sdk_python_ocr-3.0.1444.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
10
|
-
tencentcloud_sdk_python_ocr-3.0.1444.dist-info/RECORD,,
|
File without changes
|
File without changes
|