tencentcloud-sdk-ocr 3.0.1135 → 3.0.1139

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: 7816e17d7c3e1945d19b5a90a8de1cfe9f8d8e69
4
- data.tar.gz: 4cd74cfba33009987171c2347d2100752db034d5
3
+ metadata.gz: 6c3d71209ba7087abe1eb8122912864fa927703b
4
+ data.tar.gz: 5103b1563cd68c7066d3cc0dcc212dd86c9200e3
5
5
  SHA512:
6
- metadata.gz: f2503873376563346de3593bd109e8964f183197969bb011fde31726ff49565774e7c0ceae4537d964daf6cda9b2a25fd95dc2ec290fd4d22467f7ac4ff06f97
7
- data.tar.gz: e86f6681fafe0fb824eeb9e92dd687f27a9ef7b927c2f71407ef6616b1ebf0da817986caadcbfe3bd2864c36813d67a8e46865d6cbd3a34a482e6197eaf79ad4
6
+ metadata.gz: 1f46dc29ba7045de44c24438089cc5497d2f1bf0638a0f0fd5489c4ea7a97ff5ba562b0194a543ecc95d1b6e040554460a4b8b13a55d29181ad6e6b8e70aa114
7
+ data.tar.gz: 6fdd5686edcb4a7497476c21bd9e6a8d9a2554fbfce08d7cec951a806575ad2a6d4d48b1ecf83d943ff3e5f2a66660a69b62ad3720e7b88f849684011119b2d5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1135
1
+ 3.0.1139
@@ -161,6 +161,7 @@ module TencentCloud
161
161
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
162
162
  end
163
163
 
164
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
164
165
  # 本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
165
166
 
166
167
  # 默认接口请求频率限制:5次/秒。
@@ -290,6 +291,30 @@ module TencentCloud
290
291
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
291
292
  end
292
293
 
