tencentcloud-sdk-ocr 3.0.702 → 3.0.703

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/VERSION +1 -1
  3. data/lib/v20181119/models.rb +40 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c33c130b3a1943968c9294a93b417ea6091e466d
4
- data.tar.gz: 724be60a5568acd7fed2383608cf287c33d4320b
3
+ metadata.gz: 2e970346206e409b1c7e40dd240a49af706bfe89
4
+ data.tar.gz: c858cd4c9770519f84a533a8e447c484c4728d81
5
5
  SHA512:
6
- metadata.gz: 48f5c4106974a02ae4a5a206e6104a415267876e6801f9b0bbc42216da96a001b1f317a578c940728ccf13a55e151e7a49b2fc5d03bff08a82d9feacbb94533d
7
- data.tar.gz: 404385abaf79e622835e207534710d93fe76588c290619d4d1ea163bd775368c3edb82e0bbc0d05c8622ae9264951a6ec1c66031f8b9e76088217dab3ea7e97b
6
+ metadata.gz: e135dcaaccb215c128796b61828a73b7fe5aa08bc01657734e655b435d29500d827c4027a9d198b0f8291b13a99d3ac6131973df0a96ec1932675d52bf40cb5e
7
+ data.tar.gz: 2db74fcaaaa1027f357cfa74cb80bfcf4eb445bbe035048ce081351f979447988a619d82a0709991e7711db13f8b48a6e8879596a86d2f2325dbe71328dcf4e1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.702
1
+ 3.0.703
@@ -3096,15 +3096,20 @@ module TencentCloud
3096
3096
  # @type Config: String
3097
3097
  # @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
3098
3098
  # @type EnableRecognitionRectify: Boolean
3099
+ # @param EnableReflectDetail: 默认值为false。
3099
3100
 
3100
- attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify
3101
+ # 此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
3102
+ # @type EnableReflectDetail: Boolean
3101
3103
 
3102
- def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil)
3104
+ attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail
3105
+
3106
+ def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil)
3103
3107
  @ImageBase64 = imagebase64
3104
3108
  @ImageUrl = imageurl
3105
3109
  @CardSide = cardside
3106
3110
  @Config = config
3107
3111
  @EnableRecognitionRectify = enablerecognitionrectify
3112
+ @EnableReflectDetail = enablereflectdetail
3108
3113
  end
3109
3114
 
3110
3115
  def deserialize(params)
@@ -3113,6 +3118,7 @@ module TencentCloud
3113
3118
  @CardSide = params['CardSide']
3114
3119
  @Config = params['Config']
3115
3120
  @EnableRecognitionRectify = params['EnableRecognitionRectify']
3121
+ @EnableReflectDetail = params['EnableReflectDetail']
3116
3122
  end
3117
3123
  end
3118
3124
 
@@ -3151,12 +3157,14 @@ module TencentCloud
3151
3157
  # -9106 身份证疑似存在PS痕迹告警,
3152
3158
  # -9107 身份证反光告警。
3153
3159
  # @type AdvancedInfo: String
3160
+ # @param ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
3161
+ # @type ReflectDetailInfos: Array
3154
3162
  # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3155
3163
  # @type RequestId: String
3156
3164
 
3157
- attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :AdvancedInfo, :RequestId
3165
+ attr_accessor :Name, :Sex, :Nation, :Birth, :Address, :IdNum, :Authority, :ValidDate, :AdvancedInfo, :ReflectDetailInfos, :RequestId
3158
3166
 
3159
- def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, advancedinfo=nil, requestid=nil)
3167
+ def initialize(name=nil, sex=nil, nation=nil, birth=nil, address=nil, idnum=nil, authority=nil, validdate=nil, advancedinfo=nil, reflectdetailinfos=nil, requestid=nil)
3160
3168
  @Name = name
3161
3169
  @Sex = sex
3162
3170
  @Nation = nation
@@ -3166,6 +3174,7 @@ module TencentCloud
3166
3174
  @Authority = authority
3167
3175
  @ValidDate = validdate
3168
3176
  @AdvancedInfo = advancedinfo
3177
+ @ReflectDetailInfos = reflectdetailinfos
3169
3178
  @RequestId = requestid
3170
3179
  end
3171
3180
 
@@ -3179,6 +3188,14 @@ module TencentCloud
3179
3188
  @Authority = params['Authority']
3180
3189
  @ValidDate = params['ValidDate']
3181
3190
  @AdvancedInfo = params['AdvancedInfo']
3191
+ unless params['ReflectDetailInfos'].nil?
3192
+ @ReflectDetailInfos = []
3193
+ params['ReflectDetailInfos'].each do |i|
3194
+ reflectdetailinfo_tmp = ReflectDetailInfo.new
3195
+ reflectdetailinfo_tmp.deserialize(i)
3196
+ @ReflectDetailInfos << reflectdetailinfo_tmp
3197
+ end
3198
+ end
3182
3199
  @RequestId = params['RequestId']
3183
3200
  end
3184
3201
  end
@@ -7351,6 +7368,25 @@ module TencentCloud
7351
7368
  end
7352
7369
  end
7353
7370
 
7371
+ # 反光点覆盖区域详情结果
7372
+ class ReflectDetailInfo < TencentCloud::Common::AbstractModel
7373
+ # @param Position: NationalEmblem 国徽位置
7374
+ # Portrait 人像照片位置
7375
+ # RecognitionField 识别字段位置
7376
+ # Others 其他位置
7377
+ # @type Position: String
7378
+
7379
+ attr_accessor :Position
7380
+
7381
+ def initialize(position=nil)
7382
+ @Position = position
7383
+ end
7384
+
7385
+ def deserialize(params)
7386
+ @Position = params['Position']
7387
+ end
7388
+ end
7389
+
7354
7390
  # ResidenceBookletOCR请求参数结构体
7355
7391
  class ResidenceBookletOCRRequest < TencentCloud::Common::AbstractModel
7356
7392
  # @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.702
4
+ version: 3.0.703
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-14 00:00:00.000000000 Z
11
+ date: 2023-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common