tencentcloud-sdk-ocr 3.0.811 → 3.0.813

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: 411d99a896fb827b125a5af856dcab1797758e23
4
- data.tar.gz: eb5f783571c2ae4491134c5a2a1405d123d74123
3
+ metadata.gz: efdb8d180de0fc6f0442c1370dd0210604544a68
4
+ data.tar.gz: a3ddc2892dd19a058b32d4b8ca8be3cc8cd8e763
5
5
  SHA512:
6
- metadata.gz: b23c25fad36dd569f542be30b66f0fca812ab84beb5fe63a5a64260659a34147dab362f98a31b418fffcc694e3bf1e037d96f49e2fbab6c69172a35cbb8d2c9f
7
- data.tar.gz: d1a13e16fff63d746009285e6bc8de265718b1a79f945466e798d7e88d5be7ba9037363e2468e6ce6c79c4a85e4632649edbb40b459a1ec3446335f8859fe839
6
+ metadata.gz: 46b023277861723e6d51a2ce177dd2c835c19dc85b68e07d085bf67a76bc98069b2882a3eaedb494b3a30e76be2c928c86f17629aa96135149aeb36360387935
7
+ data.tar.gz: 4ed0a9be0e590826f9f45756c2f3de79e08729d15fafa1abba982967fbac9c955939f7b466b2dd2d0df488e7a52859cfb7e245b44990eb17d60af261d4924043
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.811
1
+ 3.0.813
@@ -1731,6 +1731,32 @@ module TencentCloud
1731
1731
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1732
1732
  end
1733
1733
 
1734
+ # 本接口支持多种类型证件有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能。可以应用于各种证件信息有效性校验场景,例如银行开户、用户注册等场景。
1735
+
1736
+ # 默认接口请求频率限制:10次/秒。
1737
+
1738
+ # @param request: Request instance for RecognizeGeneralTextImageWarn.
1739
+ # @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnRequest`
1740
+ # @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralTextImageWarnResponse`
1741
+ def RecognizeGeneralTextImageWarn(request)
1742
+ body = send_request('RecognizeGeneralTextImageWarn', request.serialize)
1743
+ response = JSON.parse(body)
1744
+ if response['Response'].key?('Error') == false
1745
+ model = RecognizeGeneralTextImageWarnResponse.new
1746
+ model.deserialize(response['Response'])
1747
+ model
1748
+ else
1749
+ code = response['Response']['Error']['Code']
1750
+ message = response['Response']['Error']['Message']
1751
+ reqid = response['Response']['RequestId']
1752
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1753
+ end
1754
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1755
+ raise e
1756
+ rescue StandardError => e
1757
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
+ end
1759
+
1734
1760
  # 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
1735
1761
 
1736
1762
  # 默认接口请求频率限制:10次/秒。
@@ -3505,6 +3505,39 @@ module TencentCloud
3505
3505
  end
3506
3506
  end
3507
3507
 
3508
+ # 通用告警详情
3509
+ class GeneralWarnInfo < TencentCloud::Common::AbstractModel
3510
+ # @param IsWarn: 是否存在该告警
3511
+ # @type IsWarn: Boolean
3512
+ # @param Polygon: 告警位置四点坐标
3513
+ # @type Polygon: Array
3514
+ # @param SpecificMatter: 特殊判定,支持包括
3515
+
3516
+ # Finger:由手指导致的不完整,仅在不完整告警中返回
3517
+ # @type SpecificMatter: String
3518
+
3519
+ attr_accessor :IsWarn, :Polygon, :SpecificMatter
3520
+
3521
+ def initialize(iswarn=nil, polygon=nil, specificmatter=nil)
3522
+ @IsWarn = iswarn
3523
+ @Polygon = polygon
3524
+ @SpecificMatter = specificmatter
3525
+ end
3526
+
3527
+ def deserialize(params)
3528
+ @IsWarn = params['IsWarn']
3529
+ unless params['Polygon'].nil?
3530
+ @Polygon = []
3531
+ params['Polygon'].each do |i|
3532
+ polygon_tmp = Polygon.new
3533
+ polygon_tmp.deserialize(i)
3534
+ @Polygon << polygon_tmp
3535
+ end
3536
+ end
3537
+ @SpecificMatter = params['SpecificMatter']
3538
+ end
3539
+ end
3540
+
3508
3541
  # GetTaskState请求参数结构体
3509
3542
  class GetTaskStateRequest < TencentCloud::Common::AbstractModel
3510
3543
  # @param TaskId: 智慧表单任务唯一身份ID
@@ -7253,6 +7286,100 @@ module TencentCloud
7253
7286
  end
7254
7287
  end
7255
7288
 
