tencentcloud-sdk-ocr 3.0.581 → 3.0.583
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 +26 -0
- data/lib/v20181119/models.rb +96 -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: 7926d066fd372bcaaf7b10f6538605f2ae3c0e62
|
4
|
+
data.tar.gz: ff518cc11594116827b679fa9f843b9abd1b15df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c72d6bb688747241b3d234c9183e6e302a6902a9c3a7b11f1b11ec1da244e39d05ca76eb7e0ec652fd743c6c601824a0becc1abb0ce3459e9a347e056dabd6f
|
7
|
+
data.tar.gz: 8f078dfbe3ae68d077c37f8cd71084318f2ed793f040cc2a4a0ebfa39d0f0ced93c81275f80044f08ac4fa404c24095cb1338d2d596358181d950f7a64099856
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.583
|
data/lib/v20181119/client.rb
CHANGED
@@ -1809,6 +1809,30 @@ module TencentCloud
|
|
1809
1809
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1810
1810
|
end
|
1811
1811
|
|
1812
|
+
# 菲律宾UMID识别
|
1813
|
+
|
1814
|
+
# @param request: Request instance for RecognizePhilippinesUMIDOCR.
|
1815
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRRequest`
|
1816
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizePhilippinesUMIDOCRResponse`
|
1817
|
+
def RecognizePhilippinesUMIDOCR(request)
|
1818
|
+
body = send_request('RecognizePhilippinesUMIDOCR', request.serialize)
|
1819
|
+
response = JSON.parse(body)
|
1820
|
+
if response['Response'].key?('Error') == false
|
1821
|
+
model = RecognizePhilippinesUMIDOCRResponse.new
|
1822
|
+
model.deserialize(response['Response'])
|
1823
|
+
model
|
1824
|
+
else
|
1825
|
+
code = response['Response']['Error']['Code']
|
1826
|
+
message = response['Response']['Error']['Message']
|
1827
|
+
reqid = response['Response']['RequestId']
|
1828
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1829
|
+
end
|
1830
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1831
|
+
raise e
|
1832
|
+
rescue StandardError => e
|
1833
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1834
|
+
end
|
1835
|
+
|
1812
1836
|
# 本接口支持菲律宾VoteID识别,识别字段包括姓名、姓氏、出生日期、婚姻状况、国籍、地址、地区、菲律宾VoteID的VIN等。
|
1813
1837
|
|
1814
1838
|
# 默认接口请求频率限制:20次/秒。
|
@@ -1890,6 +1914,8 @@ module TencentCloud
|
|
1890
1914
|
# 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
1891
1915
|
# 本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
1892
1916
|
|
1917
|
+
# 默认接口请求频率限制:10次/秒
|
1918
|
+
|
1893
1919
|
# @param request: Request instance for RecognizeThaiIDCardOCR.
|
1894
1920
|
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRRequest`
|
1895
1921
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeThaiIDCardOCRResponse`
|
data/lib/v20181119/models.rb
CHANGED
@@ -6548,6 +6548,102 @@ module TencentCloud
|
|
6548
6548
|
end
|
6549
6549
|
end
|
6550
6550
|
|
6551
|
+
# RecognizePhilippinesUMIDOCR请求参数结构体
|
6552
|
+
class RecognizePhilippinesUMIDOCRRequest < TencentCloud::Common::AbstractModel
|
6553
|
+
# @param ImageBase64: 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
6554
|
+
# @type ImageBase64: String
|
6555
|
+
# @param ImageUrl: 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
6556
|
+
# @type ImageUrl: String
|
6557
|
+
# @param ReturnHeadImage: 是否返回人像照片。
|
6558
|
+
# @type ReturnHeadImage: Boolean
|
6559
|
+
|
6560
|
+
attr_accessor :ImageBase64, :ImageUrl, :ReturnHeadImage
|
6561
|
+
|
6562
|
+
def initialize(imagebase64=nil, imageurl=nil, returnheadimage=nil)
|
6563
|
+
@ImageBase64 = imagebase64
|
6564
|
+
@ImageUrl = imageurl
|
6565
|
+
@ReturnHeadImage = returnheadimage
|
6566
|
+
end
|
6567
|
+
|
6568
|
+
def deserialize(params)
|
6569
|
+
@ImageBase64 = params['ImageBase64']
|
6570
|
+
@ImageUrl = params['ImageUrl']
|
6571
|
+
@ReturnHeadImage = params['ReturnHeadImage']
|
6572
|
+
end
|
6573
|
+
end
|
6574
|
+
|
6575
|
+
# RecognizePhilippinesUMIDOCR返回参数结构体
|
6576
|
+
class RecognizePhilippinesUMIDOCRResponse < TencentCloud::Common::AbstractModel
|
6577
|
+
# @param Surname: 姓
|
6578
|
+
# @type Surname: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6579
|
+
# @param MiddleName: 中间名
|
6580
|
+
# @type MiddleName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6581
|
+
# @param GivenName: 名
|
6582
|
+
# @type GivenName: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6583
|
+
# @param Address: 地址
|
6584
|
+
# @type Address: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6585
|
+
# @param Birthday: 生日
|
6586
|
+
# @type Birthday: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6587
|
+
# @param CRN: crn码
|
6588
|
+
# @type CRN: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6589
|
+
# @param Sex: 性别
|
6590
|
+
# @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6591
|
+
# @param HeadPortrait: 人像照片Base64后的结果
|
6592
|
+
# @type HeadPortrait: :class:`Tencentcloud::Ocr.v20181119.models.TextDetectionResult`
|
6593
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6594
|
+
# @type RequestId: String
|
6595
|
+
|
6596
|
+
attr_accessor :Surname, :MiddleName, :GivenName, :Address, :Birthday, :CRN, :Sex, :HeadPortrait, :RequestId
|
6597
|
+
|
6598
|
+
def initialize(surname=nil, middlename=nil, givenname=nil, address=nil, birthday=nil, crn=nil, sex=nil, headportrait=nil, requestid=nil)
|
6599
|
+
@Surname = surname
|
6600
|
+
@MiddleName = middlename
|
6601
|
+
@GivenName = givenname
|
6602
|
+
@Address = address
|
6603
|
+
@Birthday = birthday
|
6604
|
+
@CRN = crn
|
6605
|
+
@Sex = sex
|
6606
|
+
@HeadPortrait = headportrait
|
6607
|
+
@RequestId = requestid
|
6608
|
+
end
|
6609
|
+
|
6610
|
+
def deserialize(params)
|
6611
|
+
unless params['Surname'].nil?
|
6612
|
+
@Surname = TextDetectionResult.new
|
6613
|
+
@Surname.deserialize(params['Surname'])
|
6614
|
+
end
|
6615
|
+
unless params['MiddleName'].nil?
|
6616
|
+
@MiddleName = TextDetectionResult.new
|
6617
|
+
@MiddleName.deserialize(params['MiddleName'])
|
6618
|
+
end
|
6619
|
+
unless params['GivenName'].nil?
|
6620
|
+
@GivenName = TextDetectionResult.new
|
6621
|
+
@GivenName.deserialize(params['GivenName'])
|
6622
|
+
end
|
6623
|
+
unless params['Address'].nil?
|
6624
|
+
@Address = TextDetectionResult.new
|
6625
|
+
@Address.deserialize(params['Address'])
|
6626
|
+
end
|
6627
|
+
unless params['Birthday'].nil?
|
6628
|
+
@Birthday = TextDetectionResult.new
|
6629
|
+
@Birthday.deserialize(params['Birthday'])
|
6630
|
+
end
|
6631
|
+
unless params['CRN'].nil?
|
6632
|
+
@CRN = TextDetectionResult.new
|
6633
|
+
@CRN.deserialize(params['CRN'])
|
6634
|
+
end
|
6635
|
+
unless params['Sex'].nil?
|
6636
|
+
@Sex = TextDetectionResult.new
|
6637
|
+
@Sex.deserialize(params['Sex'])
|
6638
|
+
end
|
6639
|
+
unless params['HeadPortrait'].nil?
|
6640
|
+
@HeadPortrait = TextDetectionResult.new
|
6641
|
+
@HeadPortrait.deserialize(params['HeadPortrait'])
|
6642
|
+
end
|
6643
|
+
@RequestId = params['RequestId']
|
6644
|
+
end
|
6645
|
+
end
|
6646
|
+
|
6551
6647
|
# RecognizePhilippinesVoteIDOCR请求参数结构体
|
6552
6648
|
class RecognizePhilippinesVoteIDOCRRequest < TencentCloud::Common::AbstractModel
|
6553
6649
|
# @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.583
|
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-
|
11
|
+
date: 2023-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|