tencentcloud-sdk-ocr 1.0.331 → 1.0.334

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: 2e1a6e9b714f9d591e2062130e758bcd835b2e19
4
- data.tar.gz: 1806e009c6adff8b1abcd0c37ee4205780473849
3
+ metadata.gz: 8c110f9b6e4481a3628f8045bf1ad82bd80e28f8
4
+ data.tar.gz: 43a86b3cb64f25e330c1de1966c6e8aeba879400
5
5
  SHA512:
6
- metadata.gz: 18cf9d8240cdf5e3f25ae7e045084cbc93d55153bf88edb4a89562ad067ff2acc0eb16bd6acc4b292acfc6cfbb59d58f26afe77a17b3cbdceb806258313ff72f
7
- data.tar.gz: b7f6c77f51774f73f7e787543b955c6b13ada30da3eb38f5593406f991d46a56b93c90643ac02718d623dc04344b02c4c9ee75316a48d2efc454d9ea95c4c54f
6
+ metadata.gz: a1df872121aed1c7be9637e1cccfe13ef5f6701365863f310736c92922502f67d6d12ab35c63bfbe8f4b0062e6b95958ca6bf63a53b34939bb03fa5f668fe049
7
+ data.tar.gz: 3bce36a32e7d6b34d13778afa25037fecaf2353a2af49e579c3081783ea8ebdc04c649440a0d484eb8462a7b93f690abdbfef879937675fe781925fc2a19e155
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.331
1
+ 1.0.334
@@ -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.334
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-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common