tencentcloud-sdk-ocr 3.0.855 → 3.0.857

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 91e61b9b9ac262bfc30c643d0c5b7a0b7283442a
4
- data.tar.gz: 511faf0400862fa002bc1b25ceee64ea7bba7ab7
3
+ metadata.gz: a241901cd522ef3c12485075cb65d4ca16527b09
4
+ data.tar.gz: 6e70e6007e198bc89a48e18dc50f865b2eb61774
5
5
  SHA512:
6
- metadata.gz: 9689e6a9ca7def22fe78cf0cef4fcbb95f378d412b53fe3e694c372f1bab1e9de3cb95695bb7cc3e817c2ed1b62497b75fb0405767acb9d443a2e24f8326290e
7
- data.tar.gz: 412bba57e0f71b9d8be019b0dd6182280838dad637bed87da0e4599c8990e190b4ca16480dd0ffa583889f810462d4ca233ac7b64ed022bb7c4f669c570c2a39
6
+ metadata.gz: 67997620b62321edf61e8c4d18fd5454bf149cf04b009b3cb918ba531f5280ba58aa992312d5266a90541c25d99fdc27af0ae447f00ca530da022fc638ae1a27
7
+ data.tar.gz: 5d2894a9701a7cc56a4f5e35324fa4f336ed8adec1e2e746cb7626d061b2e21e3cc94173a46e3af944e7871b4786eccf0b6279c7426230be44647f4710eb1f28
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.855
1
+ 3.0.857
@@ -33,6 +33,8 @@ module TencentCloud
33
33
 
34
34
  # 产品优势:针对广告商品图片普遍存在较多繁体字、艺术字的特点,进行了识别能力的增强。支持中英文、横排、竖排以及倾斜场景文字识别。文字识别的召回率和准确率能达到96%以上。
35
35
 
36
+ # 默认接口请求频率限制:20次/秒。
37
+
36
38
  # @param request: Request instance for AdvertiseOCR.
37
39
  # @type request: :class:`Tencentcloud::ocr::V20181119::AdvertiseOCRRequest`
38
40
  # @rtype: :class:`Tencentcloud::ocr::V20181119::AdvertiseOCRResponse`
@@ -45,13 +45,16 @@ module TencentCloud
45
45
  class AdvertiseOCRResponse < TencentCloud::Common::AbstractModel
46
46
  # @param TextDetections: 检测到的文本信息,包括文本行内容、置信度、文本行坐标以及文本行旋转纠正后的坐标,具体内容请点击左侧链接。
47
47
  # @type TextDetections: Array
48
+ # @param ImageSize: 图片分辨率信息,单位 px
49
+ # @type ImageSize: :class:`Tencentcloud::Ocr.v20181119.models.ImageSize`
48
50
  # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
49
51
  # @type RequestId: String
50
52
 
51
- attr_accessor :TextDetections, :RequestId
53
+ attr_accessor :TextDetections, :ImageSize, :RequestId
52
54
 
53
- def initialize(textdetections=nil, requestid=nil)
55
+ def initialize(textdetections=nil, imagesize=nil, requestid=nil)
54
56
  @TextDetections = textdetections
57
+ @ImageSize = imagesize
55
58
  @RequestId = requestid
56
59
  end
57
60
 
@@ -64,6 +67,10 @@ module TencentCloud
64
67
  @TextDetections << advertisetextdetection_tmp
65
68
  end
66
69
  end
70
+ unless params['ImageSize'].nil?
71
+ @ImageSize = ImageSize.new
72
+ @ImageSize.deserialize(params['ImageSize'])
73
+ end
67
74
  @RequestId = params['RequestId']
68
75
  end
69
76
  end
@@ -1572,8 +1579,8 @@ module TencentCloud
1572
1579
 
1573
1580
  attr_accessor :PageNumber, :Angle, :Height, :Width, :OriginHeight, :OriginWidth, :Elements, :RotatedAngle
1574
1581
  extend Gem::Deprecate
1575
- deprecate :Angle, :none, 2024, 6
1576
- deprecate :Angle=, :none, 2024, 6
1582
+ deprecate :Angle, :none, 2024, 7
1583
+ deprecate :Angle=, :none, 2024, 7
1577
1584
 
1578
1585
  def initialize(pagenumber=nil, angle=nil, height=nil, width=nil, originheight=nil, originwidth=nil, elements=nil, rotatedangle=nil)
1579
1586
  @PageNumber = pagenumber
@@ -3367,8 +3374,8 @@ module TencentCloud
3367
3374
 
3368
3375
  attr_accessor :TextDetections, :Angel, :Angle, :RequestId
3369
3376
  extend Gem::Deprecate
3370
- deprecate :Angel, :none, 2024, 6
3371
- deprecate :Angel=, :none, 2024, 6
3377
+ deprecate :Angel, :none, 2024, 7
3378
+ deprecate :Angel=, :none, 2024, 7
3372
3379
 
3373
3380
  def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
3374
3381
  @TextDetections = textdetections
@@ -3478,8 +3485,8 @@ module TencentCloud
3478
3485
 
3479
3486
  attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
3480
3487
  extend Gem::Deprecate
3481
- deprecate :Angel, :none, 2024, 6
3482
- deprecate :Angel=, :none, 2024, 6
3488
+ deprecate :Angel, :none, 2024, 7
3489
+ deprecate :Angel=, :none, 2024, 7
3483
3490
 
3484
3491
  def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
3485
3492
  @TextDetections = textdetections
@@ -3869,8 +3876,8 @@ module TencentCloud
3869
3876
 
3870
3877
  attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
3871
3878
  extend Gem::Deprecate
3872
- deprecate :DetectFake, :none, 2024, 6
3873
- deprecate :DetectFake=, :none, 2024, 6
3879
+ deprecate :DetectFake, :none, 2024, 7
3880
+ deprecate :DetectFake=, :none, 2024, 7
3874
3881
 
3875
3882
  def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
3876
3883
  @ReturnHeadImage = returnheadimage
@@ -3939,10 +3946,10 @@ module TencentCloud
3939
3946
 
3940
3947
  attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :WarningCode, :WarnCardInfos, :RequestId
3941
3948
  extend Gem::Deprecate
3942
- deprecate :FakeDetectResult, :none, 2024, 6
3943
- deprecate :FakeDetectResult=, :none, 2024, 6
3944
- deprecate :WarningCode, :none, 2024, 6
3945
- deprecate :WarningCode=, :none, 2024, 6
3949
+ deprecate :FakeDetectResult, :none, 2024, 7
3950
+ deprecate :FakeDetectResult=, :none, 2024, 7
3951
+ deprecate :WarningCode, :none, 2024, 7
3952
+ deprecate :WarningCode=, :none, 2024, 7
3946
3953
 
3947
3954
  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, warningcode=nil, warncardinfos=nil, requestid=nil)
3948
3955
  @CnName = cnname
@@ -4286,6 +4293,28 @@ module TencentCloud
4286
4293
  end
4287
4294
  end
4288
4295
 
4296
+ # 图片分辨率信息
4297
+ class ImageSize < TencentCloud::Common::AbstractModel
4298
+ # @param Width: 图片的宽,单位像素
4299
+ # 注意:此字段可能返回 null,表示取不到有效值。
4300
+ # @type Width: Integer
4301
+ # @param Height: 图片的高,单位像素
4302
+ # 注意:此字段可能返回 null,表示取不到有效值。
4303
+ # @type Height: Integer
4304
+
4305
+ attr_accessor :Width, :Height
4306
+
4307
+ def initialize(width=nil, height=nil)
4308
+ @Width = width
4309
+ @Height = height
4310
+ end
4311
+
4312
+ def deserialize(params)
4313
+ @Width = params['Width']
4314
+ @Height = params['Height']
4315
+ end
4316
+ end
4317
+
4289
4318
  # InstitutionOCR请求参数结构体
4290
4319
  class InstitutionOCRRequest < TencentCloud::Common::AbstractModel
4291
4320
  # @param ImageBase64: 图片的 Base64 值。
@@ -4971,8 +5000,8 @@ module TencentCloud
4971
5000
 
4972
5001
  attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :WarnCardInfos, :RequestId
4973
5002
  extend Gem::Deprecate
4974
- deprecate :Warn, :none, 2024, 6
4975
- deprecate :Warn=, :none, 2024, 6
5003
+ deprecate :Warn, :none, 2024, 7
5004
+ deprecate :Warn=, :none, 2024, 7
4976
5005
 
4977
5006
  def initialize(id=nil, name=nil, address=nil, sex=nil, warn=nil, image=nil, advancedinfo=nil, type=nil, birthday=nil, warncardinfos=nil, requestid=nil)
4978
5007
  @ID = id
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.855
4
+ version: 3.0.857
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-07-01 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common