tencentcloud-sdk-ocr 3.0.706 → 3.0.708

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +79 -12
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 866d1dd600aab986bbbc3dc441fcf3e330773496
4
- data.tar.gz: fcb3ad5fe5e01fdb60e7c2993eeb5a85a350a64a
3
+ metadata.gz: 7736914dd21b141b11b0cd66151cb2302988d144
4
+ data.tar.gz: 31ff7d001316771777fd09f9967fb41a7850c87d
5
5
  SHA512:
6
- metadata.gz: 4b30ad19a66a40340feb008db6bacbe7a4a64ae6cfaf7791666373fe8a64e53d85fbae0b6b622b407cd24cb1ff706382f1876ccef7a33f33c5d3c123637bceea
7
- data.tar.gz: b3b955620639874232c6ae19237a18ee682e4bff2268daf53a557d5080b99edd26e8883719dba1e4ea9e414fda0745ce26c52793b3b2010072187b8dde07fcbd
6
+ metadata.gz: 7091805c3cfff0f21708733ca35209b9f904b06adc366e7eed2cf6f3f13a304af27f23adf3587130ce633ec56ea8d08350a4f3c9d3508a09d17c8bc770486c8b
7
+ data.tar.gz: 89a49970bc7d58766b33d9fb5ae482cfed0017b671f02f8c3cb4b0bfa59979106b08a6a0f2b84f341be8a974664c9cec3b43ad00b6b54c8fd403540b005f4a9d
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.706
1
+ 3.0.708
@@ -4002,21 +4002,21 @@ module TencentCloud
4002
4002
 
4003
4003
  # MLIDPassportOCR返回参数结构体
4004
4004
  class MLIDPassportOCRResponse < TencentCloud::Common::AbstractModel
4005
- # @param ID: 护照ID
4005
+ # @param ID: 护照ID(机读码区的解析结果)
4006
4006
  # @type ID: String
4007
- # @param Name: 姓名
4007
+ # @param Name: 姓名(机读码区的解析结果)
4008
4008
  # @type Name: String
4009
- # @param DateOfBirth: 出生日期
4009
+ # @param DateOfBirth: 出生日期(机读码区的解析结果)
4010
4010
  # @type DateOfBirth: String
4011
- # @param Sex: 性别(F女,M男)
4011
+ # @param Sex: 性别(F女,M男)(机读码区的解析结果)
4012
4012
  # @type Sex: String
4013
- # @param DateOfExpiration: 有效期
4013
+ # @param DateOfExpiration: 有效期(机读码区的解析结果)
4014
4014
  # @type DateOfExpiration: String
4015
- # @param IssuingCountry: 发行国
4015
+ # @param IssuingCountry: 发行国(机读码区的解析结果)
4016
4016
  # @type IssuingCountry: String
4017
- # @param Nationality: 国家地区代码
4017
+ # @param Nationality: 国家地区代码(机读码区的解析结果)
4018
4018
  # @type Nationality: String
4019
- # @param Warn: 告警码
4019
+ # @param Warn: 告警码:
4020
4020
  # -9103 证照翻拍告警
4021
4021
  # -9102 证照复印件告警(包括黑白复印件、彩色复印件)
4022
4022
  # -9106 证件遮挡告警
@@ -4037,18 +4037,22 @@ module TencentCloud
4037
4037
  # @type CodeSet: String
4038
4038
  # @param CodeCrc: 最下方第二行 MRZ Code 序列
4039
4039
  # @type CodeCrc: String
4040
- # @param Surname:
4040
+ # @param Surname: 姓(机读码区的解析结果)
4041
4041
  # 注意:此字段可能返回 null,表示取不到有效值。
4042
4042
  # @type Surname: String
4043
- # @param GivenName:
4043
+ # @param GivenName: 名(机读码区的解析结果)
4044
4044
  # 注意:此字段可能返回 null,表示取不到有效值。
4045
4045
  # @type GivenName: String
4046
+ # @param Type: 类型(机读码区的解析结果)
4047
+ # @type Type: String
4048
+ # @param PassportRecognizeInfos: 信息区证件内容
4049
+ # @type PassportRecognizeInfos: :class:`Tencentcloud::Ocr.v20181119.models.PassportRecognizeInfos`
4046
4050
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4047
4051
  # @type RequestId: String
4048
4052
 
4049
- attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :RequestId
4053
+ attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :RequestId
4050
4054
 
4051
- def initialize(id=nil, name=nil, dateofbirth=nil, sex=nil, dateofexpiration=nil, issuingcountry=nil, nationality=nil, warn=nil, image=nil, advancedinfo=nil, codeset=nil, codecrc=nil, surname=nil, givenname=nil, requestid=nil)
4055
+ def initialize(id=nil, name=nil, dateofbirth=nil, sex=nil, dateofexpiration=nil, issuingcountry=nil, nationality=nil, warn=nil, image=nil, advancedinfo=nil, codeset=nil, codecrc=nil, surname=nil, givenname=nil, type=nil, passportrecognizeinfos=nil, requestid=nil)
4052
4056
  @ID = id
