tencentcloud-sdk-python 3.0.1309__py2.py3-none-any.whl → 3.0.1310__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.
@@ -7343,6 +7343,111 @@ class ElectronicTrainTicketFull(AbstractModel):
7343
7343
 
7344
7344
 
7345
7345
 
7346
+ class Element(AbstractModel):
7347
+ """试题识别结果-元素内容
7348
+
7349
+ """
7350
+
7351
+ def __init__(self):
7352
+ r"""
7353
+ :param _Text: 元素内容,当type为figure时该字段内容为图片的位置
7354
+ :type Text: str
7355
+ :param _Coord: 元素坐标
7356
+ :type Coord: :class:`tencentcloud.ocr.v20181119.models.Polygon`
7357
+ :param _GroupType: 元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)
7358
+ :type GroupType: str
7359
+ :param _ResultList: 结果列表
7360
+ 注意:此字段可能返回 null,表示取不到有效值。
7361
+ :type ResultList: list of ResultList
7362
+ :param _Index: 元素索引
7363
+ :type Index: int
7364
+ """
7365
+ self._Text = None
7366
+ self._Coord = None
7367
+ self._GroupType = None
7368
+ self._ResultList = None
7369
+ self._Index = None
7370
+
7371
+ @property
7372
+ def Text(self):
7373
+ """元素内容,当type为figure时该字段内容为图片的位置
7374
+ :rtype: str
7375
+ """
7376
+ return self._Text
7377
+
7378
+ @Text.setter
7379
+ def Text(self, Text):
7380
+ self._Text = Text
7381
+
7382
+ @property
7383
+ def Coord(self):
7384
+ """元素坐标
7385
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
7386
+ """
7387
+ return self._Coord
7388
+
7389
+ @Coord.setter
7390
+ def Coord(self, Coord):
7391
+ self._Coord = Coord
7392
+
7393
+ @property
7394
+ def GroupType(self):
7395
+ """元素group类型,包括multiple-choice(选择题)、fill-in-the-blank(填空题)、problem-solving(解答题)、arithmetic(算术题)
7396
+ :rtype: str
7397
+ """
7398
+ return self._GroupType
7399
+
7400
+ @GroupType.setter
7401
+ def GroupType(self, GroupType):
7402
+ self._GroupType = GroupType
7403
+
7404
+ @property
7405
+ def ResultList(self):
7406
+ """结果列表
7407
+ 注意:此字段可能返回 null,表示取不到有效值。
7408
+ :rtype: list of ResultList
7409
+ """
7410
+ return self._ResultList
7411
+
7412
+ @ResultList.setter
7413
+ def ResultList(self, ResultList):
7414
+ self._ResultList = ResultList
7415
+
7416
+ @property
7417
+ def Index(self):
7418
+ """元素索引
7419
+ :rtype: int
7420
+ """
7421
+ return self._Index
7422
+
7423
+ @Index.setter
7424
+ def Index(self, Index):
7425
+ self._Index = Index
7426
+
7427
+
7428
+ def _deserialize(self, params):
7429
+ self._Text = params.get("Text")
7430
+ if params.get("Coord") is not None:
7431
+ self._Coord = Polygon()
7432
+ self._Coord._deserialize(params.get("Coord"))
7433
+ self._GroupType = params.get("GroupType")
7434
+ if params.get("ResultList") is not None:
7435
+ self._ResultList = []
7436
+ for item in params.get("ResultList"):
7437
+ obj = ResultList()
7438
+ obj._deserialize(item)
7439
+ self._ResultList.append(obj)
7440
+ self._Index = params.get("Index")
7441
+ memeber_set = set(params.keys())
7442
+ for name, value in vars(self).items():
7443
+ property_name = name[1:]
7444
+ if property_name in memeber_set:
7445
+ memeber_set.remove(property_name)
7446
+ if len(memeber_set) > 0:
7447
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7448
+
7449
+
7450
+
7346
7451
  class Encryption(AbstractModel):
7347
7452
  """敏感数据加密
7348
7453
 
@@ -10260,77 +10365,6 @@ class GeneralBasicOCRResponse(AbstractModel):
10260
10365
  self._RequestId = params.get("RequestId")
10261
10366
 
10262
10367
 
10263
- class GeneralCardWarnInfo(AbstractModel):
10264
- """通用卡证鉴伪告警信息
10265
-
10266
- """
10267
-
10268
- def __init__(self):
10269
- r"""
10270
- :param _IsWarn: 是否存在该告警
10271
- :type IsWarn: bool
10272
- :param _RiskConfidence: 风险程度
10273
- :type RiskConfidence: float
10274
- :param _Polygon: 告警位置四点坐标
10275
- :type Polygon: list of Polygon
10276
- """
10277
- self._IsWarn = None
10278
- self._RiskConfidence = None
10279
- self._Polygon = None
10280
-
10281
- @property
10282
- def IsWarn(self):
10283
- """是否存在该告警
10284
- :rtype: bool
10285
- """
10286
- return self._IsWarn
10287
-
10288
- @IsWarn.setter
10289
- def IsWarn(self, IsWarn):
10290
- self._IsWarn = IsWarn
10291
-
10292
- @property
10293
- def RiskConfidence(self):
10294
- """风险程度
10295
- :rtype: float
10296
- """
10297
- return self._RiskConfidence
10298
-
10299
- @RiskConfidence.setter
10300
- def RiskConfidence(self, RiskConfidence):
10301
- self._RiskConfidence = RiskConfidence
10302
-
10303
- @property
10304
- def Polygon(self):
10305
- """告警位置四点坐标
10306
- :rtype: list of Polygon
10307
- """
10308
- return self._Polygon
10309
-
10310
- @Polygon.setter
10311
- def Polygon(self, Polygon):
10312
- self._Polygon = Polygon
10313
-
10314
-
10315
- def _deserialize(self, params):
10316
- self._IsWarn = params.get("IsWarn")
10317
- self._RiskConfidence = params.get("RiskConfidence")
10318
- if params.get("Polygon") is not None:
10319
- self._Polygon = []
10320
- for item in params.get("Polygon"):
10321
- obj = Polygon()
10322
- obj._deserialize(item)
10323
- self._Polygon.append(obj)
10324
- memeber_set = set(params.keys())
10325
- for name, value in vars(self).items():
10326
- property_name = name[1:]
10327
- if property_name in memeber_set:
10328
- memeber_set.remove(property_name)
10329
- if len(memeber_set) > 0:
10330
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
10331
-
10332
-
10333
-
10334
10368
  class GeneralEfficientOCRRequest(AbstractModel):
10335
10369
  """GeneralEfficientOCR请求参数结构体
