tencentcloud-sdk-ocr 3.0.886 → 3.0.887

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: 6081e7ee0acc39325146e8efc636a385166bae19
4
- data.tar.gz: 42803ed2fe0b9cbae8e3e592e840d496d25a8faa
3
+ metadata.gz: e3d1a53ac7125c183e321d26f664b5cb99260e25
4
+ data.tar.gz: e2290ef3cb18fb839aa8ab9f6e88f9a0b070e339
5
5
  SHA512:
6
- metadata.gz: 26e5980bc313abf66e88a6c92e2aad37429a95ff58d42e34b2ec910a383ffe36417dce17cd2404c479a003748ecc273d0099b3b945d5204fad0740045792c444
7
- data.tar.gz: c7ef4817fac72c32447692e9434cfccb19d7eee0a70703eb8890a1dc2bee2492f5491bd48f00b70c24da5dd3ceb10c916a9132f5437378f7feae2b4aefc3eb84
6
+ metadata.gz: 6932040203629e6f80d235029f6215c877a6765a0de57f56a3a5e9d26292597ff01c7e60050d019051a80fcb077289607b9657bd9dabbe9211e4b897bdfd8e00
7
+ data.tar.gz: 09c8f9bdc9e0982c31185f87a62dabdff1167dc9c8877aaf67dcd70f85357c252b91d5e5f4e05a70958b4a5e86b35663544a8902d77ccaf20f98c3534d24930f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.886
1
+ 3.0.887
@@ -265,6 +265,30 @@ module TencentCloud
265
265
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
266
266
  end
267
267
 
