tencentcloud-sdk-ocr 3.0.1206 → 3.0.1214

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: c3a2cbb74bf282d0787119b84134c5715f7a1d0c
4
- data.tar.gz: a6797c90f3d99433fe4e36291c981f16fbbebcca
3
+ metadata.gz: 286009531d450342900d6a0ed84c3d6135cc6382
4
+ data.tar.gz: b2232d920daf34101a6df011294998ae1f8f374d
5
5
  SHA512:
6
- metadata.gz: ea4df0fb74c6260b565237ee8851d99bbca143b3d2965ddd18e9f2df0fd17257ba033a122c572407b514432644ed2aaac44f2f3b37ce8ebb9d00bec839cc7350
7
- data.tar.gz: a5848abd5cb7b82668d32fff80c331b1bf92a17a7dbb4c7f41561de9ce9701ce4e9a5868a51d59b6cee4a5276015438e94356fede9f002859b3904b1f6799706
6
+ metadata.gz: 275b9efa02c39610d0ec0d1fbdc592fee47f03da2158b90afcd0a08d55f121fa1b46412dfba0fb3e08c965440c4dac022a52b570563cef90354694d24d5aedee
7
+ data.tar.gz: cae7f0870e5cd63c238c916a13967e083e15b7c76ea92179ea2f3656c46efe821130e58d6ee50695b5b9c4d80c51e8a98dd6b67bb6c32f547fbef4f0c9b5313f
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1206
1
+ 3.0.1214
@@ -1137,7 +1137,10 @@ module TencentCloud
1137
1137
  # <td rowspan="9">告警功能</td>
1138
1138
  # </tr>
1139
1139
  # <tr>
1140
- # <td>身份证边框不完整告警</td>
1140
+ # <td>身份证有效日期不合法告警</td>
1141
+ # </tr>
1142
+ # <tr>
1143
+ # <td>身份证边框不完整告警</td>
1141
1144
  # </tr>
1142
1145
  # <tr>
1143
1146
  # <td>身份证复印件告警</td>
@@ -1524,7 +1527,7 @@ module TencentCloud
1524
1527
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1525
1528
  end
1526
1529
 
1527
- # 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框和题目元素的坐标位置。
1530
+ # 试卷切题(仅检测)可将整页练习册、试卷或教辅中的题目进行自动切题,返回试题边框的坐标位置。新客户请注意UseNewMode的选择。
1528
1531
 
1529
1532
  # 默认接口请求频率限制:2次/秒。
1530
1533
 
@@ -1550,7 +1553,7 @@ module TencentCloud
1550
1553
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1551
1554
  end
1552
1555
 
1553
- # 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
1556
+ # 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。新接入客户请注意UseNewModel选择
1554
1557
 
1555
1558
  # 默认接口请求频率限制:2次/秒。
1556
1559
 
@@ -1651,7 +1654,7 @@ module TencentCloud
1651
1654
  # </tr>
1652
1655
  # <tr>
1653
1656
  # <td rowspan="9">告警功能</td>
1654
- # <td>身份证有效日期不合法,即有效日期不符合5年、10年、20年、长期期限
1657
+ # <td>身份证有效日期不合法
1655
1658
 
1656
1659
  # </td>
1657
1660
  # </tr>
@@ -1034,7 +1034,7 @@ module TencentCloud
1034
1034
  # 名片识别结果
1035
1035
  class BusinessCardInfo < TencentCloud::Common::AbstractModel
1036
1036
  # @param Name: 识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:
1037
- # 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
1037
+ # 姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交账号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
1038
1038
  # @type Name: String
1039
1039
  # @param Value: 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
1040
1040
  # @type Value: String
@@ -4130,8 +4130,8 @@ module TencentCloud
4130
4130
 
4131
4131
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4132
4132
  extend Gem::Deprecate
