tencentcloud-sdk-python-ocr 3.1.189__py2.py3-none-any.whl → 3.1.190__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.
- tencentcloud/__init__.py +1 -1
- tencentcloud/ocr/v20181119/models.py +217 -24
- tencentcloud/ocr/v20181119/ocr_client.py +2 -2
- tencentcloud/ocr/v20181119/ocr_client_async.py +2 -2
- {tencentcloud_sdk_python_ocr-3.1.189.dist-info → tencentcloud_sdk_python_ocr-3.1.190.dist-info}/METADATA +2 -2
- tencentcloud_sdk_python_ocr-3.1.190.dist-info/RECORD +11 -0
- tencentcloud_sdk_python_ocr-3.1.189.dist-info/RECORD +0 -11
- {tencentcloud_sdk_python_ocr-3.1.189.dist-info → tencentcloud_sdk_python_ocr-3.1.190.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_ocr-3.1.189.dist-info → tencentcloud_sdk_python_ocr-3.1.190.dist-info}/top_level.txt +0 -0
tencentcloud/__init__.py
CHANGED
|
@@ -1114,6 +1114,72 @@ class AirTransport(AbstractModel):
|
|
|
1114
1114
|
|
|
1115
1115
|
|
|
1116
1116
|
|
|
1117
|
+
class AnswerElement(AbstractModel):
|
|
1118
|
+
r"""试题识别结果-答案元素内容
|
|
1119
|
+
|
|
1120
|
+
"""
|
|
1121
|
+
|
|
1122
|
+
def __init__(self):
|
|
1123
|
+
r"""
|
|
1124
|
+
:param _IsCorrect: <p>答案是否正确</p>
|
|
1125
|
+
:type IsCorrect: bool
|
|
1126
|
+
:param _AnswerAnalysis: <p>答案分析结果</p>
|
|
1127
|
+
:type AnswerAnalysis: str
|
|
1128
|
+
:param _RightAnswer: <p>返回正确答案内容</p>
|
|
1129
|
+
:type RightAnswer: str
|
|
1130
|
+
"""
|
|
1131
|
+
self._IsCorrect = None
|
|
1132
|
+
self._AnswerAnalysis = None
|
|
1133
|
+
self._RightAnswer = None
|
|
1134
|
+
|
|
1135
|
+
@property
|
|
1136
|
+
def IsCorrect(self):
|
|
1137
|
+
r"""<p>答案是否正确</p>
|
|
1138
|
+
:rtype: bool
|
|
1139
|
+
"""
|
|
1140
|
+
return self._IsCorrect
|
|
1141
|
+
|
|
1142
|
+
@IsCorrect.setter
|
|
1143
|
+
def IsCorrect(self, IsCorrect):
|
|
1144
|
+
self._IsCorrect = IsCorrect
|
|
1145
|
+
|
|
1146
|
+
@property
|
|
1147
|
+
def AnswerAnalysis(self):
|
|
1148
|
+
r"""<p>答案分析结果</p>
|
|
1149
|
+
:rtype: str
|
|
1150
|
+
"""
|
|
1151
|
+
return self._AnswerAnalysis
|
|
1152
|
+
|
|
1153
|
+
@AnswerAnalysis.setter
|
|
1154
|
+
def AnswerAnalysis(self, AnswerAnalysis):
|
|
1155
|
+
self._AnswerAnalysis = AnswerAnalysis
|
|
1156
|
+
|
|
1157
|
+
@property
|
|
1158
|
+
def RightAnswer(self):
|
|
1159
|
+
r"""<p>返回正确答案内容</p>
|
|
1160
|
+
:rtype: str
|
|
1161
|
+
"""
|
|
1162
|
+
return self._RightAnswer
|
|
1163
|
+
|
|
1164
|
+
@RightAnswer.setter
|
|
1165
|
+
def RightAnswer(self, RightAnswer):
|
|
1166
|
+
self._RightAnswer = RightAnswer
|
|
1167
|
+
|
|
1168
|
+
|
|
1169
|
+
def _deserialize(self, params):
|
|
1170
|
+
self._IsCorrect = params.get("IsCorrect")
|
|
1171
|
+
self._AnswerAnalysis = params.get("AnswerAnalysis")
|
|
1172
|
+
self._RightAnswer = params.get("RightAnswer")
|
|
1173
|
+
memeber_set = set(params.keys())
|
|
1174
|
+
for name, value in vars(self).items():
|
|
1175
|
+
property_name = name[1:]
|
|
1176
|
+
if property_name in memeber_set:
|
|
1177
|
+
memeber_set.remove(property_name)
|
|
1178
|
+
if len(memeber_set) > 0:
|
|
1179
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
|
|
1117
1183
|
class AnswerInfo(AbstractModel):
|
|
1118
1184
|
r"""单题所有答案区域批改信息
|
|
1119
1185
|
|
|
@@ -5203,14 +5269,14 @@ class DescribeQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
5203
5269
|
|
|
5204
5270
|
def __init__(self):
|
|
5205
5271
|
r"""
|
|
5206
|
-
:param _JobId:
|
|
5272
|
+
:param _JobId: <p>任务唯一ID。由服务端生成。</p>
|
|
5207
5273
|
:type JobId: str
|
|
5208
5274
|
"""
|
|
5209
5275
|
self._JobId = None
|
|
5210
5276
|
|
|
5211
5277
|
@property
|
|
5212
5278
|
def JobId(self):
|
|
5213
|
-
r"""
|
|
5279
|
+
r"""<p>任务唯一ID。由服务端生成。</p>
|
|
5214
5280
|
:rtype: str
|
|
5215
5281
|
"""
|
|
5216
5282
|
return self._JobId
|
|
@@ -5239,16 +5305,18 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5239
5305
|
|
|
5240
5306
|
def __init__(self):
|
|
5241
5307
|
r"""
|
|
5242
|
-
:param _ErrorCode:
|
|
5308
|
+
:param _ErrorCode: <p>任务执行错误码。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5243
5309
|
:type ErrorCode: str
|
|
5244
|
-
:param _ErrorMessage:
|
|
5310
|
+
:param _ErrorMessage: <p>任务执行错误信息。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5245
5311
|
:type ErrorMessage: str
|
|
5246
|
-
:param _JobStatus:
|
|
5312
|
+
:param _JobStatus: <p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
|
|
5247
5313
|
:type JobStatus: str
|
|
5248
|
-
:param _Angle:
|
|
5314
|
+
:param _Angle: <p>图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。</p>
|
|
5249
5315
|
:type Angle: float
|
|
5250
|
-
:param _MarkInfos:
|
|
5316
|
+
:param _MarkInfos: <p>试题批改信息 (该字段后续废弃,使用QuestionInfo兼容多页批改场景)</p>
|
|
5251
5317
|
:type MarkInfos: list of MarkInfo
|
|
5318
|
+
:param _QuestionInfo: <p>试题批改信息。</p>
|
|
5319
|
+
:type QuestionInfo: list of QuestionInfo
|
|
5252
5320
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
5253
5321
|
:type RequestId: str
|
|
5254
5322
|
"""
|
|
@@ -5257,11 +5325,12 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5257
5325
|
self._JobStatus = None
|
|
5258
5326
|
self._Angle = None
|
|
5259
5327
|
self._MarkInfos = None
|
|
5328
|
+
self._QuestionInfo = None
|
|
5260
5329
|
self._RequestId = None
|
|
5261
5330
|
|
|
5262
5331
|
@property
|
|
5263
5332
|
def ErrorCode(self):
|
|
5264
|
-
r"""
|
|
5333
|
+
r"""<p>任务执行错误码。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5265
5334
|
:rtype: str
|
|
5266
5335
|
"""
|
|
5267
5336
|
return self._ErrorCode
|
|
@@ -5272,7 +5341,7 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5272
5341
|
|
|
5273
5342
|
@property
|
|
5274
5343
|
def ErrorMessage(self):
|
|
5275
|
-
r"""
|
|
5344
|
+
r"""<p>任务执行错误信息。当任务状态不为 FAIL 时,该值为""。</p>
|
|
5276
5345
|
:rtype: str
|
|
5277
5346
|
"""
|
|
5278
5347
|
return self._ErrorMessage
|
|
@@ -5283,7 +5352,7 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5283
5352
|
|
|
5284
5353
|
@property
|
|
5285
5354
|
def JobStatus(self):
|
|
5286
|
-
r"""
|
|
5355
|
+
r"""<p>任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功</p>
|
|
5287
5356
|
:rtype: str
|
|
5288
5357
|
"""
|
|
5289
5358
|
return self._JobStatus
|
|
@@ -5294,7 +5363,7 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5294
5363
|
|
|
5295
5364
|
@property
|
|
5296
5365
|
def Angle(self):
|
|
5297
|
-
r"""
|
|
5366
|
+
r"""<p>图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。</p>
|
|
5298
5367
|
:rtype: float
|
|
5299
5368
|
"""
|
|
5300
5369
|
return self._Angle
|
|
@@ -5305,7 +5374,7 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5305
5374
|
|
|
5306
5375
|
@property
|
|
5307
5376
|
def MarkInfos(self):
|
|
5308
|
-
r"""
|
|
5377
|
+
r"""<p>试题批改信息 (该字段后续废弃,使用QuestionInfo兼容多页批改场景)</p>
|
|
5309
5378
|
:rtype: list of MarkInfo
|
|
5310
5379
|
"""
|
|
5311
5380
|
return self._MarkInfos
|
|
@@ -5314,6 +5383,17 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5314
5383
|
def MarkInfos(self, MarkInfos):
|
|
5315
5384
|
self._MarkInfos = MarkInfos
|
|
5316
5385
|
|
|
5386
|
+
@property
|
|
5387
|
+
def QuestionInfo(self):
|
|
5388
|
+
r"""<p>试题批改信息。</p>
|
|
5389
|
+
:rtype: list of QuestionInfo
|
|
5390
|
+
"""
|
|
5391
|
+
return self._QuestionInfo
|
|
5392
|
+
|
|
5393
|
+
@QuestionInfo.setter
|
|
5394
|
+
def QuestionInfo(self, QuestionInfo):
|
|
5395
|
+
self._QuestionInfo = QuestionInfo
|
|
5396
|
+
|
|
5317
5397
|
@property
|
|
5318
5398
|
def RequestId(self):
|
|
5319
5399
|
r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -5337,6 +5417,12 @@ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
5337
5417
|
obj = MarkInfo()
|
|
5338
5418
|
obj._deserialize(item)
|
|
5339
5419
|
self._MarkInfos.append(obj)
|
|
5420
|
+
if params.get("QuestionInfo") is not None:
|
|
5421
|
+
self._QuestionInfo = []
|
|
5422
|
+
for item in params.get("QuestionInfo"):
|
|
5423
|
+
obj = QuestionInfo()
|
|
5424
|
+
obj._deserialize(item)
|
|
5425
|
+
self._QuestionInfo.append(obj)
|
|
5340
5426
|
self._RequestId = params.get("RequestId")
|
|
5341
5427
|
|
|
5342
5428
|
|
|
@@ -8185,6 +8271,8 @@ class Element(AbstractModel):
|
|
|
8185
8271
|
:type Index: int
|
|
8186
8272
|
:param _PageIndex: <p>元素所在页</p><p>单位:页</p><p>默认值:1</p>
|
|
8187
8273
|
:type PageIndex: int
|
|
8274
|
+
:param _AnswerElement: <p>批改时答案的额外数据</p>
|
|
8275
|
+
:type AnswerElement: :class:`tencentcloud.ocr.v20181119.models.AnswerElement`
|
|
8188
8276
|
"""
|
|
8189
8277
|
self._Text = None
|
|
8190
8278
|
self._Coord = None
|
|
@@ -8192,6 +8280,7 @@ class Element(AbstractModel):
|
|
|
8192
8280
|
self._ResultList = None
|
|
8193
8281
|
self._Index = None
|
|
8194
8282
|
self._PageIndex = None
|
|
8283
|
+
self._AnswerElement = None
|
|
8195
8284
|
|
|
8196
8285
|
@property
|
|
8197
8286
|
def Text(self):
|
|
@@ -8260,6 +8349,17 @@ class Element(AbstractModel):
|
|
|
8260
8349
|
def PageIndex(self, PageIndex):
|
|
8261
8350
|
self._PageIndex = PageIndex
|
|
8262
8351
|
|
|
8352
|
+
@property
|
|
8353
|
+
def AnswerElement(self):
|
|
8354
|
+
r"""<p>批改时答案的额外数据</p>
|
|
8355
|
+
:rtype: :class:`tencentcloud.ocr.v20181119.models.AnswerElement`
|
|
8356
|
+
"""
|
|
8357
|
+
return self._AnswerElement
|
|
8358
|
+
|
|
8359
|
+
@AnswerElement.setter
|
|
8360
|
+
def AnswerElement(self, AnswerElement):
|
|
8361
|
+
self._AnswerElement = AnswerElement
|
|
8362
|
+
|
|
8263
8363
|
|
|
8264
8364
|
def _deserialize(self, params):
|
|
8265
8365
|
self._Text = params.get("Text")
|
|
@@ -8275,6 +8375,9 @@ class Element(AbstractModel):
|
|
|
8275
8375
|
self._ResultList.append(obj)
|
|
8276
8376
|
self._Index = params.get("Index")
|
|
8277
8377
|
self._PageIndex = params.get("PageIndex")
|
|
8378
|
+
if params.get("AnswerElement") is not None:
|
|
8379
|
+
self._AnswerElement = AnswerElement()
|
|
8380
|
+
self._AnswerElement._deserialize(params.get("AnswerElement"))
|
|
8278
8381
|
memeber_set = set(params.keys())
|
|
8279
8382
|
for name, value in vars(self).items():
|
|
8280
8383
|
property_name = name[1:]
|
|
@@ -22048,6 +22151,8 @@ class QuestionInfo(AbstractModel):
|
|
|
22048
22151
|
:type OrgWidth: int
|
|
22049
22152
|
:param _ImageBase64: <p>预处理后的图片base64编码</p>
|
|
22050
22153
|
:type ImageBase64: str
|
|
22154
|
+
:param _ReturnImageUrl: <p>预处理后的图片URL,如果开启了图像切边矫正,后续的坐标都是基于当前图片返回的坐标</p>
|
|
22155
|
+
:type ReturnImageUrl: str
|
|
22051
22156
|
"""
|
|
22052
22157
|
self._Angle = None
|
|
22053
22158
|
self._Height = None
|
|
@@ -22056,6 +22161,7 @@ class QuestionInfo(AbstractModel):
|
|
|
22056
22161
|
self._OrgHeight = None
|
|
22057
22162
|
self._OrgWidth = None
|
|
22058
22163
|
self._ImageBase64 = None
|
|
22164
|
+
self._ReturnImageUrl = None
|
|
22059
22165
|
|
|
22060
22166
|
@property
|
|
22061
22167
|
def Angle(self):
|
|
@@ -22135,6 +22241,17 @@ class QuestionInfo(AbstractModel):
|
|
|
22135
22241
|
def ImageBase64(self, ImageBase64):
|
|
22136
22242
|
self._ImageBase64 = ImageBase64
|
|
22137
22243
|
|
|
22244
|
+
@property
|
|
22245
|
+
def ReturnImageUrl(self):
|
|
22246
|
+
r"""<p>预处理后的图片URL,如果开启了图像切边矫正,后续的坐标都是基于当前图片返回的坐标</p>
|
|
22247
|
+
:rtype: str
|
|
22248
|
+
"""
|
|
22249
|
+
return self._ReturnImageUrl
|
|
22250
|
+
|
|
22251
|
+
@ReturnImageUrl.setter
|
|
22252
|
+
def ReturnImageUrl(self, ReturnImageUrl):
|
|
22253
|
+
self._ReturnImageUrl = ReturnImageUrl
|
|
22254
|
+
|
|
22138
22255
|
|
|
22139
22256
|
def _deserialize(self, params):
|
|
22140
22257
|
self._Angle = params.get("Angle")
|
|
@@ -22149,6 +22266,7 @@ class QuestionInfo(AbstractModel):
|
|
|
22149
22266
|
self._OrgHeight = params.get("OrgHeight")
|
|
22150
22267
|
self._OrgWidth = params.get("OrgWidth")
|
|
22151
22268
|
self._ImageBase64 = params.get("ImageBase64")
|
|
22269
|
+
self._ReturnImageUrl = params.get("ReturnImageUrl")
|
|
22152
22270
|
memeber_set = set(params.keys())
|
|
22153
22271
|
for name, value in vars(self).items():
|
|
22154
22272
|
property_name = name[1:]
|
|
@@ -27334,6 +27452,12 @@ class ResultList(AbstractModel):
|
|
|
27334
27452
|
:type Coord: list of Polygon
|
|
27335
27453
|
:param _CoordPageIndex: <p>多坐标返回,显示坐标所在页</p><p>默认值:[]</p>
|
|
27336
27454
|
:type CoordPageIndex: list of int
|
|
27455
|
+
:param _RightAnswer: <p>返回正确答案内容</p>
|
|
27456
|
+
:type RightAnswer: str
|
|
27457
|
+
:param _Subject: <p>学科(如语文、数学、英语)</p>
|
|
27458
|
+
:type Subject: str
|
|
27459
|
+
:param _KnowledgePoints: <p>返回题目的知识点内容</p>
|
|
27460
|
+
:type KnowledgePoints: list of str
|
|
27337
27461
|
"""
|
|
27338
27462
|
self._Question = None
|
|
27339
27463
|
self._Option = None
|
|
@@ -27343,6 +27467,9 @@ class ResultList(AbstractModel):
|
|
|
27343
27467
|
self._Parse = None
|
|
27344
27468
|
self._Coord = None
|
|
27345
27469
|
self._CoordPageIndex = None
|
|
27470
|
+
self._RightAnswer = None
|
|
27471
|
+
self._Subject = None
|
|
27472
|
+
self._KnowledgePoints = None
|
|
27346
27473
|
|
|
27347
27474
|
@property
|
|
27348
27475
|
def Question(self):
|
|
@@ -27438,6 +27565,39 @@ class ResultList(AbstractModel):
|
|
|
27438
27565
|
def CoordPageIndex(self, CoordPageIndex):
|
|
27439
27566
|
self._CoordPageIndex = CoordPageIndex
|
|
27440
27567
|
|
|
27568
|
+
@property
|
|
27569
|
+
def RightAnswer(self):
|
|
27570
|
+
r"""<p>返回正确答案内容</p>
|
|
27571
|
+
:rtype: str
|
|
27572
|
+
"""
|
|
27573
|
+
return self._RightAnswer
|
|
27574
|
+
|
|
27575
|
+
@RightAnswer.setter
|
|
27576
|
+
def RightAnswer(self, RightAnswer):
|
|
27577
|
+
self._RightAnswer = RightAnswer
|
|
27578
|
+
|
|
27579
|
+
@property
|
|
27580
|
+
def Subject(self):
|
|
27581
|
+
r"""<p>学科(如语文、数学、英语)</p>
|
|
27582
|
+
:rtype: str
|
|
27583
|
+
"""
|
|
27584
|
+
return self._Subject
|
|
27585
|
+
|
|
27586
|
+
@Subject.setter
|
|
27587
|
+
def Subject(self, Subject):
|
|
27588
|
+
self._Subject = Subject
|
|
27589
|
+
|
|
27590
|
+
@property
|
|
27591
|
+
def KnowledgePoints(self):
|
|
27592
|
+
r"""<p>返回题目的知识点内容</p>
|
|
27593
|
+
:rtype: list of str
|
|
27594
|
+
"""
|
|
27595
|
+
return self._KnowledgePoints
|
|
27596
|
+
|
|
27597
|
+
@KnowledgePoints.setter
|
|
27598
|
+
def KnowledgePoints(self, KnowledgePoints):
|
|
27599
|
+
self._KnowledgePoints = KnowledgePoints
|
|
27600
|
+
|
|
27441
27601
|
|
|
27442
27602
|
def _deserialize(self, params):
|
|
27443
27603
|
if params.get("Question") is not None:
|
|
@@ -27483,6 +27643,9 @@ class ResultList(AbstractModel):
|
|
|
27483
27643
|
obj._deserialize(item)
|
|
27484
27644
|
self._Coord.append(obj)
|
|
27485
27645
|
self._CoordPageIndex = params.get("CoordPageIndex")
|
|
27646
|
+
self._RightAnswer = params.get("RightAnswer")
|
|
27647
|
+
self._Subject = params.get("Subject")
|
|
27648
|
+
self._KnowledgePoints = params.get("KnowledgePoints")
|
|
27486
27649
|
memeber_set = set(params.keys())
|
|
27487
27650
|
for name, value in vars(self).items():
|
|
27488
27651
|
property_name = name[1:]
|
|
@@ -30448,24 +30611,26 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30448
30611
|
:type ImageBase64: str
|
|
30449
30612
|
:param _ImageUrl: <p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg</p>
|
|
30450
30613
|
:type ImageUrl: str
|
|
30451
|
-
:param _PdfPageNumber: <p
|
|
30614
|
+
:param _PdfPageNumber: <p>不传则默认识别整个PDF,如果识别单页则输入指定页码</p>
|
|
30452
30615
|
:type PdfPageNumber: int
|
|
30453
30616
|
:param _BoolSingleQuestion: <p>表示整张试卷批改需要先切题,默认为false</p>
|
|
30454
30617
|
:type BoolSingleQuestion: bool
|
|
30455
30618
|
:param _EnableDeepThink: <p>默认false 表示关闭深度思考 true 表示打开深度思考,更深层次推理分析,速度更慢</p>
|
|
30456
30619
|
:type EnableDeepThink: bool
|
|
30457
|
-
:param _QuestionConfigMap: <p>题目信息输出配置,当key对应为true
|
|
30620
|
+
:param _QuestionConfigMap: <p>题目信息输出配置,当key对应为true表示开启配置开关。<br>当key为KnowledgePoints value为true 表示输出每道题结构信息中输出知识点内容;<br>当key为TrueAnswer value为true 表示输出每道题的正确答案 ;<br>当key为StepCorrection value为true表示启用步骤级批改;<br>当key为DisableAnswerAnalysis value为true表示不输出答案解析;<br>当key为OutputSubQuestionsAndCoords value为true表示输出子题干和插图坐标;<br>当key为UseCoordAssist value为true表示使用精调坐标辅助模型,false表示默认模型坐标(性能更优);</p>
|
|
30458
30621
|
:type QuestionConfigMap: str
|
|
30459
|
-
:param _ReferenceAnswer: <p>仅有单题有效,如果切题有多题则不生效,单题批改的时候作为参考答案输入到批改模型中</p>
|
|
30622
|
+
:param _ReferenceAnswer: <p>【废除字段】<br>仅有单题有效,如果切题有多题则不生效,单题批改的时候作为参考答案输入到批改模型中</p>
|
|
30460
30623
|
:type ReferenceAnswer: str
|
|
30461
|
-
:param _ImageBase64List: <p>批量base64图片入口,每个base64参考单独ImageBase64参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N
|
|
30624
|
+
:param _ImageBase64List: <p>批量base64图片入口,每个base64参考单独ImageBase64参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N图片会执行多图同时批改逻辑(解决单题跨页场景)</li></ol>
|
|
30462
30625
|
:type ImageBase64List: list of str
|
|
30463
|
-
:param _ImageUrlList: <p>批量ImageUrl图片入口,每个ImageUrl参考单独ImageUrl参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N 来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N
|
|
30626
|
+
:param _ImageUrlList: <p>批量ImageUrl图片入口,每个ImageUrl参考单独ImageUrl参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N 来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N图片会执行多图同时批改逻辑(解决单题跨页场景)</li></ol>
|
|
30464
30627
|
:type ImageUrlList: list of str
|
|
30465
30628
|
:param _AssistMarkType: <p>辅助批改类型</p><p>枚举值:</p><ul><li>0: 无辅助批改,直接模型批改</li><li>1: 单题文本辅助批改,配合AnswerAssistMap使用</li><li>2: 整页辅助批改,待批改试卷使用ImageUrl/ImageBase64,答案部分使用ImageBase64List.N/ImageUrlList.N</li></ul><p>默认值:0</p>
|
|
30466
30629
|
:type AssistMarkType: int
|
|
30467
30630
|
:param _AnswerAssistMap: <p>单题辅助批改文本内容列表,当AssistMarkType为1时生效,用于提供题目相关的辅助文本信息。</p><ol><li>当key为ReferenceAnswer,value可以输入单题的辅助答案文本。</li><li>当key为QuestionAuxStem,value可以输入单题的辅助题干。</li></ol>
|
|
30468
30631
|
:type AnswerAssistMap: str
|
|
30632
|
+
:param _EnableImageCrop: <p>是否开启切边、弯曲矫正、方向矫正,开启则批改之前先做图片前处理,图片url地址返回在查询接口的QuestionInfo-> ReturnImageUr中l,默认为false不开启<br>示例值:false</p>
|
|
30633
|
+
:type EnableImageCrop: bool
|
|
30469
30634
|
"""
|
|
30470
30635
|
self._ImageBase64 = None
|
|
30471
30636
|
self._ImageUrl = None
|
|
@@ -30478,6 +30643,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30478
30643
|
self._ImageUrlList = None
|
|
30479
30644
|
self._AssistMarkType = None
|
|
30480
30645
|
self._AnswerAssistMap = None
|
|
30646
|
+
self._EnableImageCrop = None
|
|
30481
30647
|
|
|
30482
30648
|
@property
|
|
30483
30649
|
def ImageBase64(self):
|
|
@@ -30503,7 +30669,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30503
30669
|
|
|
30504
30670
|
@property
|
|
30505
30671
|
def PdfPageNumber(self):
|
|
30506
|
-
r"""<p
|
|
30672
|
+
r"""<p>不传则默认识别整个PDF,如果识别单页则输入指定页码</p>
|
|
30507
30673
|
:rtype: int
|
|
30508
30674
|
"""
|
|
30509
30675
|
return self._PdfPageNumber
|
|
@@ -30544,7 +30710,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30544
30710
|
|
|
30545
30711
|
@property
|
|
30546
30712
|
def QuestionConfigMap(self):
|
|
30547
|
-
r"""<p>题目信息输出配置,当key对应为true
|
|
30713
|
+
r"""<p>题目信息输出配置,当key对应为true表示开启配置开关。<br>当key为KnowledgePoints value为true 表示输出每道题结构信息中输出知识点内容;<br>当key为TrueAnswer value为true 表示输出每道题的正确答案 ;<br>当key为StepCorrection value为true表示启用步骤级批改;<br>当key为DisableAnswerAnalysis value为true表示不输出答案解析;<br>当key为OutputSubQuestionsAndCoords value为true表示输出子题干和插图坐标;<br>当key为UseCoordAssist value为true表示使用精调坐标辅助模型,false表示默认模型坐标(性能更优);</p>
|
|
30548
30714
|
:rtype: str
|
|
30549
30715
|
"""
|
|
30550
30716
|
return self._QuestionConfigMap
|
|
@@ -30555,7 +30721,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30555
30721
|
|
|
30556
30722
|
@property
|
|
30557
30723
|
def ReferenceAnswer(self):
|
|
30558
|
-
r"""<p>仅有单题有效,如果切题有多题则不生效,单题批改的时候作为参考答案输入到批改模型中</p>
|
|
30724
|
+
r"""<p>【废除字段】<br>仅有单题有效,如果切题有多题则不生效,单题批改的时候作为参考答案输入到批改模型中</p>
|
|
30559
30725
|
:rtype: str
|
|
30560
30726
|
"""
|
|
30561
30727
|
return self._ReferenceAnswer
|
|
@@ -30566,7 +30732,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30566
30732
|
|
|
30567
30733
|
@property
|
|
30568
30734
|
def ImageBase64List(self):
|
|
30569
|
-
r"""<p>批量base64图片入口,每个base64参考单独ImageBase64参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N
|
|
30735
|
+
r"""<p>批量base64图片入口,每个base64参考单独ImageBase64参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N图片会执行多图同时批改逻辑(解决单题跨页场景)</li></ol>
|
|
30570
30736
|
:rtype: list of str
|
|
30571
30737
|
"""
|
|
30572
30738
|
return self._ImageBase64List
|
|
@@ -30577,7 +30743,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30577
30743
|
|
|
30578
30744
|
@property
|
|
30579
30745
|
def ImageUrlList(self):
|
|
30580
|
-
r"""<p>批量ImageUrl图片入口,每个ImageUrl参考单独ImageUrl参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N 来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N
|
|
30746
|
+
r"""<p>批量ImageUrl图片入口,每个ImageUrl参考单独ImageUrl参数规则。</p><ol><li>当AssistMarkType为2时,用于提供题目相关的辅助批改图片信息.ImageBase64List.N/ImageUrlList.N 来输入答题试卷和含正确解析试卷,最多两张</li><li>当AssistMarkType不为2时,ImageBase64List.N/ImageUrlList.N图片会执行多图同时批改逻辑(解决单题跨页场景)</li></ol>
|
|
30581
30747
|
:rtype: list of str
|
|
30582
30748
|
"""
|
|
30583
30749
|
return self._ImageUrlList
|
|
@@ -30608,6 +30774,17 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30608
30774
|
def AnswerAssistMap(self, AnswerAssistMap):
|
|
30609
30775
|
self._AnswerAssistMap = AnswerAssistMap
|
|
30610
30776
|
|
|
30777
|
+
@property
|
|
30778
|
+
def EnableImageCrop(self):
|
|
30779
|
+
r"""<p>是否开启切边、弯曲矫正、方向矫正,开启则批改之前先做图片前处理,图片url地址返回在查询接口的QuestionInfo-> ReturnImageUr中l,默认为false不开启<br>示例值:false</p>
|
|
30780
|
+
:rtype: bool
|
|
30781
|
+
"""
|
|
30782
|
+
return self._EnableImageCrop
|
|
30783
|
+
|
|
30784
|
+
@EnableImageCrop.setter
|
|
30785
|
+
def EnableImageCrop(self, EnableImageCrop):
|
|
30786
|
+
self._EnableImageCrop = EnableImageCrop
|
|
30787
|
+
|
|
30611
30788
|
|
|
30612
30789
|
def _deserialize(self, params):
|
|
30613
30790
|
self._ImageBase64 = params.get("ImageBase64")
|
|
@@ -30621,6 +30798,7 @@ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
|
|
|
30621
30798
|
self._ImageUrlList = params.get("ImageUrlList")
|
|
30622
30799
|
self._AssistMarkType = params.get("AssistMarkType")
|
|
30623
30800
|
self._AnswerAssistMap = params.get("AnswerAssistMap")
|
|
30801
|
+
self._EnableImageCrop = params.get("EnableImageCrop")
|
|
30624
30802
|
memeber_set = set(params.keys())
|
|
30625
30803
|
for name, value in vars(self).items():
|
|
30626
30804
|
property_name = name[1:]
|
|
@@ -30644,7 +30822,7 @@ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
30644
30822
|
:type QuestionInfo: list of QuestionInfo
|
|
30645
30823
|
:param _QuestionCount: <p>题目切题数量,作为计费题目数总量</p>
|
|
30646
30824
|
:type QuestionCount: str
|
|
30647
|
-
:param _OriginalImageUrl: <p
|
|
30825
|
+
:param _OriginalImageUrl: <p>废弃字段</p>
|
|
30648
30826
|
:type OriginalImageUrl: str
|
|
30649
30827
|
:param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
30650
30828
|
:type RequestId: str
|
|
@@ -30690,7 +30868,7 @@ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
|
|
|
30690
30868
|
|
|
30691
30869
|
@property
|
|
30692
30870
|
def OriginalImageUrl(self):
|
|
30693
|
-
r"""<p
|
|
30871
|
+
r"""<p>废弃字段</p>
|
|
30694
30872
|
:rtype: str
|
|
30695
30873
|
"""
|
|
30696
30874
|
return self._OriginalImageUrl
|
|
@@ -30737,10 +30915,13 @@ class SubmitQuestionSplitJobRequest(AbstractModel):
|
|
|
30737
30915
|
:type ImageBase64List: list of str
|
|
30738
30916
|
:param _ModelType: <p>选择切题模型</p><p>枚举值:</p><ul><li>youtu_crop: 轻量化切题模型,运算速度更快,适合常规切题</li><li>youtu_crop_pro: 属于切题精调大模型,针对双栏、跨栏等复杂版式识别精度大幅提升,但推理耗时更长</li></ul><p>默认值:youtu_crop</p>
|
|
30739
30917
|
:type ModelType: str
|
|
30918
|
+
:param _EnableImageCrop: <p>是否开启切边、弯曲矫正、方向矫正,开启则批改之前先做图片前处理,图片url地址返回在查询接口的QuestionInfo-> ReturnImageUr中l,默认为false不开启</p>
|
|
30919
|
+
:type EnableImageCrop: bool
|
|
30740
30920
|
"""
|
|
30741
30921
|
self._ImageUrlList = None
|
|
30742
30922
|
self._ImageBase64List = None
|
|
30743
30923
|
self._ModelType = None
|
|
30924
|
+
self._EnableImageCrop = None
|
|
30744
30925
|
|
|
30745
30926
|
@property
|
|
30746
30927
|
def ImageUrlList(self):
|
|
@@ -30775,11 +30956,23 @@ class SubmitQuestionSplitJobRequest(AbstractModel):
|
|
|
30775
30956
|
def ModelType(self, ModelType):
|
|
30776
30957
|
self._ModelType = ModelType
|
|
30777
30958
|
|
|
30959
|
+
@property
|
|
30960
|
+
def EnableImageCrop(self):
|
|
30961
|
+
r"""<p>是否开启切边、弯曲矫正、方向矫正,开启则批改之前先做图片前处理,图片url地址返回在查询接口的QuestionInfo-> ReturnImageUr中l,默认为false不开启</p>
|
|
30962
|
+
:rtype: bool
|
|
30963
|
+
"""
|
|
30964
|
+
return self._EnableImageCrop
|
|
30965
|
+
|
|
30966
|
+
@EnableImageCrop.setter
|
|
30967
|
+
def EnableImageCrop(self, EnableImageCrop):
|
|
30968
|
+
self._EnableImageCrop = EnableImageCrop
|
|
30969
|
+
|
|
30778
30970
|
|
|
30779
30971
|
def _deserialize(self, params):
|
|
30780
30972
|
self._ImageUrlList = params.get("ImageUrlList")
|
|
30781
30973
|
self._ImageBase64List = params.get("ImageBase64List")
|
|
30782
30974
|
self._ModelType = params.get("ModelType")
|
|
30975
|
+
self._EnableImageCrop = params.get("EnableImageCrop")
|
|
30783
30976
|
memeber_set = set(params.keys())
|
|
30784
30977
|
for name, value in vars(self).items():
|
|
30785
30978
|
property_name = name[1:]
|
|
@@ -1356,9 +1356,9 @@ class OcrClient(AbstractClient):
|
|
|
1356
1356
|
|
|
1357
1357
|
|
|
1358
1358
|
def QuestionSplitOCR(self, request):
|
|
1359
|
-
r"""
|
|
1359
|
+
r"""试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,新接入客户请注意UseNewModel选择。如果涉及多页试卷录入和单题跨页/跨栏问题可以选择使用[异步试卷切题(提交任务)](https://cloud.tencent.com/document/product/866/137427)
|
|
1360
1360
|
|
|
1361
|
-
默认接口请求频率限制:
|
|
1361
|
+
默认接口请求频率限制:5次/秒。
|
|
1362
1362
|
|
|
1363
1363
|
:param request: Request instance for QuestionSplitOCR.
|
|
1364
1364
|
:type request: :class:`tencentcloud.ocr.v20181119.models.QuestionSplitOCRRequest`
|
|
@@ -1130,9 +1130,9 @@ class OcrClient(AbstractClient):
|
|
|
1130
1130
|
opts: Dict = None,
|
|
1131
1131
|
) -> models.QuestionSplitOCRResponse:
|
|
1132
1132
|
"""
|
|
1133
|
-
|
|
1133
|
+
试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置,新接入客户请注意UseNewModel选择。如果涉及多页试卷录入和单题跨页/跨栏问题可以选择使用[异步试卷切题(提交任务)](https://cloud.tencent.com/document/product/866/137427)
|
|
1134
1134
|
|
|
1135
|
-
默认接口请求频率限制:
|
|
1135
|
+
默认接口请求频率限制:5次/秒。
|
|
1136
1136
|
"""
|
|
1137
1137
|
|
|
1138
1138
|
kwargs = {}
|
|
@@ -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.190
|
|
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.190
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
tencentcloud/__init__.py,sha256=40fbHwvV980bj7xXbkUYfvohINrzJqYVd01H8ly9ChE,630
|
|
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=S5g9j2BB_ybf3WEduIGN-G5AXoJVZaB9mGGpCcFCWgY,7279
|
|
5
|
+
tencentcloud/ocr/v20181119/models.py,sha256=J5_K126DpGfqccHtdA8eHsx9W3WfhhUZ8ydBX_dPKVg,1456463
|
|
6
|
+
tencentcloud/ocr/v20181119/ocr_client.py,sha256=wiwN5SVUqQtPCsMt_Kxhsjg5boddPP9qxNdVQga4gVE,119260
|
|
7
|
+
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=2f8WBINh5TdHGZNDmyqyZE9EKS5DCM1VOGSKZusmA-k,94320
|
|
8
|
+
tencentcloud_sdk_python_ocr-3.1.190.dist-info/METADATA,sha256=NqqSRB38MhDOiAmWSiW3mJmO8UZUFofp7O2YqONEQjE,1497
|
|
9
|
+
tencentcloud_sdk_python_ocr-3.1.190.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
+
tencentcloud_sdk_python_ocr-3.1.190.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
+
tencentcloud_sdk_python_ocr-3.1.190.dist-info/RECORD,,
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
tencentcloud/__init__.py,sha256=Q6-u3nhGvygaGMM7RD4XR2df3X4wWIC865Sl9FM8g_Y,630
|
|
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=S5g9j2BB_ybf3WEduIGN-G5AXoJVZaB9mGGpCcFCWgY,7279
|
|
5
|
-
tencentcloud/ocr/v20181119/models.py,sha256=_cIuSf52vZ-C17YtylzmbNEEWAoDCZvJp8vgMD3_UUA,1449427
|
|
6
|
-
tencentcloud/ocr/v20181119/ocr_client.py,sha256=meTyiN1pvPEVtSraLQ-jg2VtQnsY_lroC6reieKOzpk,119088
|
|
7
|
-
tencentcloud/ocr/v20181119/ocr_client_async.py,sha256=NGN_ofNlwYnRL49W8E0cVAENfc_nFIh2wx9qWxJF3i8,94148
|
|
8
|
-
tencentcloud_sdk_python_ocr-3.1.189.dist-info/METADATA,sha256=LXksTZDUjconJiu88eQncyuQUw6JqJU_cR15gPVR01A,1497
|
|
9
|
-
tencentcloud_sdk_python_ocr-3.1.189.dist-info/WHEEL,sha256=a5ogxI61vGGBHYbAAwISCXsfU7mxKr76gTpCEmSNOI8,109
|
|
10
|
-
tencentcloud_sdk_python_ocr-3.1.189.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
|
|
11
|
-
tencentcloud_sdk_python_ocr-3.1.189.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|