268
+ # 本接口用于识别门头照分类标签信息
269
+
270
+ # @param request: Request instance for ClassifyStoreName.
271
+ # @type request: :class:`Tencentcloud::ocr::V20181119::ClassifyStoreNameRequest`
272
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::ClassifyStoreNameResponse`
273
+ def ClassifyStoreName(request)
274
+ body = send_request('ClassifyStoreName', request.serialize)
275
+ response = JSON.parse(body)
276
+ if response['Response'].key?('Error') == false
277
+ model = ClassifyStoreNameResponse.new
278
+ model.deserialize(response['Response'])
279
+ model
280
+ else
281
+ code = response['Response']['Error']['Code']
282
+ message = response['Response']['Error']['Message']
283
+ reqid = response['Response']['RequestId']
284
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
285
+ end
286
+ rescue TencentCloud::Common::TencentCloudSDKException => e
287
+ raise e
288
+ rescue StandardError => e
289
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
290
+ end
291
+
268
292
  # 本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
269
293
 
270
294
  # 智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
@@ -1983,6 +2007,30 @@ module TencentCloud
1983
2007
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1984
2008
  end
1985
2009
 
2010
+ # 本接口用于识别门头照文字识别结果以及对应分类标签信息
2011
+
2012
+ # @param request: Request instance for RecognizeStoreName.
2013
+ # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeStoreNameRequest`
2014
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeStoreNameResponse`
2015
+ def RecognizeStoreName(request)
2016
+ body = send_request('RecognizeStoreName', request.serialize)
2017
+ response = JSON.parse(body)
2018
+ if response['Response'].key?('Error') == false
2019
+ model = RecognizeStoreNameResponse.new
2020
+ model.deserialize(response['Response'])
2021
+ model
2022
+ else
2023
+ code = response['Response']['Error']['Code']
2024
+ message = response['Response']['Error']['Message']
2025
+ reqid = response['Response']['RequestId']
2026
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2027
+ end
2028
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2029
+ raise e
2030
+ rescue StandardError => e
2031
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2032
+ end
2033
+
1986
2034
  # 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://cloud.tencent.com/act/event/ocrdemo)。
1987
2035
 
1988
2036
  # 默认接口请求频率限制:2次/秒。
@@ -1304,6 +1304,50 @@ module TencentCloud
1304
1304
  end
1305
1305
  end
1306
1306
 
1307
+ # ClassifyStoreName请求参数结构体
1308
+ class ClassifyStoreNameRequest < TencentCloud::Common::AbstractModel
1309
+ # @param ImageBase64: 图片的 Base64 值。
1310
+ # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1311
+ # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1312
+ # 支持的图片像素:需介于20-10000px之间。
1313
+ # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1314
+ # @type ImageBase64: String
1315
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1316
+ # @type ImageUrl: String
1317
+
1318
+ attr_accessor :ImageBase64, :ImageUrl
1319
+
1320
+ def initialize(imagebase64=nil, imageurl=nil)
1321
+ @ImageBase64 = imagebase64
1322
+ @ImageUrl = imageurl
1323
+ end
1324
+
1325
+ def deserialize(params)
1326
+ @ImageBase64 = params['ImageBase64']
1327
+ @ImageUrl = params['ImageUrl']
1328
+ end
1329
+ end
1330
+
1331
+ # ClassifyStoreName返回参数结构体
1332
+ class ClassifyStoreNameResponse < TencentCloud::Common::AbstractModel
1333
+ # @param StoreLabel: 门头照标签
1334
+ # @type StoreLabel: Array
1335
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1336
+ # @type RequestId: String
1337
+
1338
+ attr_accessor :StoreLabel, :RequestId
1339
+
1340
+ def initialize(storelabel=nil, requestid=nil)
1341
+ @StoreLabel = storelabel
1342
+ @RequestId = requestid
1343
+ end
1344
+
1345
+ def deserialize(params)
1346
+ @StoreLabel = params['StoreLabel']
1347
+ @RequestId = params['RequestId']
1348
+ end
1349
+ end
1350
+
1307
1351
  # 坐标
1308
1352
  class Coord < TencentCloud::Common::AbstractModel
1309
1353
  # @param X: 横坐标
@@ -6819,7 +6863,12 @@ module TencentCloud
6819
6863
 
6820
6864
  # 二维码/条形码识别结果信息
6821
6865
  class QrcodeResultsInfo < TencentCloud::Common::AbstractModel
6822
- # @param TypeName: 类型(二维码、条形码)
6866
+ # @param TypeName: 类型包括
6867
+ # 二维码:QR_CODE
6868
+ # 一维码:EAN-13、EAN-8、EAN-2、UPC-A、UPC-E、CODE-39、CODE-93、CODE-128
6869
+ # PDF:PDF_417
6870
+ # DataMatrix:DATA_MATRIX
6871
+ # 小程序码:WX_CODE
6823
6872
  # @type TypeName: String
6824
6873
  # @param Url: 二维码/条形码包含的地址
6825
6874
  # @type Url: String
@@ -8570,6 +8619,65 @@ module TencentCloud
8570
8619
  end
8571
8620
  end
8572
8621
 
8622
+ # RecognizeStoreName请求参数结构体
8623
+ class RecognizeStoreNameRequest < TencentCloud::Common::AbstractModel
8624
+ # @param ImageBase64: 图片的 Base64 值。
8625
+ # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
8626
+ # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
8627
+ # 支持的图片像素:需介于20-10000px之间。
8628
+ # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8629
+ # @type ImageBase64: String
8630
+ # @param ImageUrl: 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8631
+ # @type ImageUrl: String
8632
+
8633
+ attr_accessor :ImageBase64, :ImageUrl
8634
+
8635
+ def initialize(imagebase64=nil, imageurl=nil)
8636
+ @ImageBase64 = imagebase64
8637
+ @ImageUrl = imageurl
8638
+ end
8639
+
8640
+ def deserialize(params)
8641
+ @ImageBase64 = params['ImageBase64']
8642
+ @ImageUrl = params['ImageUrl']
8643
+ end
8644
+ end
8645
+
8646
+ # RecognizeStoreName返回参数结构体
8647
+ class RecognizeStoreNameResponse < TencentCloud::Common::AbstractModel
8648
+ # @param StoreInfo: 门头照名称
8649
+ # @type StoreInfo: Array
8650
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负
8651
+ # @type Angle: Float
8652
+ # @param StoreLabel: 门头照标签
8653
+ # @type StoreLabel: Array
8654
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8655
+ # @type RequestId: String
8656
+
8657
+ attr_accessor :StoreInfo, :Angle, :StoreLabel, :RequestId
8658
+
8659
+ def initialize(storeinfo=nil, angle=nil, storelabel=nil, requestid=nil)
8660
+ @StoreInfo = storeinfo
8661
+ @Angle = angle
8662
+ @StoreLabel = storelabel
8663
+ @RequestId = requestid
8664
+ end
8665
+
8666
+ def deserialize(params)
8667
+ unless params['StoreInfo'].nil?
8668
+ @StoreInfo = []
8669
+ params['StoreInfo'].each do |i|
8670
+ storeinfo_tmp = StoreInfo.new
8671
+ storeinfo_tmp.deserialize(i)
8672
+ @StoreInfo << storeinfo_tmp
8673
+ end
8674
+ end
8675
+ @Angle = params['Angle']
8676
+ @StoreLabel = params['StoreLabel']
8677
+ @RequestId = params['RequestId']
8678
+ end
8679
+ end
8680
+
8573
8681
  # RecognizeTableAccurateOCR请求参数结构体
8574
8682
  class RecognizeTableAccurateOCRRequest < TencentCloud::Common::AbstractModel
8575
8683
  # @param ImageBase64: 图片/PDF的 Base64 值。
@@ -10046,6 +10154,34 @@ module TencentCloud
10046
10154
  end
10047
10155
  end
10048
10156
 
10157
+ # 门头照识别结果
10158
+ class StoreInfo < TencentCloud::Common::AbstractModel
10159
+ # @param Name: 识别出的字段名称(关键字),支持以下字段:
10160
+ # 付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
10161
+ # @type Name: String
10162
+ # @param Value: 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
10163
+ # @type Value: String
10164
+ # @param Rect: 文本行在旋转纠正之后的图像中的像素坐标
10165
+ # @type Rect: :class:`Tencentcloud::Ocr.v20181119.models.Rect`
10166
+
10167
+ attr_accessor :Name, :Value, :Rect
10168
+
10169
+ def initialize(name=nil, value=nil, rect=nil)
10170
+ @Name = name
10171
+ @Value = value
10172
+ @Rect = rect
10173
+ end
10174
+
10175
+ def deserialize(params)
10176
+ @Name = params['Name']
10177
+ @Value = params['Value']
10178
+ unless params['Rect'].nil?
10179
+ @Rect = Rect.new
10180
+ @Rect.deserialize(params['Rect'])
10181
+ end
10182
+ end
10183
+ end
10184
+
10049
10185
  # 智能结构化识别
10050
10186
  class StructuralItem < TencentCloud::Common::AbstractModel
10051
10187
  # @param Name: 识别出的字段名称(关键字)。
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.886
4
+ version: 3.0.887
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-08-14 00:00:00.000000000 Z
11
+ date: 2024-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common