10336
10370
 
@@ -21004,118 +21038,129 @@ class QuestionBlockObj(AbstractModel):
21004
21038
 
21005
21039
 
21006
21040
 
21007
- class QuestionObj(AbstractModel):
21008
- """试题识别结构化信息
21041
+ class QuestionInfo(AbstractModel):
21042
+ """试题识别结果
21009
21043
 
21010
21044
  """
21011
21045
 
21012
21046
  def __init__(self):
21013
21047
  r"""
21014
- :param _QuestionTextNo: 题号
21015
- :type QuestionTextNo: str
21016
- :param _QuestionTextType: 题型:
21017
- 1: "选择题"
21018
- 2: "填空题"
21019
- 3: "解答题"
21020
- :type QuestionTextType: int
21021
- :param _QuestionText: 题干
21022
- :type QuestionText: str
21023
- :param _QuestionOptions: 选择题选项,包含1个或多个option
21024
- :type QuestionOptions: str
21025
- :param _QuestionSubquestion: 所有子题的question属性
21026
- :type QuestionSubquestion: str
21027
- :param _QuestionImageCoords: 示意图检测框在的图片中的像素坐标
21028
- :type QuestionImageCoords: list of Rect
21048
+ :param _Angle: 旋转角度
21049
+ :type Angle: float
21050
+ :param _Height: 预处理后图片高度
21051
+ :type Height: int
21052
+ :param _Width: 预处理后图片宽度
21053
+ :type Width: int
21054
+ :param _ResultList: 文档元素
21055
+ 注意:此字段可能返回 null,表示取不到有效值。
21056
+ :type ResultList: list of ResultList
21057
+ :param _OrgHeight: 输入图片高度
21058
+ :type OrgHeight: int
21059
+ :param _OrgWidth: 输入图片宽度
21060
+ :type OrgWidth: int
21061
+ :param _ImageBase64: 预处理后的图片base64编码
21062
+ :type ImageBase64: str
21029
21063
  """
21030
- self._QuestionTextNo = None
21031
- self._QuestionTextType = None
21032
- self._QuestionText = None
21033
- self._QuestionOptions = None
21034
- self._QuestionSubquestion = None
21035
- self._QuestionImageCoords = None
21064
+ self._Angle = None
21065
+ self._Height = None
21066
+ self._Width = None
21067
+ self._ResultList = None
21068
+ self._OrgHeight = None
21069
+ self._OrgWidth = None
21070
+ self._ImageBase64 = None
21036
21071
 
21037
21072
  @property
21038
- def QuestionTextNo(self):
21039
- """题号
21040
- :rtype: str
21073
+ def Angle(self):
21074
+ """旋转角度
21075
+ :rtype: float
21041
21076
  """
21042
- return self._QuestionTextNo
21077
+ return self._Angle
21043
21078
 
21044
- @QuestionTextNo.setter
21045
- def QuestionTextNo(self, QuestionTextNo):
21046
- self._QuestionTextNo = QuestionTextNo
21079
+ @Angle.setter
21080
+ def Angle(self, Angle):
21081
+ self._Angle = Angle
21047
21082
 
21048
21083
  @property
21049
- def QuestionTextType(self):
21050
- """题型:
21051
- 1: "选择题"
21052
- 2: "填空题"
21053
- 3: "解答题"
21084
+ def Height(self):
21085
+ """预处理后图片高度
21054
21086
  :rtype: int
21055
21087
  """
21056
- return self._QuestionTextType
21088
+ return self._Height
21057
21089
 
21058
- @QuestionTextType.setter
21059
- def QuestionTextType(self, QuestionTextType):
21060
- self._QuestionTextType = QuestionTextType
21090
+ @Height.setter
21091
+ def Height(self, Height):
21092
+ self._Height = Height
21061
21093
 
21062
21094
  @property
21063
- def QuestionText(self):
21064
- """题干
21065
- :rtype: str
21095
+ def Width(self):
21096
+ """预处理后图片宽度
21097
+ :rtype: int
21066
21098
  """
21067
- return self._QuestionText
21099
+ return self._Width
21068
21100
 
21069
- @QuestionText.setter
21070
- def QuestionText(self, QuestionText):
21071
- self._QuestionText = QuestionText
21101
+ @Width.setter
21102
+ def Width(self, Width):
21103
+ self._Width = Width
21072
21104
 
21073
21105
  @property
21074
- def QuestionOptions(self):
21075
- """选择题选项,包含1个或多个option
21076
- :rtype: str
21106
+ def ResultList(self):
21107
+ """文档元素
21108
+ 注意:此字段可能返回 null,表示取不到有效值。
21109
+ :rtype: list of ResultList
21077
21110
  """
21078
- return self._QuestionOptions
21111
+ return self._ResultList
21079
21112
 
21080
- @QuestionOptions.setter
21081
- def QuestionOptions(self, QuestionOptions):
21082
- self._QuestionOptions = QuestionOptions
21113
+ @ResultList.setter
21114
+ def ResultList(self, ResultList):
21115
+ self._ResultList = ResultList
21083
21116
 
21084
21117
  @property
21085
- def QuestionSubquestion(self):
21086
- """所有子题的question属性
21087
- :rtype: str
21118
+ def OrgHeight(self):
21119
+ """输入图片高度
21120
+ :rtype: int
21088
21121
  """
21089
- return self._QuestionSubquestion
21122
+ return self._OrgHeight
21090
21123
 
