tencentcloud-sdk-python-ocr 3.1.36__tar.gz → 3.1.45__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.

Potentially problematic release.


This version of tencentcloud-sdk-python-ocr might be problematic. Click here for more details.

Files changed (17) hide show
  1. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/setup.py +1 -1
  3. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/ocr/v20181119/models.py +713 -14
  5. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/ocr/v20181119/ocr_client.py +57 -4
  6. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/ocr/v20181119/ocr_client_async.py +47 -4
  7. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud_sdk_python_ocr.egg-info/PKG-INFO +2 -2
  8. tencentcloud_sdk_python_ocr-3.1.45/tencentcloud_sdk_python_ocr.egg-info/requires.txt +1 -0
  9. tencentcloud_sdk_python_ocr-3.1.36/tencentcloud_sdk_python_ocr.egg-info/requires.txt +0 -1
  10. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/README.rst +0 -0
  11. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/setup.cfg +0 -0
  12. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/ocr/__init__.py +0 -0
  13. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/ocr/v20181119/__init__.py +0 -0
  14. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud/ocr/v20181119/errorcodes.py +0 -0
  15. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud_sdk_python_ocr.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/tencentcloud_sdk_python_ocr.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_ocr-3.1.36 → tencentcloud_sdk_python_ocr-3.1.45}/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.36
3
+ Version: 3.1.45
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.36
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.45
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.36,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.45,<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.36'
17
+ __version__ = '3.1.45'
@@ -1114,6 +1114,145 @@ class AirTransport(AbstractModel):
1114
1114
 
1115
1115
 
1116
1116
 
1117
+ class AnswerInfo(AbstractModel):
1118
+ r"""单题所有答案区域批改信息
1119
+
1120
+ """
1121
+
1122
+ def __init__(self):
1123
+ r"""
1124
+ :param _HandwriteInfo: 手写答案内容,比如选择题的手写的选项、填空题的手写内容
1125
+ :type HandwriteInfo: str
1126
+ :param _IsCorrect: 答案是否正确
1127
+ :type IsCorrect: bool
1128
+ :param _AnswerAnalysis: 答案分析结果
1129
+
1130
+ :type AnswerAnalysis: str
1131
+ :param _HandwriteInfoPositions: 答案区域的4个角点坐标, 是个长度为8的数组
1132
+
1133
+ [0,1,2,3,4,5,6,7]
1134
+
1135
+ (0,1) 左上角坐标
1136
+ (2,3) 右上角坐标
1137
+ (4,5) 右下角坐标
1138
+ (6,7) 左下角坐标
1139
+ 注意:此字段可能返回 null,表示取不到有效值。
1140
+ :type HandwriteInfoPositions: list of int
1141
+ :param _RightAnswer: 返回正确答案内容
1142
+
1143
+ QuestionConfigMap配置了(“TrueAnswer”:1)才生效返回
1144
+ :type RightAnswer: str
1145
+ :param _KnowledgePoints: 返回题目的知识点内容
1146
+
1147
+ QuestionConfigMap配置了(“KnowledgePoints”:1)才生效返回
1148
+ 注意:此字段可能返回 null,表示取不到有效值。
1149
+ :type KnowledgePoints: list of str
1150
+ """
1151
+ self._HandwriteInfo = None
1152
+ self._IsCorrect = None
1153
+ self._AnswerAnalysis = None
1154
+ self._HandwriteInfoPositions = None
1155
+ self._RightAnswer = None
1156
+ self._KnowledgePoints = None
1157
+
1158
+ @property
1159
+ def HandwriteInfo(self):
1160
+ r"""手写答案内容,比如选择题的手写的选项、填空题的手写内容
1161
+ :rtype: str
1162
+ """
1163
+ return self._HandwriteInfo
1164
+
1165
+ @HandwriteInfo.setter
1166
+ def HandwriteInfo(self, HandwriteInfo):
1167
+ self._HandwriteInfo = HandwriteInfo
1168
+
1169
+ @property
1170
+ def IsCorrect(self):
1171
+ r"""答案是否正确
1172
+ :rtype: bool
1173
+ """
1174
+ return self._IsCorrect
1175
+
1176
+ @IsCorrect.setter
1177
+ def IsCorrect(self, IsCorrect):
1178
+ self._IsCorrect = IsCorrect
1179
+
1180
+ @property
1181
+ def AnswerAnalysis(self):
1182
+ r"""答案分析结果
1183
+
1184
+ :rtype: str
1185
+ """
1186
+ return self._AnswerAnalysis
1187
+
1188
+ @AnswerAnalysis.setter
1189
+ def AnswerAnalysis(self, AnswerAnalysis):
1190
+ self._AnswerAnalysis = AnswerAnalysis
1191
+
1192
+ @property
1193
+ def HandwriteInfoPositions(self):
1194
+ r"""答案区域的4个角点坐标, 是个长度为8的数组
1195
+
1196
+ [0,1,2,3,4,5,6,7]
1197
+
1198
+ (0,1) 左上角坐标
1199
+ (2,3) 右上角坐标
1200
+ (4,5) 右下角坐标
1201
+ (6,7) 左下角坐标
1202
+ 注意:此字段可能返回 null,表示取不到有效值。
1203
+ :rtype: list of int
1204
+ """
1205
+ return self._HandwriteInfoPositions
1206
+
1207
+ @HandwriteInfoPositions.setter
1208
+ def HandwriteInfoPositions(self, HandwriteInfoPositions):
1209
+ self._HandwriteInfoPositions = HandwriteInfoPositions
1210
+
1211
+ @property
1212
+ def RightAnswer(self):
1213
+ r"""返回正确答案内容
1214
+
1215
+ QuestionConfigMap配置了(“TrueAnswer”:1)才生效返回
1216
+ :rtype: str
1217
+ """
1218
+ return self._RightAnswer
1219
+
1220
+ @RightAnswer.setter
1221
+ def RightAnswer(self, RightAnswer):
1222
+ self._RightAnswer = RightAnswer
1223
+
1224
+ @property
1225
+ def KnowledgePoints(self):
1226
+ r"""返回题目的知识点内容
1227
+
1228
+ QuestionConfigMap配置了(“KnowledgePoints”:1)才生效返回
1229
+ 注意:此字段可能返回 null,表示取不到有效值。
1230
+ :rtype: list of str
1231
+ """
1232
+ return self._KnowledgePoints
1233
+
1234
+ @KnowledgePoints.setter
1235
+ def KnowledgePoints(self, KnowledgePoints):
1236
+ self._KnowledgePoints = KnowledgePoints
1237
+
1238
+
1239
+ def _deserialize(self, params):
1240
+ self._HandwriteInfo = params.get("HandwriteInfo")
1241
+ self._IsCorrect = params.get("IsCorrect")
1242
+ self._AnswerAnalysis = params.get("AnswerAnalysis")
1243
+ self._HandwriteInfoPositions = params.get("HandwriteInfoPositions")
1244
+ self._RightAnswer = params.get("RightAnswer")
1245
+ self._KnowledgePoints = params.get("KnowledgePoints")
1246
+ memeber_set = set(params.keys())
1247
+ for name, value in vars(self).items():
1248
+ property_name = name[1:]
1249
+ if property_name in memeber_set:
1250
+ memeber_set.remove(property_name)
1251
+ if len(memeber_set) > 0:
1252
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1253
+
1254
+
1255
+
1117
1256
  class ArithmeticOCRRequest(AbstractModel):
