tencentcloud-sdk-ocr 1.0.331 → 1.0.332

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: 2e1a6e9b714f9d591e2062130e758bcd835b2e19
4
- data.tar.gz: 1806e009c6adff8b1abcd0c37ee4205780473849
3
+ metadata.gz: 4a6ee5cd6d2cad43b622094ca7fdd325e3ddc6e7
4
+ data.tar.gz: 36509fe81bd7db2bab41909fa87edabb4e7df625
5
5
  SHA512:
6
- metadata.gz: 18cf9d8240cdf5e3f25ae7e045084cbc93d55153bf88edb4a89562ad067ff2acc0eb16bd6acc4b292acfc6cfbb59d58f26afe77a17b3cbdceb806258313ff72f
7
- data.tar.gz: b7f6c77f51774f73f7e787543b955c6b13ada30da3eb38f5593406f991d46a56b93c90643ac02718d623dc04344b02c4c9ee75316a48d2efc454d9ea95c4c54f
6
+ metadata.gz: 3ae030ee78a48306ea94a67ba26957a97be185e7fb64836d9b44290bbe3d10115d6950fd6cdd094aa49c131d430fb2affddc3cc64fe5bbb2cbcfc3692fded039
7
+ data.tar.gz: 3aa242c78eba064ad4f48efa48c5f0d0fac276164830cf37e8e4ac55d0199031129a0ab3dee873acbcafa466241c221b3b26340e0cac8f9d94a13781537b8f32
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.331
1
+ 1.0.332
@@ -1594,7 +1594,7 @@ module TencentCloud
1594
1594
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1595
1595
  end
1596
1596
 
1597
- # 印章识别已支持各类印章,包括发票章,财务章等,适用于公文,票据等场景。
1597
+ # 本接口支持各类印章识别,包括发票章,财务章等,适用于公文,票据等场景。
1598
1598
 
1599
1599
  # @param request: Request instance for SealOCR.
1600
1600
  # @type request: :class:`Tencentcloud::ocr::V20181119::SealOCRRequest`
@@ -5305,6 +5305,33 @@ module TencentCloud
5305
5305
  end
5306
5306
  end
5307
5307
 
5308
+ # 印章信息
5309
+ class SealInfo < TencentCloud::Common::AbstractModel
5310
+ # @param SealBody: 印章主体内容
5311
+ # @type SealBody: String
5312
+ # @param Location: 印章坐标
5313
+ # @type Location: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
5314
+ # @param OtherTexts: 印章其它文本内容
5315
+ # @type OtherTexts: Array
5316
+
5317
+ attr_accessor :SealBody, :Location, :OtherTexts
5318
+
5319
+ def initialize(sealbody=nil, location=nil, othertexts=nil)
5320
+ @SealBody = sealbody
5321
+ @Location = location
5322
+ @OtherTexts = othertexts
5323
+ end
5324
+
5325
+ def deserialize(params)
5326
+ @SealBody = params['SealBody']
5327
+ unless params['Location'].nil?
5328
+ @Location = Rect.new
5329
+ @Location.deserialize(params['Location'])
5330
+ end
5331
+ @OtherTexts = params['OtherTexts']
5332
+ end
5333
+ end
5334
+
5308
5335
  # SealOCR请求参数结构体
5309
5336
  class SealOCRRequest < TencentCloud::Common::AbstractModel
5310
5337
  # @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
@@ -5335,15 +5362,18 @@ module TencentCloud
5335
5362
  # @type Location: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
5336
5363
  # @param OtherTexts: 其它文本内容
5337
5364
  # @type OtherTexts: Array
5365
+ # @param SealInfos: 全部印章信息
5366
+ # @type SealInfos: Array
5338
5367
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5339
5368
  # @type RequestId: String
5340
5369
 
5341
- attr_accessor :SealBody, :Location, :OtherTexts, :RequestId
5370
+ attr_accessor :SealBody, :Location, :OtherTexts, :SealInfos, :RequestId
5342
5371
 
5343
- def initialize(sealbody=nil, location=nil, othertexts=nil, requestid=nil)
5372
+ def initialize(sealbody=nil, location=nil, othertexts=nil, sealinfos=nil, requestid=nil)
5344
5373
  @SealBody = sealbody
5345
5374
  @Location = location
5346
5375
  @OtherTexts = othertexts
5376
+ @SealInfos = sealinfos
5347
5377
  @RequestId = requestid
5348
5378
  end
5349
5379
 
@@ -5354,6 +5384,14 @@ module TencentCloud
5354
5384
  @Location.deserialize(params['Location'])
5355
5385
  end
5356
5386
  @OtherTexts = params['OtherTexts']
5387
+ unless params['SealInfos'].nil?
5388
+ @SealInfos = []
5389
+ params['SealInfos'].each do |i|
5390
+ sealinfo_tmp = SealInfo.new
5391
+ sealinfo_tmp.deserialize(i)
5392
+ @SealInfos << sealinfo_tmp
5393
+ end
5394
+ end
5357
5395
  @RequestId = params['RequestId']
5358
5396
  end
5359
5397
  end
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: 1.0.331
4
+ version: 1.0.332
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-12 00:00:00.000000000 Z
11
+ date: 2022-06-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common