tencentcloud-sdk-ocr 3.0.937 → 3.0.939

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d395cb9d7cb5a6fa8540b9eec2671fc40efa889f
4
- data.tar.gz: c427f67c290b3318348c4e8e20d4c03024d3b78f
3
+ metadata.gz: d6651d1f9c290e79b078ee91f171235d4cc87377
4
+ data.tar.gz: 2aba765a86f74f11ecce685a2a6021eafb15a5b9
5
5
  SHA512:
6
- metadata.gz: 2198e650085eb2223cf766263c49dc8534cc6a253016884308c0cc6da8a54956aee2b37851b07deeeaff86200aab04a26edd8a8f6506dc78239d637f4c560c2a
7
- data.tar.gz: d8f9098a69ad080d1e87affd5ce00690cb11dc667fb2e08beea9af540f9a1f55fbe1ada246eacacfc141aa04c0ad4b4de8af2bf81faa0e4975debf8e876aaa12
6
+ metadata.gz: 17d3501758bcbadb45b864c8f837fba486b2913d28ae553b4dd3ca67eb51aa5f04d482b4221dd61e6571b59d2cd8bbcdbe665efe4ac6a39360ae048cccc49830
7
+ data.tar.gz: bd31f3f8aa35e501c96bd6537ff9c786bb7991003dd4c969784d32fd1e357f4c90f6d7f09bdb5296c75c031cffea6b0dfa0a23cf0e53bd7d6c76d9351c347ed8
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.937
1
+ 3.0.939
@@ -2143,6 +2143,32 @@ module TencentCloud
2143
2143
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2144
2144
  end
2145
2145
 