21091
- @QuestionSubquestion.setter
21092
- def QuestionSubquestion(self, QuestionSubquestion):
21093
- self._QuestionSubquestion = QuestionSubquestion
21124
+ @OrgHeight.setter
21125
+ def OrgHeight(self, OrgHeight):
21126
+ self._OrgHeight = OrgHeight
21094
21127
 
21095
21128
  @property
21096
- def QuestionImageCoords(self):
21097
- """示意图检测框在的图片中的像素坐标
21098
- :rtype: list of Rect
21129
+ def OrgWidth(self):
21130
+ """输入图片宽度
21131
+ :rtype: int
21099
21132
  """
21100
- return self._QuestionImageCoords
21133
+ return self._OrgWidth
21101
21134
 
21102
- @QuestionImageCoords.setter
21103
- def QuestionImageCoords(self, QuestionImageCoords):
21104
- self._QuestionImageCoords = QuestionImageCoords
21135
+ @OrgWidth.setter
21136
+ def OrgWidth(self, OrgWidth):
21137
+ self._OrgWidth = OrgWidth
21138
+
21139
+ @property
21140
+ def ImageBase64(self):
21141
+ """预处理后的图片base64编码
21142
+ :rtype: str
21143
+ """
21144
+ return self._ImageBase64
21145
+
21146
+ @ImageBase64.setter
21147
+ def ImageBase64(self, ImageBase64):
21148
+ self._ImageBase64 = ImageBase64
21105
21149
 
21106
21150
 
21107
21151
  def _deserialize(self, params):
21108
- self._QuestionTextNo = params.get("QuestionTextNo")
21109
- self._QuestionTextType = params.get("QuestionTextType")
21110
- self._QuestionText = params.get("QuestionText")
21111
- self._QuestionOptions = params.get("QuestionOptions")
21112
- self._QuestionSubquestion = params.get("QuestionSubquestion")
21113
- if params.get("QuestionImageCoords") is not None:
21114
- self._QuestionImageCoords = []
21115
- for item in params.get("QuestionImageCoords"):
21116
- obj = Rect()
21152
+ self._Angle = params.get("Angle")
21153
+ self._Height = params.get("Height")
21154
+ self._Width = params.get("Width")
21155
+ if params.get("ResultList") is not None:
21156
+ self._ResultList = []
21157
+ for item in params.get("ResultList"):
21158
+ obj = ResultList()
21117
21159
  obj._deserialize(item)
21118
- self._QuestionImageCoords.append(obj)
21160
+ self._ResultList.append(obj)
21161
+ self._OrgHeight = params.get("OrgHeight")
21162
+ self._OrgWidth = params.get("OrgWidth")
21163
+ self._ImageBase64 = params.get("ImageBase64")
21119
21164
  memeber_set = set(params.keys())
21120
21165
  for name, value in vars(self).items():
21121
21166
  property_name = name[1:]
@@ -21126,15 +21171,425 @@ class QuestionObj(AbstractModel):
21126
21171
 
21127
21172
 
21128
21173
 
21129
- class QuotaInvoice(AbstractModel):
21130
- """定额发票
21174
+ class QuestionOCRRequest(AbstractModel):
21175
+ """QuestionOCR请求参数结构体
21131
21176
 
21132
21177
  """
21133
21178
 
21134
21179
  def __init__(self):
