tencentcloud-sdk-ocr 3.0.755 → 3.0.757
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +75 -0
- data/lib/v20181119/models.rb +224 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a4f7d7d1bbc89c01a1f87cef08b4b7ca7f1096c5
|
4
|
+
data.tar.gz: 7ba16a8305f5e4c18fab6ffc3a13df6fade505fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6cbe68138caa51b20066ee1e66fb6c476eb32f64433a66fbcba46d963b1768550b5878dbea6b2a25ce0584a4e0634d8fff4a8d17f4a67ae87465807f4736846
|
7
|
+
data.tar.gz: 44eb7b64303e8242a2464c9e1d3c60762e567441cc6fb86ae56d3ea0acbb633f55cb16f6613d7568ab16993109372248220d2d512c86375a57786620c7379ba6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.757
|
data/lib/v20181119/client.rb
CHANGED
@@ -1457,6 +1457,81 @@ module TencentCloud
|
|
1457
1457
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1458
1458
|
end
|
1459
1459
|
|
1460
|
+
# 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
|
1461
|
+
|
1462
|
+
# 本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别准确度达到99%以上。
|
1463
|
+
|
1464
|
+
# 另外,本接口还支持多种增值能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
1465
|
+
|
1466
|
+
# <table style="width:650px">
|
1467
|
+
# <thead>
|
1468
|
+
# <tr>
|
1469
|
+
# <th width="150">增值能力</th>
|
1470
|
+
# <th width="500">能力项</th>
|
1471
|
+
# </tr>
|
1472
|
+
# </thead>
|
1473
|
+
# <tbody>
|
1474
|
+
# <tr>
|
1475
|
+
# <td rowspan="2">裁剪功能</td>
|
1476
|
+
# <td>身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)</td>
|
1477
|
+
# </tr>
|
1478
|
+
# <tr>
|
1479
|
+
# <td>人像照片裁剪(自动抠取身份证头像区域)</td>
|
1480
|
+
# </tr>
|
1481
|
+
# <tr>
|
1482
|
+
# <td rowspan="9">告警功能</td>
|
1483
|
+
# <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
|
1484
|
+
|
1485
|
+
# </td>
|
1486
|
+
# </tr>
|
1487
|
+
# <tr>
|
1488
|
+
# <td>身份证边框不完整告警</td>
|
1489
|
+
# </tr>
|
1490
|
+
# <tr>
|
1491
|
+
# <td>身份证复印件告警</td>
|
1492
|
+
# </tr>
|
1493
|
+
# <tr>
|
1494
|
+
# <td>身份证翻拍告警</td>
|
1495
|
+
# </tr>
|
1496
|
+
# <tr>
|
1497
|
+
# <td>身份证框内遮挡告警</td>
|
1498
|
+
# </tr>
|
1499
|
+
# <tr>
|
1500
|
+
# <td>临时身份证告警</td>
|
1501
|
+
# </tr>
|
1502
|
+
# <tr>
|
1503
|
+
# <td>身份证疑似存在PS痕迹告警</td>
|
1504
|
+
# </tr>
|
1505
|
+
# <tr>
|
1506
|
+
# <td>图片模糊告警(可根据图片质量分数判断)</td>
|
1507
|
+
# </tr>
|
1508
|
+
# </tbody>
|
1509
|
+
# </table>
|
1510
|
+
|
1511
|
+
# 默认接口请求频率限制:20次/秒。
|
1512
|
+
|
1513
|
+
# @param request: Request instance for RecognizeEncryptedIDCardOCR.
|
1514
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRRequest`
|
1515
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeEncryptedIDCardOCRResponse`
|
1516
|
+
def RecognizeEncryptedIDCardOCR(request)
|
1517
|
+
body = send_request('RecognizeEncryptedIDCardOCR', request.serialize)
|
1518
|
+
response = JSON.parse(body)
|
1519
|
+
if response['Response'].key?('Error') == false
|
1520
|
+
model = RecognizeEncryptedIDCardOCRResponse.new
|
1521
|
+
model.deserialize(response['Response'])
|
1522
|
+
model
|
1523
|
+
else
|
1524
|
+
code = response['Response']['Error']['Code']
|
1525
|
+
message = response['Response']['Error']['Message']
|
1526
|
+
reqid = response['Response']['RequestId']
|
1527
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1528
|
+
end
|
1529
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1530
|
+
raise e
|
1531
|
+
rescue StandardError => e
|
1532
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1533
|
+
end
|
1534
|
+
|
1460
1535
|
# 外国人永久居留身份证识别
|
1461
1536
|
|
1462
1537
|
# @param request: Request instance for RecognizeForeignPermanentResidentIdCard.
|
data/lib/v20181119/models.rb
CHANGED
@@ -630,7 +630,7 @@ module TencentCloud
|
|
630
630
|
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
631
631
|
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
632
632
|
# @type ImageUrl: String
|
633
|
-
# @param EnableCopyWarn:
|
633
|
+
# @param EnableCopyWarn: 是否返回告警码,默认为false
|
634
634
|
# @type EnableCopyWarn: Boolean
|
635
635
|
|
636
636
|
attr_accessor :ImageBase64, :ImageUrl, :EnableCopyWarn
|
@@ -676,7 +676,7 @@ module TencentCloud
|
|
676
676
|
# @type RecognizeWarnCode: Array
|
677
677
|
# @param RecognizeWarnMsg: 告警码说明:
|
678
678
|
# WARN_COPY_CARD 黑白复印件告警
|
679
|
-
#
|
679
|
+
# WARN_RESHOOT_CARD翻拍件告警
|
680
680
|
# @type RecognizeWarnMsg: Array
|
681
681
|
# @param IsDuplication: 是否为副本。1为是,-1为不是。
|
682
682
|
# @type IsDuplication: Integer
|
@@ -2255,6 +2255,43 @@ module TencentCloud
|
|
2255
2255
|
end
|
2256
2256
|
end
|
2257
2257
|
|
2258
|
+
# 敏感数据加密
|
2259
|
+
class Encryption < TencentCloud::Common::AbstractModel
|
2260
|
+
# @param CiphertextBlob: 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅数据加密 文档。
|
2261
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2262
|
+
# @type CiphertextBlob: String
|
2263
|
+
# @param Iv: 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
|
2264
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2265
|
+
# @type Iv: String
|
2266
|
+
# @param Algorithm: 加密使用的算法(支持'AES-256-CBC'、'SM4-GCM'),不传默认为'AES-256-CBC'
|
2267
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2268
|
+
# @type Algorithm: String
|
2269
|
+
# @param TagList: SM4-GCM算法生成的消息摘要(校验消息完整性时使用)
|
2270
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2271
|
+
# @type TagList: Array
|
2272
|
+
# @param EncryptList: 在使用加密服务时,指定要被加密的字段。本接口默认为EncryptedBody
|
2273
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
2274
|
+
# @type EncryptList: Array
|
2275
|
+
|
2276
|
+
attr_accessor :CiphertextBlob, :Iv, :Algorithm, :TagList, :EncryptList
|
2277
|
+
|
2278
|
+
def initialize(ciphertextblob=nil, iv=nil, algorithm=nil, taglist=nil, encryptlist=nil)
|
2279
|
+
@CiphertextBlob = ciphertextblob
|
2280
|
+
@Iv = iv
|
2281
|
+
@Algorithm = algorithm
|
2282
|
+
@TagList = taglist
|
2283
|
+
@EncryptList = encryptlist
|
2284
|
+
end
|
2285
|
+
|
2286
|
+
def deserialize(params)
|
2287
|
+
@CiphertextBlob = params['CiphertextBlob']
|
2288
|
+
@Iv = params['Iv']
|
2289
|
+
@Algorithm = params['Algorithm']
|
2290
|
+
@TagList = params['TagList']
|
2291
|
+
@EncryptList = params['EncryptList']
|
2292
|
+
end
|
2293
|
+
end
|
2294
|
+
|
2258
2295
|
# EnglishOCR请求参数结构体
|
2259
2296
|
class EnglishOCRRequest < TencentCloud::Common::AbstractModel
|
2260
2297
|
# @param ImageBase64: 图片的 Base64 值。
|
@@ -4532,17 +4569,22 @@ module TencentCloud
|
|
4532
4569
|
# @type ImageBase64: String
|
4533
4570
|
# @param RetImage: 是否返回图片,默认false
|
4534
4571
|
# @type RetImage: Boolean
|
4572
|
+
# @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。
|
4573
|
+
# 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
4574
|
+
# @type ImageUrl: String
|
4535
4575
|
|
4536
|
-
attr_accessor :ImageBase64, :RetImage
|
4576
|
+
attr_accessor :ImageBase64, :RetImage, :ImageUrl
|
4537
4577
|
|
4538
|
-
def initialize(imagebase64=nil, retimage=nil)
|
4578
|
+
def initialize(imagebase64=nil, retimage=nil, imageurl=nil)
|
4539
4579
|
@ImageBase64 = imagebase64
|
4540
4580
|
@RetImage = retimage
|
4581
|
+
@ImageUrl = imageurl
|
4541
4582
|
end
|
4542
4583
|
|
4543
4584
|
def deserialize(params)
|
4544
4585
|
@ImageBase64 = params['ImageBase64']
|
4545
4586
|
@RetImage = params['RetImage']
|
4587
|
+
@ImageUrl = params['ImageUrl']
|
4546
4588
|
end
|
4547
4589
|
end
|
4548
4590
|
|
@@ -5943,10 +5985,22 @@ module TencentCloud
|
|
5943
5985
|
# @type DateOfIssuance: String
|
5944
5986
|
# @param DateOfExpiration: 截止日期(护照信息页识别结果)
|
5945
5987
|
# @type DateOfExpiration: String
|
5988
|
+
# @param Signature: 持证人签名(护照信息页识别结果)
|
5989
|
+
|
5990
|
+
# 仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
|
5991
|
+
# @type Signature: String
|
5992
|
+
# @param IssuePlace: 签发地点(护照信息页识别结果)
|
5946
5993
|
|
5947
|
-
|
5994
|
+
# 仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
|
5995
|
+
# @type IssuePlace: String
|
5996
|
+
# @param IssuingAuthority: 签发机关(护照信息页识别结果)
|
5997
|
+
|
5998
|
+
# 仅中国大陆护照支持返回此字段,港澳台及境外护照不支持
|
5999
|
+
# @type IssuingAuthority: String
|
5948
6000
|
|
5949
|
-
|
6001
|
+
attr_accessor :Type, :IssuingCountry, :PassportID, :Surname, :GivenName, :Name, :Nationality, :DateOfBirth, :Sex, :DateOfIssuance, :DateOfExpiration, :Signature, :IssuePlace, :IssuingAuthority
|
6002
|
+
|
6003
|
+
def initialize(type=nil, issuingcountry=nil, passportid=nil, surname=nil, givenname=nil, name=nil, nationality=nil, dateofbirth=nil, sex=nil, dateofissuance=nil, dateofexpiration=nil, signature=nil, issueplace=nil, issuingauthority=nil)
|
5950
6004
|
@Type = type
|
5951
6005
|
@IssuingCountry = issuingcountry
|
5952
6006
|
@PassportID = passportid
|
@@ -5958,6 +6012,9 @@ module TencentCloud
|
|
5958
6012
|
@Sex = sex
|
5959
6013
|
@DateOfIssuance = dateofissuance
|
5960
6014
|
@DateOfExpiration = dateofexpiration
|
6015
|
+
@Signature = signature
|
6016
|
+
@IssuePlace = issueplace
|
6017
|
+
@IssuingAuthority = issuingauthority
|
5961
6018
|
end
|
5962
6019
|
|
5963
6020
|
def deserialize(params)
|
@@ -5972,6 +6029,9 @@ module TencentCloud
|
|
5972
6029
|
@Sex = params['Sex']
|
5973
6030
|
@DateOfIssuance = params['DateOfIssuance']
|
5974
6031
|
@DateOfExpiration = params['DateOfExpiration']
|
6032
|
+
@Signature = params['Signature']
|
6033
|
+
@IssuePlace = params['IssuePlace']
|
6034
|
+
@IssuingAuthority = params['IssuingAuthority']
|
5975
6035
|
end
|
5976
6036
|
end
|
5977
6037
|
|
@@ -6716,6 +6776,164 @@ module TencentCloud
|
|
6716
6776
|
end
|
6717
6777
|
end
|
6718
6778
|
|
6779
|
+
# RecognizeEncryptedIDCardOCR请求参数结构体
|
6780
|
+
class RecognizeEncryptedIDCardOCRRequest < TencentCloud::Common::AbstractModel
|
6781
|
+
# @param EncryptedBody: 请求体被加密后的密文,本接口只支持加密传输
|
6782
|
+
# @type EncryptedBody: String
|
6783
|
+
# @param Encryption: 敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。
|
6784
|
+
# @type Encryption: :class:`Tencentcloud::Ocr.v20181119.models.Encryption`
|
6785
|
+
# @param ImageBase64: 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
6786
|
+
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
6787
|
+
# @type ImageBase64: String
|
6788
|
+
# @param ImageUrl: 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
6789
|
+
# 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
6790
|
+
# @type ImageUrl: String
|
6791
|
+
# @param CardSide: FRONT:身份证有照片的一面(人像面),
|
6792
|
+
# BACK:身份证有国徽的一面(国徽面),
|
6793
|
+
# 该参数如果不填,将为您自动判断身份证正反面。
|
6794
|
+
# @type CardSide: String
|
6795
|
+
# @param Config: 以下可选字段均为bool 类型,默认false:
|
6796
|
+
# CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
6797
|
+
# CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
6798
|
+
# CopyWarn,复印件告警
|
6799
|
+
# BorderCheckWarn,边框和框内遮挡告警
|
6800
|
+
# ReshootWarn,翻拍告警
|
6801
|
+
# DetectPsWarn,疑似存在PS痕迹告警
|
6802
|
+
# TempIdWarn,临时身份证告警
|
6803
|
+
# InvalidDateWarn,身份证有效日期不合法告警
|
6804
|
+
# Quality,图片质量分数(评价图片的模糊程度)
|
6805
|
+
# MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
6806
|
+
# ReflectWarn,是否开启反光检测
|
6807
|
+
|
6808
|
+
# SDK 设置方式参考:
|
6809
|
+
# Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
6810
|
+
# API 3.0 Explorer 设置方式参考:
|
6811
|
+
# Config = {"CropIdCard":true,"CropPortrait":true}
|
6812
|
+
# @type Config: String
|
6813
|
+
# @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
|
6814
|
+
# @type EnableRecognitionRectify: Boolean
|
6815
|
+
# @param EnableReflectDetail: 默认值为false。
|
6816
|
+
|
6817
|
+
# 此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
6818
|
+
# @type EnableReflectDetail: Boolean
|
6819
|
+
|
6820
|
+
attr_accessor :EncryptedBody, :Encryption, :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail
|
6821
|
+
|
6822
|
+
def initialize(encryptedbody=nil, encryption=nil, imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil)
|
6823
|
+
@EncryptedBody = encryptedbody
|
6824
|
+
@Encryption = encryption
|
6825
|
+
@ImageBase64 = imagebase64
|
6826
|
+
@ImageUrl = imageurl
|
6827
|
+
@CardSide = cardside
|
6828
|
+
@Config = config
|
6829
|
+
@EnableRecognitionRectify = enablerecognitionrectify
|
6830
|
+
@EnableReflectDetail = enablereflectdetail
|
6831
|
+
end
|
6832
|
+
|
6833
|
+
def deserialize(params)
|
6834
|
+
@EncryptedBody = params['EncryptedBody']
|
6835
|
+
unless params['Encryption'].nil?
|
6836
|
+
@Encryption = Encryption.new
|
6837
|
+
@Encryption.deserialize(params['Encryption'])
|
6838
|
+
end
|
6839
|
+
@ImageBase64 = params['ImageBase64']
|
6840
|
+
@ImageUrl = params['ImageUrl']
|
6841
|
+
@CardSide = params['CardSide']
|
6842
|
+
@Config = params['Config']
|
6843
|
+
@EnableRecognitionRectify = params['EnableRecognitionRectify']
|
6844
|
+
@EnableReflectDetail = params['EnableReflectDetail']
|
6845
|
+
end
|
6846
|
+
end
|
6847
|
+
|
6848
|
+
# RecognizeEncryptedIDCardOCR返回参数结构体
|
6849
|
+
class RecognizeEncryptedIDCardOCRResponse < TencentCloud::Common::AbstractModel
|
6850
|
+
# @param Name: 姓名(人像面)
|
6851
|
+
# @type Name: String
|
6852
|
+
# @param Sex: 性别(人像面)
|
6853
|
+
# @type Sex: String
|
6854
|
+
# @param Nation: 民族(人像面)
|
6855
|
+
# @type Nation: String
|
6856
|
+
# @param Birth: 出生日期(人像面)
|
6857
|
+
# @type Birth: String
|
6858
|
+
# @param Address: 地址(人像面)
|
6859
|
+
# @type Address: String
|
6860
|
+
# @param IdNum: 身份证号(人像面)
|
6861
|
+
# @type IdNum: String
|
6862
|
+
# @param Authority: 发证机关(国徽面)
|
6863
|
+
# @type Authority: String
|
6864
|
+
# @param ValidDate: 证件有效期(国徽面)
|
6865
|
+
# @type ValidDate: String
|
6866
|
+
# @param AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
|
6867
|
+
# IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
6868
|
+
# Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
6869
|
+
|
6870
|
+
# Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
6871
|
+
# BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
6872
|
+
|
6873
|
+
# WarnInfos,告警信息,Code 告警码列表和释义:
|
6874
|
+
# -9100 身份证有效日期不合法告警,
|
6875
|
+
# -9101 身份证边框不完整告警,
|
6876
|
+
# -9102 身份证复印件告警,
|
6877
|
+
# -9103 身份证翻拍告警,
|
6878
|
+
# -9105 身份证框内遮挡告警,
|
6879
|
+
# -9104 临时身份证告警,
|
6880
|
+
# -9106 身份证疑似存在PS痕迹告警,
|
6881
|
+
# -9107 身份证反光告警。
|
6882
|
+
# @type AdvancedInfo: String
|
6883
|
+
# @param ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
|
6884
|
+
# @type ReflectDetailInfos: Array
|
6885
|
+
# @param EncryptedBody: 加密后的数据
|
6886
|
+
# @type EncryptedBody: String
|
6887
|
+
# @param Encryption: 敏感数据加密信息
|
6888
|
+
# @type Encryption: :class:`Tencentcloud::Ocr.v20181119.models.Encryption`
|
6889
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6890
|
+
# @type RequestId: String
|
6891
|
+
|
6892
|
+
attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :AdvancedInfo, :ReflectDetailInfos, :EncryptedBody, :Encryption, :RequestId
|
6893
|
+
|
6894
|
+
def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, advancedinfo=nil, reflectdetailinfos=nil, encryptedbody=nil, encryption=nil, requestid=nil)
|
6895
|
+
@Name = name
|
6896
|
+
@Sex = sex
|
6897
|
+
@Nation = nation
|
6898
|
+
@Birth = birth
|
6899
|
+
@Address = address
|
6900
|
+
@IdNum = idnum
|
6901
|
+
@Authority = authority
|
6902
|
+
@ValidDate = validdate
|
6903
|
+
@AdvancedInfo = advancedinfo
|
6904
|
+
@ReflectDetailInfos = reflectdetailinfos
|
6905
|
+
@EncryptedBody = encryptedbody
|
6906
|
+
@Encryption = encryption
|
6907
|
+
@RequestId = requestid
|
6908
|
+
end
|
6909
|
+
|
6910
|
+
def deserialize(params)
|
6911
|
+
@Name = params['Name']
|
6912
|
+
@Sex = params['Sex']
|
6913
|
+
@Nation = params['Nation']
|
6914
|
+
@Birth = params['Birth']
|
6915
|
+
@Address = params['Address']
|
6916
|
+
@IdNum = params['IdNum']
|
6917
|
+
@Authority = params['Authority']
|
6918
|
+
@ValidDate = params['ValidDate']
|
6919
|
+
@AdvancedInfo = params['AdvancedInfo']
|
6920
|
+
unless params['ReflectDetailInfos'].nil?
|
6921
|
+
@ReflectDetailInfos = []
|
6922
|
+
params['ReflectDetailInfos'].each do |i|
|
6923
|
+
reflectdetailinfo_tmp = ReflectDetailInfo.new
|
6924
|
+
reflectdetailinfo_tmp.deserialize(i)
|
6925
|
+
@ReflectDetailInfos << reflectdetailinfo_tmp
|
6926
|
+
end
|
6927
|
+
end
|
6928
|
+
@EncryptedBody = params['EncryptedBody']
|
6929
|
+
unless params['Encryption'].nil?
|
6930
|
+
@Encryption = Encryption.new
|
6931
|
+
@Encryption.deserialize(params['Encryption'])
|
6932
|
+
end
|
6933
|
+
@RequestId = params['RequestId']
|
6934
|
+
end
|
6935
|
+
end
|
6936
|
+
|
6719
6937
|
# RecognizeForeignPermanentResidentIdCard请求参数结构体
|
6720
6938
|
class RecognizeForeignPermanentResidentIdCardRequest < TencentCloud::Common::AbstractModel
|
6721
6939
|
# @param ImageUrl: 图片的 Url 地址。
|
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.757
|
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-01-
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,8 +33,8 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/v20181119/client.rb
|
37
36
|
- lib/v20181119/models.rb
|
37
|
+
- lib/v20181119/client.rb
|
38
38
|
- lib/tencentcloud-sdk-ocr.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|