tencentcloud-sdk-ocr 3.0.935 → 3.0.937

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab55b4e0fa3b64c5a9e056dda922b8ad1ffa1cb3
4
- data.tar.gz: e89b651611448014ed890a8e2204e3c3a745c953
3
+ metadata.gz: d395cb9d7cb5a6fa8540b9eec2671fc40efa889f
4
+ data.tar.gz: c427f67c290b3318348c4e8e20d4c03024d3b78f
5
5
  SHA512:
6
- metadata.gz: a04e70a549296e17c1bfa524501b7e53083d436bf39086277628daa6b516d2d812c01289006e23081d02ff62b1f706854408e98da52c128d48e980deca346ecb
7
- data.tar.gz: 9ecf4bc689f6b9efa7716733c79231031906ccf76adc205d887b7b26179181873cbb4dec6f211f9eb56cf9e84ccca37ab14951f81aaddb2d1230fc107ea4639b
6
+ metadata.gz: 2198e650085eb2223cf766263c49dc8534cc6a253016884308c0cc6da8a54956aee2b37851b07deeeaff86200aab04a26edd8a8f6506dc78239d637f4c560c2a
7
+ data.tar.gz: d8f9098a69ad080d1e87affd5ce00690cb11dc667fb2e08beea9af540f9a1f55fbe1ada246eacacfc141aa04c0ad4b4de8af2bf81faa0e4975debf8e876aaa12
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.935
1
+ 3.0.937
@@ -2349,6 +2349,32 @@ module TencentCloud
2349
2349
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2350
2350
  end
2351
2351
 
