tencentcloud-sdk-ocr 3.0.1156 → 3.0.1159

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: 8ce4ef48cc2a9dc3d7f08c34d49804996bc17e17
4
- data.tar.gz: c193abf2a1cbbbe7174d6cf38b8422266d8f93b7
3
+ metadata.gz: 0838dff084aa9db23c7d8cb842ca6390512aa7a4
4
+ data.tar.gz: d9f21c375d4cd80d6b062772b0b693b51dde6f5b
5
5
  SHA512:
6
- metadata.gz: b67e5530c8c11d6dc056a0d2b50b4191818ec63aeb5fb34a8ddd2adda0d7a9d06b525ad823e0e6644b918f1e693450d8e13013410fef3dd3f243945839a0b04d
7
- data.tar.gz: c1a53ccde35d9839620b4efe774b3b46985090d577d6152fd50156da248e61e2cabe16ccf862155897136a180e477bb56bbf7d225d14175205a6381b35d2e77b
6
+ metadata.gz: 981a86e651c9144a9d8d9769f9b6bbe9ad42a5083ca1faba3f1507697758b965d3c6bab1515f7f609db47865fc94e880f63e66e34d86b45c9127ea07b80c0c8b
7
+ data.tar.gz: c4e40e8dc2d93781c29bab5f7fae77d37b1b9984d26bc54a03a3ea0c671f4a2166d680581bb4ccd31e989296bf5185db45f2ad11e1339cb1cb360577050c3230
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1156
1
+ 3.0.1159
@@ -1187,6 +1187,8 @@ module TencentCloud
1187
1187
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1188
1188
  end
1189
1189
 
1190
+ # 不再维护,功能已切到其它接口
1191
+
1190
1192
  # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1191
1193
  # 本接口支持事业单位法人证书关键字段识别,包括注册号、有效期、住所、名称、法定代表人等。
1192
1194
 
@@ -1422,6 +1424,8 @@ module TencentCloud
1422
1424
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1423
1425
  end
1424
1426
 
1427
+ # 不再维护,功能已切到其它接口
1428
+
1425
1429
  # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1426
1430
  # 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
1427
1431
 
@@ -1503,6 +1507,8 @@ module TencentCloud
1503
1507
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1504
1508
  end
1505
1509
 
1510
+ # 不再维护,功能已切到其它接口
1511
+
1506
1512
  # <b>因技术原因,本接口将不再迭代升级。文档抽取(基础版)可支持此类证书的识别抽取,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/119452">文档抽取(基础版)</a>。</b>
1507
1513
  # 本接口支持房产证关键字段的识别,包括房地产权利人、共有情况、登记时间、规划用途、房屋性质、房屋坐落等。
1508
1514
  # 目前接口对合肥、成都、佛山三个城市的房产证版式识别较好。
@@ -1583,6 +1589,32 @@ module TencentCloud
1583
1589
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1584
1590
  end
1585
1591
 
