tencentcloud-sdk-ocr 3.0.951 → 3.0.952

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: aba2e3fd0f74980309088982af73f4f2c43e8f7b
4
- data.tar.gz: 01aedc6a9ff15f24fec314594218d3875768e0af
3
+ metadata.gz: 1675e835d26b1f4b7f26ccda9e885ecbe311ce25
4
+ data.tar.gz: 8637faa26b237b65e6922038b95f8487db090bce
5
5
  SHA512:
6
- metadata.gz: d0c62432490376280d06e9cf3f3b3f303ae3069fbf076ba5eebb415afa5813766c29cf86bf6efe3083ad367d38a79ff5b0e5e3fc0775e508756de4bc211c010e
7
- data.tar.gz: ea0608c98ec8be4b089bd57267517f712ea435f45b5b3c551bbdb696d11eecff2cb957f42d2bd1a47fab8583e4ec5c70df8fdbd56d3e37971ee7fc0b500757a8
6
+ metadata.gz: 7d08fe5a7f0d038aa030d2aab4d71bc046a0091cae893723125ca39161904de3c1b44c3bfeeb7aee328e6ff50c6d7e421d81656e3f4ad4224eb1ecb8cec9ff65
7
+ data.tar.gz: afd3550912f18d302b362447e4385e1e58844c46c13465bc7679355125a39be848ae613c4c9b03309f8f4f153d753437a3396406ee06c6e04e09809d6f43c4ac
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.951
1
+ 3.0.952
@@ -1812,30 +1812,6 @@ module TencentCloud
1812
1812
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1813
1813
  end
1814
1814
 
1815
- # 韩国驾驶证识别
1816
-
1817
- # @param request: Request instance for RecognizeKoreanDrivingLicenseOCR.
1818
- # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanDrivingLicenseOCRRequest`
1819
- # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeKoreanDrivingLicenseOCRResponse`
1820
- def RecognizeKoreanDrivingLicenseOCR(request)
1821
- body = send_request('RecognizeKoreanDrivingLicenseOCR', request.serialize)
1822
- response = JSON.parse(body)
1823
- if response['Response'].key?('Error') == false
1824
- model = RecognizeKoreanDrivingLicenseOCRResponse.new
1825
- model.deserialize(response['Response'])
1826
- model
1827
- else
1828
- code = response['Response']['Error']['Code']
1829
- message = response['Response']['Error']['Message']
1830
- reqid = response['Response']['RequestId']
1831
- raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1832
- end
1833
- rescue TencentCloud::Common::TencentCloudSDKException => e
1834
- raise e
1835
- rescue StandardError => e
1836
- raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1837
- end
1838
-
1839
1815
  # 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
1840
1816
 
1841
1817
  # 默认接口请求频率限制:5次/秒。
@@ -1703,8 +1703,8 @@ module TencentCloud
1703
1703
 
1704
1704
  attr_accessor :PageNumber, :Angle, :Height, :Width, :OriginHeight, :OriginWidth, :Elements, :RotatedAngle
1705
1705
  extend Gem::Deprecate
1706
- deprecate :Angle, :none, 2024, 11
1707
- deprecate :Angle=, :none, 2024, 11
1706
+ deprecate :Angle, :none, 2024, 12
1707
+ deprecate :Angle=, :none, 2024, 12
1708
1708
 
1709
1709
  def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
1710
1710
  @PageNumber = pagenumber
@@ -3510,8 +3510,8 @@ module TencentCloud
3510
3510
 
3511
3511
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3512
3512
  extend Gem::Deprecate
3513
- deprecate :Angel, :none, 2024, 11
3514
- deprecate :Angel=, :none, 2024, 11
3513
+ deprecate :Angel, :none, 2024, 12
3514
+ deprecate :Angel=, :none, 2024, 12
3515
3515
 
3516
3516
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3517
3517
  @TextDetections = textdetections
@@ -3617,8 +3617,8 @@ module TencentCloud
3617
3617
 
3618
3618
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
3619
3619
  extend Gem::Deprecate
3620
- deprecate :Angel, :none, 2024, 11
3621
- deprecate :Angel=, :none, 2024, 11
3620
+ deprecate :Angel, :none, 2024, 12
3621
+ deprecate :Angel=, :none, 2024, 12
3622
3622
 
3623
3623
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
3624
3624
  @TextDetections = textdetections
@@ -3830,8 +3830,8 @@ module TencentCloud
3830
3830
 
3831
3831
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3832
3832
  extend Gem::Deprecate
3833
- deprecate :Angel, :none, 2024, 11
3834
- deprecate :Angel=, :none, 2024, 11
3833
+ deprecate :Angel, :none, 2024, 12
3834
+ deprecate :Angel=, :none, 2024, 12
3835
3835
 
3836
3836
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3837
3837
  @TextDetections = textdetections
@@ -4015,8 +4015,8 @@ module TencentCloud
4015
4015
 
4016
4016
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4017
4017
  extend Gem::Deprecate
4018
- deprecate :DetectFake, :none, 2024, 11
4019
- deprecate :DetectFake=, :none, 2024, 11
4018
+ deprecate :DetectFake, :none, 2024, 12
4019
+ deprecate :DetectFake=, :none, 2024, 12
4020
4020
 
4021
4021
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4022
4022
  @ReturnHeadImage = returnheadimage
@@ -4085,10 +4085,10 @@ module TencentCloud
4085
4085
 
4086
4086
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :WarningCode, :WarnCardInfos, :RequestId
4087
4087
  extend Gem::Deprecate