2352
+ # 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
2353
+
2354
+ # 默认接口请求频率限制:1次/秒。
2355
+
2356
+ # @param request: Request instance for SmartStructuralPro.
2357
+ # @type request: :class:`Tencentcloud::ocr::V20181119::SmartStructuralProRequest`
2358
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::SmartStructuralProResponse`
2359
+ def SmartStructuralPro(request)
2360
+ body = send_request('SmartStructuralPro', request.serialize)
2361
+ response = JSON.parse(body)
2362
+ if response['Response'].key?('Error') == false
2363
+ model = SmartStructuralProResponse.new
2364
+ model.deserialize(response['Response'])
2365
+ model
2366
+ else
2367
+ code = response['Response']['Error']['Code']
2368
+ message = response['Response']['Error']['Message']
2369
+ reqid = response['Response']['RequestId']
2370
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2371
+ end
2372
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2373
+ raise e
2374
+ rescue StandardError => e
2375
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2376
+ end
2377
+
2352
2378
  # <b>此接口为表格识别的旧版本服务,不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/49525">新版表格识别</a>。</b>
2353
2379
 
2354
2380
  # 本接口支持图片内表格文档的检测和识别,返回每个单元格的文字内容,支持将识别结果保存为 Excel 格式。
@@ -1629,8 +1629,8 @@ module TencentCloud
1629
1629
 
1630
1630
  attr_accessor :PageNumber, :Angle, :Height, :Width, :OriginHeight, :OriginWidth, :Elements, :RotatedAngle
1631
1631
  extend Gem::Deprecate
1632
- deprecate :Angle, :none, 2024, 10
1633
- deprecate :Angle=, :none, 2024, 10
1632
+ deprecate :Angle, :none, 2024, 11
1633
+ deprecate :Angle=, :none, 2024, 11
1634
1634
 
1635
1635
  def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
1636
1636
  @PageNumber = pagenumber
@@ -3436,8 +3436,8 @@ module TencentCloud
3436
3436
 
3437
3437
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3438
3438
  extend Gem::Deprecate
3439
- deprecate :Angel, :none, 2024, 10
3440
- deprecate :Angel=, :none, 2024, 10
3439
+ deprecate :Angel, :none, 2024, 11
3440
+ deprecate :Angel=, :none, 2024, 11
3441
3441
 
3442
3442
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3443
3443
  @TextDetections = textdetections
@@ -3543,8 +3543,8 @@ module TencentCloud
3543
3543
 
3544
3544
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
3545
3545
  extend Gem::Deprecate
3546
- deprecate :Angel, :none, 2024, 10
3547
- deprecate :Angel=, :none, 2024, 10
3546
+ deprecate :Angel, :none, 2024, 11
3547
+ deprecate :Angel=, :none, 2024, 11
3548
3548
 
3549
3549
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
3550
3550
  @TextDetections = textdetections
@@ -3934,8 +3934,8 @@ module TencentCloud
3934
3934
 
3935
3935
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
3936
3936
  extend Gem::Deprecate
3937
- deprecate :DetectFake, :none, 2024, 10
3938
- deprecate :DetectFake=, :none, 2024, 10
3937
+ deprecate :DetectFake, :none, 2024, 11
3938
+ deprecate :DetectFake=, :none, 2024, 11
3939
3939
 
3940
3940
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
3941
3941
  @ReturnHeadImage = returnheadimage
@@ -4004,10 +4004,10 @@ module TencentCloud
4004
4004
 
4005
4005
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :WarningCode, :WarnCardInfos, :RequestId
4006
4006
  extend Gem::Deprecate
4007
- deprecate :FakeDetectResult, :none, 2024, 10
4008
- deprecate :FakeDetectResult=, :none, 2024, 10
4009
- deprecate :WarningCode, :none, 2024, 10
4010
- deprecate :WarningCode=, :none, 2024, 10
4007
+ deprecate :FakeDetectResult, :none, 2024, 11
4008
+ deprecate :FakeDetectResult=, :none, 2024, 11
4009
+ deprecate :WarningCode, :none, 2024, 11
4010
+ deprecate :WarningCode=, :none, 2024, 11
4011
4011
 
4012
4012
  def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, warningcode=nil, warncardinfos=nil, requestid=nil)
4013
4013
  @CnName = cnname
@@ -5059,8 +5059,8 @@ module TencentCloud
5059
5059
 
5060
5060
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :WarnCardInfos, :RequestId
5061
5061
  extend Gem::Deprecate
5062
- deprecate :Warn, :none, 2024, 10
5063
- deprecate :Warn=, :none, 2024, 10
5062
+ deprecate :Warn, :none, 2024, 11
5063
+ deprecate :Warn=, :none, 2024, 11
5064
5064
 
5065
5065
  def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, warncardinfos=nil, requestid=nil)
5066
5066
  @ID = id
@@ -10173,6 +10173,84 @@ module TencentCloud
10173
10173
  end
10174
10174
  end
10175
10175
 
10176
+ # SmartStructuralPro请求参数结构体
10177
+ class SmartStructuralProRequest < TencentCloud::Common::AbstractModel
10178
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10179
+ # @type ImageUrl: String
10180
+ # @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10181
+ # @type ImageBase64: String
10182
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
10183
+ # @type PdfPageNumber: Integer
10184
+ # @param ItemNames: 自定义结构化功能需返回的字段名称,例:若客户只想返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
10185
+ # @type ItemNames: Array
10186
+ # @param ReturnFullText: 是否开启全文字段识别
10187
+ # @type ReturnFullText: Boolean
10188
+ # @param ConfigId: 配置id支持:General -- 通用场景 InvoiceEng -- 海运提单、国际invoice模版 WayBillEng --海运订单模板
10189
+ # @type ConfigId: String
10190
+
10191
+ attr_accessor :ImageUrl, :ImageBase64, :PdfPageNumber, :ItemNames, :ReturnFullText, :ConfigId
10192
+
10193
+ def initialize(imageurl=nil, imagebase64=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil, configid=nil)
10194
+ @ImageUrl = imageurl
10195
+ @ImageBase64 = imagebase64
10196
+ @PdfPageNumber = pdfpagenumber
10197
+ @ItemNames = itemnames
10198
+ @ReturnFullText = returnfulltext
10199
+ @ConfigId = configid
10200
+ end
10201
+
10202
+ def deserialize(params)
10203
+ @ImageUrl = params['ImageUrl']
10204
+ @ImageBase64 = params['ImageBase64']
10205
+ @PdfPageNumber = params['PdfPageNumber']
10206
+ @ItemNames = params['ItemNames']
10207
+ @ReturnFullText = params['ReturnFullText']
10208
+ @ConfigId = params['ConfigId']
10209
+ end
10210
+ end
10211
+
10212
+ # SmartStructuralPro返回参数结构体
10213
+ class SmartStructuralProResponse < TencentCloud::Common::AbstractModel
10214
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
10215
+ # @type Angle: Float
10216
+ # @param StructuralList: 配置结构化文本信息
10217
+ # @type StructuralList: Array
10218
+ # @param WordList: 还原文本信息
10219
+ # @type WordList: Array
10220
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10221
+ # @type RequestId: String
10222
+
10223
+ attr_accessor :Angle, :StructuralList, :WordList, :RequestId
10224
+
10225
+ def initialize(angle=nil, structurallist=nil, wordlist=nil, requestid=nil)
10226
+ @Angle = angle
10227
+ @StructuralList = structurallist
10228
+ @WordList = wordlist
10229
+ @RequestId = requestid
10230
+ end
10231
+
10232
+ def deserialize(params)
10233
+ @Angle = params['Angle']
10234
+ unless params['StructuralList'].nil?
10235
+ @StructuralList = []
10236
+ params['StructuralList'].each do |i|
10237
+ groupinfo_tmp = GroupInfo.new
10238
+ groupinfo_tmp.deserialize(i)
10239
+ @StructuralList << groupinfo_tmp
10240
+ end
10241
+ end
10242
+ unless params['WordList'].nil?
10243
+ @WordList = []
10244
+ params['WordList'].each do |i|
10245
+ worditem_tmp = WordItem.new
10246
+ worditem_tmp.deserialize(i)
10247
+ @WordList << worditem_tmp
10248
+ end
10249
+ end
10250
+ @RequestId = params['RequestId']
10251
+ end
10252
+ end
10253
+
10176
10254
  # 门头照识别结果
10177
10255
  class StoreInfo < TencentCloud::Common::AbstractModel
10178
10256
  # @param Name: 识别出的字段名称(关键字),如商店名称
@@ -10741,7 +10819,7 @@ module TencentCloud
10741
10819
  # ‘10’: 脱式计算
10742
10820
  # ‘11’: 解方程
10743
10821
  # @type ExpressionType: String
10744
- # @param Answer: 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如1<10<7)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
10822
+ # @param Answer: 错题推荐答案,算式运算结果正确返回为"",算式运算结果错误返回推荐答案 (注:暂不支持多个关系运算符(如`1<10<7`)、无关系运算符(如frac(1,2)+frac(2,3))、单位换算(如1元=100角)错题的推荐答案返回)
10745
10823
  # @type Answer: String
10746
10824
 
10747
10825
  attr_accessor :DetectedText, :Result, :Confidence, :Polygon, :AdvancedInfo, :ItemCoord, :ExpressionType, :Answer
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.935
4
+ version: 3.0.937
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-03 00:00:00.000000000 Z
11
+ date: 2024-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common