1592
+ # 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
1593
+
1594
+ # 默认接口请求频率限制:2次/秒。
1595
+
1596
+ # @param request: Request instance for QuestionSplitLayoutOCR.
1597
+ # @type request: :class:`Tencentcloud::ocr::V20181119::QuestionSplitLayoutOCRRequest`
1598
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::QuestionSplitLayoutOCRResponse`
1599
+ def QuestionSplitLayoutOCR(request)
1600
+ body = send_request('QuestionSplitLayoutOCR', request.serialize)
1601
+ response = JSON.parse(body)
1602
+ if response['Response'].key?('Error') == false
1603
+ model = QuestionSplitLayoutOCRResponse.new
1604
+ model.deserialize(response['Response'])
1605
+ model
1606
+ else
1607
+ code = response['Response']['Error']['Code']
1608
+ message = response['Response']['Error']['Message']
1609
+ reqid = response['Response']['RequestId']
1610
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1611
+ end
1612
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1613
+ raise e
1614
+ rescue StandardError => e
1615
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1616
+ end
1617
+
1586
1618
  # 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
1587
1619
 
1588
1620
  # 默认接口请求频率限制:2次/秒。
@@ -1736,6 +1768,8 @@ module TencentCloud
1736
1768
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1737
1769
  end
1738
1770
 
1771
+ # 不再维护,功能已切到其它接口
1772
+
1739
1773
  # <b>因技术原因,本接口将不再迭代升级。有效身份证件识别(鉴伪版)可支持此类证件的识别,并包含质量和PS告警,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/112345">有效身份证件识别(鉴伪版)</a>。</b>
1740
1774
  # 外国人永久居留身份证识别
1741
1775
 
@@ -2038,6 +2072,8 @@ module TencentCloud
2038
2072
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2039
2073
  end
2040
2074
 
2075
+ # 不再维护,功能已切到其它接口
2076
+
2041
2077
  # <b>因技术原因,本接口将不再迭代升级。通用卡证鉴伪可支持更多告警类型,效果、功能更强并将持续迭代优化,建议使用<a href="https://cloud.tencent.com/document/product/866/115916">通用卡证鉴伪</a>。</b>
2042
2078
  # 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
2043
2079
 
@@ -8270,6 +8270,69 @@ module TencentCloud
8270
8270
  end
8271
8271
  end
8272
8272
 
8273
+ # QuestionSplitLayoutOCR请求参数结构体
8274
+ class QuestionSplitLayoutOCRRequest < TencentCloud::Common::AbstractModel
8275
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8276
+ # @type ImageUrl: String
8277
+ # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8278
+ # @type ImageBase64: String
8279
+ # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
8280
+ # @type IsPdf: Boolean
8281
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
8282
+ # @type PdfPageNumber: Integer
8283
+ # @param EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
8284
+ # @type EnableImageCrop: Boolean
8285
+ # @param UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
8286
+ # @type UseNewModel: Boolean
8287
+
8288
+ attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :UseNewModel
8289
+
8290
+ def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, enableimagecrop=nil, usenewmodel=nil)
8291
+ @ImageUrl = imageurl
8292
+ @ImageBase64 = imagebase64
8293
+ @IsPdf = ispdf
8294
+ @PdfPageNumber = pdfpagenumber
8295
+ @EnableImageCrop = enableimagecrop
8296
+ @UseNewModel = usenewmodel
8297
+ end
8298
+
8299
+ def deserialize(params)
8300
+ @ImageUrl = params['ImageUrl']
8301
+ @ImageBase64 = params['ImageBase64']
8302
+ @IsPdf = params['IsPdf']
8303
+ @PdfPageNumber = params['PdfPageNumber']
8304
+ @EnableImageCrop = params['EnableImageCrop']
8305
+ @UseNewModel = params['UseNewModel']
8306
+ end
8307
+ end
8308
+
8309
+ # QuestionSplitLayoutOCR返回参数结构体
8310
+ class QuestionSplitLayoutOCRResponse < TencentCloud::Common::AbstractModel
8311
+ # @param QuestionInfo: 检测到的文本信息
8312
+ # @type QuestionInfo: Array
8313
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8314
+ # @type RequestId: String
8315
+
8316
+ attr_accessor :QuestionInfo, :RequestId
8317
+
8318
+ def initialize(questioninfo=nil, requestid=nil)
8319
+ @QuestionInfo = questioninfo
8320
+ @RequestId = requestid
8321
+ end
8322
+
8323
+ def deserialize(params)
8324
+ unless params['QuestionInfo'].nil?
8325
+ @QuestionInfo = []
8326
+ params['QuestionInfo'].each do |i|
8327
+ questioninfo_tmp = QuestionInfo.new
8328
+ questioninfo_tmp.deserialize(i)
8329
+ @QuestionInfo << questioninfo_tmp
8330
+ end
8331
+ end
8332
+ @RequestId = params['RequestId']
8333
+ end
8334
+ end
8335
+
8273
8336
  # QuestionSplitOCR请求参数结构体
8274
8337
  class QuestionSplitOCRRequest < TencentCloud::Common::AbstractModel
8275
8338
  # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
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.1156
4
+ version: 3.0.1159
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-10-19 00:00:00.000000000 Z
11
+ date: 2025-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common