1118
1257
  r"""ArithmeticOCR请求参数结构体
1119
1258
 
@@ -3025,7 +3164,7 @@ class BusinessCardInfo(AbstractModel):
3025
3164
  def __init__(self):
3026
3165
  r"""
3027
3166
  :param _Name: 识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:
3028
- 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
3167
+ 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交账号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
3029
3168
  :type Name: str
3030
3169
  :param _Value: 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
3031
3170
  :type Value: str
@@ -3039,7 +3178,7 @@ class BusinessCardInfo(AbstractModel):
3039
3178
  @property
3040
3179
  def Name(self):
3041
3180
  r"""识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:
3042
- 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
3181
+ 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交账号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
3043
3182
  :rtype: str
3044
3183
  """
3045
3184
  return self._Name
@@ -4637,6 +4776,150 @@ class DescribeExtractDocAgentJobResponse(AbstractModel):
4637
4776
  self._RequestId = params.get("RequestId")
4638
4777
 
4639
4778
 
4779
+ class DescribeQuestionMarkAgentJobRequest(AbstractModel):
4780
+ r"""DescribeQuestionMarkAgentJob请求参数结构体
4781
+
4782
+ """
4783
+
4784
+ def __init__(self):
4785
+ r"""
4786
+ :param _JobId: 任务唯一ID。由服务端生成。
4787
+ :type JobId: str
4788
+ """
4789
+ self._JobId = None
4790
+
4791
+ @property
4792
+ def JobId(self):
4793
+ r"""任务唯一ID。由服务端生成。
4794
+ :rtype: str
4795
+ """
4796
+ return self._JobId
4797
+
4798
+ @JobId.setter
4799
+ def JobId(self, JobId):
4800
+ self._JobId = JobId
4801
+
4802
+
4803
+ def _deserialize(self, params):
4804
+ self._JobId = params.get("JobId")
4805
+ memeber_set = set(params.keys())
4806
+ for name, value in vars(self).items():
4807
+ property_name = name[1:]
4808
+ if property_name in memeber_set:
4809
+ memeber_set.remove(property_name)
4810
+ if len(memeber_set) > 0:
4811
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
4812
+
4813
+
4814
+
4815
+ class DescribeQuestionMarkAgentJobResponse(AbstractModel):
4816
+ r"""DescribeQuestionMarkAgentJob返回参数结构体
4817
+
4818
+ """
4819
+
4820
+ def __init__(self):
4821
+ r"""
4822
+ :param _ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4823
+ :type ErrorCode: str
4824
+ :param _ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4825
+ :type ErrorMessage: str
4826
+ :param _JobStatus: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4827
+ :type JobStatus: str
4828
+ :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4829
+ :type Angle: float
4830
+ :param _MarkInfos: 试题批改信息
4831
+ :type MarkInfos: list of MarkInfo
4832
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4833
+ :type RequestId: str
4834
+ """
4835
+ self._ErrorCode = None
4836
+ self._ErrorMessage = None
4837
+ self._JobStatus = None
4838
+ self._Angle = None
4839
+ self._MarkInfos = None
4840
+ self._RequestId = None
4841
+
4842
+ @property
4843
+ def ErrorCode(self):
4844
+ r"""任务执行错误码。当任务状态不为 FAIL 时,该值为""。
4845
+ :rtype: str
4846
+ """
4847
+ return self._ErrorCode
4848
+
4849
+ @ErrorCode.setter
4850
+ def ErrorCode(self, ErrorCode):
4851
+ self._ErrorCode = ErrorCode
4852
+
4853
+ @property
4854
+ def ErrorMessage(self):
4855
+ r"""任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
4856
+ :rtype: str
4857
+ """
4858
+ return self._ErrorMessage
4859
+
4860
+ @ErrorMessage.setter
4861
+ def ErrorMessage(self, ErrorMessage):
4862
+ self._ErrorMessage = ErrorMessage
4863
+
4864
+ @property
4865
+ def JobStatus(self):
4866
+ r"""任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
4867
+ :rtype: str
4868
+ """
4869
+ return self._JobStatus
4870
+
4871
+ @JobStatus.setter
4872
+ def JobStatus(self, JobStatus):
4873
+ self._JobStatus = JobStatus
4874
+
4875
+ @property
4876
+ def Angle(self):
4877
+ r"""图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
4878
+ :rtype: float
4879
+ """
4880
+ return self._Angle
4881
+
4882
+ @Angle.setter
4883
+ def Angle(self, Angle):
4884
+ self._Angle = Angle
4885
+
4886
+ @property
4887
+ def MarkInfos(self):
4888
+ r"""试题批改信息
4889
+ :rtype: list of MarkInfo
4890
+ """
4891
+ return self._MarkInfos
4892
+
4893
+ @MarkInfos.setter
4894
+ def MarkInfos(self, MarkInfos):
4895
+ self._MarkInfos = MarkInfos
4896
+
4897
+ @property
4898
+ def RequestId(self):
4899
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4900
+ :rtype: str
4901
+ """
4902
+ return self._RequestId
4903
+
4904
+ @RequestId.setter
4905
+ def RequestId(self, RequestId):
4906
+ self._RequestId = RequestId
4907
+
4908
+
4909
+ def _deserialize(self, params):
4910
+ self._ErrorCode = params.get("ErrorCode")
4911
+ self._ErrorMessage = params.get("ErrorMessage")
4912
+ self._JobStatus = params.get("JobStatus")
4913
+ self._Angle = params.get("Angle")
4914
+ if params.get("MarkInfos") is not None:
4915
+ self._MarkInfos = []
4916
+ for item in params.get("MarkInfos"):
4917
+ obj = MarkInfo()
4918
+ obj._deserialize(item)
4919
+ self._MarkInfos.append(obj)
4920
+ self._RequestId = params.get("RequestId")
4921
+
4922
+
4640
4923
  class DetailInformationOfAirTicketTupleList(AbstractModel):
4641
4924
  r"""机票详细信息元组
