tencentcloud-sdk-ocr 3.0.615 → 3.0.616

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: 5c26105b83d2ee5f40fe23a5a745f675a917e0e3
4
- data.tar.gz: 4ee91d8825e548bf7dfde2c915a4bc936daf58cd
3
+ metadata.gz: 9a799351d7fe092af2baeee11f98b43d1d101e81
4
+ data.tar.gz: 4e1e10916ec5d42f5c31c5781d8151fca9c7026b
5
5
  SHA512:
6
- metadata.gz: 8f265bf3bc2379e325fb312fcd9017617f62c27e0595dab0c08ef2a0244faf47950d8fac9c2b037f0aec453b11d189a262d6af8f75fb8cb5706c9b19a7bcc23c
7
- data.tar.gz: 807778dc2bd5be4f0f8d0df62c8cd7ced94fc24e0396412df20783a84f32b17090c5a13c0d398efe09307815b69eee5e36d0f69cde1311914304778f0dceae33
6
+ metadata.gz: aeac7fcb851a6e281b897fd0d22b71c072dc47b644e59c8d576e0cf81915a84998fd2133e845be7c35bee7c3dc84e21b60fc78811b9cb7b9c9427a7db520277a
7
+ data.tar.gz: b893ce729171da3255845e3664bbe6483342c23dd7b50dd6a80a0abd612ba8e9e0fc03b654baa4c561b0e770d6f8f7875869ba7ce17026af13dd93955c586bd7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.615
1
+ 3.0.616
@@ -2052,7 +2052,7 @@ module TencentCloud
2052
2052
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2053
2053
  end
2054
2054
 
2055
- # 本接口支持各类印章识别,包括发票章,财务章等,适用于公文,票据等场景。
2055
+ # 本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
2056
2056
 
2057
2057
  # 默认接口请求频率限制:5次/秒。
2058
2058
 
@@ -2130,7 +2130,7 @@ module TencentCloud
2130
2130
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2131
2131
  end
2132
2132
 
2133
- # 本接口支持识别并提取各类证照、票据、表单、合同等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。
2133
+ # 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
2134
2134
 
2135
2135
  # 默认接口请求频率限制:10次/秒。
2136
2136
 
@@ -2356,16 +2356,22 @@ module TencentCloud
2356
2356
  # @type Angel: Float
2357
2357
  # @param PdfPageSize: 图片为PDF时,返回PDF的总页数,默认为0
2358
2358
  # @type PdfPageSize: Integer
2359
+ # @param Angle: 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
2360
+ # @type Angle: Float
2359
2361
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2360
2362
  # @type RequestId: String
2361
2363
 
2362
- attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :RequestId
2364
+ attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
2365
+ extend Gem::Deprecate
2366
+ deprecate :Angel, :none, 2023, 7
2367
+ deprecate :Angel=, :none, 2023, 7
2363
2368
 
2364
- def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, requestid=nil)
2369
+ def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
2365
2370
  @TextDetections = textdetections
2366
2371
  @Language = language
2367
2372
  @Angel = angel
2368
2373
  @PdfPageSize = pdfpagesize
2374
+ @Angle = angle
2369
2375
  @RequestId = requestid
2370
2376
  end
2371
2377
 
@@ -2381,6 +2387,7 @@ module TencentCloud
2381
2387
  @Language = params['Language']
2382
2388
  @Angel = params['Angel']
2383
2389
  @PdfPageSize = params['PdfPageSize']
2390
+ @Angle = params['Angle']
2384
2391
  @RequestId = params['RequestId']
2385
2392
  end
2386
2393
  end
@@ -7429,10 +7436,10 @@ module TencentCloud
7429
7436
 
7430
7437
  # SealOCR请求参数结构体
7431
7438
  class SealOCRRequest < TencentCloud::Common::AbstractModel
7432
- # @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
7439
+ # @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。
7433
7440
  # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7434
7441
  # @type ImageBase64: String
7435
- # @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
7442
+ # @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
7436
7443
  # 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
7437
7444
  # @type ImageUrl: String
7438
7445
 
@@ -7992,12 +7999,14 @@ module TencentCloud
7992
7999
  # @param ImageUrl: 图片的 Url 地址。
7993
8000
  # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7994
8001
  # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
8002
+ # 支持的图片像素:需介于20-10000px之间。
7995
8003
  # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
7996
8004
  # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7997
8005
  # @type ImageUrl: String
7998
8006
  # @param ImageBase64: 图片的 Base64 值。
7999
8007
  # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
8000
8008
  # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
8009
+ # 支持的图片像素:需介于20-10000px之间。
8001
8010
  # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8002
8011
  # @type ImageBase64: String
8003
8012
  # @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
@@ -8010,16 +8019,25 @@ module TencentCloud
8010
8019
  # @type ItemNames: Array
8011
8020
  # @param ReturnFullText: 是否开启全文字段识别
8012
8021
  # @type ReturnFullText: Boolean
8013
-
8014
- attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :ItemNames, :ReturnFullText
8015
-
8016
- def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil)
8022
+ # @param ConfigId: 配置id支持:
8023
+ # General -- 通用场景
8024
+ # OnlineTaxiItinerary -- 网约车行程单
8025
+ # RideHailingDriverLicense -- 网约车驾驶证
8026
+ # RideHailingTransportLicense -- 网约车运输证
8027
+ # WayBill -- 快递运单
8028
+ # AccountOpeningPermit -- 银行开户许可证
8029
+ # @type ConfigId: String
8030
+
8031
+ attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :ItemNames, :ReturnFullText, :ConfigId
8032
+
8033
+ def initialize(imageurl=nil, imagebase64=nil, ispdf=nil, pdfpagenumber=nil, itemnames=nil, returnfulltext=nil, configid=nil)
8017
8034
  @ImageUrl = imageurl
8018
8035
  @ImageBase64 = imagebase64
8019
8036
  @IsPdf = ispdf
8020
8037
  @PdfPageNumber = pdfpagenumber
8021
8038
  @ItemNames = itemnames
8022
8039
  @ReturnFullText = returnfulltext
8040
+ @ConfigId = configid
8023
8041
  end
8024
8042
 
8025
8043
  def deserialize(params)
@@ -8029,6 +8047,7 @@ module TencentCloud
8029
8047
  @PdfPageNumber = params['PdfPageNumber']
8030
8048
  @ItemNames = params['ItemNames']
8031
8049
  @ReturnFullText = params['ReturnFullText']
8050
+ @ConfigId = params['ConfigId']
8032
8051
  end
8033
8052
  end
8034
8053
 
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.615
4
+ version: 3.0.616
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-18 00:00:00.000000000 Z
11
+ date: 2023-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common