tencentcloud-sdk-python-ocr 3.1.209__tar.gz → 3.1.213__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.209 → tencentcloud_sdk_python_ocr-3.1.213}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/setup.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/ocr/v20181119/models.py +25 -10
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ocr-3.1.213/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ocr-3.1.209/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/README.rst +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/ocr/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/ocr/v20181119/__init__.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/ocr/v20181119/ocr_client.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud/ocr/v20181119/ocr_client_async.py +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ocr-3.1.209 → tencentcloud_sdk_python_ocr-3.1.213}/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.213
|
|
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.213
|
|
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.213,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ocr SDK for Python',
|
|
@@ -23486,7 +23486,7 @@ class QuestionInfo(AbstractModel):
|
|
|
23486
23486
|
:type ImageBase64: str
|
|
23487
23487
|
:param _ReturnImageUrl: <p>预处理后的图片URL,如果开启了图像切边矫正,后续的坐标都是基于当前图片返回的坐标</p>
|
|
23488
23488
|
:type ReturnImageUrl: str
|
|
23489
|
-
:param _ClassName: <p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model
|
|
23489
|
+
:param _ClassName: <p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 且快速模式下生效。其他模型类型不支持该能力。</p>
|
|
23490
23490
|
:type ClassName: str
|
|
23491
23491
|
:param _PageIndex: <p>文档所在页</p>
|
|
23492
23492
|
:type PageIndex: int
|
|
@@ -23593,7 +23593,7 @@ class QuestionInfo(AbstractModel):
|
|
|
23593
23593
|
|
|
23594
23594
|
@property
|
|
23595
23595
|
def ClassName(self):
|
|
23596
|
-
r"""<p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model
|
|
23596
|
+
r"""<p>【批改 API 专属特性】图片类型预判别(常规作业 / 非作业图片 / 无作答痕迹),仅 ModelType = yuanbao_correction_model 且快速模式下生效。其他模型类型不支持该能力。</p>
|
|
23597
23597
|
:rtype: str
|
|
23598
23598
|
"""
|
|
23599
23599
|
return self._ClassName
|
|
@@ -28821,10 +28821,12 @@ class ResultList(AbstractModel):
|
|
|
28821
28821
|
:type Subject: str
|
|
28822
28822
|
:param _KnowledgePoints: <p>返回题目的知识点内容</p>
|
|
28823
28823
|
:type KnowledgePoints: list of str
|
|
28824
|
-
:param _AnswerAnalysis: <p>【批改 API
|
|
28824
|
+
:param _AnswerAnalysis: <p>【批改 API 专属特性】</p><ol><li>当ModelType= yuanbao_correction_model 且快速模式下,通过该字段返回题目维度的答案解析</li><li>其他批改配置参数情况,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</li></ol>
|
|
28825
28825
|
:type AnswerAnalysis: str
|
|
28826
28826
|
:param _Grade: <p>年级:小学/初中/高中</p>
|
|
28827
28827
|
:type Grade: str
|
|
28828
|
+
:param _Confidence: <p>【批改 API专属特性】返回题目维度的批改置信度(0-100)值越高表示答案准确度越高<br>备注:仅有ModelType=youtu_correction_model模型且非快速模式支持返回。</p>
|
|
28829
|
+
:type Confidence: int
|
|
28828
28830
|
"""
|
|
28829
28831
|
self._Question = None
|
|
28830
28832
|
self._Option = None
|
|
@@ -28839,6 +28841,7 @@ class ResultList(AbstractModel):
|
|
|
28839
28841
|
self._KnowledgePoints = None
|
|
28840
28842
|
self._AnswerAnalysis = None
|
|
28841
28843
|
self._Grade = None
|
|
28844
|
+
self._Confidence = None
|
|
28842
28845
|
|
|
28843
28846
|
@property
|
|
28844
28847
|
def Question(self):
|
|
@@ -28969,7 +28972,7 @@ class ResultList(AbstractModel):
|
|
|
28969
28972
|
|
|
28970
28973
|
@property
|
|
28971
28974
|
def AnswerAnalysis(self):
|
|
28972
|
-
r"""<p>【批改 API
|
|
28975
|
+
r"""<p>【批改 API 专属特性】</p><ol><li>当ModelType= yuanbao_correction_model 且快速模式下,通过该字段返回题目维度的答案解析</li><li>其他批改配置参数情况,该字段返回空,通过AnswerElement. AnswerAnalysis返回答案维度答案解析</li></ol>
|
|
28973
28976
|
:rtype: str
|
|
28974
28977
|
"""
|
|
28975
28978
|
return self._AnswerAnalysis
|
|
@@ -28989,6 +28992,17 @@ class ResultList(AbstractModel):
|
|
|
28989
28992
|
def Grade(self, Grade):
|
|
28990
28993
|
self._Grade = Grade
|
|
28991
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
|
+
|
|
28992
29006
|
|
|
28993
29007
|
def _deserialize(self, params):
|
|
28994
29008
|
if params.get("Question") is not None:
|
|
@@ -29039,6 +29053,7 @@ class ResultList(AbstractModel):
|
|
|
29039
29053
|
self._KnowledgePoints = params.get("KnowledgePoints")
|
|
29040
29054
|
self._AnswerAnalysis = params.get("AnswerAnalysis")
|
|
29041
29055
|
self._Grade = params.get("Grade")
|
|
29056
|
+
self._Confidence = params.get("Confidence")
|
|
29042
29057
|
memeber_set = set(params.keys())
|
|
29043
29058
|
for name, value in vars(self).items():
|
|
29044
29059
|
property_name = name[1:]
|
|
@@ -32089,7 +32104,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
32089
32104
|
:type BoolSingleQuestion: bool
|
|
32090
32105
|
:param _EnableDeepThink: <p>默认false 表示关闭深度思考 true 表示打开深度思考,更深层次推理分析,速度更慢</p>
|
|
32091
32106
|
:type EnableDeepThink: bool
|
|
32092
|
-
:param _QuestionConfigMap: <p>题目信息输出配置(默认快速模式只输出题目外层题目边框坐标、批改答案、手写答案坐标、答案分析、正确答案)</p><p>当key为QuickGradingEnabled value为false
|
|
32107
|
+
:param _QuestionConfigMap: <p>题目信息输出配置(默认快速模式只输出题目外层题目边框坐标、批改答案、手写答案坐标、答案分析、正确答案)</p><p>当key为QuickGradingEnabled value为false表示关闭快速模式(速度会变慢),新增输出手写作答、题干、插图坐标、知识点<br>当key为StepCorrection value为true表示启用步骤级批改(速度会变慢);</p><p><em>备注:可通过ModelType切换模型体验不同模型的<strong>快速模式</strong>,速度都是8s左右,效果各有优劣</em></p>
|
|
32093
32108
|
:type QuestionConfigMap: str
|
|
32094
32109
|
:param _ReferenceAnswer: <p>【废弃字段】</p>
|
|
32095
32110
|
:type ReferenceAnswer: str
|
|
@@ -32097,13 +32112,13 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
32097
32112
|
:type ImageBase64List: list of str
|
|
32098
32113
|
:param _ImageUrlList: <p>批量ImageUrl图片入口,每个ImageUrl参考单独ImageUrl参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N 来输入含正确解析试卷,最多1张</li><li>当AssistMarkType为1时,ImageBase64List.N/ImageUrlList.N图片会执行多图同时批改逻辑(解决单题跨页场景)</li></ol>
|
|
32099
32114
|
:type ImageUrlList: list of str
|
|
32100
|
-
:param _AssistMarkType: <p
|
|
32115
|
+
:param _AssistMarkType: <p>辅助批改类型,默认0</p><p>枚举值:</p><ul><li>0: 无辅助批改,直接模型批改</li><li>1: 单题文本辅助批改,配合AnswerAssistMap使用</li><li>2: 整页辅助批改,待批改试卷使用ImageUrl/ImageBase64,答案部分使用ImageBase64List.N/ImageUrlList.N</li></ul>
|
|
32101
32116
|
:type AssistMarkType: int
|
|
32102
32117
|
:param _AnswerAssistMap: <p>单题辅助批改文本内容列表,当AssistMarkType为1时生效,用于提供题目相关的辅助文本信息。</p><ol><li>当key为ReferenceAnswer,value可以输入单题的辅助答案文本。</li><li>当key为QuestionAuxStem,value可以输入单题的辅助题干。</li></ol>
|
|
32103
32118
|
:type AnswerAssistMap: str
|
|
32104
32119
|
:param _EnableImageCrop: <p>是否开启切边、弯曲矫正、方向矫正,开启则批改之前先做图片前处理,图片url地址返回在查询接口的QuestionInfo-> ReturnImageUrl中,默认为false不开启</p>
|
|
32105
32120
|
:type EnableImageCrop: bool
|
|
32106
|
-
:param _ModelType: <p
|
|
32121
|
+
:param _ModelType: <p>批改模型选择,默认:yuanbao_correction_model</p><p>枚举值:</p><ul><li>yuanbao_correction_model: 快速批改模型平均耗时8s。针对单题跨栏、多栏(≥2栏)排版及子题数超过 30 道的复杂算式场景,耗时约为快速批改模式的 2 倍+。</li><li>youtu_correction_model: 深度批改模型平均耗时12-30s。全场景支持,<strong>精度更高,并且支持题目级置信度返回</strong>。</li></ul>
|
|
32107
32122
|
:type ModelType: str
|
|
32108
32123
|
"""
|
|
32109
32124
|
self._ImageBase64 = None
|
|
@@ -32185,7 +32200,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
32185
32200
|
|
|
32186
32201
|
@property
|
|
32187
32202
|
def QuestionConfigMap(self):
|
|
32188
|
-
r"""<p>题目信息输出配置(默认快速模式只输出题目外层题目边框坐标、批改答案、手写答案坐标、答案分析、正确答案)</p><p>当key为QuickGradingEnabled value为false
|
|
32203
|
+
r"""<p>题目信息输出配置(默认快速模式只输出题目外层题目边框坐标、批改答案、手写答案坐标、答案分析、正确答案)</p><p>当key为QuickGradingEnabled value为false表示关闭快速模式(速度会变慢),新增输出手写作答、题干、插图坐标、知识点<br>当key为StepCorrection value为true表示启用步骤级批改(速度会变慢);</p><p><em>备注:可通过ModelType切换模型体验不同模型的<strong>快速模式</strong>,速度都是8s左右,效果各有优劣</em></p>
|
|
32189
32204
|
:rtype: str
|
|
32190
32205
|
"""
|
|
32191
32206
|
return self._QuestionConfigMap
|
|
@@ -32233,7 +32248,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
32233
32248
|
|
|
32234
32249
|
@property
|
|
32235
32250
|
def AssistMarkType(self):
|
|
32236
|
-
r"""<p
|
|
32251
|
+
r"""<p>辅助批改类型,默认0</p><p>枚举值:</p><ul><li>0: 无辅助批改,直接模型批改</li><li>1: 单题文本辅助批改,配合AnswerAssistMap使用</li><li>2: 整页辅助批改,待批改试卷使用ImageUrl/ImageBase64,答案部分使用ImageBase64List.N/ImageUrlList.N</li></ul>
|
|
32237
32252
|
:rtype: int
|
|
32238
32253
|
"""
|
|
32239
32254
|
return self._AssistMarkType
|
|
@@ -32266,7 +32281,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
32266
32281
|
|
|
32267
32282
|
@property
|
|
32268
32283
|
def ModelType(self):
|
|
32269
|
-
r"""<p
|
|
32284
|
+
r"""<p>批改模型选择,默认:yuanbao_correction_model</p><p>枚举值:</p><ul><li>yuanbao_correction_model: 快速批改模型平均耗时8s。针对单题跨栏、多栏(≥2栏)排版及子题数超过 30 道的复杂算式场景,耗时约为快速批改模式的 2 倍+。</li><li>youtu_correction_model: 深度批改模型平均耗时12-30s。全场景支持,<strong>精度更高,并且支持题目级置信度返回</strong>。</li></ul>
|
|
32270
32285
|
:rtype: str
|
|
32271
32286
|
"""
|
|
32272
32287
|
return self._ModelType
|
|
@@ -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.213
|
|
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.213
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.213
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.209
|
|
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
|