21135
21180
  r"""
21136
- :param _Title: 发票名称
21137
- :type Title: str
21181
+ :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
21182
+ :type ImageUrl: str
21183
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
21184
+ :type ImageBase64: str
21185
+ :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
21186
+ :type IsPdf: bool
21187
+ :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
21188
+ :type PdfPageNumber: int
21189
+ :param _EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
21190
+ :type EnableImageCrop: bool
21191
+ """
21192
+ self._ImageUrl = None
21193
+ self._ImageBase64 = None
21194
+ self._IsPdf = None
21195
+ self._PdfPageNumber = None
21196
+ self._EnableImageCrop = None
21197
+
21198
+ @property
21199
+ def ImageUrl(self):
21200
+ """图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
21201
+ :rtype: str
21202
+ """
21203
+ return self._ImageUrl
21204
+
21205
+ @ImageUrl.setter
21206
+ def ImageUrl(self, ImageUrl):
21207
+ self._ImageUrl = ImageUrl
21208
+
21209
+ @property
21210
+ def ImageBase64(self):
21211
+ """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
21212
+ :rtype: str
21213
+ """
21214
+ return self._ImageBase64
21215
+
21216
+ @ImageBase64.setter
21217
+ def ImageBase64(self, ImageBase64):
21218
+ self._ImageBase64 = ImageBase64
21219
+
21220
+ @property
21221
+ def IsPdf(self):
21222
+ """是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
21223
+ :rtype: bool
21224
+ """
21225
+ return self._IsPdf
21226
+
21227
+ @IsPdf.setter
21228
+ def IsPdf(self, IsPdf):
21229
+ self._IsPdf = IsPdf
21230
+
21231
+ @property
21232
+ def PdfPageNumber(self):
21233
+ """需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
21234
+ :rtype: int
21235
+ """
21236
+ return self._PdfPageNumber
21237
+
21238
+ @PdfPageNumber.setter
21239
+ def PdfPageNumber(self, PdfPageNumber):
21240
+ self._PdfPageNumber = PdfPageNumber
21241
+
21242
+ @property
21243
+ def EnableImageCrop(self):
21244
+ """是否开启切边增强和弯曲矫正,默认为false不开启
21245
+ :rtype: bool
21246
+ """
21247
+ return self._EnableImageCrop
21248
+
21249
+ @EnableImageCrop.setter
21250
+ def EnableImageCrop(self, EnableImageCrop):
21251
+ self._EnableImageCrop = EnableImageCrop
21252
+
21253
+
21254
+ def _deserialize(self, params):
21255
+ self._ImageUrl = params.get("ImageUrl")
21256
+ self._ImageBase64 = params.get("ImageBase64")
21257
+ self._IsPdf = params.get("IsPdf")
21258
+ self._PdfPageNumber = params.get("PdfPageNumber")
21259
+ self._EnableImageCrop = params.get("EnableImageCrop")
21260
+ memeber_set = set(params.keys())
21261
+ for name, value in vars(self).items():
21262
+ property_name = name[1:]
21263
+ if property_name in memeber_set:
21264
+ memeber_set.remove(property_name)
21265
+ if len(memeber_set) > 0:
21266
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
21267
+
21268
+
21269
+
21270
+ class QuestionOCRResponse(AbstractModel):
21271
+ """QuestionOCR返回参数结构体
21272
+
21273
+ """
21274
+
21275
+ def __init__(self):
21276
+ r"""
21277
+ :param _QuestionInfo: 检测到的文本信息
21278
+ :type QuestionInfo: list of QuestionInfo
21279
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21280
+ :type RequestId: str
21281
+ """
21282
+ self._QuestionInfo = None
21283
+ self._RequestId = None
21284
+
21285
+ @property
21286
+ def QuestionInfo(self):
21287
+ """检测到的文本信息
21288
+ :rtype: list of QuestionInfo
21289
+ """
21290
+ return self._QuestionInfo
21291
+
21292
+ @QuestionInfo.setter
21293
+ def QuestionInfo(self, QuestionInfo):
21294
+ self._QuestionInfo = QuestionInfo
21295
+
21296
+ @property
21297
+ def RequestId(self):
21298
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21299
+ :rtype: str
21300
+ """
21301
+ return self._RequestId
21302
+
21303
+ @RequestId.setter
21304
+ def RequestId(self, RequestId):
21305
+ self._RequestId = RequestId
21306
+
21307
+
21308
+ def _deserialize(self, params):
21309
+ if params.get("QuestionInfo") is not None:
21310
+ self._QuestionInfo = []
21311
+ for item in params.get("QuestionInfo"):
21312
+ obj = QuestionInfo()
21313
+ obj._deserialize(item)
21314
+ self._QuestionInfo.append(obj)
21315
+ self._RequestId = params.get("RequestId")
21316
+
21317
+
21318
+ class QuestionObj(AbstractModel):
21319
+ """试题识别结构化信息
21320
+
21321
+ """
21322
+
21323
+ def __init__(self):
21324
+ r"""
21325
+ :param _QuestionTextNo: 题号
21326
+ :type QuestionTextNo: str
21327
+ :param _QuestionTextType: 题型:
21328
+ 1: "选择题"
21329
+ 2: "填空题"
21330
+ 3: "解答题"
21331
+ :type QuestionTextType: int
21332
+ :param _QuestionText: 题干
21333
+ :type QuestionText: str
21334
+ :param _QuestionOptions: 选择题选项,包含1个或多个option
21335
+ :type QuestionOptions: str
21336
+ :param _QuestionSubquestion: 所有子题的question属性
21337
+ :type QuestionSubquestion: str
21338
+ :param _QuestionImageCoords: 示意图检测框在的图片中的像素坐标
21339
+ :type QuestionImageCoords: list of Rect
21340
+ """
21341
+ self._QuestionTextNo = None
21342
+ self._QuestionTextType = None
21343
+ self._QuestionText = None
21344
+ self._QuestionOptions = None
21345
+ self._QuestionSubquestion = None
21346
+ self._QuestionImageCoords = None
21347
+
21348
+ @property
21349
+ def QuestionTextNo(self):
21350
+ """题号
21351
+ :rtype: str
21352
+ """
21353
+ return self._QuestionTextNo
21354
+
21355
+ @QuestionTextNo.setter
21356
+ def QuestionTextNo(self, QuestionTextNo):
21357
+ self._QuestionTextNo = QuestionTextNo
21358
+
21359
+ @property
21360
+ def QuestionTextType(self):
21361
+ """题型:
21362
+ 1: "选择题"
21363
+ 2: "填空题"
21364
+ 3: "解答题"
21365
+ :rtype: int
21366
+ """
21367
+ return self._QuestionTextType
21368
+
21369
+ @QuestionTextType.setter
21370
+ def QuestionTextType(self, QuestionTextType):
21371
+ self._QuestionTextType = QuestionTextType
21372
+
21373
+ @property
21374
+ def QuestionText(self):
21375
+ """题干
21376
+ :rtype: str
21377
+ """
21378
+ return self._QuestionText
21379
+
21380
+ @QuestionText.setter
21381
+ def QuestionText(self, QuestionText):
21382
+ self._QuestionText = QuestionText
21383
+
21384
+ @property
21385
+ def QuestionOptions(self):
21386
+ """选择题选项,包含1个或多个option
21387
+ :rtype: str
21388
+ """
21389
+ return self._QuestionOptions
21390
+
21391
+ @QuestionOptions.setter
21392
+ def QuestionOptions(self, QuestionOptions):
21393
+ self._QuestionOptions = QuestionOptions
21394
+
21395
+ @property
21396
+ def QuestionSubquestion(self):
21397
+ """所有子题的question属性
21398
+ :rtype: str
21399
+ """
21400
+ return self._QuestionSubquestion
21401
+
21402
+ @QuestionSubquestion.setter
21403
+ def QuestionSubquestion(self, QuestionSubquestion):
21404
+ self._QuestionSubquestion = QuestionSubquestion
21405
+
21406
+ @property
21407
+ def QuestionImageCoords(self):
21408
+ """示意图检测框在的图片中的像素坐标
21409
+ :rtype: list of Rect
21410
+ """
21411
+ return self._QuestionImageCoords
21412
+
21413
+ @QuestionImageCoords.setter
21414
+ def QuestionImageCoords(self, QuestionImageCoords):
21415
+ self._QuestionImageCoords = QuestionImageCoords
21416
+
21417
+
21418
+ def _deserialize(self, params):
21419
+ self._QuestionTextNo = params.get("QuestionTextNo")
21420
+ self._QuestionTextType = params.get("QuestionTextType")
21421
+ self._QuestionText = params.get("QuestionText")
21422
+ self._QuestionOptions = params.get("QuestionOptions")
21423
+ self._QuestionSubquestion = params.get("QuestionSubquestion")
21424
+ if params.get("QuestionImageCoords") is not None:
21425
+ self._QuestionImageCoords = []
21426
+ for item in params.get("QuestionImageCoords"):
21427
+ obj = Rect()
21428
+ obj._deserialize(item)
21429
+ self._QuestionImageCoords.append(obj)
21430
+ memeber_set = set(params.keys())
21431
+ for name, value in vars(self).items():
21432
+ property_name = name[1:]
21433
+ if property_name in memeber_set:
21434
+ memeber_set.remove(property_name)
21435
+ if len(memeber_set) > 0:
21436
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
21437
+
21438
+
21439
+
21440
+ class QuestionSplitOCRRequest(AbstractModel):
21441
+ """QuestionSplitOCR请求参数结构体
21442
+
21443
+ """
21444
+
21445
+ def __init__(self):
21446
+ r"""
21447
+ :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
21448
+ :type ImageUrl: str
21449
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
21450
+ :type ImageBase64: str
21451
+ :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
21452
+ :type IsPdf: bool
21453
+ :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
21454
+ :type PdfPageNumber: int
21455
+ :param _EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
21456
+ :type EnableImageCrop: bool
21457
+ """
21458
+ self._ImageUrl = None
21459
+ self._ImageBase64 = None
21460
+ self._IsPdf = None
21461
+ self._PdfPageNumber = None
21462
+ self._EnableImageCrop = None
21463
+
21464
+ @property
21465
+ def ImageUrl(self):
21466
+ """图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
21467
+ :rtype: str
21468
+ """
21469
+ return self._ImageUrl
21470
+
21471
+ @ImageUrl.setter
21472
+ def ImageUrl(self, ImageUrl):
21473
+ self._ImageUrl = ImageUrl
21474
+
21475
+ @property
21476
+ def ImageBase64(self):
21477
+ """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
21478
+ :rtype: str
21479
+ """
21480
+ return self._ImageBase64
21481
+
21482
+ @ImageBase64.setter
21483
+ def ImageBase64(self, ImageBase64):
21484
+ self._ImageBase64 = ImageBase64
21485
+
21486
+ @property
21487
+ def IsPdf(self):
21488
+ """是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
21489
+ :rtype: bool
21490
+ """
21491
+ return self._IsPdf
21492
+
21493
+ @IsPdf.setter
21494
+ def IsPdf(self, IsPdf):
21495
+ self._IsPdf = IsPdf
21496
+
21497
+ @property
21498
+ def PdfPageNumber(self):
21499
+ """需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
21500
+ :rtype: int
21501
+ """
21502
+ return self._PdfPageNumber
21503
+
21504
+ @PdfPageNumber.setter
21505
+ def PdfPageNumber(self, PdfPageNumber):
21506
+ self._PdfPageNumber = PdfPageNumber
21507
+
21508
+ @property
21509
+ def EnableImageCrop(self):
21510
+ """是否开启切边增强和弯曲矫正,默认为false不开启
21511
+ :rtype: bool
21512
+ """
21513
+ return self._EnableImageCrop
21514
+
21515
+ @EnableImageCrop.setter
21516
+ def EnableImageCrop(self, EnableImageCrop):
21517
+ self._EnableImageCrop = EnableImageCrop
21518
+
21519
+
21520
+ def _deserialize(self, params):
21521
+ self._ImageUrl = params.get("ImageUrl")
21522
+ self._ImageBase64 = params.get("ImageBase64")
21523
+ self._IsPdf = params.get("IsPdf")
21524
+ self._PdfPageNumber = params.get("PdfPageNumber")
21525
+ self._EnableImageCrop = params.get("EnableImageCrop")
21526
+ memeber_set = set(params.keys())
21527
+ for name, value in vars(self).items():
21528
+ property_name = name[1:]
21529
+ if property_name in memeber_set:
21530
+ memeber_set.remove(property_name)
21531
+ if len(memeber_set) > 0:
21532
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
21533
+
21534
+
21535
+
21536
+ class QuestionSplitOCRResponse(AbstractModel):
21537
+ """QuestionSplitOCR返回参数结构体
21538
+
21539
+ """
21540
+
21541
+ def __init__(self):
21542
+ r"""
21543
+ :param _QuestionInfo: 检测到的文本信息
21544
+ :type QuestionInfo: list of QuestionInfo
21545
+ :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21546
+ :type RequestId: str
21547
+ """
21548
+ self._QuestionInfo = None
21549
+ self._RequestId = None
21550
+
21551
+ @property
21552
+ def QuestionInfo(self):
21553
+ """检测到的文本信息
21554
+ :rtype: list of QuestionInfo
21555
+ """
21556
+ return self._QuestionInfo
21557
+
21558
+ @QuestionInfo.setter
21559
+ def QuestionInfo(self, QuestionInfo):
21560
+ self._QuestionInfo = QuestionInfo
21561
+
21562
+ @property
21563
+ def RequestId(self):
21564
+ """唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
21565
+ :rtype: str
21566
+ """
21567
+ return self._RequestId
21568
+
21569
+ @RequestId.setter
21570
+ def RequestId(self, RequestId):
21571
+ self._RequestId = RequestId
21572
+
21573
+
21574
+ def _deserialize(self, params):
21575
+ if params.get("QuestionInfo") is not None:
21576
+ self._QuestionInfo = []
21577
+ for item in params.get("QuestionInfo"):
21578
+ obj = QuestionInfo()
21579
+ obj._deserialize(item)
21580
+ self._QuestionInfo.append(obj)
21581
+ self._RequestId = params.get("RequestId")
21582
+
21583
+
21584
+ class QuotaInvoice(AbstractModel):
21585
+ """定额发票
21586
+
21587
+ """
21588
+
21589
+ def __init__(self):
21590
+ r"""
21591
+ :param _Title: 发票名称
21592
+ :type Title: str
21138
21593
  :param _Code: 发票代码