294
+ # 用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
295
+
296
+ # @param request: Request instance for DescribeExtractDocAgentJob.
297
+ # @type request: :class:`Tencentcloud::ocr::V20181119::DescribeExtractDocAgentJobRequest`
298
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::DescribeExtractDocAgentJobResponse`
299
+ def DescribeExtractDocAgentJob(request)
300
+ body = send_request('DescribeExtractDocAgentJob', request.serialize)
301
+ response = JSON.parse(body)
302
+ if response['Response'].key?('Error') == false
303
+ model = DescribeExtractDocAgentJobResponse.new
304
+ model.deserialize(response['Response'])
305
+ model
306
+ else
307
+ code = response['Response']['Error']['Code']
308
+ message = response['Response']['Error']['Message']
309
+ reqid = response['Response']['RequestId']
310
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
311
+ end
312
+ rescue TencentCloud::Common::TencentCloudSDKException => e
313
+ raise e
314
+ rescue StandardError => e
315
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
316
+ end
317
+
293
318
  # 本接口支持驾驶证主页和副页所有字段的自动定位与识别,重点字段的识别准确度达到99%以上。
294
319
 
295
320
  # 驾驶证主页:包括证号、姓名、性别、国籍、住址、出生日期、初次领证日期、准驾车型、有效期限、发证单位
@@ -324,6 +349,7 @@ module TencentCloud
324
349
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
325
350
  end
326
351
 
352
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
327
353
  # 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
328
354
 
329
355
  # 默认接口请求频率限制:5次/秒。
@@ -536,6 +562,7 @@ module TencentCloud
536
562
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
537
563
  end
538
564
 
565
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
539
566
  # 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
540
567
 
541
568
  # 默认接口请求频率限制:5次/秒。
@@ -562,6 +589,7 @@ module TencentCloud
562
589
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
563
590
  end
564
591
 
592
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
565
593
  # 本接口支持常见银行票据的自动分类和识别。切片识别包括金融行业常见票据的重要切片字段识别,包括金额、账号、日期、凭证号码等。(金融票据切片:金融票据中待识别字段及其周围局部区域的裁剪图像。)
566
594
 
567
595
  # 默认接口请求频率限制:5次/秒。
@@ -588,6 +616,7 @@ module TencentCloud
588
616
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
589
617
  end
590
618
 
619
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
591
620
  # 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
592
621
 
593
622
  # 默认接口请求频率限制:5次/秒。
@@ -1158,6 +1187,7 @@ module TencentCloud
1158
1187
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1159
1188
  end
1160
1189
 
1190
+ # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1161
1191
  # 本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
1162
1192
 
1163
1193
  # 默认接口请求频率限制:5次/秒。
@@ -1210,6 +1240,7 @@ module TencentCloud
1210
1240
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1211
1241
  end
1212
1242
 
1243
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
1213
1244
  # 本接口支持对通用机打发票的发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、购买方地址、电话、销售方地址、电话、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、货物或应税劳务、服务名称、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类等字段的识别。
1214
1245
 
1215
1246
  # 默认接口请求频率限制:5次/秒。
@@ -1391,6 +1422,7 @@ module TencentCloud
1391
1422
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1392
1423
  end
1393
1424
 
1425
+ # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1394
1426
  # 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
1395
1427
 
1396
1428
  # 默认接口请求频率限制:5次/秒。
@@ -1417,6 +1449,8 @@ module TencentCloud
1417
1449
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1418
1450
  end
1419
1451
 
1452
+ # <b>此接口为护照识别(中国大陆地区护照)的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/37657">护照识别(多国多地区护照)</a>。</b>
1453
+
1420
1454
  # 本接口支持中国大陆地区护照个人资料页多个字段的检测与识别。已支持字段包括英文姓名、中文姓名、国家码、护照号、出生地、出生日期、国籍英文、性别英文、有效期、签发地点英文、签发日期、持证人签名、护照机读码(MRZ码)等。
1421
1455
 
1422
1456
  # 默认接口请求频率限制:10次/秒。
@@ -1469,6 +1503,7 @@ module TencentCloud
1469
1503
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1470
1504
  end
1471
1505
 
1506
+ # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1472
1507
  # 本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
1473
1508
  # 目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
1474
1509
 
@@ -1574,6 +1609,7 @@ module TencentCloud
1574
1609
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1575
1610
  end
1576
1611
 
1612
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
1577
1613
  # 本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
1578
1614
 
1579
1615
  # 默认接口请求频率限制:5次/秒。
@@ -1700,6 +1736,7 @@ module TencentCloud
1700
1736
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1701
1737
  end
1702
1738
 
1739
+ # <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
1703
1740
  # 外国人永久居留身份证识别
1704
1741
 
1705
1742
  # @param request: Request instance for RecognizeForeignPermanentResidentIdCard.
@@ -2001,6 +2038,7 @@ module TencentCloud
2001
2038
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2002
2039
  end
2003
2040
 
2041
+ # <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
2004
2042
  # 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
2005
2043
 
2006
2044
  # @param request: Request instance for RecognizeGeneralTextImageWarn.
@@ -2389,6 +2427,7 @@ module TencentCloud
2389
2427
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2390
2428
  end
2391
2429
 
2430
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
2392
2431
  # 本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种字段。
2393
2432
 
2394
2433
  # 默认接口请求频率限制:5次/秒。
@@ -2441,6 +2480,30 @@ module TencentCloud
2441
2480
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2442
2481
  end
2443
2482
 
2483
+ # 文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
2484
+
2485
+ # @param request: Request instance for SubmitExtractDocAgentJob.
2486
+ # @type request: :class:`Tencentcloud::ocr::V20181119::SubmitExtractDocAgentJobRequest`
2487
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::SubmitExtractDocAgentJobResponse`
2488
+ def SubmitExtractDocAgentJob(request)
2489
+ body = send_request('SubmitExtractDocAgentJob', request.serialize)
2490
+ response = JSON.parse(body)
2491
+ if response['Response'].key?('Error') == false
2492
+ model = SubmitExtractDocAgentJobResponse.new
2493
+ model.deserialize(response['Response'])
2494
+ model
2495
+ else
2496
+ code = response['Response']['Error']['Code']
2497
+ message = response['Response']['Error']['Message']
2498
+ reqid = response['Response']['RequestId']
2499
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2500
+ end
2501
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2502
+ raise e
2503
+ rescue StandardError => e
2504
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2505
+ end
2506
+
2444
2507
  # <b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
2445
2508
 
2446
2509
  # 本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
@@ -2521,6 +2584,7 @@ module TencentCloud
2521
2584
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2522
2585
  end
2523
2586
 
2587
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
2524
2588
  # 本接口支持过路过桥费发票关键字段的识别,包括发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志等。
2525
2589
 
2526
2590
  # 默认接口请求频率限制:5次/秒。
@@ -2625,6 +2689,7 @@ module TencentCloud
2625
2689
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2626
2690
  end
2627
2691
 
2692
+ # <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
2628
2693
  # 本接口支持对增值税发票(卷票)关键字段的识别,包括的发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类等。
2629
2694
 
2630
2695
  # 默认接口请求频率限制:5次/秒。
@@ -1639,6 +1639,69 @@ module TencentCloud
1639
1639
  end
1640
1640
  end
1641
1641
 
