tencentcloud-sdk-ocr 3.0.555 → 3.0.556
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +48 -0
- data/lib/v20181119/models.rb +164 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6173eb17a6ccf0b95fdd403ffdb7f5b353bf507
|
4
|
+
data.tar.gz: 1196e3f7fd0005ef7a6d2ca72cd02793d89653e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd8bf3ca23e18ed4b1bbec8e492ce632ab5e6e6f2968d80093036608fb1f8b06fd5106c8a3b450c397e3fae5511ec23f1ea3dda2b065ca0021eeb8c0de80974e
|
7
|
+
data.tar.gz: 2af9fbfc81a3f9e66e06e01e2d160b741fc69876bcc3af8db75335f4cbeb218f5843305874af7f0e9effdcff63e8e7defc82ae82bff0e686a3846feb1100a4f0
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.556
|
data/lib/v20181119/client.rb
CHANGED
@@ -1609,6 +1609,54 @@ module TencentCloud
|
|
1609
1609
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1610
1610
|
end
|
1611
1611
|
|
1612
|
+
# 菲律宾SSSID识别
|
1613
|
+
|
1614
|
+
# @param request: Request instance for RecognizePhilippinesSssIDOCR.
|
1615
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRRequest`
|
1616
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesSssIDOCRResponse`
|
1617
|
+
def RecognizePhilippinesSssIDOCR(request)
|
1618
|
+
body = send_request('RecognizePhilippinesSssIDOCR', request.serialize)
|
1619
|
+
response = JSON.parse(body)
|
1620
|
+
if response['Response'].key?('Error') == false
|
1621
|
+
model = RecognizePhilippinesSssIDOCRResponse.new
|
1622
|
+
model.deserialize(response['Response'])
|
1623
|
+
model
|
1624
|
+
else
|
1625
|
+
code = response['Response']['Error']['Code']
|
1626
|
+
message = response['Response']['Error']['Message']
|
1627
|
+
reqid = response['Response']['RequestId']
|
1628
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1629
|
+
end
|
1630
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1631
|
+
raise e
|
1632
|
+
rescue StandardError => e
|
1633
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1634
|
+
end
|
1635
|
+
|
1636
|
+
# 菲律宾TinID识别
|
1637
|
+
|
1638
|
+
# @param request: Request instance for RecognizePhilippinesTinIDOCR.
|
1639
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRRequest`
|
1640
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesTinIDOCRResponse`
|
1641
|
+
def RecognizePhilippinesTinIDOCR(request)
|
1642
|
+
body = send_request('RecognizePhilippinesTinIDOCR', request.serialize)
|
1643
|
+
response = JSON.parse(body)
|
1644
|
+
if response['Response'].key?('Error') == false
|
1645
|
+
model = RecognizePhilippinesTinIDOCRResponse.new
|
1646
|
+
model.deserialize(response['Response'])
|
1647
|
+
model
|
1648
|
+
else
|
1649
|
+
code = response['Response']['Error']['Code']
|
1650
|
+
message = response['Response']['Error']['Message']
|
1651
|
+
reqid = response['Response']['RequestId']
|
1652
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1653
|
+
end
|
1654
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1655
|
+
raise e
|
1656
|
+
rescue StandardError => e
|
1657
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1658
|
+
end
|
1659
|
+
|
1612
1660
|
# 本接口支持菲律宾VoteID识别,识别字段包括姓名、姓氏、出生日期、婚姻状况、国籍、地址、地区、菲律宾VoteID的VIN等。
|
1613
1661
|
|
1614
1662
|
# 默认接口请求频率限制:20次/秒。
|
data/lib/v20181119/models.rb
CHANGED
@@ -5244,6 +5244,170 @@ module TencentCloud
|
|
5244
5244
|
end
|
5245
5245
|
end
|
5246
5246
|
|
5247
|
+
# RecognizePhilippinesSssIDOCR请求参数结构体
|
5248
|
+
class RecognizePhilippinesSssIDOCRRequest < TencentCloud::Common::AbstractModel
|
5249
|
+
# @param ReturnHeadImage: 是否返回人像照片。
|
5250
|
+
# @type ReturnHeadImage: Boolean
|
5251
|
+
# @param ImageBase64: 图片的 Base64 值。
|
5252
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5253
|
+
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
5254
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5255
|
+
# @type ImageBase64: String
|
5256
|
+
# @param ImageUrl: 图片的 Url 地址。
|
5257
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5258
|
+
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
5259
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5260
|
+
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5261
|
+
# @type ImageUrl: String
|
5262
|
+
|
5263
|
+
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
5264
|
+
|
5265
|
+
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
5266
|
+
@ReturnHeadImage = returnheadimage
|
5267
|
+
@ImageBase64 = imagebase64
|
5268
|
+
@ImageUrl = imageurl
|
5269
|
+
end
|
5270
|
+
|
5271
|
+
def deserialize(params)
|
5272
|
+
@ReturnHeadImage = params['ReturnHeadImage']
|
5273
|
+
@ImageBase64 = params['ImageBase64']
|
5274
|
+
@ImageUrl = params['ImageUrl']
|
5275
|
+
end
|
5276
|
+
end
|
5277
|
+
|
5278
|
+
# RecognizePhilippinesSssIDOCR返回参数结构体
|
5279
|
+
class RecognizePhilippinesSssIDOCRResponse < TencentCloud::Common::AbstractModel
|
5280
|
+
# @param HeadPortrait: 人像照片Base64后的结果
|
5281
|
+
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5282
|
+
# @param LicenseNumber: 编号
|
5283
|
+
# @type LicenseNumber: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5284
|
+
# @param FullName: 姓名
|
5285
|
+
# @type FullName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5286
|
+
# @param Birthday: 生日
|
5287
|
+
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5288
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5289
|
+
# @type RequestId: String
|
5290
|
+
|
5291
|
+
attr_accessor :HeadPortrait, :LicenseNumber, :FullName, :Birthday, :RequestId
|
5292
|
+
|
5293
|
+
def initialize(headportrait=nil, licensenumber=nil, fullname=nil, birthday=nil, requestid=nil)
|
5294
|
+
@HeadPortrait = headportrait
|
5295
|
+
@LicenseNumber = licensenumber
|
5296
|
+
@FullName = fullname
|
5297
|
+
@Birthday = birthday
|
5298
|
+
@RequestId = requestid
|
5299
|
+
end
|
5300
|
+
|
5301
|
+
def deserialize(params)
|
5302
|
+
unless params['HeadPortrait'].nil?
|
5303
|
+
@HeadPortrait = TextDetectionResult.new
|
5304
|
+
@HeadPortrait.deserialize(params['HeadPortrait'])
|
5305
|
+
end
|
5306
|
+
unless params['LicenseNumber'].nil?
|
5307
|
+
@LicenseNumber = TextDetectionResult.new
|
5308
|
+
@LicenseNumber.deserialize(params['LicenseNumber'])
|
5309
|
+
end
|
5310
|
+
unless params['FullName'].nil?
|
5311
|
+
@FullName = TextDetectionResult.new
|
5312
|
+
@FullName.deserialize(params['FullName'])
|
5313
|
+
end
|
5314
|
+
unless params['Birthday'].nil?
|
5315
|
+
@Birthday = TextDetectionResult.new
|
5316
|
+
@Birthday.deserialize(params['Birthday'])
|
5317
|
+
end
|
5318
|
+
@RequestId = params['RequestId']
|
5319
|
+
end
|
5320
|
+
end
|
5321
|
+
|
5322
|
+
# RecognizePhilippinesTinIDOCR请求参数结构体
|
5323
|
+
class RecognizePhilippinesTinIDOCRRequest < TencentCloud::Common::AbstractModel
|
5324
|
+
# @param ReturnHeadImage: 是否返回人像照片。
|
5325
|
+
# @type ReturnHeadImage: Boolean
|
5326
|
+
# @param ImageBase64: 图片的 Base64 值。
|
5327
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5328
|
+
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
5329
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5330
|
+
# @type ImageBase64: String
|
5331
|
+
# @param ImageUrl: 图片的 Url 地址。
|
5332
|
+
# 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5333
|
+
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
5334
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5335
|
+
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5336
|
+
# @type ImageUrl: String
|
5337
|
+
|
5338
|
+
attr_accessor :ReturnHeadImage, :ImageBase64, :ImageUrl
|
5339
|
+
|
5340
|
+
def initialize(returnheadimage=nil, imagebase64=nil, imageurl=nil)
|
5341
|
+
@ReturnHeadImage = returnheadimage
|
5342
|
+
@ImageBase64 = imagebase64
|
5343
|
+
@ImageUrl = imageurl
|
5344
|
+
end
|
5345
|
+
|
5346
|
+
def deserialize(params)
|
5347
|
+
@ReturnHeadImage = params['ReturnHeadImage']
|
5348
|
+
@ImageBase64 = params['ImageBase64']
|
5349
|
+
@ImageUrl = params['ImageUrl']
|
5350
|
+
end
|
5351
|
+
end
|
5352
|
+
|
5353
|
+
# RecognizePhilippinesTinIDOCR返回参数结构体
|
5354
|
+
class RecognizePhilippinesTinIDOCRResponse < TencentCloud::Common::AbstractModel
|
5355
|
+
# @param HeadPortrait: 人像照片Base64后的结果
|
5356
|
+
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5357
|
+
# @param LicenseNumber: 编码
|
5358
|
+
# @type LicenseNumber: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5359
|
+
# @param FullName: 姓名
|
5360
|
+
# @type FullName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5361
|
+
# @param Address: 地址
|
5362
|
+
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5363
|
+
# @param Birthday: 生日
|
5364
|
+
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5365
|
+
# @param IssueDate: 发证日期
|
5366
|
+
# @type IssueDate: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
5367
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5368
|
+
# @type RequestId: String
|
5369
|
+
|
5370
|
+
attr_accessor :HeadPortrait, :LicenseNumber, :FullName, :Address, :Birthday, :IssueDate, :RequestId
|
5371
|
+
|
5372
|
+
def initialize(headportrait=nil, licensenumber=nil, fullname=nil, address=nil, birthday=nil, issuedate=nil, requestid=nil)
|
5373
|
+
@HeadPortrait = headportrait
|
5374
|
+
@LicenseNumber = licensenumber
|
5375
|
+
@FullName = fullname
|
5376
|
+
@Address = address
|
5377
|
+
@Birthday = birthday
|
5378
|
+
@IssueDate = issuedate
|
5379
|
+
@RequestId = requestid
|
5380
|
+
end
|
5381
|
+
|
5382
|
+
def deserialize(params)
|
5383
|
+
unless params['HeadPortrait'].nil?
|
5384
|
+
@HeadPortrait = TextDetectionResult.new
|
5385
|
+
@HeadPortrait.deserialize(params['HeadPortrait'])
|
5386
|
+
end
|
5387
|
+
unless params['LicenseNumber'].nil?
|
5388
|
+
@LicenseNumber = TextDetectionResult.new
|
5389
|
+
@LicenseNumber.deserialize(params['LicenseNumber'])
|
5390
|
+
end
|
5391
|
+
unless params['FullName'].nil?
|
5392
|
+
@FullName = TextDetectionResult.new
|
5393
|
+
@FullName.deserialize(params['FullName'])
|
5394
|
+
end
|
5395
|
+
unless params['Address'].nil?
|
5396
|
+
@Address = TextDetectionResult.new
|
5397
|
+
@Address.deserialize(params['Address'])
|
5398
|
+
end
|
5399
|
+
unless params['Birthday'].nil?
|
5400
|
+
@Birthday = TextDetectionResult.new
|
5401
|
+
@Birthday.deserialize(params['Birthday'])
|
5402
|
+
end
|
5403
|
+
unless params['IssueDate'].nil?
|
5404
|
+
@IssueDate = TextDetectionResult.new
|
5405
|
+
@IssueDate.deserialize(params['IssueDate'])
|
5406
|
+
end
|
5407
|
+
@RequestId = params['RequestId']
|
5408
|
+
end
|
5409
|
+
end
|
5410
|
+
|
5247
5411
|
# RecognizePhilippinesVoteIDOCR请求参数结构体
|
5248
5412
|
class RecognizePhilippinesVoteIDOCRRequest < TencentCloud::Common::AbstractModel
|
5249
5413
|
# @param ReturnHeadImage: 是否返回人像照片。
|
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.
|
4
|
+
version: 3.0.556
|
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-04-
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|