7289
+ # RecognizeGeneralTextImageWarn请求参数结构体
7290
+ class RecognizeGeneralTextImageWarnRequest < TencentCloud::Common::AbstractModel
7291
+ # @param ImageUrl: 图片的 Url 地址。
7292
+ # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7293
+ # 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
7294
+ # 支持的图片像素:需介于20-10000px之间。
7295
+ # 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
7296
+ # 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
7297
+ # @type ImageUrl: String
7298
+ # @param ImageBase64: 图片的 Base64 值。
7299
+ # 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
7300
+ # 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
7301
+ # 支持的图片像素:需介于20-10000px之间。
7302
+ # 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
7303
+ # @type ImageBase64: String
7304
+ # @param EnablePdf: 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。 示例值:false
7305
+ # @type EnablePdf: Boolean
7306
+ # @param PdfPageNumber: 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。 示例值:1
7307
+ # @type PdfPageNumber: Integer
7308
+ # @param Type: 支持的模板类型
7309
+ # - General 通用告警
7310
+ # - LicensePlate 车牌告警
7311
+ # @type Type: String
7312
+
7313
+ attr_accessor :ImageUrl, :ImageBase64, :EnablePdf, :PdfPageNumber, :Type
7314
+
7315
+ def initialize(imageurl=nil, imagebase64=nil, enablepdf=nil, pdfpagenumber=nil, type=nil)
7316
+ @ImageUrl = imageurl
7317
+ @ImageBase64 = imagebase64
7318
+ @EnablePdf = enablepdf
7319
+ @PdfPageNumber = pdfpagenumber
7320
+ @Type = type
7321
+ end
7322
+
7323
+ def deserialize(params)
7324
+ @ImageUrl = params['ImageUrl']
7325
+ @ImageBase64 = params['ImageBase64']
7326
+ @EnablePdf = params['EnablePdf']
7327
+ @PdfPageNumber = params['PdfPageNumber']
7328
+ @Type = params['Type']
7329
+ end
7330
+ end
7331
+
7332
+ # RecognizeGeneralTextImageWarn返回参数结构体
7333
+ class RecognizeGeneralTextImageWarnResponse < TencentCloud::Common::AbstractModel
7334
+ # @param Copy: 复印告警信息
7335
+ # @type Copy: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
7336
+ # @param Reprint: 翻拍告警信息
7337
+ # @type Reprint: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
7338
+ # @param Blur: 模糊告警信息
7339
+ # @type Blur: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
7340
+ # @param Reflection: 反光告警信息
7341
+ # @type Reflection: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
7342
+ # @param BorderIncomplete: 边框不完整告警信息
7343
+ # @type BorderIncomplete: :class:`Tencentcloud::Ocr.v20181119.models.GeneralWarnInfo`
7344
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
7345
+ # @type RequestId: String
7346
+
7347
+ attr_accessor :Copy, :Reprint, :Blur, :Reflection, :BorderIncomplete, :RequestId
7348
+
7349
+ def initialize(copy=nil, reprint=nil, blur=nil, reflection=nil, borderincomplete=nil, requestid=nil)
7350
+ @Copy = copy
7351
+ @Reprint = reprint
7352
+ @Blur = blur
7353
+ @Reflection = reflection
7354
+ @BorderIncomplete = borderincomplete
7355
+ @RequestId = requestid
7356
+ end
7357
+
7358
+ def deserialize(params)
7359
+ unless params['Copy'].nil?
7360
+ @Copy = GeneralWarnInfo.new
7361
+ @Copy.deserialize(params['Copy'])
7362
+ end
7363
+ unless params['Reprint'].nil?
7364
+ @Reprint = GeneralWarnInfo.new
7365
+ @Reprint.deserialize(params['Reprint'])
7366
+ end
7367
+ unless params['Blur'].nil?
7368
+ @Blur = GeneralWarnInfo.new
7369
+ @Blur.deserialize(params['Blur'])
7370
+ end
7371
+ unless params['Reflection'].nil?
7372
+ @Reflection = GeneralWarnInfo.new
7373
+ @Reflection.deserialize(params['Reflection'])
7374
+ end
7375
+ unless params['BorderIncomplete'].nil?
7376
+ @BorderIncomplete = GeneralWarnInfo.new
7377
+ @BorderIncomplete.deserialize(params['BorderIncomplete'])
7378
+ end
7379
+ @RequestId = params['RequestId']
7380
+ end
7381
+ end
7382
+
7256
7383
  # RecognizeHealthCodeOCR请求参数结构体
7257
7384
  class RecognizeHealthCodeOCRRequest < TencentCloud::Common::AbstractModel
7258
7385
  # @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.811
4
+ version: 3.0.813
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-04-25 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common