21139
21594
  :type Code: str
21140
21595
  :param _Number: 发票号码
@@ -22940,29 +23395,17 @@ class RecognizeForeignPermanentResidentIdCardResponse(AbstractModel):
22940
23395
  self._RequestId = params.get("RequestId")
22941
23396
 
22942
23397
 
22943
- class RecognizeGeneralCardWarnRequest(AbstractModel):
22944
- """RecognizeGeneralCardWarn请求参数结构体
23398
+ class RecognizeFormulaOCRRequest(AbstractModel):
23399
+ """RecognizeFormulaOCR请求参数结构体
22945
23400
 
22946
23401
  """
22947
23402
 
22948
23403
  def __init__(self):
22949
23404
  r"""
22950
- :param _ImageUrl: 图片链接
23405
+ :param _ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
22951
23406
  :type ImageUrl: str
22952
- :param _ImageBase64: 图片base64
23407
+ :param _ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
22953
23408
  :type ImageBase64: str
22954
- :param _CardType: 卡证类型参数,包含以下范围:
22955
- default:通用卡证
22956
- idcard:身份证
22957
- passport:护照
22958
- bizlicense:营业执照
22959
- regcertificate:登记证书
22960
- residpermit:居住证
22961
- transpermit:通行证
22962
- signboard:门头照
22963
- bankcard:银行卡
22964
- drivinglicense:驾驶证、行驶证
22965
- :type CardType: str
22966
23409
  :param _IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