4133
- deprecate :Angel, :none, 2026, 1
4134
- deprecate :Angel=, :none, 2026, 1
4133
+ deprecate :Angel, :none, 2026, 2
4134
+ deprecate :Angel=, :none, 2026, 2
4135
4135
 
4136
4136
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4137
4137
  @TextDetections = textdetections
@@ -4237,8 +4237,8 @@ module TencentCloud
4237
4237
 
4238
4238
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
4239
4239
  extend Gem::Deprecate
4240
- deprecate :Angel, :none, 2026, 1
4241
- deprecate :Angel=, :none, 2026, 1
4240
+ deprecate :Angel, :none, 2026, 2
4241
+ deprecate :Angel=, :none, 2026, 2
4242
4242
 
4243
4243
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
4244
4244
  @TextDetections = textdetections
@@ -4334,8 +4334,8 @@ module TencentCloud
4334
4334
 
4335
4335
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4336
4336
  extend Gem::Deprecate
4337
- deprecate :Angel, :none, 2026, 1
4338
- deprecate :Angel=, :none, 2026, 1
4337
+ deprecate :Angel, :none, 2026, 2
4338
+ deprecate :Angel=, :none, 2026, 2
4339
4339
 
4340
4340
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4341
4341
  @TextDetections = textdetections
@@ -4481,8 +4481,8 @@ module TencentCloud
4481
4481
 
4482
4482
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
4483
4483
  extend Gem::Deprecate
4484
- deprecate :Angel, :none, 2026, 1
4485
- deprecate :Angel=, :none, 2026, 1
4484
+ deprecate :Angel, :none, 2026, 2
4485
+ deprecate :Angel=, :none, 2026, 2
4486
4486
 
4487
4487
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
4488
4488
  @TextDetections = textdetections
@@ -4683,8 +4683,8 @@ module TencentCloud
4683
4683
 
4684
4684
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
4685
4685
  extend Gem::Deprecate
4686
- deprecate :DetectFake, :none, 2026, 1
4687
- deprecate :DetectFake=, :none, 2026, 1
4686
+ deprecate :DetectFake, :none, 2026, 2
4687
+ deprecate :DetectFake=, :none, 2026, 2
4688
4688
 
4689
4689
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
4690
4690
  @ReturnHeadImage = returnheadimage
@@ -4749,10 +4749,10 @@ module TencentCloud
4749
4749
 
4750
4750
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
4751
4751
  extend Gem::Deprecate
4752
- deprecate :FakeDetectResult, :none, 2026, 1
4753
- deprecate :FakeDetectResult=, :none, 2026, 1
4754
- deprecate :WarningCode, :none, 2026, 1
4755
- deprecate :WarningCode=, :none, 2026, 1
4752
+ deprecate :FakeDetectResult, :none, 2026, 2
4753
+ deprecate :FakeDetectResult=, :none, 2026, 2
4754
+ deprecate :WarningCode, :none, 2026, 2
4755
+ deprecate :WarningCode=, :none, 2026, 2
4756
4756
 
4757
4757
  def initialize(cnname=nil, enname=nil, telexcode=nil, sex=nil, birthday=nil, permanent=nil, idnum=nil, symbol=nil, firstissuedate=nil, currentissuedate=nil, fakedetectresult=nil, headimage=nil, smallheadimage=nil, warningcode=nil, warncardinfos=nil, windowembeddedtext=nil, requestid=nil)
4758
4758
  @CnName = cnname
@@ -5182,7 +5182,20 @@ module TencentCloud
5182
5182
  # BACK:身份证有国徽的一面(国徽面),
5183
5183
  # 该参数如果不填,将为您自动判断身份证正反面。
5184
5184
  # @type CardSide: String
5185
- # @param Config: 以下可选字段均为bool 类型,默认false:CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)CropPortrait,人像照片裁剪(自动抠取身份证头像区域)CopyWarn,复印件告警BorderCheckWarn,边框和框内遮挡告警ReshootWarn,翻拍告警DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)TempIdWarn,临时身份证告警InvalidDateWarn,身份证有效日期不合法告警Quality,图片质量分数(评价图片的模糊程度)MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)ReflectWarn,是否开启反光检测SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
5185
+ # @param Config: 以下可选字段均为bool 类型,默认false:
5186
+ # CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
5187
+ # CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
5188
+ # CopyWarn,复印件告警
5189
+ # BorderCheckWarn,边框不完整和框内遮挡告警
5190
+ # ReshootWarn,屏幕翻拍告警
5191
+ # DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
5192
+ # TempIdWarn,临时身份证告警
5193
+ # InvalidDateWarn,身份证有效日期不合法告警
5194
+ # Quality,图片质量分数(评价图片的模糊程度)
5195
+ # MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
5196
+ # ReflectWarn,是否开启反光检测
5197
+ # SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
5198
+ # API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
5186
5199
  # @type Config: String
5187
5200
  # @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
5188
5201
  # @type EnableRecognitionRectify: Boolean
@@ -5197,8 +5210,8 @@ module TencentCloud
5197
5210
 
5198
5211
  attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
5199
5212
  extend Gem::Deprecate
5200
- deprecate :EnableDateVerify, :none, 2026, 1
5201
- deprecate :EnableDateVerify=, :none, 2026, 1
5213
+ deprecate :EnableDateVerify, :none, 2026, 2
5214
+ deprecate :EnableDateVerify=, :none, 2026, 2
5202
5215
 
5203
5216
  def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
5204
5217
  @ImageBase64 = imagebase64
@@ -5241,7 +5254,22 @@ module TencentCloud
5241
5254
  # @type Authority: String
5242
5255
  # @param ValidDate: 证件有效期(国徽面)
5243
5256
  # @type ValidDate: String
5244
- # @param AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。 IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回; Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回; Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50); BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50); WarnInfos,告警信息,Code 告警码列表和释义: -9101 身份证边框不完整告警, -9102 身份证复印件告警(黑白及彩色复印件), -9108 身份证复印件告警(仅黑白复印件), -9103 身份证翻拍告警, -9105 身份证框内遮挡告警, -9104 临时身份证告警, -9106 身份证疑似存在PS痕迹告警, -9107 身份证反光告警。
5257
+ # @param AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
5258
+ # IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
5259
+ # Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
5260
+ # Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
5261
+ # BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
5262
+ # WarnInfos,告警信息,Code 告警码列表和释义:
5263
+ # -9100 身份证有效日期不合法告警,
5264
+ # -9101 身份证边框不完整告警,
5265
+ # -9102 身份证复印件告警(黑白及彩色复印件),
5266
+ # -9108 身份证复印件告警(仅黑白复印件),
5267
+ # -9103 身份证翻拍告警,
5268
+ # -9105 身份证框内遮挡告警,
5269
+ # -9104 临时身份证告警,
5270
+ # -9106 身份证疑似存在PS痕迹告警,
5271
+ # -9107 身份证反光告警,
5272
+ # -9110 电子身份证告警
5245
5273
  # @type AdvancedInfo: String
5246
5274
  # @param ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
5247
5275
  # @type ReflectDetailInfos: Array
@@ -6108,10 +6136,10 @@ module TencentCloud
6108
6136
 
6109
6137
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
6110
6138
  extend Gem::Deprecate
6111
- deprecate :Warn, :none, 2026, 1
6112
- deprecate :Warn=, :none, 2026, 1
6113
- deprecate :AdvancedInfo, :none, 2026, 1
6114
- deprecate :AdvancedInfo=, :none, 2026, 1
6139
+ deprecate :Warn, :none, 2026, 2
6140
+ deprecate :Warn=, :none, 2026, 2
6141
+ deprecate :AdvancedInfo, :none, 2026, 2
6142
+ deprecate :AdvancedInfo=, :none, 2026, 2
6115
6143
 
6116
6144
  def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, mykadnumber=nil, warncardinfos=nil, requestid=nil)
6117
6145
  @ID = id
@@ -6213,10 +6241,10 @@ module TencentCloud
6213
6241
 
6214
6242
  attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
6215
6243
  extend Gem::Deprecate
6216
- deprecate :Warn, :none, 2026, 1
6217
- deprecate :Warn=, :none, 2026, 1
6218
- deprecate :AdvancedInfo, :none, 2026, 1
6219
- deprecate :AdvancedInfo=, :none, 2026, 1
6244
+ deprecate :Warn, :none, 2026, 2
6245
+ deprecate :Warn=, :none, 2026, 2
6246
+ deprecate :AdvancedInfo, :none, 2026, 2
6247
+ deprecate :AdvancedInfo=, :none, 2026, 2
6220
6248
 
6221
6249
  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, warncardinfos=nil, cardcount=nil, requestid=nil)
6222
6250
  @ID = id
@@ -8231,7 +8259,10 @@ module TencentCloud
8231
8259
  # @type PdfPageNumber: Integer
8232
8260
  # @param EnableImageCrop: 是否开启切边增强和弯曲矫正,默认为false不开启
8233
8261
  # @type EnableImageCrop: Boolean
8234
- # @param UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
8262
+ # @param UseNewModel: false: 使用当前默认模型返回结构化信息更全面,但检测精度一般
8263
+ # true: 使用多模态推理模型,速度更快精度更高,但只返回题目最外层边框
8264
+
8265
+ # API默认false, demo默认使用的是true
8235
8266
  # @type UseNewModel: Boolean
8236
8267
 
8237
8268
  attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :UseNewModel
@@ -8296,7 +8327,10 @@ module TencentCloud
8296
8327
  # @type EnableImageCrop: Boolean
8297
8328
  # @param EnableOnlyDetectBorder: 是否只返回检测框,默认false
8298
8329
  # @type EnableOnlyDetectBorder: Boolean
8299
- # @param UseNewModel: false: 使用当前默认模型 true: 使用新的多模态推理模型,速度更快推理效果更强,仅 `EnableOnlyDetectBorder` 为 `true` 时生效,公测中
8330
+ # @param UseNewModel: false: 使用当前默认模型(结构化信息更全面,但手写答案坐标精度一般)
8331
+ # true: 使用多模态推理模型,推理效果更强(题目框选、手写答案坐标定位能力更优,但不返回题目选项和题目类型信息)
8332
+
8333
+ # API默认false, demo默认使用的是true
8300
8334
  # @type UseNewModel: Boolean
8301
8335
 
8302
8336
  attr_accessor :ImageUrl, :ImageBase64, :IsPdf, :PdfPageNumber, :EnableImageCrop, :EnableOnlyDetectBorder, :UseNewModel
@@ -8688,7 +8722,20 @@ module TencentCloud
8688
8722
  # BACK:身份证有国徽的一面(国徽面),
8689
8723
  # 该参数如果不填,将为您自动判断身份证正反面。
8690
8724
  # @type CardSide: String
8691
- # @param Config: 以下可选字段均为bool 类型,默认false:CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)CropPortrait,人像照片裁剪(自动抠取身份证头像区域)CopyWarn,复印件告警BorderCheckWarn,边框和框内遮挡告警ReshootWarn,DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)TempIdWarn,临时身份证告警InvalidDateWarn,身份证有效日期不合法告警Quality,图片质量分数(评价图片的模糊程度)MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)ReflectWarn,是否开启反光检测SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
8725
+ # @param Config: 以下可选字段均为bool 类型,默认false:
8726
+ # CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
8727
+ # CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
8728
+ # CopyWarn,复印件告警
8729
+ # BorderCheckWarn,边框不完整和框内遮挡告警
8730
+ # ReshootWarn,屏幕翻拍告警
8731
+ # DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
8732
+ # TempIdWarn,临时身份证告警
8733
+ # InvalidDateWarn,身份证有效日期不合法告警
8734
+ # Quality,图片质量分数(评价图片的模糊程度)
8735
+ # MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
8736
+ # ReflectWarn,是否开启反光检测
8737
+ # SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
8738
+ # API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
8692
8739
  # @type Config: String
8693
8740
  # @param EnableRecognitionRectify: 默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。
8694
8741
  # @type EnableRecognitionRectify: Boolean
@@ -8747,7 +8794,22 @@ module TencentCloud
8747
8794
  # @type Authority: String
8748
8795
  # @param ValidDate: 证件有效期(国徽面)
8749
8796
  # @type ValidDate: String
8750
- # @param AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);WarnInfos,告警信息,Code 告警码列表和释义:-9100 身份证有效日期不合法告警,-9101 身份证边框不完整告警,-9102 身份证复印件告警(黑白及彩色复印件),-9108 身份证复印件告警(仅黑白复印件),-9103 身份证翻拍告警,-9105 身份证框内遮挡告警,-9104 临时身份证告警,-9106 身份证疑似存在PS痕迹告警,-9107 身份证反光告警,-9110 电子身份证告警
8797
+ # @param AdvancedInfo: 扩展信息,不请求则不返回,具体输入参考示例3和示例4。
8798
+ # IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
8799
+ # Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
8800
+ # Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
8801
+ # BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
8802
+ # WarnInfos,告警信息,Code 告警码列表和释义:
8803
+ # -9100 身份证有效日期不合法告警,
8804
+ # -9101 身份证边框不完整告警,
8805
+ # -9102 身份证复印件告警(黑白及彩色复印件),
8806
+ # -9108 身份证复印件告警(仅黑白复印件),
8807
+ # -9103 身份证翻拍告警,
8808
+ # -9105 身份证框内遮挡告警,
8809
+ # -9104 临时身份证告警,
8810
+ # -9106 身份证疑似存在PS痕迹告警,
8811
+ # -9107 身份证反光告警,
8812
+ # -9110 电子身份证告警
8751
8813
  # @type AdvancedInfo: String
8752
8814
  # @param ReflectDetailInfos: 反光点覆盖区域详情结果,具体内容请点击左侧链接
8753
8815
  # @type ReflectDetailInfos: Array
@@ -9661,8 +9723,8 @@ module TencentCloud
9661
9723
 
9662
9724
  attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
9663
9725
  extend Gem::Deprecate
9664
- deprecate :AdvancedInfo, :none, 2026, 1
9665
- deprecate :AdvancedInfo=, :none, 2026, 1
9726
+ deprecate :AdvancedInfo, :none, 2026, 2
9727
+ deprecate :AdvancedInfo=, :none, 2026, 2
9666
9728
 
9667
9729
  def initialize(id=nil, thainame=nil, enfirstname=nil, enlastname=nil, issuedate=nil, expirationdate=nil, enissuedate=nil, enexpirationdate=nil, birthday=nil, enbirthday=nil, religion=nil, serialnumber=nil, address=nil, laserid=nil, portraitimage=nil, warncardinfos=nil, advancedinfo=nil, cardcount=nil, requestid=nil)
9668
9730
  @ID = id
@@ -11261,8 +11323,8 @@ module TencentCloud
11261
11323
 
11262
11324
  attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
11263
11325
  extend Gem::Deprecate
11264
- deprecate :PdfPageNumber, :none, 2026, 1
11265
- deprecate :PdfPageNumber=, :none, 2026, 1
11326
+ deprecate :PdfPageNumber, :none, 2026, 2
11327
+ deprecate :PdfPageNumber=, :none, 2026, 2
11266
11328
 
11267
11329
  def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
11268
11330
  @ImageBase64 = imagebase64
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.1206
4
+ version: 3.0.1214
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-01-22 00:00:00.000000000 Z
11
+ date: 2026-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common