4642
4925
 
@@ -14190,7 +14473,20 @@ class IDCardOCRRequest(AbstractModel):
14190
14473
  BACK:身份证有国徽的一面(国徽面),
14191
14474
  该参数如果不填,将为您自动判断身份证正反面。
14192
14475
  :type CardSide: str
14193
- :param _Config: 以下可选字段均为bool 类型,默认false:CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)CropPortrait,人像照片裁剪(自动抠取身份证头像区域)CopyWarn,复印件告警BorderCheckWarn,边框和框内遮挡告警ReshootWarn,翻拍告警DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)TempIdWarn,临时身份证告警InvalidDateWarn,身份证有效日期不合法告警Quality,图片质量分数(评价图片的模糊程度)MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)ReflectWarn,是否开启反光检测SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
14476
+ :param _Config: 以下可选字段均为bool 类型,默认false:
14477
+ CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
14478
+ CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
14479
+ CopyWarn,复印件告警
14480
+ BorderCheckWarn,边框不完整和框内遮挡告警
14481
+ ReshootWarn,屏幕翻拍告警
14482
+ DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
14483
+ TempIdWarn,临时身份证告警
14484
+ InvalidDateWarn,身份证有效日期不合法告警
14485
+ Quality,图片质量分数(评价图片的模糊程度)
14486
+ MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
14487
+ ReflectWarn,是否开启反光检测
14488
+ SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
14489
+ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
14194
14490
  :type Config: str
14195
14491
  :param _EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
14196
14492
  :type EnableRecognitionRectify: bool
@@ -14249,7 +14545,20 @@ BACK:身份证有国徽的一面(国徽面),
14249
14545
 
14250
14546
  @property
14251
14547
  def Config(self):
14252
- r"""以下可选字段均为bool 类型,默认false:CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)CropPortrait,人像照片裁剪(自动抠取身份证头像区域)CopyWarn,复印件告警BorderCheckWarn,边框和框内遮挡告警ReshootWarn,翻拍告警DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)TempIdWarn,临时身份证告警InvalidDateWarn,身份证有效日期不合法告警Quality,图片质量分数(评价图片的模糊程度)MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)ReflectWarn,是否开启反光检测SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
14548
+ r"""以下可选字段均为bool 类型,默认false:
14549
+ CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
14550
+ CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
14551
+ CopyWarn,复印件告警
14552
+ BorderCheckWarn,边框不完整和框内遮挡告警
14553
+ ReshootWarn,屏幕翻拍告警
14554
+ DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
14555
+ TempIdWarn,临时身份证告警
14556
+ InvalidDateWarn,身份证有效日期不合法告警
14557
+ Quality,图片质量分数(评价图片的模糊程度)
14558
+ MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
14559
+ ReflectWarn,是否开启反光检测
14560
+ SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
14561
+ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
14253
14562
  :rtype: str
14254
14563
  """
14255
14564
  return self._Config
@@ -14351,7 +14660,22 @@ class IDCardOCRResponse(AbstractModel):
14351
14660
  :type Authority: str
14352
14661
  :param _ValidDate: 证件有效期(国徽面)
14353
14662
  :type ValidDate: str
14354
- :param _AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。 IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回; Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回; Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50); BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50); WarnInfos,告警信息,Code 告警码列表和释义: -9101 身份证边框不完整告警, -9102 身份证复印件告警(黑白及彩色复印件), -9108 身份证复印件告警(仅黑白复印件), -9103 身份证翻拍告警, -9105 身份证框内遮挡告警, -9104 临时身份证告警, -9106 身份证疑似存在PS痕迹告警, -9107 身份证反光告警。
14663
+ :param _AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
14664
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
14665
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
14666
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
14667
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
14668
+ WarnInfos,告警信息,Code 告警码列表和释义:
14669
+ -9100 身份证有效日期不合法告警,
14670
+ -9101 身份证边框不完整告警,
14671
+ -9102 身份证复印件告警(黑白及彩色复印件),
14672
+ -9108 身份证复印件告警(仅黑白复印件),
14673
+ -9103 身份证翻拍告警,
14674
+ -9105 身份证框内遮挡告警,
14675
+ -9104 临时身份证告警,
14676
+ -9106 身份证疑似存在PS痕迹告警,
14677
+ -9107 身份证反光告警,
14678
+ -9110 电子身份证告警
14355
14679
  :type AdvancedInfo: str
14356
14680
  :param _ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
14357
14681
  :type ReflectDetailInfos: list of ReflectDetailInfo
@@ -14460,7 +14784,22 @@ class IDCardOCRResponse(AbstractModel):
14460
14784
 
14461
14785
  @property
14462
14786
  def AdvancedInfo(self):
14463
- r"""扩展信息,不请求则不返回,具体输入参考示例3和示例4。 IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回; Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回; Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50); BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50); WarnInfos,告警信息,Code 告警码列表和释义: -9101 身份证边框不完整告警, -9102 身份证复印件告警(黑白及彩色复印件), -9108 身份证复印件告警(仅黑白复印件), -9103 身份证翻拍告警, -9105 身份证框内遮挡告警, -9104 临时身份证告警, -9106 身份证疑似存在PS痕迹告警, -9107 身份证反光告警。
14787
+ r"""扩展信息,不请求则不返回,具体输入参考示例3和示例4。
14788
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
14789
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
14790
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
14791
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
14792
+ WarnInfos,告警信息,Code 告警码列表和释义:
14793
+ -9100 身份证有效日期不合法告警,
14794
+ -9101 身份证边框不完整告警,
14795
+ -9102 身份证复印件告警(黑白及彩色复印件),
14796
+ -9108 身份证复印件告警(仅黑白复印件),
14797
+ -9103 身份证翻拍告警,
14798
+ -9105 身份证框内遮挡告警,
14799
+ -9104 临时身份证告警,
14800
+ -9106 身份证疑似存在PS痕迹告警,
14801
+ -9107 身份证反光告警,
14802
+ -9110 电子身份证告警
14464
14803
  :rtype: str
14465
14804
  """
14466
14805
  return self._AdvancedInfo
@@ -18056,6 +18395,86 @@ class MainlandTravelPermitBackInfos(AbstractModel):
18056
18395
 
18057
18396
 
18058
18397
 
18398
+ class MarkInfo(AbstractModel):
18399
+ r"""整张试卷所有题目批改信息
18400
+
18401
+ """
18402
+
18403
+ def __init__(self):
18404
+ r"""
18405
+ :param _MarkItemTitle: 题目的题干信息
18406
+
18407
+
18408
+ :type MarkItemTitle: str
18409
+ :param _AnswerInfos: 批改答案列表(每个小题存在多个答案,比如多个填空区域答案,循序按照从左到右,从上到下排列)
18410
+ :type AnswerInfos: list of AnswerInfo
18411
+ :param _MarkInfos: 嵌套题目结构(如果有多层嵌套则会返回子题信息,如果没有嵌套题目则返回空)
18412
+ :type MarkInfos: list of MarkInfo
18413
+ """
18414
+ self._MarkItemTitle = None
18415
+ self._AnswerInfos = None
18416
+ self._MarkInfos = None
18417
+
18418
+ @property
18419
+ def MarkItemTitle(self):
18420
+ r"""题目的题干信息
18421
+
18422
+
18423
+ :rtype: str
18424
+ """
18425
+ return self._MarkItemTitle
18426
+
18427
+ @MarkItemTitle.setter
18428
+ def MarkItemTitle(self, MarkItemTitle):
18429
+ self._MarkItemTitle = MarkItemTitle
18430
+
18431
+ @property
18432
+ def AnswerInfos(self):
18433
+ r"""批改答案列表(每个小题存在多个答案,比如多个填空区域答案,循序按照从左到右,从上到下排列)
18434
+ :rtype: list of AnswerInfo
18435
+ """
18436
+ return self._AnswerInfos
18437
+
18438
+ @AnswerInfos.setter
18439
+ def AnswerInfos(self, AnswerInfos):
18440
+ self._AnswerInfos = AnswerInfos
18441
+
18442
+ @property
18443
+ def MarkInfos(self):
18444
+ r"""嵌套题目结构(如果有多层嵌套则会返回子题信息,如果没有嵌套题目则返回空)
18445
+ :rtype: list of MarkInfo
18446
+ """
18447
+ return self._MarkInfos
18448
+
18449
+ @MarkInfos.setter
18450
+ def MarkInfos(self, MarkInfos):
18451
+ self._MarkInfos = MarkInfos
18452
+
18453
+
18454
+ def _deserialize(self, params):
18455
+ self._MarkItemTitle = params.get("MarkItemTitle")
18456
+ if params.get("AnswerInfos") is not None:
18457
+ self._AnswerInfos = []
18458
+ for item in params.get("AnswerInfos"):
18459
+ obj = AnswerInfo()
18460
+ obj._deserialize(item)
18461
+ self._AnswerInfos.append(obj)
18462
+ if params.get("MarkInfos") is not None:
18463
+ self._MarkInfos = []
18464
+ for item in params.get("MarkInfos"):
18465
+ obj = MarkInfo()
18466
+ obj._deserialize(item)
18467
+ self._MarkInfos.append(obj)
18468
+ memeber_set = set(params.keys())
18469
+ for name, value in vars(self).items():
18470
+ property_name = name[1:]
18471
+ if property_name in memeber_set:
18472
+ memeber_set.remove(property_name)
18473
+ if len(memeber_set) > 0:
18474
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
18475
+
18476
+
18477
+
18059
18478
  class MedicalInvoice(AbstractModel):
18060
18479
  r"""医疗票据信息
18061
18480
 
@@ -22625,7 +23044,10 @@ class QuestionSplitLayoutOCRRequest(AbstractModel):
22625
23044
  :type PdfPageNumber: int
22626
23045
  :param _EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
22627
23046
  :type EnableImageCrop: bool
22628
- :param _UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
23047
+ :param _UseNewModel: false: 使用当前默认模型返回结构化信息更全面,但检测精度一般
23048
+ true: 使用多模态推理模型,速度更快精度更高,但只返回题目最外层边框
23049
+
23050
+ API默认false, demo默认使用的是true
22629
23051
  :type UseNewModel: bool
22630
23052
  """
22631
23053
  self._ImageUrl = None
@@ -22692,7 +23114,10 @@ class QuestionSplitLayoutOCRRequest(AbstractModel):
22692
23114
 
22693
23115
  @property
22694
23116
  def UseNewModel(self):
22695
- r"""false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
23117
+ r"""false: 使用当前默认模型返回结构化信息更全面,但检测精度一般
23118
+ true: 使用多模态推理模型,速度更快精度更高,但只返回题目最外层边框
23119
+
23120
+ API默认false, demo默认使用的是true
22696
23121
  :rtype: bool
22697
23122
  """
22698
23123
  return self._UseNewModel
@@ -22786,7 +23211,10 @@ class QuestionSplitOCRRequest(AbstractModel):
22786
23211
  :type EnableImageCrop: bool
22787
23212
  :param _EnableOnlyDetectBorder: 是否只返回检测框,默认false
22788
23213
  :type EnableOnlyDetectBorder: bool
22789
- :param _UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
23214
+ :param _UseNewModel: false: 使用当前默认模型(结构化信息更全面,但手写答案坐标精度一般)
23215
+ true: 使用多模态推理模型,推理效果更强(题目框选、手写答案坐标定位能力更优,但不返回题目选项和题目类型信息)
23216
+
23217
+ API默认false, demo默认使用的是true
22790
23218
  :type UseNewModel: bool
22791
23219
  """
22792
23220
  self._ImageUrl = None
@@ -22865,7 +23293,10 @@ class QuestionSplitOCRRequest(AbstractModel):
22865
23293
 
22866
23294
  @property
22867
23295
  def UseNewModel(self):