22967
23410
  :type IsPdf: bool
22968
23411
  :param _PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
@@ -22970,13 +23413,12 @@ drivinglicense:驾驶证、行驶证
22970
23413
  """
22971
23414
  self._ImageUrl = None
22972
23415
  self._ImageBase64 = None
22973
- self._CardType = None
22974
23416
  self._IsPdf = None
22975
23417
  self._PdfPageNumber = None
22976
23418
 
22977
23419
  @property
22978
23420
  def ImageUrl(self):
22979
- """图片链接
23421
+ """图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
22980
23422
  :rtype: str
22981
23423
  """
22982
23424
  return self._ImageUrl
@@ -22987,7 +23429,7 @@ drivinglicense:驾驶证、行驶证
22987
23429
 
22988
23430
  @property
22989
23431
  def ImageBase64(self):
22990
- """图片base64
23432
+ """图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
22991
23433
  :rtype: str
22992
23434
  """
22993
23435
  return self._ImageBase64
@@ -22996,27 +23438,6 @@ drivinglicense:驾驶证、行驶证
22996
23438
  def ImageBase64(self, ImageBase64):
22997
23439
  self._ImageBase64 = ImageBase64
22998
23440
 
22999
- @property
23000
- def CardType(self):
23001
- """卡证类型参数,包含以下范围:
23002
- default:通用卡证
23003
- idcard:身份证
23004
- passport:护照
23005
- bizlicense:营业执照
23006
- regcertificate:登记证书
23007
- residpermit:居住证
23008
- transpermit:通行证
23009
- signboard:门头照
23010
- bankcard:银行卡
23011
- drivinglicense:驾驶证、行驶证
23012
- :rtype: str
23013
- """
23014
- return self._CardType
23015
-
23016
- @CardType.setter
23017
- def CardType(self, CardType):
23018
- self._CardType = CardType
23019
-
23020
23441
  @property
23021
23442
  def IsPdf(self):
23022
23443
  """是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
@@ -23043,7 +23464,6 @@ drivinglicense:驾驶证、行驶证
23043
23464
  def _deserialize(self, params):
23044
23465
  self._ImageUrl = params.get("ImageUrl")
23045
23466
  self._ImageBase64 = params.get("ImageBase64")
23046
- self._CardType = params.get("CardType")
23047
23467
  self._IsPdf = params.get("IsPdf")
23048
23468
  self._PdfPageNumber = params.get("PdfPageNumber")
23049
23469
  memeber_set = set(params.keys())
@@ -23056,135 +23476,45 @@ drivinglicense:驾驶证、行驶证
23056
23476
 
23057
23477
 
23058
23478
 
23059
- class RecognizeGeneralCardWarnResponse(AbstractModel):
23060
- """RecognizeGeneralCardWarn返回参数结构体
23479
+ class RecognizeFormulaOCRResponse(AbstractModel):
23480
+ """RecognizeFormulaOCR返回参数结构体
23061
23481
 
23062
23482
  """
23063
23483
 
23064
23484
  def __init__(self):
23065
23485
  r"""
23066
- :param _CardType: 卡证类型参数,包含以下范围:
23067
- default:通用卡证
23068
- idcard:身份证
23069
- passport:护照
23070
- bizlicense:营业执照
23071
- regcertificate:登记证书
23072
- residpermit:居住证
23073
- transpermit:通行证
23074
- signboard:门头照
23075
- bankcard:银行卡
23076
- drivinglicense:驾驶证、行驶证
23077
- :type CardType: str
23078
- :param _Blur: 模糊信息
23079
- :type Blur: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23080
- :param _BorderIncomplete: 边框不完整信息
23081
- :type BorderIncomplete: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23082
- :param _Copy: 复印件信息
23083
- :type Copy: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23084
- :param _Ps: ps篡改信息
23085
- :type Ps: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23086
- :param _Reflection: 反光信息
23087
- :type Reflection: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23088
- :param _Reprint: 翻拍件信息
23089
- :type Reprint: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23486
+ :param _Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
23487
+ :type Angle: float
23488
+ :param _FormulaInfoList: 检测到的文本信息
23489
+ :type FormulaInfoList: list of TextFormulaInfo
23090
23490
  :param _RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
23091
23491
  :type RequestId: str