4053
4057
  @Name = name
4054
4058
  @DateOfBirth = dateofbirth
@@ -4063,6 +4067,8 @@ module TencentCloud
4063
4067
  @CodeCrc = codecrc
4064
4068
  @Surname = surname
4065
4069
  @GivenName = givenname
4070
+ @Type = type
4071
+ @PassportRecognizeInfos = passportrecognizeinfos
4066
4072
  @RequestId = requestid
4067
4073
  end
4068
4074
 
@@ -4081,6 +4087,11 @@ module TencentCloud
4081
4087
  @CodeCrc = params['CodeCrc']
4082
4088
  @Surname = params['Surname']
4083
4089
  @GivenName = params['GivenName']
4090
+ @Type = params['Type']
4091
+ unless params['PassportRecognizeInfos'].nil?
4092
+ @PassportRecognizeInfos = PassportRecognizeInfos.new
4093
+ @PassportRecognizeInfos.deserialize(params['PassportRecognizeInfos'])
4094
+ end
4084
4095
  @RequestId = params['RequestId']
4085
4096
  end
4086
4097
  end
@@ -5362,6 +5373,62 @@ module TencentCloud
5362
5373
  end
5363
5374
  end
5364
5375
 
5376
+ # 信息区证件内容
5377
+ class PassportRecognizeInfos < TencentCloud::Common::AbstractModel
5378
+ # @param Type: 证件类型(护照信息页识别结果)
5379
+ # @type Type: String
5380
+ # @param IssuingCountry: 发行国家(护照信息页识别结果)
5381
+ # @type IssuingCountry: String
5382
+ # @param PassportID: 护照号码(护照信息页识别结果)
5383
+ # @type PassportID: String
5384
+ # @param Surname: 姓(护照信息页识别结果)
5385
+ # @type Surname: String
5386
+ # @param GivenName: 名(护照信息页识别结果)
5387
+ # @type GivenName: String
5388
+ # @param Name: 姓名(护照信息页识别结果)
5389
+ # @type Name: String
5390
+ # @param Nationality: 国籍信息(护照信息页识别结果)
5391
+ # @type Nationality: String
5392
+ # @param DateOfBirth: 出生日期(护照信息页识别结果)
5393
+ # @type DateOfBirth: String
5394
+ # @param Sex: 性别(护照信息页识别结果)
5395
+ # @type Sex: String
5396
+ # @param DateOfIssuance: 发行日期(护照信息页识别结果)
5397
+ # @type DateOfIssuance: String
5398
+ # @param DateOfExpiration: 截止日期(护照信息页识别结果)
5399
+ # @type DateOfExpiration: String
5400
+
5401
+ attr_accessor :Type, :IssuingCountry, :PassportID, :Surname, :GivenName, :Name, :Nationality, :DateOfBirth, :Sex, :DateOfIssuance, :DateOfExpiration
5402
+
5403
+ def initialize(type=nil, issuingcountry=nil, passportid=nil, surname=nil, givenname=nil, name=nil, nationality=nil, dateofbirth=nil, sex=nil, dateofissuance=nil, dateofexpiration=nil)
5404
+ @Type = type
5405
+ @IssuingCountry = issuingcountry
5406
+ @PassportID = passportid
5407
+ @Surname = surname
5408
+ @GivenName = givenname
5409
+ @Name = name
5410
+ @Nationality = nationality
5411
+ @DateOfBirth = dateofbirth
5412
+ @Sex = sex
5413
+ @DateOfIssuance = dateofissuance
5414
+ @DateOfExpiration = dateofexpiration
5415
+ end
5416
+
5417
+ def deserialize(params)
5418
+ @Type = params['Type']
5419
+ @IssuingCountry = params['IssuingCountry']
5420
+ @PassportID = params['PassportID']
5421
+ @Surname = params['Surname']
5422
+ @GivenName = params['GivenName']
5423
+ @Name = params['Name']
5424
+ @Nationality = params['Nationality']
5425
+ @DateOfBirth = params['DateOfBirth']
5426
+ @Sex = params['Sex']
5427
+ @DateOfIssuance = params['DateOfIssuance']
5428
+ @DateOfExpiration = params['DateOfExpiration']
5429
+ end
5430
+ end
5431
+
5365
5432
  # PermitOCR请求参数结构体
5366
5433
  class PermitOCRRequest < TencentCloud::Common::AbstractModel
5367
5434
  # @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.706
4
+ version: 3.0.708
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-16 00:00:00.000000000 Z
11
+ date: 2023-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common