2146
+ # 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
2147
+
2148
+ # 默认接口请求频率限制:20次/秒。
2149
+
2150
+ # @param request: Request instance for RecognizeValidIDCardOCR.
2151
+ # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeValidIDCardOCRRequest`
2152
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeValidIDCardOCRResponse`
2153
+ def RecognizeValidIDCardOCR(request)
2154
+ body = send_request('RecognizeValidIDCardOCR', request.serialize)
2155
+ response = JSON.parse(body)
2156
+ if response['Response'].key?('Error') == false
2157
+ model = RecognizeValidIDCardOCRResponse.new
2158
+ model.deserialize(response['Response'])
2159
+ model
2160
+ else
2161
+ code = response['Response']['Error']['Code']
2162
+ message = response['Response']['Error']['Message']
2163
+ reqid = response['Response']['RequestId']
2164
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2165
+ end
2166
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2167
+ raise e
2168
+ rescue StandardError => e
2169
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2170
+ end
2171
+
2146
2172
  # 服务已迁移至 [文档解析](https://cloud.tencent.com/document/product/1759/107504),请跳转查看接口文档。该接口支持将图片或PDF文件转换成Markdown格式文件,可解析包括表格、公式、图片、标题、段落、页眉、页脚等内容元素,并将内容智能转换成阅读顺序。
2147
2173
 
2148
2174
  # @param request: Request instance for ReconstructDocument.
@@ -1182,6 +1182,48 @@ module TencentCloud
1182
1182
  end
1183
1183
  end
1184
1184
 
1185
+ # 卡证告警信息返回
1186
+ class CardWarnInfo < TencentCloud::Common::AbstractModel
1187
+ # @param BorderCheck: 证件边缘是否完整
1188
+ # 0:正常
1189
+ # 1:边缘不完整
1190
+ # @type BorderCheck: Integer
1191
+ # @param OcclusionCheck: 证件是否被遮挡
1192
+ # 0:正常
1193
+ # 1:有遮挡
1194
+ # @type OcclusionCheck: Integer
1195
+ # @param CopyCheck: 是否复印
1196
+ # 0:正常
1197
+ # 1:复印件
1198
+ # @type CopyCheck: Integer
1199
+ # @param ReshootCheck: 是否屏幕翻拍
1200
+ # 0:正常
1201
+ # 1:翻拍
1202
+ # @type ReshootCheck: Integer
1203
+ # @param PSCheck: 证件是否有PS
1204
+ # 0:正常
1205
+ # 1:有PS
1206
+ # @type PSCheck: Integer
1207
+
1208
+ attr_accessor :BorderCheck, :OcclusionCheck, :CopyCheck, :ReshootCheck, :PSCheck
1209
+
1210
+ def initialize(bordercheck=nil, occlusioncheck=nil, copycheck=nil, reshootcheck=nil, pscheck=nil)
1211
+ @BorderCheck = bordercheck
1212
+ @OcclusionCheck = occlusioncheck
1213
+ @CopyCheck = copycheck
1214
+ @ReshootCheck = reshootcheck
1215
+ @PSCheck = pscheck
1216
+ end
1217
+
1218
+ def deserialize(params)
1219
+ @BorderCheck = params['BorderCheck']
1220
+ @OcclusionCheck = params['OcclusionCheck']
1221
+ @CopyCheck = params['CopyCheck']
1222
+ @ReshootCheck = params['ReshootCheck']
1223
+ @PSCheck = params['PSCheck']
1224
+ end
1225
+ end
1226
+
1185
1227
  # 单元格识别结果
1186
1228
  class CellContent < TencentCloud::Common::AbstractModel
1187
1229
  # @param ParagNo: 段落编号
@@ -1354,6 +1396,38 @@ module TencentCloud
1354
1396
  end
1355
1397
  end
1356
1398
 
1399
+ # 卡证字段信息返回值
1400
+ class ContentInfo < TencentCloud::Common::AbstractModel
1401
+ # @param Content: 字段内容
1402
+ # @type Content: String
1403
+ # @param Confidence: 结果置信度
1404
+ # @type Confidence: Integer
1405
+ # @param IsInComplete: 字段是否不完整
1406
+ # 0 字段正常
1407
+ # 1 字段不完整
1408
+ # @type IsInComplete: Integer
1409
+ # @param IsReflect: 字段反光
1410
+ # 0 字段正常
1411
+ # 1 字段有反光
1412
+ # @type IsReflect: Integer
1413
+
1414
+ attr_accessor :Content, :Confidence, :IsInComplete, :IsReflect
1415
+
1416
+ def initialize(content=nil, confidence=nil, isincomplete=nil, isreflect=nil)
1417
+ @Content = content
1418
+ @Confidence = confidence
1419
+ @IsInComplete = isincomplete
1420
+ @IsReflect = isreflect
1421
+ end
1422
+
1423
+ def deserialize(params)
1424
+ @Content = params['Content']
1425
+ @Confidence = params['Confidence']
1426
+ @IsInComplete = params['IsInComplete']
1427
+ @IsReflect = params['IsReflect']
1428
+ end
1429
+ end
1430
+
1357
1431
  # 坐标
1358
1432
  class Coord < TencentCloud::Common::AbstractModel
1359
1433
  # @param X: 横坐标
@@ -4063,19 +4137,23 @@ module TencentCloud
4063
4137
  # BACK:无照片的一面(国徽面),
4064
4138
  # 该参数如果不填或填错,将为您自动判断正反面。
4065
4139
  # @type CardSide: String
4140
+ # @param CropPortrait: 是否返回头像和位置坐标
4141
+ # @type CropPortrait: Boolean
4066
4142
 
4067
- attr_accessor :ImageBase64, :ImageUrl, :CardSide
4143
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :CropPortrait
4068
4144
 
4069
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil)
4145
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, cropportrait=nil)
4070
4146
  @ImageBase64 = imagebase64
4071
4147
  @ImageUrl = imageurl
4072
4148
  @CardSide = cardside
4149
+ @CropPortrait = cropportrait
4073
4150
  end
4074
4151
 
4075
4152
  def deserialize(params)
4076
4153
  @ImageBase64 = params['ImageBase64']
4077
4154
  @ImageUrl = params['ImageUrl']
4078
4155
  @CardSide = params['CardSide']
4156
+ @CropPortrait = params['CropPortrait']
4079
4157
  end
4080
4158
  end
4081
4159
 
@@ -4102,12 +4180,14 @@ module TencentCloud
4102
4180
  # @type VisaNum: String
4103
4181
  # @param PassNo: 通行证号码
4104
4182
  # @type PassNo: String
4183
+ # @param PortraitImageInfo: 头像和坐标信息
4184
+ # @type PortraitImageInfo: :class:`Tencentcloud::Ocr.v20181119.models.PortraitImageInfo`
4105
4185
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4106
4186
  # @type RequestId: String
4107
4187
 
4108
- attr_accessor :Name, :Sex, :Birth, :Address, :IdCardNo, :CardType, :ValidDate, :Authority, :VisaNum, :PassNo, :RequestId
4188
+ attr_accessor :Name, :Sex, :Birth, :Address, :IdCardNo, :CardType, :ValidDate, :Authority, :VisaNum, :PassNo, :PortraitImageInfo, :RequestId
4109
4189
 
4110
- def initialize(name=nil, sex=nil, birth=nil, address=nil, idcardno=nil, cardtype=nil, validdate=nil, authority=nil, visanum=nil, passno=nil, requestid=nil)
4190
+ def initialize(name=nil, sex=nil, birth=nil, address=nil, idcardno=nil, cardtype=nil, validdate=nil, authority=nil, visanum=nil, passno=nil, portraitimageinfo=nil, requestid=nil)
4111
4191
  @Name = name
4112
4192
  @Sex = sex
4113
4193
  @Birth = birth
@@ -4118,6 +4198,7 @@ module TencentCloud
4118
4198
  @Authority = authority
4119
4199
  @VisaNum = visanum
4120
4200
  @PassNo = passno
4201
+ @PortraitImageInfo = portraitimageinfo
4121
4202
  @RequestId = requestid
4122
4203
  end
4123
4204
 
@@ -4132,10 +4213,103 @@ module TencentCloud
4132
4213
  @Authority = params['Authority']
4133
4214
  @VisaNum = params['VisaNum']
4134
4215
  @PassNo = params['PassNo']
4216
+ unless params['PortraitImageInfo'].nil?
4217
+ @PortraitImageInfo = PortraitImageInfo.new
4218
+ @PortraitImageInfo.deserialize(params['PortraitImageInfo'])
4219
+ end
4135
4220
  @RequestId = params['RequestId']
4136
4221
  end
4137
4222
  end
4138
4223
 
4224
+ # 身份证信息返回
4225
+ class IDCardInfo < TencentCloud::Common::AbstractModel
4226
+ # @param Name: 姓名(人像面)
4227
+ # @type Name: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4228
+ # @param Sex: 性别(人像面)
4229
+ # @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4230
+ # @param Nation: 民族(人像面)
4231
+ # @type Nation: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4232
+ # @param Birth: 出生日期(人像面)
4233
+ # @type Birth: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4234
+ # @param Address: 地址(人像面)
4235
+ # @type Address: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4236
+ # @param IdNum: 公民身份号码(人像面)
4237
+ # @type IdNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4238
+ # @param Authority: 发证机关(国徽面)
4239
+ # @type Authority: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4240
+ # @param ValidDate: 证件有效期(国徽面)
4241
+ # @type ValidDate: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4242
+ # @param WarnInfos: WarnInfos,告警信息
4243
+ # @type WarnInfos: :class:`Tencentcloud::Ocr.v20181119.models.CardWarnInfo`
4244
+ # @param CardImage: IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
4245
+ # @type CardImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4246
+ # @param PortraitImage: Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
4247
+ # @type PortraitImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
4248
+
4249
+ attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :WarnInfos, :CardImage, :PortraitImage
4250
+
4251
+ def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil)
4252
+ @Name = name
4253
+ @Sex = sex
4254
+ @Nation = nation
4255
+ @Birth = birth
4256
+ @Address = address
4257
+ @IdNum = idnum
4258
+ @Authority = authority
4259
+ @ValidDate = validdate
4260
+ @WarnInfos = warninfos
4261
+ @CardImage = cardimage
4262
+ @PortraitImage = portraitimage
4263
+ end
4264
+
4265
+ def deserialize(params)
4266
+ unless params['Name'].nil?
4267
+ @Name = ContentInfo.new
4268
+ @Name.deserialize(params['Name'])
4269
+ end
4270
+ unless params['Sex'].nil?
4271
+ @Sex = ContentInfo.new
4272
+ @Sex.deserialize(params['Sex'])
4273
+ end
4274
+ unless params['Nation'].nil?
4275
+ @Nation = ContentInfo.new
4276
+ @Nation.deserialize(params['Nation'])
4277
+ end
4278
+ unless params['Birth'].nil?
4279
+ @Birth = ContentInfo.new
4280
+ @Birth.deserialize(params['Birth'])
4281
+ end
4282
+ unless params['Address'].nil?
4283
+ @Address = ContentInfo.new
4284
+ @Address.deserialize(params['Address'])
4285
+ end
4286
+ unless params['IdNum'].nil?
4287
+ @IdNum = ContentInfo.new
4288
+ @IdNum.deserialize(params['IdNum'])
4289
+ end
4290
+ unless params['Authority'].nil?
4291
+ @Authority = ContentInfo.new
4292
+ @Authority.deserialize(params['Authority'])
4293
+ end
4294
+ unless params['ValidDate'].nil?
4295
+ @ValidDate = ContentInfo.new
4296
+ @ValidDate.deserialize(params['ValidDate'])
4297
+ end
4298
+ unless params['WarnInfos'].nil?
4299
+ @WarnInfos = CardWarnInfo.new
4300
+ @WarnInfos.deserialize(params['WarnInfos'])
4301
+ end
4302
+ unless params['CardImage'].nil?
4303
+ @CardImage = ContentInfo.new
4304
+ @CardImage.deserialize(params['CardImage'])
4305
+ end
4306
+ unless params['PortraitImage'].nil?
4307
+ @PortraitImage = ContentInfo.new
4308
+ @PortraitImage.deserialize(params['PortraitImage'])
4309
+ end
4310
+ end
4311
+ end
4312
+
4139
4313
  # IDCardOCR请求参数结构体
4140
4314
  class IDCardOCRRequest < TencentCloud::Common::AbstractModel
4141
4315
  # @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
@@ -4275,6 +4449,38 @@ module TencentCloud
4275
4449
  end
4276
4450
  end
4277
4451
 
4452
+ # 头像位置坐标
4453
+ class ImageCoordinates < TencentCloud::Common::AbstractModel
4454
+ # @param X: 头像左上角横坐标
4455
+ # 注意:此字段可能返回 null,表示取不到有效值。
4456
+ # @type X: Integer
4457
+ # @param Y: 头像左上角纵坐标
4458
+ # 注意:此字段可能返回 null,表示取不到有效值。
4459
+ # @type Y: Integer
4460
+ # @param Width: 头像框宽度
4461
+ # 注意:此字段可能返回 null,表示取不到有效值。
4462
+ # @type Width: Integer
4463
+ # @param Height: 头像框高度
4464
+ # 注意:此字段可能返回 null,表示取不到有效值。
4465
+ # @type Height: Integer
4466
+
4467
+ attr_accessor :X, :Y, :Width, :Height
4468
+
4469
+ def initialize(x=nil, y=nil, width=nil, height=nil)
4470
+ @X = x
4471
+ @Y = y
4472
+ @Width = width
4473
+ @Height = height
4474
+ end
4475
+
4476
+ def deserialize(params)
4477
+ @X = params['X']
4478
+ @Y = params['Y']
4479
+ @Width = params['Width']
4480
+ @Height = params['Height']
4481
+ end
4482
+ end
4483
+
4278
4484
  # ImageEnhancement请求参数结构体
4279
4485
  class ImageEnhancementRequest < TencentCloud::Common::AbstractModel
4280
4486
  # @param ImageBase64: 图片的 Base64 值。
@@ -6412,19 +6618,23 @@ module TencentCloud
6412
6618
  # @param Type: 默认填写CN
6413
6619
  # 支持中国大陆地区护照。
6414
6620
  # @type Type: String
6621
+ # @param CropPortrait: 是否返回头像和位置坐标
6622
+ # @type CropPortrait: Boolean
6415
6623
 
6416
- attr_accessor :ImageBase64, :ImageUrl, :Type
6624
+ attr_accessor :ImageBase64, :ImageUrl, :Type, :CropPortrait
6417
6625
 
6418
- def initialize(imagebase64=nil, imageurl=nil, type=nil)
6626
+ def initialize(imagebase64=nil, imageurl=nil, type=nil, cropportrait=nil)
6419
6627
  @ImageBase64 = imagebase64
6420
6628
  @ImageUrl = imageurl
6421
6629
  @Type = type
6630
+ @CropPortrait = cropportrait
6422
6631
  end
6423
6632
 
6424
6633
  def deserialize(params)
6425
6634
  @ImageBase64 = params['ImageBase64']
6426
6635
  @ImageUrl = params['ImageUrl']
6427
6636
  @Type = params['Type']
6637
+ @CropPortrait = params['CropPortrait']
6428
6638
  end
6429
6639
  end
6430
6640
 
@@ -6460,12 +6670,14 @@ module TencentCloud
6460
6670
  # @type FamilyName: String
6461
6671
  # @param FirstName: 名
6462
6672
  # @type FirstName: String
6673
+ # @param PortraitImageInfo: 头像和坐标信息
6674
+ # @type PortraitImageInfo: :class:`Tencentcloud::Ocr.v20181119.models.PortraitImageInfo`
6463
6675
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6464
6676
  # @type RequestId: String
6465
6677
 
6466
- attr_accessor :Country, :PassportNo, :Sex, :Nationality, :BirthDate, :BirthPlace, :IssueDate, :IssuePlace, :ExpiryDate, :Signature, :CodeSet, :CodeCrc, :Name, :FamilyName, :FirstName, :RequestId
6678
+ attr_accessor :Country, :PassportNo, :Sex, :Nationality, :BirthDate, :BirthPlace, :IssueDate, :IssuePlace, :ExpiryDate, :Signature, :CodeSet, :CodeCrc, :Name, :FamilyName, :FirstName, :PortraitImageInfo, :RequestId
6467
6679
 
6468
- def initialize(country=nil, passportno=nil, sex=nil, nationality=nil, birthdate=nil, birthplace=nil, issuedate=nil, issueplace=nil, expirydate=nil, signature=nil, codeset=nil, codecrc=nil, name=nil, familyname=nil, firstname=nil, requestid=nil)
6680
+ def initialize(country=nil, passportno=nil, sex=nil, nationality=nil, birthdate=nil, birthplace=nil, issuedate=nil, issueplace=nil, expirydate=nil, signature=nil, codeset=nil, codecrc=nil, name=nil, familyname=nil, firstname=nil, portraitimageinfo=nil, requestid=nil)
6469
6681
  @Country = country
6470
6682
  @PassportNo = passportno
6471
6683
  @Sex = sex
@@ -6481,6 +6693,7 @@ module TencentCloud
6481
6693
  @Name = name
6482
6694
  @FamilyName = familyname
6483
6695
  @FirstName = firstname
6696
+ @PortraitImageInfo = portraitimageinfo
6484
6697
  @RequestId = requestid
6485
6698
  end
6486
6699
 
@@ -6500,6 +6713,10 @@ module TencentCloud
6500
6713
  @Name = params['Name']
6501
6714
  @FamilyName = params['FamilyName']
6502
6715
  @FirstName = params['FirstName']
6716
+ unless params['PortraitImageInfo'].nil?
6717
+ @PortraitImageInfo = PortraitImageInfo.new
6718
+ @PortraitImageInfo.deserialize(params['PortraitImageInfo'])
6719
+ end
6503
6720
  @RequestId = params['RequestId']
6504
6721
  end
6505
6722
  end
@@ -6578,6 +6795,109 @@ module TencentCloud
6578
6795
  end
6579
6796
  end
6580
6797
 
6798
+ # 外国人永久居留证信息返回
6799
+ class PermanentResidencePermitInfo < TencentCloud::Common::AbstractModel
6800
+ # @param Name: 姓名(人像面)
6801
+ # @type Name: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6802
+ # @param Sex: 性别(人像面)
6803
+ # @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6804
+ # @param Nation: 民族(人像面)
6805
+ # @type Nation: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6806
+ # @param Birth: 出生日期(人像面)
6807
+ # @type Birth: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6808
+ # @param Address: 地址(人像面)
6809
+ # @type Address: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6810
+ # @param IdNum: 公民身份号码(人像面)
6811
+ # @type IdNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6812
+ # @param Authority: 发证机关(国徽面)
6813
+ # @type Authority: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6814
+ # @param ValidDate: 证件有效期(国徽面)
6815
+ # @type ValidDate: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6816
+ # @param WarnInfos: WarnInfos,告警信息
6817
+ # @type WarnInfos: :class:`Tencentcloud::Ocr.v20181119.models.CardWarnInfo`
6818
+ # @param CardImage: IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
6819
+ # @type CardImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6820
+ # @param PortraitImage: Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
6821
+ # @type PortraitImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6822
+ # @param HolderNum: 持证人持有号码,外国人永久居留证 返回该字段
6823
+ # @type HolderNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6824
+ # @param Nationality: 国籍,外国人永久居留证 返回该字段
6825
+ # @type Nationality: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
6826
+
6827
+ attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :WarnInfos, :CardImage, :PortraitImage, :HolderNum, :Nationality
6828
+
6829
+ def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil, holdernum=nil, nationality=nil)
6830
+ @Name = name
6831
+ @Sex = sex
6832
+ @Nation = nation
6833
+ @Birth = birth
6834
+ @Address = address
6835
+ @IdNum = idnum
6836
+ @Authority = authority
6837
+ @ValidDate = validdate
6838
+ @WarnInfos = warninfos
6839
+ @CardImage = cardimage
6840
+ @PortraitImage = portraitimage
6841
+ @HolderNum = holdernum
6842
+ @Nationality = nationality
6843
+ end
6844
+
6845
+ def deserialize(params)
6846
+ unless params['Name'].nil?
6847
+ @Name = ContentInfo.new
6848
+ @Name.deserialize(params['Name'])
6849
+ end
6850
+ unless params['Sex'].nil?
6851
+ @Sex = ContentInfo.new
6852
+ @Sex.deserialize(params['Sex'])
6853
+ end
6854
+ unless params['Nation'].nil?
6855
+ @Nation = ContentInfo.new
6856
+ @Nation.deserialize(params['Nation'])
6857
+ end
6858
+ unless params['Birth'].nil?
6859
+ @Birth = ContentInfo.new
6860
+ @Birth.deserialize(params['Birth'])
6861
+ end
6862
+ unless params['Address'].nil?
6863
+ @Address = ContentInfo.new
6864
+ @Address.deserialize(params['Address'])
6865
+ end
6866
+ unless params['IdNum'].nil?
6867
+ @IdNum = ContentInfo.new
6868
+ @IdNum.deserialize(params['IdNum'])
6869
+ end
6870
+ unless params['Authority'].nil?
6871
+ @Authority = ContentInfo.new
6872
+ @Authority.deserialize(params['Authority'])
6873
+ end
6874
+ unless params['ValidDate'].nil?
6875
+ @ValidDate = ContentInfo.new
6876
+ @ValidDate.deserialize(params['ValidDate'])
6877
+ end
6878
+ unless params['WarnInfos'].nil?
6879
+ @WarnInfos = CardWarnInfo.new
6880
+ @WarnInfos.deserialize(params['WarnInfos'])
6881
+ end
6882
+ unless params['CardImage'].nil?
6883
+ @CardImage = ContentInfo.new
6884
+ @CardImage.deserialize(params['CardImage'])
6885
+ end
6886
+ unless params['PortraitImage'].nil?
6887
+ @PortraitImage = ContentInfo.new
6888
+ @PortraitImage.deserialize(params['PortraitImage'])
6889
+ end
6890
+ unless params['HolderNum'].nil?
6891
+ @HolderNum = ContentInfo.new
6892
+ @HolderNum.deserialize(params['HolderNum'])
6893
+ end
6894
+ unless params['Nationality'].nil?
6895
+ @Nationality = ContentInfo.new
6896
+ @Nationality.deserialize(params['Nationality'])
6897
+ end
6898
+ end
6899
+ end
6900
+
6581
6901
  # PermitOCR请求参数结构体
6582
6902
  class PermitOCRRequest < TencentCloud::Common::AbstractModel
6583
6903
  # @param ImageBase64: 图片的 Base64 值。
@@ -6706,6 +7026,31 @@ module TencentCloud
6706
7026
  end
6707
7027
  end
6708
7028
 
7029
+ # 头像照片和坐标
7030
+ class PortraitImageInfo < TencentCloud::Common::AbstractModel
7031
+ # @param PortraitImage: 头像
7032
+ # 注意:此字段可能返回 null,表示取不到有效值。
7033
+ # @type PortraitImage: String
7034
+ # @param ImageCoordinates: 头像坐标
7035
+ # 注意:此字段可能返回 null,表示取不到有效值。
7036
+ # @type ImageCoordinates: :class:`Tencentcloud::Ocr.v20181119.models.ImageCoordinates`
7037
+
7038
+ attr_accessor :PortraitImage, :ImageCoordinates
7039
+
7040
+ def initialize(portraitimage=nil, imagecoordinates=nil)
7041
+ @PortraitImage = portraitimage
7042
+ @ImageCoordinates = imagecoordinates
7043
+ end
7044
+
7045
+ def deserialize(params)
7046
+ @PortraitImage = params['PortraitImage']
7047
+ unless params['ImageCoordinates'].nil?
7048
+ @ImageCoordinates = ImageCoordinates.new
7049
+ @ImageCoordinates.deserialize(params['ImageCoordinates'])
7050
+ end
7051
+ end
7052
+ end
7053
+
6709
7054
  # PropOwnerCertOCR请求参数结构体
6710
7055
  class PropOwnerCertOCRRequest < TencentCloud::Common::AbstractModel
6711
7056
  # @param ImageBase64: 图片的 Base64 值。
@@ -7518,14 +7863,17 @@ module TencentCloud
7518
7863
  # @param PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
7519
7864
  # 示例值:1
7520
7865
  # @type PdfPageNumber: Integer
7866
+ # @param CropPortrait: 是否返回头像和位置坐标
7867
+ # @type CropPortrait: Boolean
7521
7868
 
7522
- attr_accessor :ImageUrl, :ImageBase64, :EnablePdf, :PdfPageNumber
7869
+ attr_accessor :ImageUrl, :ImageBase64, :EnablePdf, :PdfPageNumber, :CropPortrait
7523
7870
 
7524
- def initialize(imageurl=nil, imagebase64=nil, enablepdf=nil, pdfpagenumber=nil)
7871
+ def initialize(imageurl=nil, imagebase64=nil, enablepdf=nil, pdfpagenumber=nil, cropportrait=nil)
7525
7872
  @ImageUrl = imageurl
7526
7873
  @ImageBase64 = imagebase64
7527
7874
  @EnablePdf = enablepdf
7528
7875
  @PdfPageNumber = pdfpagenumber
7876
+ @CropPortrait = cropportrait
7529
7877
  end
7530
7878
 
7531
7879
  def deserialize(params)
@@ -7533,6 +7881,7 @@ module TencentCloud
7533
7881
  @ImageBase64 = params['ImageBase64']
7534
7882
  @EnablePdf = params['EnablePdf']
7535
7883
  @PdfPageNumber = params['PdfPageNumber']
7884
+ @CropPortrait = params['CropPortrait']
7536
7885
  end
7537
7886
  end
7538
7887
 
@@ -7556,12 +7905,14 @@ module TencentCloud
7556
7905
  # @type PreviousNumber: String
7557
7906
  # @param IssuedAuthority: 签发机关。
7558
7907
  # @type IssuedAuthority: String
7908
+ # @param PortraitImageInfo: 头像和坐标信息。
7909
+ # @type PortraitImageInfo: :class:`Tencentcloud::Ocr.v20181119.models.PortraitImageInfo`
7559
7910
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7560
7911
  # @type RequestId: String
7561
7912
 
7562
- attr_accessor :CnName, :EnName, :Sex, :DateOfBirth, :Nationality, :PeriodOfValidity, :No, :PreviousNumber, :IssuedAuthority, :RequestId
7913
+ attr_accessor :CnName, :EnName, :Sex, :DateOfBirth, :Nationality, :PeriodOfValidity, :No, :PreviousNumber, :IssuedAuthority, :PortraitImageInfo, :RequestId
7563
7914
 
7564
- def initialize(cnname=nil, enname=nil, sex=nil, dateofbirth=nil, nationality=nil, periodofvalidity=nil, no=nil, previousnumber=nil, issuedauthority=nil, requestid=nil)
7915
+ def initialize(cnname=nil, enname=nil, sex=nil, dateofbirth=nil, nationality=nil, periodofvalidity=nil, no=nil, previousnumber=nil, issuedauthority=nil, portraitimageinfo=nil, requestid=nil)
7565
7916
  @CnName = cnname
7566
7917
  @EnName = enname
7567
7918
  @Sex = sex
@@ -7571,6 +7922,7 @@ module TencentCloud
7571
7922
  @No = no
7572
7923
  @PreviousNumber = previousnumber
7573
7924
  @IssuedAuthority = issuedauthority
7925
+ @PortraitImageInfo = portraitimageinfo
7574
7926
  @RequestId = requestid
7575
7927
  end
7576
7928
 
@@ -7584,6 +7936,10 @@ module TencentCloud
7584
7936
  @No = params['No']
7585
7937
  @PreviousNumber = params['PreviousNumber']
7586
7938
  @IssuedAuthority = params['IssuedAuthority']
7939
+ unless params['PortraitImageInfo'].nil?
7940
+ @PortraitImageInfo = PortraitImageInfo.new
7941
+ @PortraitImageInfo.deserialize(params['PortraitImageInfo'])
7942
+ end
7587
7943
  @RequestId = params['RequestId']
7588
7944
  end
7589
7945
  end
@@ -9026,6 +9382,140 @@ module TencentCloud
9026
9382
  end
9027
9383
  end
9028
9384
 
9385
+ # RecognizeValidIDCardOCR请求参数结构体
9386
+ class RecognizeValidIDCardOCRRequest < TencentCloud::Common::AbstractModel
9387
+ # @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
9388
+ # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9389
+ # @type ImageBase64: String
9390
+ # @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
9391
+ # 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
9392
+ # @type ImageUrl: String
9393
+ # @param CardType: 0 自动,自动判断输入证件的类型
9394
+ # 1 身份证人像面,指定输入证件类型为二代身份证人像面
9395
+ # 2 身份证国徽面,指定输入证件类型为二代身份证国徽面
9396
+ # 3 身份证人像国徽面,指定输入证件类型为二代身份证人像面或者国徽面
9397
+ # 4 临时身份证人像面,指定输入证件类型为临时身份证人像面
9398
+ # 5 临时身份证国徽面,指定输入证件类型为临时身份证国徽面
9399
+ # 6 临时身份证人像国徽面,指定输入证件类型为临时身份证人像面或者国徽面
9400
+ # 7 港澳台居住证人像面,指定输入证件类型为港澳台居住证人像面
9401
+ # 8 港澳台居住证国徽面,指定输入证件类型为港澳台居住证国徽面
9402
+ # 9 港澳台居住证人像国徽面,指定输入证件类型为港澳台居住证人像面或者国徽面
9403
+ # 10 外国人永久居留身份证人像面,指定输入证件类型为外国人永久居留证人像面
9404
+ # 11 外国人永久居留身份证国徽面,指定输入证件类型为外国人永久居留证国徽面
9405
+ # 12 外国人永久居留身份证人像国徽面,指定输入证件类型为外国人永久居留证人像或者国徽面
9406
+ # 该参数如果不填,将为您自动判断卡证类型。
9407
+ # @type CardType: Integer
9408
+ # @param EnablePortrait: 默认值为false,打开返回证件头像切图。
9409
+ # @type EnablePortrait: Boolean
9410
+ # @param EnableCropImage: 默认值为false,打开返回证件主体切图。
9411
+ # @type EnableCropImage: Boolean
9412
+ # @param EnableBorderCheck: 默认值为false,打开返回边缘完整性判断。
9413
+ # @type EnableBorderCheck: Boolean
9414
+ # @param EnableOcclusionCheck: 默认值为false,打开返回证件是否被遮挡。
9415
+ # @type EnableOcclusionCheck: Boolean
9416
+ # @param EnableCopyCheck: 默认值为false,打开返回证件是否存在复印。
9417
+ # @type EnableCopyCheck: Boolean
9418
+ # @param EnableReshootCheck: 默认值为false,打开返回证件是否存在屏幕翻拍。
9419
+ # @type EnableReshootCheck: Boolean
9420
+ # @param EnablePSCheck: 默认值为false,打开返回证件是否存在PS。类型为:临时、港澳台居住证、外国人居住证失效
9421
+ # @type EnablePSCheck: Boolean
9422
+ # @param EnableWordCheck: 默认值为false,打开返回字段级反光和字段级完整性告警。类型为:临时、港澳台居住证、外国人居住证失效
9423
+ # @type EnableWordCheck: Boolean
9424
+
9425
+ attr_accessor :ImageBase64, :ImageUrl, :CardType, :EnablePortrait, :EnableCropImage, :EnableBorderCheck, :EnableOcclusionCheck, :EnableCopyCheck, :EnableReshootCheck, :EnablePSCheck, :EnableWordCheck
9426
+
9427
+ def initialize(imagebase64=nil, imageurl=nil, cardtype=nil, enableportrait=nil, enablecropimage=nil, enablebordercheck=nil, enableocclusioncheck=nil, enablecopycheck=nil, enablereshootcheck=nil, enablepscheck=nil, enablewordcheck=nil)
9428
+ @ImageBase64 = imagebase64
9429
+ @ImageUrl = imageurl
9430
+ @CardType = cardtype
9431
+ @EnablePortrait = enableportrait
9432
+ @EnableCropImage = enablecropimage
9433
+ @EnableBorderCheck = enablebordercheck
9434
+ @EnableOcclusionCheck = enableocclusioncheck
9435
+ @EnableCopyCheck = enablecopycheck
9436
+ @EnableReshootCheck = enablereshootcheck
9437
+ @EnablePSCheck = enablepscheck
9438
+ @EnableWordCheck = enablewordcheck
9439
+ end
9440
+
9441
+ def deserialize(params)
9442
+ @ImageBase64 = params['ImageBase64']
9443
+ @ImageUrl = params['ImageUrl']
9444
+ @CardType = params['CardType']
9445
+ @EnablePortrait = params['EnablePortrait']
9446
+ @EnableCropImage = params['EnableCropImage']
9447
+ @EnableBorderCheck = params['EnableBorderCheck']
9448
+ @EnableOcclusionCheck = params['EnableOcclusionCheck']
9449
+ @EnableCopyCheck = params['EnableCopyCheck']
9450
+ @EnableReshootCheck = params['EnableReshootCheck']
9451
+ @EnablePSCheck = params['EnablePSCheck']
9452
+ @EnableWordCheck = params['EnableWordCheck']
9453
+ end
9454
+ end
9455
+
9456
+ # RecognizeValidIDCardOCR返回参数结构体
9457
+ class RecognizeValidIDCardOCRResponse < TencentCloud::Common::AbstractModel
9458
+ # @param Type: 卡证类型
9459
+ # 身份证人像面
9460
+ # 身份证国徽面
9461
+
9462
+ # 临时身份证人像面
9463
+ # 临时身份证人像面
9464
+
9465
+ # 港澳台居住证人像面
9466
+ # 港澳台居住证国徽面
9467
+
9468
+ # 外国人永久居留证人像面
9469
+ # 外国人永久居留证国徽面
9470
+ # @type Type: String
9471
+ # @param IDCardInfo: 身份证信息
9472
+ # 注意:此字段可能返回 null,表示取不到有效值。
9473
+ # @type IDCardInfo: :class:`Tencentcloud::Ocr.v20181119.models.IDCardInfo`
9474
+ # @param TemporaryIDCardInfo: 临时身份证信息
9475
+ # 注意:此字段可能返回 null,表示取不到有效值。
9476
+ # @type TemporaryIDCardInfo: :class:`Tencentcloud::Ocr.v20181119.models.TemporaryIDCardInfo`
9477
+ # @param ResidencePermitInfo: 港澳台居住证信息
9478
+ # 注意:此字段可能返回 null,表示取不到有效值。
9479
+ # @type ResidencePermitInfo: :class:`Tencentcloud::Ocr.v20181119.models.ResidencePermitInfo`
9480
+ # @param PermanentResidencePermitInfo: 外国人永久居留证信息
9481
+ # 注意:此字段可能返回 null,表示取不到有效值。
9482
+ # @type PermanentResidencePermitInfo: :class:`Tencentcloud::Ocr.v20181119.models.PermanentResidencePermitInfo`
9483
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9484
+ # @type RequestId: String
9485
+
9486
+ attr_accessor :Type, :IDCardInfo, :TemporaryIDCardInfo, :ResidencePermitInfo, :PermanentResidencePermitInfo, :RequestId
9487
+
9488
+ def initialize(type=nil, idcardinfo=nil, temporaryidcardinfo=nil, residencepermitinfo=nil, permanentresidencepermitinfo=nil, requestid=nil)
9489
+ @Type = type
9490
+ @IDCardInfo = idcardinfo
9491
+ @TemporaryIDCardInfo = temporaryidcardinfo
9492
+ @ResidencePermitInfo = residencepermitinfo
9493
+ @PermanentResidencePermitInfo = permanentresidencepermitinfo
9494
+ @RequestId = requestid
9495
+ end
9496
+
9497
+ def deserialize(params)
9498
+ @Type = params['Type']
9499
+ unless params['IDCardInfo'].nil?
9500
+ @IDCardInfo = IDCardInfo.new
9501
+ @IDCardInfo.deserialize(params['IDCardInfo'])
9502
+ end
9503
+ unless params['TemporaryIDCardInfo'].nil?
9504
+ @TemporaryIDCardInfo = TemporaryIDCardInfo.new
9505
+ @TemporaryIDCardInfo.deserialize(params['TemporaryIDCardInfo'])
9506
+ end
9507
+ unless params['ResidencePermitInfo'].nil?
9508
+ @ResidencePermitInfo = ResidencePermitInfo.new
9509
+ @ResidencePermitInfo.deserialize(params['ResidencePermitInfo'])
9510
+ end
9511
+ unless params['PermanentResidencePermitInfo'].nil?
9512
+ @PermanentResidencePermitInfo = PermanentResidencePermitInfo.new
9513
+ @PermanentResidencePermitInfo.deserialize(params['PermanentResidencePermitInfo'])
9514
+ end
9515
+ @RequestId = params['RequestId']
9516
+ end
9517
+ end
9518
+
9029
9519
  # ReconstructDocument配置选项
9030
9520
  class ReconstructDocumentConfig < TencentCloud::Common::AbstractModel
9031
9521
  # @param EnableInsetImage: 生成的Markdown中是否嵌入图片
@@ -9322,6 +9812,109 @@ module TencentCloud
9322
9812
  end
9323
9813
  end
9324
9814
 
9815
+ # 港澳台居住证信息返回
9816
+ class ResidencePermitInfo < TencentCloud::Common::AbstractModel
9817
+ # @param Name: 姓名(人像面)
9818
+ # @type Name: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9819
+ # @param Sex: 性别(人像面)
9820
+ # @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9821
+ # @param Nation: 民族(人像面)
9822
+ # @type Nation: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9823
+ # @param Birth: 出生日期(人像面)
9824
+ # @type Birth: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9825
+ # @param Address: 地址(人像面)
9826
+ # @type Address: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9827
+ # @param IdNum: 公民身份号码(人像面)
9828
+ # @type IdNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9829
+ # @param Authority: 发证机关(国徽面)
9830
+ # @type Authority: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9831
+ # @param ValidDate: 证件有效期(国徽面)
9832
+ # @type ValidDate: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9833
+ # @param WarnInfos: WarnInfos,告警信息
9834
+ # @type WarnInfos: :class:`Tencentcloud::Ocr.v20181119.models.CardWarnInfo`
9835
+ # @param CardImage: IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
9836
+ # @type CardImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9837
+ # @param PortraitImage: Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
9838
+ # @type PortraitImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9839
+ # @param PassNum: 通行证号码,港澳台居住证国徽面 返回该字段
9840
+ # @type PassNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9841
+ # @param IssueNum: 签发次数,港澳台居住证国徽面 返回该字段
9842
+ # @type IssueNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
9843
+
9844
+ attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :WarnInfos, :CardImage, :PortraitImage, :PassNum, :IssueNum
9845
+
9846
+ def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil, passnum=nil, issuenum=nil)
9847
+ @Name = name
9848
+ @Sex = sex
9849
+ @Nation = nation
9850
+ @Birth = birth
9851
+ @Address = address
9852
+ @IdNum = idnum
9853
+ @Authority = authority
9854
+ @ValidDate = validdate
9855
+ @WarnInfos = warninfos
9856
+ @CardImage = cardimage
9857
+ @PortraitImage = portraitimage
9858
+ @PassNum = passnum
9859
+ @IssueNum = issuenum
9860
+ end
9861
+
9862
+ def deserialize(params)
9863
+ unless params['Name'].nil?
9864
+ @Name = ContentInfo.new
9865
+ @Name.deserialize(params['Name'])
9866
+ end
9867
+ unless params['Sex'].nil?
9868
+ @Sex = ContentInfo.new
9869
+ @Sex.deserialize(params['Sex'])
9870
+ end
9871
+ unless params['Nation'].nil?
9872
+ @Nation = ContentInfo.new
9873
+ @Nation.deserialize(params['Nation'])
9874
+ end
9875
+ unless params['Birth'].nil?
9876
+ @Birth = ContentInfo.new
9877
+ @Birth.deserialize(params['Birth'])
9878
+ end
9879
+ unless params['Address'].nil?
9880
+ @Address = ContentInfo.new
9881
+ @Address.deserialize(params['Address'])
9882
+ end
9883
+ unless params['IdNum'].nil?
9884
+ @IdNum = ContentInfo.new
9885
+ @IdNum.deserialize(params['IdNum'])
9886
+ end
9887
+ unless params['Authority'].nil?
9888
+ @Authority = ContentInfo.new
9889
+ @Authority.deserialize(params['Authority'])
9890
+ end
9891
+ unless params['ValidDate'].nil?
9892
+ @ValidDate = ContentInfo.new
9893
+ @ValidDate.deserialize(params['ValidDate'])
9894
+ end
9895
+ unless params['WarnInfos'].nil?
9896
+ @WarnInfos = CardWarnInfo.new
9897
+ @WarnInfos.deserialize(params['WarnInfos'])
9898
+ end
9899
+ unless params['CardImage'].nil?
9900
+ @CardImage = ContentInfo.new
9901
+ @CardImage.deserialize(params['CardImage'])
9902
+ end
9903
+ unless params['PortraitImage'].nil?
9904
+ @PortraitImage = ContentInfo.new
9905
+ @PortraitImage.deserialize(params['PortraitImage'])
9906
+ end
9907
+ unless params['PassNum'].nil?
9908
+ @PassNum = ContentInfo.new
9909
+ @PassNum.deserialize(params['PassNum'])
9910
+ end
9911
+ unless params['IssueNum'].nil?
9912
+ @IssueNum = ContentInfo.new
9913
+ @IssueNum.deserialize(params['IssueNum'])
9914
+ end
9915
+ end
9916
+ end
9917
+
9325
9918
  # RideHailingDriverLicenseOCR请求参数结构体
9326
9919
  class RideHailingDriverLicenseOCRRequest < TencentCloud::Common::AbstractModel
9327
9920
  # @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
@@ -10791,6 +11384,95 @@ module TencentCloud
10791
11384
  end
10792
11385
  end
10793
11386
 
11387
+ # 临时身份证信息返回
11388
+ class TemporaryIDCardInfo < TencentCloud::Common::AbstractModel
11389
+ # @param Name: 姓名(人像面)
11390
+ # @type Name: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11391
+ # @param Sex: 性别(人像面)
11392
+ # @type Sex: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11393
+ # @param Nation: 民族(人像面)
11394
+ # @type Nation: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11395
+ # @param Birth: 出生日期(人像面)
11396
+ # @type Birth: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11397
+ # @param Address: 地址(人像面)
11398
+ # @type Address: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11399
+ # @param IdNum: 公民身份号码(人像面)
11400
+ # @type IdNum: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11401
+ # @param Authority: 发证机关(国徽面)
11402
+ # @type Authority: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11403
+ # @param ValidDate: 证件有效期(国徽面)
11404
+ # @type ValidDate: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11405
+ # @param WarnInfos: WarnInfos,告警信息
11406
+ # @type WarnInfos: :class:`Tencentcloud::Ocr.v20181119.models.CardWarnInfo`
11407
+ # @param CardImage: IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
11408
+ # @type CardImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11409
+ # @param PortraitImage: Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
11410
+ # @type PortraitImage: :class:`Tencentcloud::Ocr.v20181119.models.ContentInfo`
11411
+
11412
+ attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :WarnInfos, :CardImage, :PortraitImage
11413
+
11414
+ def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, warninfos=nil, cardimage=nil, portraitimage=nil)
11415
+ @Name = name
11416
+ @Sex = sex
11417
+ @Nation = nation
11418
+ @Birth = birth
11419
+ @Address = address
11420
+ @IdNum = idnum
11421
+ @Authority = authority
11422
+ @ValidDate = validdate
11423
+ @WarnInfos = warninfos
11424
+ @CardImage = cardimage
11425
+ @PortraitImage = portraitimage
11426
+ end
11427
+
11428
+ def deserialize(params)
11429
+ unless params['Name'].nil?
11430
+ @Name = ContentInfo.new
11431
+ @Name.deserialize(params['Name'])
11432
+ end
11433
+ unless params['Sex'].nil?
11434
+ @Sex = ContentInfo.new
11435
+ @Sex.deserialize(params['Sex'])
11436
+ end
11437
+ unless params['Nation'].nil?
11438
+ @Nation = ContentInfo.new
11439
+ @Nation.deserialize(params['Nation'])
11440
+ end
11441
+ unless params['Birth'].nil?
11442
+ @Birth = ContentInfo.new
11443
+ @Birth.deserialize(params['Birth'])
11444
+ end
11445
+ unless params['Address'].nil?
11446
+ @Address = ContentInfo.new
11447
+ @Address.deserialize(params['Address'])
11448
+ end
11449
+ unless params['IdNum'].nil?
11450
+ @IdNum = ContentInfo.new
11451
+ @IdNum.deserialize(params['IdNum'])
11452
+ end
11453
+ unless params['Authority'].nil?
11454
+ @Authority = ContentInfo.new
11455
+ @Authority.deserialize(params['Authority'])
11456
+ end
11457
+ unless params['ValidDate'].nil?
11458
+ @ValidDate = ContentInfo.new
11459
+ @ValidDate.deserialize(params['ValidDate'])
11460
+ end
11461
+ unless params['WarnInfos'].nil?
11462
+ @WarnInfos = CardWarnInfo.new
11463
+ @WarnInfos.deserialize(params['WarnInfos'])
11464
+ end
11465
+ unless params['CardImage'].nil?
11466
+ @CardImage = ContentInfo.new
11467
+ @CardImage.deserialize(params['CardImage'])
11468
+ end
11469
+ unless params['PortraitImage'].nil?
11470
+ @PortraitImage = ContentInfo.new
11471
+ @PortraitImage.deserialize(params['PortraitImage'])
11472
+ end
11473
+ end
11474
+ end
11475
+
10794
11476
  # 算式识别结果
10795
11477
  class TextArithmetic < TencentCloud::Common::AbstractModel
10796
11478
  # @param DetectedText: 识别出的文本行内容
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.937
4
+ version: 3.0.939
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-05 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common