4088
- deprecate :FakeDetectResult, :none, 2024, 11
4089
- deprecate :FakeDetectResult=, :none, 2024, 11
4090
- deprecate :WarningCode, :none, 2024, 11
4091
- deprecate :WarningCode=, :none, 2024, 11
4088
+ deprecate :FakeDetectResult, :none, 2024, 12
4089
+ deprecate :FakeDetectResult=, :none, 2024, 12
4090
+ deprecate :WarningCode, :none, 2024, 12
4091
+ deprecate :WarningCode=, :none, 2024, 12
4092
4092
 
4093
4093
  def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, warningcode=nil, warncardinfos=nil, requestid=nil)
4094
4094
  @CnName = cnname
@@ -5272,8 +5272,8 @@ module TencentCloud
5272
5272
 
5273
5273
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :WarnCardInfos, :RequestId
5274
5274
  extend Gem::Deprecate
5275
- deprecate :Warn, :none, 2024, 11
5276
- deprecate :Warn=, :none, 2024, 11
5275
+ deprecate :Warn, :none, 2024, 12
5276
+ deprecate :Warn=, :none, 2024, 12
5277
5277
 
5278
5278
  def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, warncardinfos=nil, requestid=nil)
5279
5279
  @ID = id
@@ -8237,97 +8237,6 @@ module TencentCloud
8237
8237
  end
8238
8238
  end
8239
8239
 
8240
- # RecognizeKoreanDrivingLicenseOCR请求参数结构体
8241
- class RecognizeKoreanDrivingLicenseOCRRequest < TencentCloud::Common::AbstractModel
8242
- # @param ImageBase64: 图片的 Base64 值。
8243
- # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
8244
- # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
8245
- # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8246
- # @type ImageBase64: String
8247
- # @param ImageUrl: 图片的 Url 地址。
8248
- # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
8249
- # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
8250
- # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
8251
- # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8252
- # @type ImageUrl: String
8253
- # @param ReturnHeadImage: 是否返回人像照片。
8254
- # @type ReturnHeadImage: Boolean
8255
-
8256
- attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage
8257
-
8258
- def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil)
8259
- @ImageBase64 = imagebase64
8260
- @ImageUrl = imageurl
8261
- @ReturnHeadImage = returnheadimage
8262
- end
8263
-
8264
- def deserialize(params)
8265
- @ImageBase64 = params['ImageBase64']
8266
- @ImageUrl = params['ImageUrl']
8267
- @ReturnHeadImage = params['ReturnHeadImage']
8268
- end
8269
- end
8270
-
8271
- # RecognizeKoreanDrivingLicenseOCR返回参数结构体
8272
- class RecognizeKoreanDrivingLicenseOCRResponse < TencentCloud::Common::AbstractModel
8273
- # @param ID: 身份证号码
8274
- # @type ID: String
8275
- # @param LicenseNumber: 驾照号码
8276
- # @type LicenseNumber: String
8277
- # @param Number: 居民登记号码
8278
- # @type Number: String
8279
- # @param Type: 驾照类型
8280
- # @type Type: String
8281
- # @param Address: 地址
8282
- # @type Address: String
8283
- # @param Name: 姓名
8284
- # @type Name: String
8285
- # @param AptitudeTesDate: 换证时间
8286
- # @type AptitudeTesDate: String
8287
- # @param DateOfIssue: 发证日期
8288
- # @type DateOfIssue: String
8289
- # @param Photo: 人像截图Base64后的结果
8290
- # @type Photo: String
8291
- # @param Sex: 性别
8292
- # @type Sex: String
8293
- # @param Birthday: 生日,格式为dd/mm/yyyy
8294
- # @type Birthday: String
8295
- # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8296
- # @type RequestId: String
8297
-
8298
- attr_accessor :ID, :LicenseNumber, :Number, :Type, :Address, :Name, :AptitudeTesDate, :DateOfIssue, :Photo, :Sex, :Birthday, :RequestId
8299
-
8300
- def initialize(id=nil, licensenumber=nil, number=nil, type=nil, address=nil, name=nil, aptitudetesdate=nil, dateofissue=nil, photo=nil, sex=nil, birthday=nil, requestid=nil)
8301
- @ID = id
8302
- @LicenseNumber = licensenumber
8303
- @Number = number
8304
- @Type = type
8305
- @Address = address
8306
- @Name = name
8307
- @AptitudeTesDate = aptitudetesdate
8308
- @DateOfIssue = dateofissue
8309
- @Photo = photo
8310
- @Sex = sex
8311
- @Birthday = birthday
8312
- @RequestId = requestid
8313
- end
8314
-
8315
- def deserialize(params)
8316
- @ID = params['ID']
8317
- @LicenseNumber = params['LicenseNumber']
8318
- @Number = params['Number']
8319
- @Type = params['Type']
8320
- @Address = params['Address']
8321
- @Name = params['Name']
8322
- @AptitudeTesDate = params['AptitudeTesDate']
8323
- @DateOfIssue = params['DateOfIssue']
8324
- @Photo = params['Photo']
8325
- @Sex = params['Sex']
8326
- @Birthday = params['Birthday']
8327
- @RequestId = params['RequestId']
8328
- end
8329
- end
8330
-
8331
8240
  # RecognizeMedicalInvoiceOCR请求参数结构体
8332
8241
  class RecognizeMedicalInvoiceOCRRequest < TencentCloud::Common::AbstractModel
8333
8242
  # @param ImageBase64: 图片的Base64 值。
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.951
4
+ version: 3.0.952
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-11-28 00:00:00.000000000 Z
11
+ date: 2024-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common