22868
- r"""false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
23296
+ r"""false: 使用当前默认模型(结构化信息更全面,但手写答案坐标精度一般)
23297
+ true: 使用多模态推理模型,推理效果更强(题目框选、手写答案坐标定位能力更优,但不返回题目选项和题目类型信息)
23298
+
23299
+ API默认false, demo默认使用的是true
22869
23300
  :rtype: bool
22870
23301
  """
22871
23302
  return self._UseNewModel
@@ -24010,7 +24441,20 @@ class RecognizeEncryptedIDCardOCRRequest(AbstractModel):
24010
24441
  BACK:身份证有国徽的一面(国徽面),
24011
24442
  该参数如果不填,将为您自动判断身份证正反面。
24012
24443
  :type CardSide: str
24013
- :param _Config: 以下可选字段均为bool 类型,默认false:CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)CropPortrait,人像照片裁剪(自动抠取身份证头像区域)CopyWarn,复印件告警BorderCheckWarn,边框和框内遮挡告警ReshootWarn,DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)TempIdWarn,临时身份证告警InvalidDateWarn,身份证有效日期不合法告警Quality,图片质量分数(评价图片的模糊程度)MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)ReflectWarn,是否开启反光检测SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
24444
+ :param _Config: 以下可选字段均为bool 类型,默认false:
24445
+ CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
24446
+ CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
24447
+ CopyWarn,复印件告警
24448
+ BorderCheckWarn,边框不完整和框内遮挡告警
24449
+ ReshootWarn,屏幕翻拍告警
24450
+ DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
24451
+ TempIdWarn,临时身份证告警
24452
+ InvalidDateWarn,身份证有效日期不合法告警
24453
+ Quality,图片质量分数(评价图片的模糊程度)
24454
+ MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
24455
+ ReflectWarn,是否开启反光检测
24456
+ SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
24457
+ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
24014
24458
  :type Config: str
24015
24459
  :param _EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
24016
24460
  :type EnableRecognitionRectify: bool
@@ -24090,7 +24534,20 @@ BACK:身份证有国徽的一面(国徽面),
24090
24534
 
24091
24535
  @property
24092
24536
  def Config(self):
24093
- r"""以下可选字段均为bool 类型,默认false:CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)CropPortrait,人像照片裁剪(自动抠取身份证头像区域)CopyWarn,复印件告警BorderCheckWarn,边框和框内遮挡告警ReshootWarn,DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)TempIdWarn,临时身份证告警InvalidDateWarn,身份证有效日期不合法告警Quality,图片质量分数(评价图片的模糊程度)MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)ReflectWarn,是否开启反光检测SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
24537
+ r"""以下可选字段均为bool 类型,默认false:
24538
+ CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
24539
+ CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
24540
+ CopyWarn,复印件告警
24541
+ BorderCheckWarn,边框不完整和框内遮挡告警
24542
+ ReshootWarn,屏幕翻拍告警
24543
+ DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
24544
+ TempIdWarn,临时身份证告警
24545
+ InvalidDateWarn,身份证有效日期不合法告警
24546
+ Quality,图片质量分数(评价图片的模糊程度)
24547
+ MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
24548
+ ReflectWarn,是否开启反光检测
24549
+ SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
24550
+ API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
24094
24551
  :rtype: str
24095
24552
  """
24096
24553
  return self._Config
@@ -24180,7 +24637,22 @@ class RecognizeEncryptedIDCardOCRResponse(AbstractModel):
24180
24637
  :type Authority: str
24181
24638
  :param _ValidDate: 证件有效期(国徽面)
24182
24639
  :type ValidDate: str
24183
- :param _AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);WarnInfos,告警信息,Code 告警码列表和释义:-9100 身份证有效日期不合法告警,-9101 身份证边框不完整告警,-9102 身份证复印件告警(黑白及彩色复印件),-9108 身份证复印件告警(仅黑白复印件),-9103 身份证翻拍告警,-9105 身份证框内遮挡告警,-9104 临时身份证告警,-9106 身份证疑似存在PS痕迹告警,-9107 身份证反光告警,-9110 电子身份证告警
24640
+ :param _AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
24641
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
24642
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
24643
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
24644
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
24645
+ WarnInfos,告警信息,Code 告警码列表和释义:
24646
+ -9100 身份证有效日期不合法告警,
24647
+ -9101 身份证边框不完整告警,
24648
+ -9102 身份证复印件告警(黑白及彩色复印件),
24649
+ -9108 身份证复印件告警(仅黑白复印件),
24650
+ -9103 身份证翻拍告警,
24651
+ -9105 身份证框内遮挡告警,
24652
+ -9104 临时身份证告警,
24653
+ -9106 身份证疑似存在PS痕迹告警,
24654
+ -9107 身份证反光告警,
24655
+ -9110 电子身份证告警
24184
24656
  :type AdvancedInfo: str
24185
24657
  :param _ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
24186
24658
  :type ReflectDetailInfos: list of ReflectDetailInfo
@@ -24295,7 +24767,22 @@ class RecognizeEncryptedIDCardOCRResponse(AbstractModel):
24295
24767
 
24296
24768
  @property
24297
24769
  def AdvancedInfo(self):
24298
- r"""扩展信息,不请求则不返回,具体输入参考示例3和示例4。IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);WarnInfos,告警信息,Code 告警码列表和释义:-9100 身份证有效日期不合法告警,-9101 身份证边框不完整告警,-9102 身份证复印件告警(黑白及彩色复印件),-9108 身份证复印件告警(仅黑白复印件),-9103 身份证翻拍告警,-9105 身份证框内遮挡告警,-9104 临时身份证告警,-9106 身份证疑似存在PS痕迹告警,-9107 身份证反光告警,-9110 电子身份证告警
24770
+ r"""扩展信息,不请求则不返回,具体输入参考示例3和示例4。
24771
+ IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
24772
+ Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
24773
+ Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
24774
+ BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
24775
+ WarnInfos,告警信息,Code 告警码列表和释义:
24776
+ -9100 身份证有效日期不合法告警,
24777
+ -9101 身份证边框不完整告警,
24778
+ -9102 身份证复印件告警(黑白及彩色复印件),
24779
+ -9108 身份证复印件告警(仅黑白复印件),
24780
+ -9103 身份证翻拍告警,
24781
+ -9105 身份证框内遮挡告警,
24782
+ -9104 临时身份证告警,
24783
+ -9106 身份证疑似存在PS痕迹告警,
24784
+ -9107 身份证反光告警,
24785
+ -9110 电子身份证告警
24299
24786
  :rtype: str