23092
23492
  """
23093
- self._CardType = None
23094
- self._Blur = None
23095
- self._BorderIncomplete = None
23096
- self._Copy = None
23097
- self._Ps = None
23098
- self._Reflection = None
23099
- self._Reprint = None
23493
+ self._Angle = None
23494
+ self._FormulaInfoList = None
23100
23495
  self._RequestId = None
23101
23496
 
23102
23497
  @property
23103
- def CardType(self):
23104
- """卡证类型参数,包含以下范围:
23105
- default:通用卡证
23106
- idcard:身份证
23107
- passport:护照
23108
- bizlicense:营业执照
23109
- regcertificate:登记证书
23110
- residpermit:居住证
23111
- transpermit:通行证
23112
- signboard:门头照
23113
- bankcard:银行卡
23114
- drivinglicense:驾驶证、行驶证
23115
- :rtype: str
23116
- """
23117
- return self._CardType
23118
-
23119
- @CardType.setter
23120
- def CardType(self, CardType):
23121
- self._CardType = CardType
23122
-
23123
- @property
23124
- def Blur(self):
23125
- """模糊信息
23126
- :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23127
- """
23128
- return self._Blur
23129
-
23130
- @Blur.setter
23131
- def Blur(self, Blur):
23132
- self._Blur = Blur
23133
-
23134
- @property
23135
- def BorderIncomplete(self):
23136
- """边框不完整信息
23137
- :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23138
- """
23139
- return self._BorderIncomplete
23140
-
23141
- @BorderIncomplete.setter
23142
- def BorderIncomplete(self, BorderIncomplete):
23143
- self._BorderIncomplete = BorderIncomplete
23144
-
23145
- @property
23146
- def Copy(self):
23147
- """复印件信息
23148
- :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23149
- """
23150
- return self._Copy
23151
-
23152
- @Copy.setter
23153
- def Copy(self, Copy):
23154
- self._Copy = Copy
23155
-
23156
- @property
23157
- def Ps(self):
23158
- """ps篡改信息
23159
- :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23160
- """
23161
- return self._Ps
23162
-
23163
- @Ps.setter
23164
- def Ps(self, Ps):
23165
- self._Ps = Ps
23166
-
23167
- @property
23168
- def Reflection(self):
23169
- """反光信息
23170
- :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23498
+ def Angle(self):
23499
+ """图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
23500
+ :rtype: float
23171
23501
  """
23172
- return self._Reflection
23502
+ return self._Angle
23173
23503
 
23174
- @Reflection.setter
23175
- def Reflection(self, Reflection):
23176
- self._Reflection = Reflection
23504
+ @Angle.setter
23505
+ def Angle(self, Angle):
23506
+ self._Angle = Angle
23177
23507
 
23178
23508
  @property
23179
- def Reprint(self):
23180
- """翻拍件信息
23181
- :rtype: :class:`tencentcloud.ocr.v20181119.models.GeneralCardWarnInfo`
23509
+ def FormulaInfoList(self):
23510
+ """检测到的文本信息
23511
+ :rtype: list of TextFormulaInfo
23182
23512
  """
23183
- return self._Reprint
23513
+ return self._FormulaInfoList
23184
23514
 
23185
- @Reprint.setter
23186
- def Reprint(self, Reprint):
23187
- self._Reprint = Reprint
23515
+ @FormulaInfoList.setter
23516
+ def FormulaInfoList(self, FormulaInfoList):
23517
+ self._FormulaInfoList = FormulaInfoList
23188
23518
 
23189
23519
  @property
23190
23520
  def RequestId(self):
@@ -23199,25 +23529,13 @@ drivinglicense:驾驶证、行驶证
23199
23529
 
23200
23530
 
23201
23531
  def _deserialize(self, params):
23202
- self._CardType = params.get("CardType")
23203
- if params.get("Blur") is not None:
23204
- self._Blur = GeneralCardWarnInfo()
23205
- self._Blur._deserialize(params.get("Blur"))
23206
- if params.get("BorderIncomplete") is not None:
23207
- self._BorderIncomplete = GeneralCardWarnInfo()
23208
- self._BorderIncomplete._deserialize(params.get("BorderIncomplete"))
23209
- if params.get("Copy") is not None:
23210
- self._Copy = GeneralCardWarnInfo()
23211
- self._Copy._deserialize(params.get("Copy"))
23212
- if params.get("Ps") is not None:
23213
- self._Ps = GeneralCardWarnInfo()
23214
- self._Ps._deserialize(params.get("Ps"))
23215
- if params.get("Reflection") is not None:
23216
- self._Reflection = GeneralCardWarnInfo()
23217
- self._Reflection._deserialize(params.get("Reflection"))
23218
- if params.get("Reprint") is not None:
23219
- self._Reprint = GeneralCardWarnInfo()
23220
- self._Reprint._deserialize(params.get("Reprint"))
23532
+ self._Angle = params.get("Angle")
23533
+ if params.get("FormulaInfoList") is not None:
23534
+ self._FormulaInfoList = []
23535
+ for item in params.get("FormulaInfoList"):
23536
+ obj = TextFormulaInfo()
23537
+ obj._deserialize(item)
23538
+ self._FormulaInfoList.append(obj)
23221
23539
  self._RequestId = params.get("RequestId")
23222
23540
 
23223
23541
 
@@ -26876,6 +27194,159 @@ class ResidencePermitInfo(AbstractModel):
26876
27194
 
26877
27195
 
26878
27196
 
27197
+ class ResultList(AbstractModel):
27198
+ """结果列表
27199
+
27200
+ """
27201
+
27202
+ def __init__(self):
27203
+ r"""
27204
+ :param _Question: 题干
27205
+ 注意:此字段可能返回 null,表示取不到有效值。
27206
+ :type Question: list of Element
27207
+ :param _Option: 选项
27208
+ 注意:此字段可能返回 null,表示取不到有效值。
27209
+ :type Option: list of Element
27210
+ :param _Figure: 插图
27211
+ 注意:此字段可能返回 null,表示取不到有效值。
27212
+ :type Figure: list of Element
27213
+ :param _Table: 表格
27214
+ 注意:此字段可能返回 null,表示取不到有效值。
27215
+ :type Table: list of Element
27216
+ :param _Answer: 答案
27217
+ 注意:此字段可能返回 null,表示取不到有效值。
27218
+ :type Answer: list of Element
27219
+ :param _Coord: 整题的坐标
27220
+ 注意:此字段可能返回 null,表示取不到有效值。
27221
+ :type Coord: list of Polygon
27222
+ """
27223
+ self._Question = None
27224
+ self._Option = None
27225
+ self._Figure = None
27226
+ self._Table = None
27227
+ self._Answer = None
27228
+ self._Coord = None
27229
+
27230
+ @property
27231
+ def Question(self):
27232
+ """题干
27233
+ 注意:此字段可能返回 null,表示取不到有效值。
27234
+ :rtype: list of Element
27235
+ """
27236
+ return self._Question
27237
+
27238
+ @Question.setter
27239
+ def Question(self, Question):
27240
+ self._Question = Question
27241
+
27242
+ @property
27243
+ def Option(self):
27244
+ """选项
27245
+ 注意:此字段可能返回 null,表示取不到有效值。
27246
+ :rtype: list of Element
27247
+ """
27248
+ return self._Option
27249
+
27250
+ @Option.setter
27251
+ def Option(self, Option):
27252
+ self._Option = Option
27253
+
27254
+ @property
27255
+ def Figure(self):
27256
+ """插图
27257
+ 注意:此字段可能返回 null,表示取不到有效值。
27258
+ :rtype: list of Element
27259
+ """
27260
+ return self._Figure
27261
+
27262
+ @Figure.setter
27263
+ def Figure(self, Figure):
27264
+ self._Figure = Figure
27265
+
27266
+ @property
27267
+ def Table(self):
27268
+ """表格
27269
+ 注意:此字段可能返回 null,表示取不到有效值。
27270
+ :rtype: list of Element
27271
+ """
27272
+ return self._Table
27273
+
27274
+ @Table.setter
27275
+ def Table(self, Table):
27276
+ self._Table = Table
27277
+
27278
+ @property
27279
+ def Answer(self):
27280
+ """答案
27281
+ 注意:此字段可能返回 null,表示取不到有效值。
27282
+ :rtype: list of Element
27283
+ """
27284
+ return self._Answer
27285
+
27286
+ @Answer.setter
27287
+ def Answer(self, Answer):
27288
+ self._Answer = Answer
27289
+
27290
+ @property
27291
+ def Coord(self):
27292
+ """整题的坐标
27293
+ 注意:此字段可能返回 null,表示取不到有效值。
27294
+ :rtype: list of Polygon
27295
+ """
27296
+ return self._Coord
27297
+
27298
+ @Coord.setter
27299
+ def Coord(self, Coord):
27300
+ self._Coord = Coord
27301
+
27302
+
27303
+ def _deserialize(self, params):
27304
+ if params.get("Question") is not None:
27305
+ self._Question = []
27306
+ for item in params.get("Question"):
27307
+ obj = Element()
27308
+ obj._deserialize(item)
27309
+ self._Question.append(obj)
27310
+ if params.get("Option") is not None:
27311
+ self._Option = []
27312
+ for item in params.get("Option"):
27313
+ obj = Element()
27314
+ obj._deserialize(item)
27315
+ self._Option.append(obj)
27316
+ if params.get("Figure") is not None:
27317
+ self._Figure = []
27318
+ for item in params.get("Figure"):
27319
+ obj = Element()
27320
+ obj._deserialize(item)
27321
+ self._Figure.append(obj)
27322
+ if params.get("Table") is not None:
27323
+ self._Table = []
27324
+ for item in params.get("Table"):
27325
+ obj = Element()
27326
+ obj._deserialize(item)
27327
+ self._Table.append(obj)
27328
+ if params.get("Answer") is not None:
27329
+ self._Answer = []
27330
+ for item in params.get("Answer"):
27331
+ obj = Element()
27332
+ obj._deserialize(item)
27333
+ self._Answer.append(obj)
27334
+ if params.get("Coord") is not None:
27335
+ self._Coord = []
27336
+ for item in params.get("Coord"):
27337
+ obj = Polygon()
27338
+ obj._deserialize(item)
27339
+ self._Coord.append(obj)
27340
+ memeber_set = set(params.keys())
27341
+ for name, value in vars(self).items():
27342
+ property_name = name[1:]
27343
+ if property_name in memeber_set:
27344
+ memeber_set.remove(property_name)
27345
+ if len(memeber_set) > 0:
27346
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
27347
+
27348
+
27349
+
26879
27350
  class RideHailingDriverLicenseOCRRequest(AbstractModel):
26880
27351
  """RideHailingDriverLicenseOCR请求参数结构体
26881
27352
 
@@ -31622,6 +32093,59 @@ class TextFormula(AbstractModel):
31622
32093
 
31623
32094
 
31624
32095
 
32096
+ class TextFormulaInfo(AbstractModel):
32097
+ """公式识别结果
32098
+
32099
+ """
32100
+
32101
+ def __init__(self):
32102
+ r"""
32103
+ :param _DetectedText: 识别出的文本行内容
32104
+ :type DetectedText: str
32105
+ :param _Coord: 识别出的文本行内容坐标
32106
+ :type Coord: :class:`tencentcloud.ocr.v20181119.models.Polygon`
32107
+ """
32108
+ self._DetectedText = None
32109
+ self._Coord = None
32110
+
32111
+ @property
32112
+ def DetectedText(self):
32113
+ """识别出的文本行内容
32114
+ :rtype: str
32115
+ """
32116
+ return self._DetectedText
32117
+
32118
+ @DetectedText.setter
32119
+ def DetectedText(self, DetectedText):
32120
+ self._DetectedText = DetectedText
32121
+
32122
+ @property
32123
+ def Coord(self):
32124
+ """识别出的文本行内容坐标
32125
+ :rtype: :class:`tencentcloud.ocr.v20181119.models.Polygon`
32126
+ """
32127
+ return self._Coord
32128
+
32129
+ @Coord.setter
32130
+ def Coord(self, Coord):
32131
+ self._Coord = Coord
32132
+
32133
+
32134
+ def _deserialize(self, params):
32135
+ self._DetectedText = params.get("DetectedText")
32136
+ if params.get("Coord") is not None:
32137
+ self._Coord = Polygon()
32138
+ self._Coord._deserialize(params.get("Coord"))
32139
+ memeber_set = set(params.keys())
32140
+ for name, value in vars(self).items():
32141
+ property_name = name[1:]
32142
+ if property_name in memeber_set:
32143
+ memeber_set.remove(property_name)
32144
+ if len(memeber_set) > 0:
32145
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
32146
+
32147
+
32148
+
31625
32149
  class TextGeneralHandwriting(AbstractModel):
31626
32150
  """文字识别结果
31627
32151