tencentcloud-sdk-ocr 3.0.581 → 3.0.582

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: 3d553fb687a7f40549d282c51c06b9b15c910e3f
4
- data.tar.gz: 0d51881d5beb85188b20a0e52e3ba19ca4c2841e
3
+ metadata.gz: b801857e2aeec51b171e0d9d0d13c69b9d59bd0e
4
+ data.tar.gz: e7d9267c14427f3d76d91982821a4649f8c56bc8
5
5
  SHA512:
6
- metadata.gz: eae5b82741f1261e29fb02df4f8d8b768cef6ac269f1b241c1695046d838f3863fd0437c2150c326e027d2bdf7ff07c0a8065a068ddc4f79741520a18258c076
7
- data.tar.gz: eead0178cabc538fd208d3dd167057a7c417f746566b90bac0998e358ba204d6d725f3d5ff2e4fa4def32cd5fa85dc8abace663b36b0c540cf36196b3c8c6568
6
+ metadata.gz: 32811ce3c4d22a8604e6b769005162ca28ea7e0c0df0b204824d218df4f69fbcf999d99aae1c3a042966f9ef591d185afe4d6fecf7f97cd738cb1910ea92185d
7
+ data.tar.gz: d5f8e794af8d19c20165aa4f71a98c063e96e0e746cca825557fe2d32e85111a5c28edee983d0e4c5fbb27cc6360a50205d54a72328c021e3e650727f6bb4772
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.581
1
+ 3.0.582
@@ -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`
@@ -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.581
4
+ version: 3.0.582
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-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common