1642
+ # DescribeExtractDocAgentJob请求参数结构体
1643
+ class DescribeExtractDocAgentJobRequest < TencentCloud::Common::AbstractModel
1644
+ # @param JobId: 任务唯一ID。由服务端生成。
1645
+ # @type JobId: String
1646
+
1647
+ attr_accessor :JobId
1648
+
1649
+ def initialize(jobid=nil)
1650
+ @JobId = jobid
1651
+ end
1652
+
1653
+ def deserialize(params)
1654
+ @JobId = params['JobId']
1655
+ end
1656
+ end
1657
+
1658
+ # DescribeExtractDocAgentJob返回参数结构体
1659
+ class DescribeExtractDocAgentJobResponse < TencentCloud::Common::AbstractModel
1660
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
1661
+ # @type Angle: Float
1662
+ # @param StructuralList: 配置结构化文本信息。
1663
+ # @type StructuralList: Array
1664
+ # @param ErrorCode: 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
1665
+ # @type ErrorCode: String
1666
+ # @param ErrorMessage: 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
1667
+ # @type ErrorMessage: String
1668
+ # @param JobStatus: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
1669
+ # @type JobStatus: String
1670
+ # @param ThoughtContent: 思考过程
1671
+ # @type ThoughtContent: String
1672
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1673
+ # @type RequestId: String
1674
+
1675
+ attr_accessor :Angle, :StructuralList, :ErrorCode, :ErrorMessage, :JobStatus, :ThoughtContent, :RequestId
1676
+
1677
+ def initialize(angle=nil, structurallist=nil, errorcode=nil, errormessage=nil, jobstatus=nil, thoughtcontent=nil, requestid=nil)
1678
+ @Angle = angle
1679
+ @StructuralList = structurallist
1680
+ @ErrorCode = errorcode
1681
+ @ErrorMessage = errormessage
1682
+ @JobStatus = jobstatus
1683
+ @ThoughtContent = thoughtcontent
1684
+ @RequestId = requestid
1685
+ end
1686
+
1687
+ def deserialize(params)
1688
+ @Angle = params['Angle']
1689
+ unless params['StructuralList'].nil?
1690
+ @StructuralList = []
1691
+ params['StructuralList'].each do |i|
1692
+ groupinfo_tmp = GroupInfo.new
1693
+ groupinfo_tmp.deserialize(i)
1694
+ @StructuralList << groupinfo_tmp
1695
+ end
1696
+ end
1697
+ @ErrorCode = params['ErrorCode']
1698
+ @ErrorMessage = params['ErrorMessage']
1699
+ @JobStatus = params['JobStatus']
1700
+ @ThoughtContent = params['ThoughtContent']
1701
+ @RequestId = params['RequestId']
1702
+ end
1703
+ end
1704
+
1642
1705
  # 机票详细信息元组
1643
1706
  class DetailInformationOfAirTicketTupleList < TencentCloud::Common::AbstractModel
1644
1707
  # @param DepartureStation: 出发站(自)
@@ -3821,7 +3884,7 @@ module TencentCloud
3821
3884
  # @type ImageUrl: String
3822
3885
  # @param IsWords: 是否返回单字信息,默认关
3823
3886
  # @type IsWords: Boolean
3824
- # @param EnableDetectSplit: 是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关
3887
+ # @param EnableDetectSplit: 是否开启原图切图检测功能,开启后可提升“整图面积大,但单字符占比面积小”(例如:试卷)场景下的识别效果,默认关,注:仅ConfigID配置为OCR时支持。
3825
3888
  # @type EnableDetectSplit: Boolean
3826
3889
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
3827
3890
  # @type IsPdf: Boolean
@@ -3829,7 +3892,7 @@ module TencentCloud
3829
3892
  # @type PdfPageNumber: Integer
3830
3893
  # @param EnableDetectText: 文本检测开关,默认为true。设置为false可直接进行单行识别,适用于仅包含正向单行文本的图片场景。
3831
3894
  # @type EnableDetectText: Boolean
3832
- # @param ConfigID: 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景
3895
+ # @param ConfigID: 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,注:仅ConfigID配置为OCR时支持
3833
3896
  # @type ConfigID: String
3834
3897
 
3835
3898
  attr_accessor :ImageBase64, :ImageUrl, :IsWords, :EnableDetectSplit, :IsPdf, :PdfPageNumber, :EnableDetectText, :ConfigID
@@ -5707,6 +5770,30 @@ module TencentCloud
5707
5770
  end
5708
5771
  end
5709
5772
 
