tencentcloud-sdk-python-ocr 3.1.207__tar.gz → 3.1.212__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/ocr/v20181119/errorcodes.py +3 -0
  5. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/ocr/v20181119/models.py +49 -4
  6. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  7. tencentcloud_sdk_python_ocr-3.1.212/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  8. tencentcloud_sdk_python_ocr-3.1.207/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  9. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/README.rst +0 -0
  10. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/setup.cfg +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/ocr/__init__.py +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.207 → tencentcloud_sdk_python_ocr-3.1.212}/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.207
3
+ Version: 3.1.212
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.207
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.212
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.207,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.212,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Ocr SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.207'
17
+ __version__ = '3.1.212'
@@ -32,6 +32,9 @@ FAILEDOPERATION_DETECTFAILED = 'FailedOperation.DetectFailed'
32
32
  # 文件下载失败。
33
33
  FAILEDOPERATION_DOWNLOADERROR = 'FailedOperation.DownLoadError'
34
34
 
35
+ # 空文件。
36
+ FAILEDOPERATION_EMPTYFILEERROR = 'FailedOperation.EmptyFileError'
37
+
35
38
  # 图片内容为空。
36
39
  FAILEDOPERATION_EMPTYIMAGEERROR = 'FailedOperation.EmptyImageError'
37
40
 
@@ -20109,6 +20109,8 @@ class MultimodalDocParseRequest(AbstractModel):
20109
20109
  :type PageRange: str
20110
20110
  :param _TaskType: <p>任务类型</p><p>枚举值:</p><ul><li>0: 文档解析</li><li>1: 图片OCR识别</li><li>2: 切片文字识别</li><li>3: 切片表格识别</li><li>4: 切片代码识别</li></ul><p>默认值:0</p>
20111
20111
  :type TaskType: int
20112
+ :param _EnableTableCellCoord: <p>是否输出单元格坐标。开启后,耗时会稍有增加。<br>默认值:false</p>
20113
+ :type EnableTableCellCoord: bool
20112
20114
  """
20113
20115
  self._FileUrl = None
20114
20116
  self._FileType = None
@@ -20116,6 +20118,7 @@ class MultimodalDocParseRequest(AbstractModel):
20116
20118
  self._EnableSubImg = None
20117
20119
  self._PageRange = None
20118
20120
  self._TaskType = None
20121
+ self._EnableTableCellCoord = None
20119
20122
 
20120
20123
  @property
20121
20124
  def FileUrl(self):
@@ -20183,6 +20186,17 @@ class MultimodalDocParseRequest(AbstractModel):
20183
20186
  def TaskType(self, TaskType):
20184
20187
  self._TaskType = TaskType
20185
20188
 
20189
+ @property
20190
+ def EnableTableCellCoord(self):
20191
+ r"""<p>是否输出单元格坐标。开启后,耗时会稍有增加。<br>默认值:false</p>
20192
+ :rtype: bool
20193
+ """
20194
+ return self._EnableTableCellCoord
20195
+
20196
+ @EnableTableCellCoord.setter
20197
+ def EnableTableCellCoord(self, EnableTableCellCoord):
20198
+ self._EnableTableCellCoord = EnableTableCellCoord
20199
+
20186
20200
 
20187
20201
  def _deserialize(self, params):
20188
20202
  self._FileUrl = params.get("FileUrl")
@@ -20191,6 +20205,7 @@ class MultimodalDocParseRequest(AbstractModel):
20191
20205
  self._EnableSubImg = params.get("EnableSubImg")
20192
20206
  self._PageRange = params.get("PageRange")
20193
20207
  self._TaskType = params.get("TaskType")
20208
+ self._EnableTableCellCoord = params.get("EnableTableCellCoord")
20194
20209
  memeber_set = set(params.keys())
20195
20210
  for name, value in vars(self).items():
20196
20211
  property_name = name[1:]
@@ -23471,7 +23486,7 @@ class QuestionInfo(AbstractModel):
23471
23486
  :type ImageBase64: str
23472
23487
  :param _ReturnImageUrl: <p>预处理后的图片URL,如果开启了图像切边矫正,后续的坐标都是基于当前图片返回的坐标</p>
23473
23488
  :type ReturnImageUrl: str
23474
- :param _ClassName: <p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 时生效。其他模型类型不支持该能力。</p>
23489
+ :param _ClassName: <p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 且快速模式下生效。其他模型类型不支持该能力。</p>
23475
23490
  :type ClassName: str
23476
23491
  :param _PageIndex: <p>文档所在页</p>
23477
23492
  :type PageIndex: int
@@ -23578,7 +23593,7 @@ class QuestionInfo(AbstractModel):
23578
23593
 
23579
23594
  @property
23580
23595
  def ClassName(self):
23581
- r"""<p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 时生效。其他模型类型不支持该能力。</p>
23596
+ r"""<p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 且快速模式下生效。其他模型类型不支持该能力。</p>
23582
23597
  :rtype: str
23583
23598
  """
23584
23599
  return self._ClassName
@@ -28806,10 +28821,12 @@ class ResultList(AbstractModel):
28806
28821
  :type Subject: str
28807
28822
  :param _KnowledgePoints: <p>返回题目的知识点内容</p>
28808
28823
  :type KnowledgePoints: list of str
28809
- :param _AnswerAnalysis: <p>【批改 API 专属特性】<br>当ModelType= yuanbao_correction_model,通过该字段返回题目维度的答案解析<br>当ModelType= youtu_correction_model,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</p>
28824
+ :param _AnswerAnalysis: <p>【批改 API 专属特性】</p><ol><li>当ModelType= yuanbao_correction_model 且快速模式下,通过该字段返回题目维度的答案解析</li><li>其他批改配置参数情况,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</li></ol>
28810
28825
  :type AnswerAnalysis: str