24300
24787
  """
24301
24788
  return self._AdvancedInfo
@@ -30945,6 +31432,218 @@ class SubmitExtractDocAgentJobResponse(AbstractModel):
30945
31432
  self._RequestId = params.get("RequestId")
30946
31433
 
30947
31434
 
31435
+ class SubmitQuestionMarkAgentJobRequest(AbstractModel):
31436
+ r"""SubmitQuestionMarkAgentJob请求参数结构体
31437
+
31438
+ """
31439
+
31440
+ def __init__(self):
31441
+ r"""
31442
+ :param _ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
31443
+ :type ImageBase64: str
31444
+ :param _ImageUrl: 图片/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
31445
+ :type ImageUrl: str
31446
+ :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。
31447
+ :type PdfPageNumber: int
31448
+ :param _BoolSingleQuestion: 表示整张试卷批改需要先切题,默认为false
31449
+ :type BoolSingleQuestion: bool
31450
+ :param _EnableDeepThink: 默认false 表示关闭深度思考 true 表示打开深度思考,更深层次推理分析,速度更慢
31451
+ :type EnableDeepThink: bool
31452
+ :param _QuestionConfigMap: 题目信息输出配置,当key对应为true表示开启配置开关。 当key为KnowledgePoints value为true 表示输出每道题结构信息中输出知识点内容;当key为TrueAnswer value为true 表示输出每道题的正确答案 ;当key为ReturnAnswerPosition value为false表示不输出手写答案坐标(降低处理耗时,按需输出); 设置方式参考 {"KnowledgePoints":true,"TrueAnswer":true}
31453
+ :type QuestionConfigMap: str
31454
+ :param _ReferenceAnswer: 仅有单题有效,如果切题有多题则不生效,单题批改的时候作为参考答案输入到批改模型中
31455
+ :type ReferenceAnswer: str
31456
+ """
31457
+ self._ImageBase64 = None
31458
+ self._ImageUrl = None
31459
+ self._PdfPageNumber = None
31460
+ self._BoolSingleQuestion = None
31461
+ self._EnableDeepThink = None
31462
+ self._QuestionConfigMap = None
31463
+ self._ReferenceAnswer = None
31464
+
31465
+ @property
31466
+ def ImageBase64(self):
31467
+ r"""图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
31468
+ :rtype: str
31469
+ """
31470
+ return self._ImageBase64
31471
+
31472
+ @ImageBase64.setter
31473
+ def ImageBase64(self, ImageBase64):
31474
+ self._ImageBase64 = ImageBase64
31475
+
31476
+ @property
31477
+ def ImageUrl(self):
31478
+ r"""图片/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
31479
+ :rtype: str
31480
+ """
31481
+ return self._ImageUrl
31482
+
31483
+ @ImageUrl.setter
31484
+ def ImageUrl(self, ImageUrl):
31485
+ self._ImageUrl = ImageUrl
31486
+
31487
+ @property
31488
+ def PdfPageNumber(self):
31489
+ r"""需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。
31490
+ :rtype: int
31491
+ """
31492
+ return self._PdfPageNumber
31493
+
31494
+ @PdfPageNumber.setter
31495
+ def PdfPageNumber(self, PdfPageNumber):
31496
+ self._PdfPageNumber = PdfPageNumber
31497
+
31498
+ @property
31499
+ def BoolSingleQuestion(self):
31500
+ warnings.warn("parameter `BoolSingleQuestion` is deprecated", DeprecationWarning)
31501
+
31502
+ r"""表示整张试卷批改需要先切题,默认为false
31503
+ :rtype: bool
31504
+ """
31505
+ return self._BoolSingleQuestion
31506
+
31507
+ @BoolSingleQuestion.setter
31508
+ def BoolSingleQuestion(self, BoolSingleQuestion):
31509
+ warnings.warn("parameter `BoolSingleQuestion` is deprecated", DeprecationWarning)
31510
+
31511
+ self._BoolSingleQuestion = BoolSingleQuestion
31512
+
31513
+ @property
31514
+ def EnableDeepThink(self):
31515
+ warnings.warn("parameter `EnableDeepThink` is deprecated", DeprecationWarning)
31516
+
31517
+ r"""默认false 表示关闭深度思考 true 表示打开深度思考,更深层次推理分析,速度更慢
31518
+ :rtype: bool
31519
+ """
31520
+ return self._EnableDeepThink
31521
+
31522
+ @EnableDeepThink.setter
31523
+ def EnableDeepThink(self, EnableDeepThink):
31524
+ warnings.warn("parameter `EnableDeepThink` is deprecated", DeprecationWarning)
31525
+
31526
+ self._EnableDeepThink = EnableDeepThink
31527
+
31528
+ @property
31529
+ def QuestionConfigMap(self):
31530
+ r"""题目信息输出配置,当key对应为true表示开启配置开关。 当key为KnowledgePoints value为true 表示输出每道题结构信息中输出知识点内容;当key为TrueAnswer value为true 表示输出每道题的正确答案 ;当key为ReturnAnswerPosition value为false表示不输出手写答案坐标(降低处理耗时,按需输出); 设置方式参考 {"KnowledgePoints":true,"TrueAnswer":true}
31531
+ :rtype: str
31532
+ """
31533
+ return self._QuestionConfigMap
31534
+
31535
+ @QuestionConfigMap.setter
31536
+ def QuestionConfigMap(self, QuestionConfigMap):
31537
+ self._QuestionConfigMap = QuestionConfigMap
31538
+
31539
+ @property
31540
+ def ReferenceAnswer(self):
31541
+ r"""仅有单题有效,如果切题有多题则不生效,单题批改的时候作为参考答案输入到批改模型中
31542
+ :rtype: str
31543
+ """
31544
+ return self._ReferenceAnswer
31545
+
31546
+ @ReferenceAnswer.setter
31547
+ def ReferenceAnswer(self, ReferenceAnswer):
31548
+ self._ReferenceAnswer = ReferenceAnswer
31549
+
31550
+
31551
+ def _deserialize(self, params):
31552
+ self._ImageBase64 = params.get("ImageBase64")
31553
+ self._ImageUrl = params.get("ImageUrl")
31554
+ self._PdfPageNumber = params.get("PdfPageNumber")
31555
+ self._BoolSingleQuestion = params.get("BoolSingleQuestion")
31556
+ self._EnableDeepThink = params.get("EnableDeepThink")
31557
+ self._QuestionConfigMap = params.get("QuestionConfigMap")
31558
+ self._ReferenceAnswer = params.get("ReferenceAnswer")
31559
+ memeber_set = set(params.keys())
31560
+ for name, value in vars(self).items():
31561
+ property_name = name[1:]
31562
+ if property_name in memeber_set:
31563
+ memeber_set.remove(property_name)
31564
+ if len(memeber_set) > 0:
31565
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
31566
+
31567
+
31568
+
31569
+ class SubmitQuestionMarkAgentJobResponse(AbstractModel):
31570
+ r"""SubmitQuestionMarkAgentJob返回参数结构体
31571
+
31572
+ """
31573
+
31574
+ def __init__(self):
31575
+ r"""
31576
+ :param _JobId: 任务唯一ID。由服务端生成.
31577
+ :type JobId: str
31578
+ :param _QuestionInfo: 切题题目边框坐标列表 (如果BoolSingleQuestion为true则返回空)
31579
+ :type QuestionInfo: list of QuestionInfo
31580
+ :param _QuestionCount: 题目切题数量,作为计费题目数总量
31581
+ :type QuestionCount: str
31582
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31583
+ :type RequestId: str
31584
+ """
31585
+ self._JobId = None
31586
+ self._QuestionInfo = None
31587
+ self._QuestionCount = None
31588
+ self._RequestId = None
31589
+
31590
+ @property
31591
+ def JobId(self):
31592
+ r"""任务唯一ID。由服务端生成.
31593
+ :rtype: str
31594
+ """
31595
+ return self._JobId
31596
+
31597
+ @JobId.setter
31598
+ def JobId(self, JobId):
31599
+ self._JobId = JobId
31600
+
31601
+ @property
31602
+ def QuestionInfo(self):
31603
+ r"""切题题目边框坐标列表 (如果BoolSingleQuestion为true则返回空)
31604
+ :rtype: list of QuestionInfo
31605
+ """
31606
+ return self._QuestionInfo
31607
+
31608
+ @QuestionInfo.setter
31609
+ def QuestionInfo(self, QuestionInfo):
31610
+ self._QuestionInfo = QuestionInfo
31611
+
31612
+ @property
31613
+ def QuestionCount(self):
31614
+ r"""题目切题数量,作为计费题目数总量
31615
+ :rtype: str
31616
+ """
31617
+ return self._QuestionCount
31618
+
31619
+ @QuestionCount.setter
31620
+ def QuestionCount(self, QuestionCount):
31621
+ self._QuestionCount = QuestionCount
31622
+
31623
+ @property
31624
+ def RequestId(self):
31625
+ r"""唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
31626
+ :rtype: str
31627
+ """
31628
+ return self._RequestId
31629
+
31630
+ @RequestId.setter
31631
+ def RequestId(self, RequestId):
31632
+ self._RequestId = RequestId
31633
+
31634
+
31635
+ def _deserialize(self, params):
31636
+ self._JobId = params.get("JobId")
31637
+ if params.get("QuestionInfo") is not None:
31638
+ self._QuestionInfo = []
31639
+ for item in params.get("QuestionInfo"):
31640
+ obj = QuestionInfo()
31641
+ obj._deserialize(item)
31642
+ self._QuestionInfo.append(obj)
31643
+ self._QuestionCount = params.get("QuestionCount")
31644
+ self._RequestId = params.get("RequestId")
31645
+
31646
+
30948
31647
  class TableCell(AbstractModel):
30949
31648
  r"""单元格数据
30950
31649
 
@@ -299,6 +299,31 @@ class OcrClient(AbstractClient):
299
299
  raise TencentCloudSDKException(type(e).__name__, str(e))
300
300
 
301
301
 
302
+ def DescribeQuestionMarkAgentJob(self, request):
303
+ r"""用于试题批改Agent查询任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
304
+
305
+ 默认接口请求并发限制:10题/分钟。
306
+
307
+ :param request: Request instance for DescribeQuestionMarkAgentJob.
308
+ :type request: :class:`tencentcloud.ocr.v20181119.models.DescribeQuestionMarkAgentJobRequest`
309
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.DescribeQuestionMarkAgentJobResponse`
310
+
311
+ """
312
+ try:
313
+ params = request._serialize()
314
+ headers = request.headers
315
+ body = self.call("DescribeQuestionMarkAgentJob", params, headers=headers)
316
+ response = json.loads(body)
317
+ model = models.DescribeQuestionMarkAgentJobResponse()
318
+ model._deserialize(response["Response"])
319
+ return model
320
+ except Exception as e:
321
+ if isinstance(e, TencentCloudSDKException):
322
+ raise
323
+ else:
324
+ raise TencentCloudSDKException(type(e).__name__, str(e))
325
+
326
+
302
327
  def DriverLicenseOCR(self, request):