5773
+ # 自定义抽取需要的字段名称、字段类型、字段提示词。
5774
+ class ItemNames < TencentCloud::Common::AbstractModel
5775
+ # @param KeyName: 自定义抽取功能需返回的字段名称。
5776
+ # @type KeyName: String
5777
+ # @param KeyType: 默认 0;0表示kv对 1表示 表格字段。
5778
+ # @type KeyType: Integer
5779
+ # @param KeyPrompt: 抽取字段的描述内容。
5780
+ # @type KeyPrompt: String
5781
+
5782
+ attr_accessor :KeyName, :KeyType, :KeyPrompt
5783
+
5784
+ def initialize(keyname=nil, keytype=nil, keyprompt=nil)
5785
+ @KeyName = keyname
5786
+ @KeyType = keytype
5787
+ @KeyPrompt = keyprompt
5788
+ end
5789
+
5790
+ def deserialize(params)
5791
+ @KeyName = params['KeyName']
5792
+ @KeyType = params['KeyType']
5793
+ @KeyPrompt = params['KeyPrompt']
5794
+ end
5795
+ end
5796
+
5710
5797
  # 发票字段坐标信息。包括字段英文名称、字段值所在位置的四点坐标、字段所属行号,具体内容请点击左侧链接。
5711
5798
  class ItemPolygonInfo < TencentCloud::Common::AbstractModel
5712
5799
  # @param Key: 发票的英文字段名称(如Title)
@@ -11324,6 +11411,73 @@ module TencentCloud
11324
11411
  end
11325
11412
  end
11326
11413
 
11414
+ # SubmitExtractDocAgentJob请求参数结构体
11415
+ class SubmitExtractDocAgentJobRequest < TencentCloud::Common::AbstractModel
11416
+ # @param ImageBase64: 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
11417
+ # @type ImageBase64: String
11418
+ # @param ImageUrl: 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF、WORD、EXCEL格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
11419
+ # @type ImageUrl: String
11420
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
11421
+ # @type PdfPageNumber: Integer
11422
+ # @param ItemNames: 自定义抽取需要的字段名称、字段类型、字段提示词。
11423
+ # @type ItemNames: Array
11424
+ # @param EnableCoord: 是否需要返回坐标,默认false。
11425
+ # @type EnableCoord: Boolean
11426
+ # @param FileStartPageNumber: 起始页
11427
+ # @type FileStartPageNumber: Integer
11428
+ # @param FileEndPageNumber: 结束页
11429
+ # @type FileEndPageNumber: Integer
11430
+
11431
+ attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
11432
+
11433
+ def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
11434
+ @ImageBase64 = imagebase64
11435
+ @ImageUrl = imageurl
11436
+ @PdfPageNumber = pdfpagenumber
11437
+ @ItemNames = itemnames
11438
+ @EnableCoord = enablecoord
11439
+ @FileStartPageNumber = filestartpagenumber
11440
+ @FileEndPageNumber = fileendpagenumber
11441
+ end
11442
+
11443
+ def deserialize(params)
11444
+ @ImageBase64 = params['ImageBase64']
11445
+ @ImageUrl = params['ImageUrl']
11446
+ @PdfPageNumber = params['PdfPageNumber']
11447
+ unless params['ItemNames'].nil?
11448
+ @ItemNames = []
11449
+ params['ItemNames'].each do |i|
11450
+ itemnames_tmp = ItemNames.new
11451
+ itemnames_tmp.deserialize(i)
11452
+ @ItemNames << itemnames_tmp
11453
+ end
11454
+ end
11455
+ @EnableCoord = params['EnableCoord']
11456
+ @FileStartPageNumber = params['FileStartPageNumber']
11457
+ @FileEndPageNumber = params['FileEndPageNumber']
11458
+ end
11459
+ end
11460
+
11461
+ # SubmitExtractDocAgentJob返回参数结构体
11462
+ class SubmitExtractDocAgentJobResponse < TencentCloud::Common::AbstractModel
11463
+ # @param JobId: 任务唯一ID。由服务端生成。
11464
+ # @type JobId: String
11465
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
11466
+ # @type RequestId: String
11467
+
11468
+ attr_accessor :JobId, :RequestId
11469
+
11470
+ def initialize(jobid=nil, requestid=nil)
11471
+ @JobId = jobid
11472
+ @RequestId = requestid
11473
+ end
11474
+
11475
+ def deserialize(params)
11476
+ @JobId = params['JobId']
11477
+ @RequestId = params['RequestId']
11478
+ end
11479
+ end
11480
+
11327
11481
  # 单元格数据
11328
11482
  class TableCell < TencentCloud::Common::AbstractModel
11329
11483
  # @param ColTl: 单元格左上角的列索引
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.1135
4
+ version: 3.0.1139
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-02 00:00:00.000000000 Z
11
+ date: 2025-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -34,8 +34,8 @@ extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
36
  - lib/tencentcloud-sdk-ocr.rb
37
- - lib/v20181119/client.rb
38
37
  - lib/v20181119/models.rb
38
+ - lib/v20181119/client.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: