tencentcloud-sdk-ocr 3.0.512 → 3.0.513

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 251f4e8ee78db4b90654f7da584f43995d897ed0
4
- data.tar.gz: 3b9f48fd8649325d2ebcb0a17ce94fa27aab324b
3
+ metadata.gz: 727eae4827942084a042f72359dd2a18bbd50d73
4
+ data.tar.gz: 08c554e0100dae66e4c3850feb9325d73ed7ed79
5
5
  SHA512:
6
- metadata.gz: 79dcf2c3ed3dc2e953478407c74c65d433f8f92e03c26d9b3d395db9415f9d9863a2d449a0081485e2b43887c9a3e87a437702689bfedbecbdfb277238986ab4
7
- data.tar.gz: 5ae414af091861c28e7aba0cdd7b6c3a92f6430e3799a5d17efdc224666842f563a5e467effdb031cb7db8e6dcc5334b1a8b23ebb38fb2efb7d131990f061a29
6
+ metadata.gz: f181d0a7d7efb1633a94c2d2f1dddc785c1efd79fc37a8035f2d2c6fbcf2a8de79dfb82747ca180e85629705bb72f8bc00f20c1f4df06c3ddddf34514a17c773
7
+ data.tar.gz: c420961b20ac4358797295fe776eef40c2b8b02c16f931058e8f5102bf0807831e1e20a0091f1e200ab63a07195e27921c79c620b9a78096ca16c7dc26e8590d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.512
1
+ 3.0.513
@@ -252,6 +252,32 @@ module TencentCloud
252
252
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
253
253
  end
254
254
 
255
+ # 本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
256
+
257
+ # 智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
258
+
259
+ # @param request: Request instance for CreateAIFormTask.
260
+ # @type request: :class:`Tencentcloud::ocr::V20181119::CreateAIFormTaskRequest`
261
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::CreateAIFormTaskResponse`
262
+ def CreateAIFormTask(request)
263
+ body = send_request('CreateAIFormTask', request.serialize)
264
+ response = JSON.parse(body)
265
+ if response['Response'].key?('Error') == false
266
+ model = CreateAIFormTaskResponse.new
267
+ model.deserialize(response['Response'])
268
+ model
269
+ else
270
+ code = response['Response']['Error']['Code']
271
+ message = response['Response']['Error']['Message']
272
+ reqid = response['Response']['RequestId']
273
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
274
+ end
275
+ rescue TencentCloud::Common::TencentCloudSDKException => e
276
+ raise e
277
+ rescue StandardError => e
278
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
279
+ end
280
+
255
281
  # 本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
256
282
 
257
283
  # 驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位
@@ -816,6 +842,30 @@ module TencentCloud
816
842
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
817
843
  end
818
844
 
845
+ # 支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超连接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
846
+
847
+ # @param request: Request instance for GetTaskState.
848
+ # @type request: :class:`Tencentcloud::ocr::V20181119::GetTaskStateRequest`
849
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::GetTaskStateResponse`
850
+ def GetTaskState(request)
851
+ body = send_request('GetTaskState', request.serialize)
852
+ response = JSON.parse(body)
853
+ if response['Response'].key?('Error') == false
854
+ model = GetTaskStateResponse.new
855
+ model.deserialize(response['Response'])
856
+ model
857
+ else
858
+ code = response['Response']['Error']['Code']
859
+ message = response['Response']['Error']['Message']
860
+ reqid = response['Response']['RequestId']
861
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
862
+ end
863
+ rescue TencentCloud::Common::TencentCloudSDKException => e
864
+ raise e
865
+ rescue StandardError => e
866
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
867
+ end
868
+
819
869
  # 本接口支持中国香港身份证人像面中关键字段的识别,包括中文姓名、英文姓名、姓名电码、出生日期、性别、证件符号、首次签发日期、最近领用日期、身份证号、是否是永久性居民身份证;具备防伪识别、人像照片裁剪等扩展功能。
820
870
 
821
871
  # 默认接口请求频率限制:5次/秒。
@@ -1525,6 +1575,32 @@ module TencentCloud
1525
1575
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1526
1576
  end
1527
1577
 
1578
+ # 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
1579
+
1580
+ # 默认接口请求频率限制:2次/秒。
1581
+
1582
+ # @param request: Request instance for RecognizeTableAccurateOCR.
1583
+ # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRRequest`
1584
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRResponse`
1585
+ def RecognizeTableAccurateOCR(request)
1586
+ body = send_request('RecognizeTableAccurateOCR', request.serialize)
1587
+ response = JSON.parse(body)
1588
+ if response['Response'].key?('Error') == false
1589
+ model = RecognizeTableAccurateOCRResponse.new
1590
+ model.deserialize(response['Response'])
1591
+ model
1592
+ else
1593
+ code = response['Response']['Error']['Code']
1594
+ message = response['Response']['Error']['Message']
1595
+ reqid = response['Response']['RequestId']
1596
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1597
+ end
1598
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1599
+ raise e
1600
+ rescue StandardError => e
1601
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1602
+ end
1603
+
1528
1604
  # 本接口支持中英文图片/ PDF内常规表格、无线表格、多表格的检测和识别,支持日文有线表格识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。
1529
1605
 
1530
1606
  # @param request: Request instance for RecognizeTableOCR.
@@ -973,6 +973,63 @@ module TencentCloud
973
973
  end
974
974
  end
975
975
 
976
+ # CreateAIFormTask请求参数结构体
977
+ class CreateAIFormTaskRequest < TencentCloud::Common::AbstractModel
978
+ # @param FileList: 多个文件的URL列表
979
+ # @type FileList: Array
980
+ # @param FirstNotes: 备注信息1
981
+ # @type FirstNotes: String
982
+ # @param SecondNotes: 备注信息2
983
+ # @type SecondNotes: String
984
+
985
+ attr_accessor :FileList, :FirstNotes, :SecondNotes
986
+
987
+ def initialize(filelist=nil, firstnotes=nil, secondnotes=nil)
988
+ @FileList = filelist
989
+ @FirstNotes = firstnotes
990
+ @SecondNotes = secondnotes
991
+ end
992
+
993
+ def deserialize(params)
994
+ unless params['FileList'].nil?
995
+ @FileList = []
996
+ params['FileList'].each do |i|
997
+ smartformfileurl_tmp = SmartFormFileUrl.new
998
+ smartformfileurl_tmp.deserialize(i)
999
+ @FileList << smartformfileurl_tmp
1000
+ end
1001
+ end
1002
+ @FirstNotes = params['FirstNotes']
1003
+ @SecondNotes = params['SecondNotes']
1004
+ end
1005
+ end
1006
+
1007
+ # CreateAIFormTask返回参数结构体
1008
+ class CreateAIFormTaskResponse < TencentCloud::Common::AbstractModel
1009
+ # @param TaskId: 本次识别任务的唯一身份ID
1010
+ # 注意:此字段可能返回 null,表示取不到有效值。
1011
+ # @type TaskId: String
1012
+ # @param OperateUrl: 本次识别任务的操作URL,有效期自生成之时起共24小时
1013
+ # 注意:此字段可能返回 null,表示取不到有效值。
1014
+ # @type OperateUrl: String
1015
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1016
+ # @type RequestId: String
1017
+
1018
+ attr_accessor :TaskId, :OperateUrl, :RequestId
1019
+
1020
+ def initialize(taskid=nil, operateurl=nil, requestid=nil)
1021
+ @TaskId = taskid
1022
+ @OperateUrl = operateurl
1023
+ @RequestId = requestid
1024
+ end
1025
+
1026
+ def deserialize(params)
1027
+ @TaskId = params['TaskId']
1028
+ @OperateUrl = params['OperateUrl']
1029
+ @RequestId = params['RequestId']
1030
+ end
1031
+ end
1032
+
976
1033
  # 企业四要素核验结果
977
1034
  class Detail < TencentCloud::Common::AbstractModel
978
1035
  # @param Result: 企业四要素核验结果状态码
@@ -2252,6 +2309,47 @@ module TencentCloud
2252
2309
  end
2253
2310
  end
2254
2311
 
2312
+ # GetTaskState请求参数结构体
2313
+ class GetTaskStateRequest < TencentCloud::Common::AbstractModel
2314
+ # @param TaskId: 智慧表单任务唯一身份ID
2315
+ # @type TaskId: String
2316
+
2317
+ attr_accessor :TaskId
2318
+
2319
+ def initialize(taskid=nil)
2320
+ @TaskId = taskid
2321
+ end
2322
+
2323
+ def deserialize(params)
2324
+ @TaskId = params['TaskId']
2325
+ end
2326
+ end
2327
+
2328
+ # GetTaskState返回参数结构体
2329
+ class GetTaskStateResponse < TencentCloud::Common::AbstractModel
2330
+ # @param TaskState: 1:任务识别完成,还未提交
2331
+ # 2:任务已手动关闭
2332
+ # 3:任务已提交
2333
+ # 4:任务识别中
2334
+ # 5:超时:任务超过了可操作的24H时限
2335
+ # 6:任务识别失败
2336
+ # @type TaskState: Integer
2337
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2338
+ # @type RequestId: String
2339
+
2340
+ attr_accessor :TaskState, :RequestId
2341
+
2342
+ def initialize(taskstate=nil, requestid=nil)
2343
+ @TaskState = taskstate
2344
+ @RequestId = requestid
2345
+ end
2346
+
2347
+ def deserialize(params)
2348
+ @TaskState = params['TaskState']
2349
+ @RequestId = params['RequestId']
2350
+ end
2351
+ end
2352
+
2255
2353
  # HKIDCardOCR请求参数结构体
2256
2354
  class HKIDCardOCRRequest < TencentCloud::Common::AbstractModel
2257
2355
  # @param DetectFake: 是否鉴伪。
@@ -5139,6 +5237,76 @@ module TencentCloud
5139
5237
  end
5140
5238
  end
5141
5239
 
5240
+ # RecognizeTableAccurateOCR请求参数结构体
5241
+ class RecognizeTableAccurateOCRRequest < TencentCloud::Common::AbstractModel
5242
+ # @param ImageBase64: 图片/PDF的 Base64 值。
5243
+ # 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
5244
+ # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5245
+ # @type ImageBase64: String
5246
+ # @param ImageUrl: 图片/PDF的 Url 地址。
5247
+ # 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
5248
+ # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5249
+ # @type ImageUrl: String
5250
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
5251
+ # @type PdfPageNumber: Integer
5252
+
5253
+ attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber
5254
+
5255
+ def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil)
5256
+ @ImageBase64 = imagebase64
5257
+ @ImageUrl = imageurl
5258
+ @PdfPageNumber = pdfpagenumber
5259
+ end
5260
+
5261
+ def deserialize(params)
5262
+ @ImageBase64 = params['ImageBase64']
5263
+ @ImageUrl = params['ImageUrl']
5264
+ @PdfPageNumber = params['PdfPageNumber']
5265
+ end
5266
+ end
5267
+
5268
+ # RecognizeTableAccurateOCR返回参数结构体
5269
+ class RecognizeTableAccurateOCRResponse < TencentCloud::Common::AbstractModel
5270
+ # @param TableDetections: 检测到的文本信息,具体内容请点击左侧链接。
5271
+ # 注意:此字段可能返回 null,表示取不到有效值。
5272
+ # @type TableDetections: Array
5273
+ # @param Data: Base64 编码后的 Excel 数据。
5274
+ # @type Data: String
5275
+ # @param PdfPageSize: 图片为PDF时,返回PDF的总页数,默认为0
5276
+ # 注意:此字段可能返回 null,表示取不到有效值。
5277
+ # @type PdfPageSize: Integer
5278
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为0°,统一以逆时针方向旋转,逆时针为负,角度范围为-360°至0°。
5279
+ # 注意:此字段可能返回 null,表示取不到有效值。
5280
+ # @type Angle: Float
5281
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5282
+ # @type RequestId: String
5283
+
5284
+ attr_accessor :TableDetections, :Data, :PdfPageSize, :Angle, :RequestId
5285
+
5286
+ def initialize(tabledetections=nil, data=nil, pdfpagesize=nil, angle=nil, requestid=nil)
5287
+ @TableDetections = tabledetections
5288
+ @Data = data
5289
+ @PdfPageSize = pdfpagesize
5290
+ @Angle = angle
5291
+ @RequestId = requestid
5292
+ end
5293
+
5294
+ def deserialize(params)
5295
+ unless params['TableDetections'].nil?
5296
+ @TableDetections = []
5297
+ params['TableDetections'].each do |i|
5298
+ tableinfo_tmp = TableInfo.new
5299
+ tableinfo_tmp.deserialize(i)
5300
+ @TableDetections << tableinfo_tmp
5301
+ end
5302
+ end
5303
+ @Data = params['Data']
5304
+ @PdfPageSize = params['PdfPageSize']
5305
+ @Angle = params['Angle']
5306
+ @RequestId = params['RequestId']
5307
+ end
5308
+ end
5309
+
5142
5310
  # RecognizeTableOCR请求参数结构体
5143
5311
  class RecognizeTableOCRRequest < TencentCloud::Common::AbstractModel
5144
5312
  # @param ImageBase64: 图片/PDF的 Base64 值。
@@ -5222,17 +5390,22 @@ module TencentCloud
5222
5390
  # @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
5223
5391
  # 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
5224
5392
  # @type ImageUrl: String
5393
+ # @param CropPortrait: 图片开关。默认为false,不返回泰国身份证头像照片的base64编码。
5394
+ # 设置为true时,返回旋转矫正后的泰国身份证头像照片的base64编码
5395
+ # @type CropPortrait: Boolean
5225
5396
 
5226
- attr_accessor :ImageBase64, :ImageUrl
5397
+ attr_accessor :ImageBase64, :ImageUrl, :CropPortrait
5227
5398
 
5228
- def initialize(imagebase64=nil, imageurl=nil)
5399
+ def initialize(imagebase64=nil, imageurl=nil, cropportrait=nil)
5229
5400
  @ImageBase64 = imagebase64
5230
5401
  @ImageUrl = imageurl
5402
+ @CropPortrait = cropportrait
5231
5403
  end
5232
5404
 
5233
5405
  def deserialize(params)
5234
5406
  @ImageBase64 = params['ImageBase64']
5235
5407
  @ImageUrl = params['ImageUrl']
5408
+ @CropPortrait = params['CropPortrait']
5236
5409
  end
5237
5410
  end
5238
5411
 
@@ -5254,12 +5427,14 @@ module TencentCloud
5254
5427
  # @type ExpirationDate: String
5255
5428
  # @param EnLastName: 英文姓名
5256
5429
  # @type EnLastName: String
5430
+ # @param PortraitImage: 证件人像照片抠取
5431
+ # @type PortraitImage: String
5257
5432
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5258
5433
  # @type RequestId: String
5259
5434
 
5260
- attr_accessor :ID, :ThaiName, :EnFirstName, :Address, :Birthday, :IssueDate, :ExpirationDate, :EnLastName, :RequestId
5435
+ attr_accessor :ID, :ThaiName, :EnFirstName, :Address, :Birthday, :IssueDate, :ExpirationDate, :EnLastName, :PortraitImage, :RequestId
5261
5436
 
5262
- def initialize(id=nil, thainame=nil, enfirstname=nil, address=nil, birthday=nil, issuedate=nil, expirationdate=nil, enlastname=nil, requestid=nil)
5437
+ def initialize(id=nil, thainame=nil, enfirstname=nil, address=nil, birthday=nil, issuedate=nil, expirationdate=nil, enlastname=nil, portraitimage=nil, requestid=nil)
5263
5438
  @ID = id
5264
5439
  @ThaiName = thainame
5265
5440
  @EnFirstName = enfirstname
@@ -5268,6 +5443,7 @@ module TencentCloud
5268
5443
  @IssueDate = issuedate
5269
5444
  @ExpirationDate = expirationdate
5270
5445
  @EnLastName = enlastname
5446
+ @PortraitImage = portraitimage
5271
5447
  @RequestId = requestid
5272
5448
  end
5273
5449
 
@@ -5280,6 +5456,7 @@ module TencentCloud
5280
5456
  @IssueDate = params['IssueDate']
5281
5457
  @ExpirationDate = params['ExpirationDate']
5282
5458
  @EnLastName = params['EnLastName']
5459
+ @PortraitImage = params['PortraitImage']
5283
5460
  @RequestId = params['RequestId']
5284
5461
  end
5285
5462
  end
@@ -5877,6 +6054,17 @@ module TencentCloud
5877
6054
  end
5878
6055
  end
5879
6056
 
6057
+ # 智慧表单上传文件信息
6058
+ class SmartFormFileUrl < TencentCloud::Common::AbstractModel
6059
+
6060
+
6061
+ def initialize()
6062
+ end
6063
+
6064
+ def deserialize(params)
6065
+ end
6066
+ end
6067
+
5880
6068
  # SmartStructuralOCR请求参数结构体
5881
6069
  class SmartStructuralOCRRequest < TencentCloud::Common::AbstractModel
5882
6070
  # @param ImageUrl: 图片的 Url 地址。
@@ -6057,6 +6245,57 @@ module TencentCloud
6057
6245
  end
6058
6246
  end
6059
6247
 
6248
+ # 单元格数据
6249
+ class TableCellInfo < TencentCloud::Common::AbstractModel
6250
+ # @param ColTl: 单元格左上角的列索引
6251
+ # @type ColTl: Integer
6252
+ # @param RowTl: 单元格左上角的行索引
6253
+ # @type RowTl: Integer
6254
+ # @param ColBr: 单元格右下角的列索引
6255
+ # @type ColBr: Integer
6256
+ # @param RowBr: 单元格右下角的行索引
6257
+ # @type RowBr: Integer
6258
+ # @param Text: 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
6259
+ # @type Text: String
6260
+ # @param Type: 单元格类型
6261
+ # @type Type: String
6262
+ # @param Confidence: 单元格置信度
6263
+ # @type Confidence: Float
6264
+ # @param Polygon: 单元格在图像中的四点坐标
6265
+ # @type Polygon: Array
6266
+
6267
+ attr_accessor :ColTl, :RowTl, :ColBr, :RowBr, :Text, :Type, :Confidence, :Polygon
6268
+
6269
+ def initialize(coltl=nil, rowtl=nil, colbr=nil, rowbr=nil, text=nil, type=nil, confidence=nil, polygon=nil)
6270
+ @ColTl = coltl
6271
+ @RowTl = rowtl
6272
+ @ColBr = colbr
6273
+ @RowBr = rowbr
6274
+ @Text = text
6275
+ @Type = type
6276
+ @Confidence = confidence
6277
+ @Polygon = polygon
6278
+ end
6279
+
6280
+ def deserialize(params)
6281
+ @ColTl = params['ColTl']
6282
+ @RowTl = params['RowTl']
6283
+ @ColBr = params['ColBr']
6284
+ @RowBr = params['RowBr']
6285
+ @Text = params['Text']
6286
+ @Type = params['Type']
6287
+ @Confidence = params['Confidence']
6288
+ unless params['Polygon'].nil?
6289
+ @Polygon = []
6290
+ params['Polygon'].each do |i|
6291
+ coord_tmp = Coord.new
6292
+ coord_tmp.deserialize(i)
6293
+ @Polygon << coord_tmp
6294
+ end
6295
+ end
6296
+ end
6297
+ end
6298
+
6060
6299
  # 表格内容检测
6061
6300
  class TableDetectInfo < TencentCloud::Common::AbstractModel
6062
6301
  # @param Cells: 单元格内容
@@ -6113,6 +6352,49 @@ module TencentCloud
6113
6352
  end
6114
6353
  end
6115
6354
 
6355
+ # 表格内容检测
6356
+ class TableInfo < TencentCloud::Common::AbstractModel
6357
+ # @param Cells: 单元格内容
6358
+ # 注意:此字段可能返回 null,表示取不到有效值。
6359
+ # @type Cells: Array
6360
+ # @param Type: 图像中的文本块类型,0 为非表格文本,
6361
+ # 1 为有线表格,2 为无线表格
6362
+ # 注意:此字段可能返回 null,表示取不到有效值。
6363
+ # @type Type: Integer
6364
+ # @param TableCoordPoint: 表格主体四个顶点坐标(依次为左上角,
6365
+ # 右上角,右下角,左下角)
6366
+ # 注意:此字段可能返回 null,表示取不到有效值。
6367
+ # @type TableCoordPoint: Array
6368
+
6369
+ attr_accessor :Cells, :Type, :TableCoordPoint
6370
+
6371
+ def initialize(cells=nil, type=nil, tablecoordpoint=nil)
6372
+ @Cells = cells
6373
+ @Type = type
6374
+ @TableCoordPoint = tablecoordpoint
6375
+ end
6376
+
6377
+ def deserialize(params)
6378
+ unless params['Cells'].nil?
6379
+ @Cells = []
6380
+ params['Cells'].each do |i|
6381
+ tablecellinfo_tmp = TableCellInfo.new
6382
+ tablecellinfo_tmp.deserialize(i)
6383
+ @Cells << tablecellinfo_tmp
6384
+ end
6385
+ end
6386
+ @Type = params['Type']
6387
+ unless params['TableCoordPoint'].nil?
6388
+ @TableCoordPoint = []
6389
+ params['TableCoordPoint'].each do |i|
6390
+ coord_tmp = Coord.new
6391
+ coord_tmp.deserialize(i)
6392
+ @TableCoordPoint << coord_tmp
6393
+ end
6394
+ end
6395
+ end
6396
+ end
6397
+
6116
6398
  # TableOCR请求参数结构体
6117
6399
  class TableOCRRequest < TencentCloud::Common::AbstractModel
6118
6400
  # @param ImageBase64: 图片的 Base64 值。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ocr
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.512
4
+ version: 3.0.513
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-20 00:00:00.000000000 Z
11
+ date: 2023-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common