303
328
  r"""本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
304
329
 
@@ -1100,7 +1125,10 @@ class OcrClient(AbstractClient):
1100
1125
  <td rowspan="9">告警功能</td>
1101
1126
  </tr>
1102
1127
  <tr>
1103
- <td>身份证边框不完整告警</td>
1128
+ <td>身份证有效日期不合法告警</td>
1129
+ </tr>
1130
+ <tr>
1131
+ <td>身份证边框不完整告警</td>
1104
1132
  </tr>
1105
1133
  <tr>
1106
1134
  <td>身份证复印件告警</td>
@@ -1473,7 +1501,7 @@ class OcrClient(AbstractClient):
1473
1501
 
1474
1502
 
1475
1503
  def QuestionSplitLayoutOCR(self, request):
1476
- r"""试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
1504
+ r"""试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框的坐标位置。新客户请注意UseNewMode的选择。
1477
1505
 
1478
1506
  默认接口请求频率限制:2次/秒。
1479
1507
 
@@ -1498,7 +1526,7 @@ class OcrClient(AbstractClient):
1498
1526
 
1499
1527
 
1500
1528
  def QuestionSplitOCR(self, request):
1501
- r"""试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
1529
+ r"""试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。新接入客户请注意UseNewModel选择
1502
1530
 
1503
1531
  默认接口请求频率限制:2次/秒。
1504
1532
 
@@ -1596,7 +1624,7 @@ class OcrClient(AbstractClient):
1596
1624
  </tr>
1597
1625
  <tr>
1598
1626
  <td rowspan="9">告警功能</td>
1599
- <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
1627
+ <td>身份证有效日期不合法
1600
1628
 
1601
1629
  </td>
1602
1630
  </tr>
@@ -2353,6 +2381,31 @@ class OcrClient(AbstractClient):
2353
2381
  raise TencentCloudSDKException(type(e).__name__, str(e))
2354
2382
 
2355
2383
 
2384
+ def SubmitQuestionMarkAgentJob(self, request):
2385
+ r"""用于试题批改Agent提交任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
2386
+
2387
+ 默认接口请求并发限制:10题/分钟。
2388
+
2389
+ :param request: Request instance for SubmitQuestionMarkAgentJob.
2390
+ :type request: :class:`tencentcloud.ocr.v20181119.models.SubmitQuestionMarkAgentJobRequest`
2391
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.SubmitQuestionMarkAgentJobResponse`
2392
+
2393
+ """
2394
+ try:
2395
+ params = request._serialize()
2396
+ headers = request.headers
2397
+ body = self.call("SubmitQuestionMarkAgentJob", params, headers=headers)
2398
+ response = json.loads(body)
2399
+ model = models.SubmitQuestionMarkAgentJobResponse()
2400
+ model._deserialize(response["Response"])
2401
+ return model
2402
+ except Exception as e:
2403
+ if isinstance(e, TencentCloudSDKException):
2404
+ raise
2405
+ else:
2406
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2407
+
2408
+
2356
2409
  def TableOCR(self, request):
2357
2410
  r"""<b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
2358
2411
 
@@ -243,6 +243,26 @@ class OcrClient(AbstractClient):
243
243
 
244
244
  return await self.call_and_deserialize(**kwargs)
245
245
 
246
+ async def DescribeQuestionMarkAgentJob(
247
+ self,
248
+ request: models.DescribeQuestionMarkAgentJobRequest,
249
+ opts: Dict = None,
250
+ ) -> models.DescribeQuestionMarkAgentJobResponse:
251
+ """
252
+ 用于试题批改Agent查询任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
253
+
254
+ 默认接口请求并发限制:10题/分钟。
255
+ """
256
+
257
+ kwargs = {}
258
+ kwargs["action"] = "DescribeQuestionMarkAgentJob"
259
+ kwargs["params"] = request._serialize()
260
+ kwargs["resp_cls"] = models.DescribeQuestionMarkAgentJobResponse
261
+ kwargs["headers"] = request.headers
262
+ kwargs["opts"] = opts or {}
263
+
264
+ return await self.call_and_deserialize(**kwargs)
265
+
246
266
  async def DriverLicenseOCR(
247
267
  self,
248
268
  request: models.DriverLicenseOCRRequest,
@@ -929,7 +949,10 @@ class OcrClient(AbstractClient):
929
949
  <td rowspan="9">告警功能</td>
930
950
  </tr>
931
951
  <tr>
932
- <td>身份证边框不完整告警</td>
952
+ <td>身份证有效日期不合法告警</td>
953
+ </tr>
954
+ <tr>
955
+ <td>身份证边框不完整告警</td>
933
956
  </tr>
934
957
  <tr>
935
958
  <td>身份证复印件告警</td>
@@ -1232,7 +1255,7 @@ class OcrClient(AbstractClient):
1232
1255
  opts: Dict = None,
1233
1256
  ) -> models.QuestionSplitLayoutOCRResponse:
1234
1257
  """
1235
- 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
1258
+ 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框的坐标位置。新客户请注意UseNewMode的选择。
1236
1259
 
1237
1260
  默认接口请求频率限制:2次/秒。
1238
1261
  """
@@ -1252,7 +1275,7 @@ class OcrClient(AbstractClient):
1252
1275
  opts: Dict = None,
1253
1276
  ) -> models.QuestionSplitOCRResponse:
1254
1277
  """
1255
- 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
1278
+ 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。新接入客户请注意UseNewModel选择
1256
1279
 
1257
1280
  默认接口请求频率限制:2次/秒。
1258
1281
  """
@@ -1335,7 +1358,7 @@ class OcrClient(AbstractClient):
1335
1358
  </tr>
1336
1359
  <tr>
1337
1360
  <td rowspan="9">告警功能</td>
1338
- <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
1361
+ <td>身份证有效日期不合法
1339
1362
 
1340
1363
  </td>
1341
1364
  </tr>
@@ -1982,6 +2005,26 @@ class OcrClient(AbstractClient):
1982
2005
 
1983
2006
  return await self.call_and_deserialize(**kwargs)
1984
2007
 
2008
+ async def SubmitQuestionMarkAgentJob(
2009
+ self,
2010
+ request: models.SubmitQuestionMarkAgentJobRequest,
2011
+ opts: Dict = None,
2012
+ ) -> models.SubmitQuestionMarkAgentJobResponse:
2013
+ """
2014
+ 用于试题批改Agent提交任务。主要面向K12的试题批改产品,支持整卷/单题端到端(试卷切题+题目批改+手写坐标回显)处理,主要聚焦的场景包括试题批改(含手写答案)、试题解析(不含手写答案),其中低年级算式批改效果比线上[数学作业批改](https://cloud.tencent.com/document/product/1004)效果更好。精准输出题目、正误判定、答案对比、错误及知识点等结构化评估结果。
2015
+
2016
+ 默认接口请求并发限制:10题/分钟。
2017
+ """
2018
+
2019
+ kwargs = {}
2020
+ kwargs["action"] = "SubmitQuestionMarkAgentJob"
2021
+ kwargs["params"] = request._serialize()
2022
+ kwargs["resp_cls"] = models.SubmitQuestionMarkAgentJobResponse
2023
+ kwargs["headers"] = request.headers
2024
+ kwargs["opts"] = opts or {}
2025
+
2026
+ return await self.call_and_deserialize(**kwargs)
2027
+
1985
2028
  async def TableOCR(
1986
2029
  self,
1987
2030
  request: models.TableOCRRequest,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-ocr
3
- Version: 3.1.36
3
+ Version: 3.1.45
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.36
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.45
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.45
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.36