28811
28826
  :param _Grade: <p>年级:小学/初中/高中</p>
28812
28827
  :type Grade: str
28828
+ :param _Confidence: <p>【批改 API专属特性】返回题目维度的批改置信度(0-100)值越高表示答案准确度越高<br>备注:仅有ModelType=youtu_correction_model模型且非快速模式支持返回。</p>
28829
+ :type Confidence: int
28813
28830
  """
28814
28831
  self._Question = None
28815
28832
  self._Option = None
@@ -28824,6 +28841,7 @@ class ResultList(AbstractModel):
28824
28841
  self._KnowledgePoints = None
28825
28842
  self._AnswerAnalysis = None
28826
28843
  self._Grade = None
28844
+ self._Confidence = None
28827
28845
 
28828
28846
  @property
28829
28847
  def Question(self):
@@ -28954,7 +28972,7 @@ class ResultList(AbstractModel):
28954
28972
 
28955
28973
  @property
28956
28974
  def AnswerAnalysis(self):
28957
- r"""<p>【批改 API 专属特性】<br>当ModelType= yuanbao_correction_model,通过该字段返回题目维度的答案解析<br>当ModelType= youtu_correction_model,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</p>
28975
+ r"""<p>【批改 API 专属特性】</p><ol><li>当ModelType= yuanbao_correction_model 且快速模式下,通过该字段返回题目维度的答案解析</li><li>其他批改配置参数情况,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</li></ol>
28958
28976
  :rtype: str
28959
28977
  """
28960
28978
  return self._AnswerAnalysis
@@ -28974,6 +28992,17 @@ class ResultList(AbstractModel):
28974
28992
  def Grade(self, Grade):
28975
28993
  self._Grade = Grade
28976
28994
 
28995
+ @property
28996
+ def Confidence(self):
28997
+ r"""<p>【批改 API专属特性】返回题目维度的批改置信度(0-100)值越高表示答案准确度越高<br>备注:仅有ModelType=youtu_correction_model模型且非快速模式支持返回。</p>
28998
+ :rtype: int
28999
+ """
29000
+ return self._Confidence
29001
+
29002
+ @Confidence.setter
29003
+ def Confidence(self, Confidence):
29004
+ self._Confidence = Confidence
29005
+
28977
29006
 
28978
29007
  def _deserialize(self, params):
28979
29008
  if params.get("Question") is not None:
@@ -29024,6 +29053,7 @@ class ResultList(AbstractModel):
29024
29053
  self._KnowledgePoints = params.get("KnowledgePoints")
29025
29054
  self._AnswerAnalysis = params.get("AnswerAnalysis")
29026
29055
  self._Grade = params.get("Grade")
29056
+ self._Confidence = params.get("Confidence")
29027
29057
  memeber_set = set(params.keys())
29028
29058
  for name, value in vars(self).items():
29029
29059
  property_name = name[1:]
@@ -31881,6 +31911,8 @@ class SubmitMultimodalDocParseJobRequest(AbstractModel):
31881
31911
  :type FileEndPageNumber: int
31882
31912
  :param _TaskType: <p>任务类型,默认为 0。取值:</p><ul><li>0:默认</li><li>1:Free OCR</li><li>2:OCR</li><li>3:表格识别</li><li>4:代码识别</li></ul>
31883
31913
  :type TaskType: int
31914
+ :param _EnableTableCellCoord: <p>是否输出单元格坐标。开启后,耗时会稍有增加。<br>默认值:false</p>
31915
+ :type EnableTableCellCoord: bool
31884
31916
  """
31885
31917
  self._FileType = None
31886
31918
  self._FileUrl = None
@@ -31890,6 +31922,7 @@ class SubmitMultimodalDocParseJobRequest(AbstractModel):
31890
31922
  self._FileStartPageNumber = None
31891
31923
  self._FileEndPageNumber = None
31892
31924
  self._TaskType = None
31925
+ self._EnableTableCellCoord = None
31893
31926
 
31894
31927
  @property
31895
31928
  def FileType(self):
@@ -31979,6 +32012,17 @@ class SubmitMultimodalDocParseJobRequest(AbstractModel):
31979
32012
  def TaskType(self, TaskType):
31980
32013
  self._TaskType = TaskType
31981
32014
 
32015
+ @property
32016
+ def EnableTableCellCoord(self):
32017
+ r"""<p>是否输出单元格坐标。开启后,耗时会稍有增加。<br>默认值:false</p>
32018
+ :rtype: bool
32019
+ """
32020
+ return self._EnableTableCellCoord
32021
+
32022
+ @EnableTableCellCoord.setter
32023
+ def EnableTableCellCoord(self, EnableTableCellCoord):
32024
+ self._EnableTableCellCoord = EnableTableCellCoord
32025
+
31982
32026
 
31983
32027
  def _deserialize(self, params):
31984
32028
  self._FileType = params.get("FileType")
@@ -31989,6 +32033,7 @@ class SubmitMultimodalDocParseJobRequest(AbstractModel):
31989
32033
  self._FileStartPageNumber = params.get("FileStartPageNumber")
31990
32034
  self._FileEndPageNumber = params.get("FileEndPageNumber")
31991
32035
  self._TaskType = params.get("TaskType")
32036
+ self._EnableTableCellCoord = params.get("EnableTableCellCoord")
31992
32037
  memeber_set = set(params.keys())
31993
32038
  for name, value in vars(self).items():
31994
32039
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.207
3
+ Version: 3.1.212
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.207
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.212
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.212
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.207