tencentcloud-sdk-ocr 3.0.687 → 3.0.688

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +48 -6
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d399340ac148371a6fcf2a8ed97789da8b5381c
4
- data.tar.gz: 1ef8f18c2d4c7dfc9388104ac4a10c73ab091c9f
3
+ metadata.gz: 1304a8a34e10d8ba8e42b1eb2033dc70d5807f44
4
+ data.tar.gz: 72b4f9af9cc0a092ce08112aad02ba2bc9aa30b5
5
5
  SHA512:
6
- metadata.gz: 8786b6206d75c99ef3006796e8feba55174d24976ab9866472d717d90acd3c289a02381e4f2edf340702bef091769a02e98d088b8d31ea6bd9d40e15895fb857
7
- data.tar.gz: 0ecba1b1083eac4400d45affc49102dbd834e76c3b3668568a53f857bc0b9f9e57a1a854ccf23aefc1dd3a41862a6b2e71bba3f745a24d851c0bd0935f700cec
6
+ metadata.gz: 9f6a46b1b7e811ee9f223db03d0fd530a8e43a64d6c206a26dbcc3d3ea893cfd60b0f753b5ef97fdf4ccbe1976dc9c2eeacd64eea4475d491c567dbb09052121
7
+ data.tar.gz: 37f679a47f88d60aaa8ca86a134cc53dd810f07f582befd4c52fef725a3647937366f50becec93102a4c6071b970d0bf07a969db6f84dab10d62c94789f4b1d4
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.687
1
+ 3.0.688
@@ -3399,18 +3399,20 @@ module TencentCloud
3399
3399
  # @type SingleInvoiceInfos: :class:`Tencentcloud::Ocr.v20181119.models.SingleInvoiceItem`
3400
3400
  # @param Page: 发票处于识别图片或PDF文件中的页教,默认从1开始。
3401
3401
  # @type Page: Integer
3402
- # @param SubType: 发票详细类型,详见上方 SubType 返回值说明
3402
+ # @param SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
3403
3403
  # @type SubType: String
3404
- # @param TypeDescription: 发票类型描述,详见上方 TypeDescription 返回值说明
3404
+ # @param TypeDescription: 发票类型描述,详见票据识别(高级版)接口文档说明中 TypeDescription 返回值说明
3405
3405
  # @type TypeDescription: String
3406
3406
  # @param CutImage: 切割单图文件,Base64编码后的切图后的图片文件,开启 EnableCutImage 后进行返回
3407
3407
  # @type CutImage: String
3408
3408
  # @param SubTypeDescription: 发票详细类型描述,详见上方 SubType 返回值说明
3409
3409
  # @type SubTypeDescription: String
3410
+ # @param ItemPolygon: 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。
3411
+ # @type ItemPolygon: Array
3410
3412
 
3411
- attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription
3413
+ attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon
3412
3414
 
3413
- def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil)
3415
+ def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil, itempolygon=nil)
3414
3416
  @Code = code
3415
3417
  @Type = type
3416
3418
  @Polygon = polygon
@@ -3421,6 +3423,7 @@ module TencentCloud
3421
3423
  @TypeDescription = typedescription
3422
3424
  @CutImage = cutimage
3423
3425
  @SubTypeDescription = subtypedescription
3426
+ @ItemPolygon = itempolygon
3424
3427
  end
3425
3428
 
3426
3429
  def deserialize(params)
@@ -3440,6 +3443,14 @@ module TencentCloud
3440
3443
  @TypeDescription = params['TypeDescription']
3441
3444
  @CutImage = params['CutImage']
3442
3445
  @SubTypeDescription = params['SubTypeDescription']
3446
+ unless params['ItemPolygon'].nil?
3447
+ @ItemPolygon = []
3448
+ params['ItemPolygon'].each do |i|
3449
+ itempolygoninfo_tmp = ItemPolygonInfo.new
3450
+ itempolygoninfo_tmp.deserialize(i)
3451
+ @ItemPolygon << itempolygoninfo_tmp
3452
+ end
3453
+ end
3443
3454
  end
3444
3455
  end
3445
3456
 
@@ -3499,6 +3510,33 @@ module TencentCloud
3499
3510
  end
3500
3511
  end
3501
3512
 
3513
+ # 发票字段坐标信息。包括字段英文名称、字段值所在位置的四点坐标、字段所属行号,具体内容请点击左侧链接。
3514
+ class ItemPolygonInfo < TencentCloud::Common::AbstractModel
3515
+ # @param Key: 发票的英文字段名称(如Title)
3516
+ # @type Key: String
3517
+ # @param Polygon: 字段值所在位置的四点坐标
3518
+ # @type Polygon: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
3519
+ # @param Row: 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
3520
+ # @type Row: Integer
3521
+
3522
+ attr_accessor :Key, :Polygon, :Row
3523
+
3524
+ def initialize(key=nil, polygon=nil, row=nil)
3525
+ @Key = key
3526
+ @Polygon = polygon
3527
+ @Row = row
3528
+ end
3529
+
3530
+ def deserialize(params)
3531
+ @Key = params['Key']
3532
+ unless params['Polygon'].nil?
3533
+ @Polygon = Polygon.new
3534
+ @Polygon.deserialize(params['Polygon'])
3535
+ end
3536
+ @Row = params['Row']
3537
+ end
3538
+ end
3539
+
3502
3540
  # key信息组
3503
3541
  class Key < TencentCloud::Common::AbstractModel
3504
3542
  # @param AutoName: 自动识别的字段名称
@@ -5748,10 +5786,12 @@ module TencentCloud
5748
5786
  # @type EnableMultiplePage: Boolean
5749
5787
  # @param EnableCutImage: 是否返回切割图片base64,默认值为false。
5750
5788
  # @type EnableCutImage: Boolean
5789
+ # @param EnableItemPolygon: 是否打开字段坐标返回。默认为false。
5790
+ # @type EnableItemPolygon: Boolean
5751
5791
 
5752
- attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage
5792
+ attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon
5753
5793
 
5754
- def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil)
5794
+ def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil)
5755
5795
  @ImageBase64 = imagebase64
5756
5796
  @ImageUrl = imageurl
5757
5797
  @Types = types
@@ -5760,6 +5800,7 @@ module TencentCloud
5760
5800
  @PdfPageNumber = pdfpagenumber
5761
5801
  @EnableMultiplePage = enablemultiplepage
5762
5802
  @EnableCutImage = enablecutimage
5803
+ @EnableItemPolygon = enableitempolygon
5763
5804
  end
5764
5805
 
5765
5806
  def deserialize(params)
@@ -5771,6 +5812,7 @@ module TencentCloud
5771
5812
  @PdfPageNumber = params['PdfPageNumber']
5772
5813
  @EnableMultiplePage = params['EnableMultiplePage']
5773
5814
  @EnableCutImage = params['EnableCutImage']
5815
+ @EnableItemPolygon = params['EnableItemPolygon']
5774
5816
  end
5775
5817
  end
5776
5818
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-ocr
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.687
4
+ version: 3.0.688
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud