tencentcloud-sdk-ocr 3.0.1112 → 3.0.1116
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/models.rb +65 -30
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40e6858fc954c92c23764848f83c02663d9d2f01
|
4
|
+
data.tar.gz: e12d05afb4b4810dc9bda19fa2093bd6aa95e6ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7b598a45529bfd31a4fcb92a7980007c8bf91da316b6ec1c521964acf8cb1224c7cf7c8b74dde1d81ad3f0be6164b9b14d82f6abd57b744f4782b022c2167749
|
7
|
+
data.tar.gz: db8d6a1db91df0b9d44996420b3c1bc25f4e2f124ce479746ffd3036b8da1d083386ccf4b48d0bbe8502cee08bc034c9800f71442522de0838a8dc64c38a760d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1116
|
data/lib/v20181119/models.rb
CHANGED
@@ -3851,8 +3851,8 @@ module TencentCloud
|
|
3851
3851
|
|
3852
3852
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
3853
3853
|
extend Gem::Deprecate
|
3854
|
-
deprecate :Angel, :none, 2025,
|
3855
|
-
deprecate :Angel=, :none, 2025,
|
3854
|
+
deprecate :Angel, :none, 2025, 8
|
3855
|
+
deprecate :Angel=, :none, 2025, 8
|
3856
3856
|
|
3857
3857
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
3858
3858
|
@TextDetections = textdetections
|
@@ -3958,8 +3958,8 @@ module TencentCloud
|
|
3958
3958
|
|
3959
3959
|
attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
|
3960
3960
|
extend Gem::Deprecate
|
3961
|
-
deprecate :Angel, :none, 2025,
|
3962
|
-
deprecate :Angel=, :none, 2025,
|
3961
|
+
deprecate :Angel, :none, 2025, 8
|
3962
|
+
deprecate :Angel=, :none, 2025, 8
|
3963
3963
|
|
3964
3964
|
def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
|
3965
3965
|
@TextDetections = textdetections
|
@@ -4055,8 +4055,8 @@ module TencentCloud
|
|
4055
4055
|
|
4056
4056
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
4057
4057
|
extend Gem::Deprecate
|
4058
|
-
deprecate :Angel, :none, 2025,
|
4059
|
-
deprecate :Angel=, :none, 2025,
|
4058
|
+
deprecate :Angel, :none, 2025, 8
|
4059
|
+
deprecate :Angel=, :none, 2025, 8
|
4060
4060
|
|
4061
4061
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
4062
4062
|
@TextDetections = textdetections
|
@@ -4202,8 +4202,8 @@ module TencentCloud
|
|
4202
4202
|
|
4203
4203
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
4204
4204
|
extend Gem::Deprecate
|
4205
|
-
deprecate :Angel, :none, 2025,
|
4206
|
-
deprecate :Angel=, :none, 2025,
|
4205
|
+
deprecate :Angel, :none, 2025, 8
|
4206
|
+
deprecate :Angel=, :none, 2025, 8
|
4207
4207
|
|
4208
4208
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
4209
4209
|
@TextDetections = textdetections
|
@@ -4326,14 +4326,17 @@ module TencentCloud
|
|
4326
4326
|
# @type Type: String
|
4327
4327
|
# @param OCRResult: ocr结果
|
4328
4328
|
# @type OCRResult: :class:`Tencentcloud::Ocr.v20181119.models.OCRResult`
|
4329
|
+
# @param RequestIdInfos: requestid 信息
|
4330
|
+
# @type RequestIdInfos: Array
|
4329
4331
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4330
4332
|
# @type RequestId: String
|
4331
4333
|
|
4332
|
-
attr_accessor :Type, :OCRResult, :RequestId
|
4334
|
+
attr_accessor :Type, :OCRResult, :RequestIdInfos, :RequestId
|
4333
4335
|
|
4334
|
-
def initialize(type=nil, ocrresult=nil, requestid=nil)
|
4336
|
+
def initialize(type=nil, ocrresult=nil, requestidinfos=nil, requestid=nil)
|
4335
4337
|
@Type = type
|
4336
4338
|
@OCRResult = ocrresult
|
4339
|
+
@RequestIdInfos = requestidinfos
|
4337
4340
|
@RequestId = requestid
|
4338
4341
|
end
|
4339
4342
|
|
@@ -4343,6 +4346,14 @@ module TencentCloud
|
|
4343
4346
|
@OCRResult = OCRResult.new
|
4344
4347
|
@OCRResult.deserialize(params['OCRResult'])
|
4345
4348
|
end
|
4349
|
+
unless params['RequestIdInfos'].nil?
|
4350
|
+
@RequestIdInfos = []
|
4351
|
+
params['RequestIdInfos'].each do |i|
|
4352
|
+
requestidinfo_tmp = RequestIdInfo.new
|
4353
|
+
requestidinfo_tmp.deserialize(i)
|
4354
|
+
@RequestIdInfos << requestidinfo_tmp
|
4355
|
+
end
|
4356
|
+
end
|
4346
4357
|
@RequestId = params['RequestId']
|
4347
4358
|
end
|
4348
4359
|
end
|
@@ -4426,8 +4437,8 @@ module TencentCloud
|
|
4426
4437
|
|
4427
4438
|
attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
|
4428
4439
|
extend Gem::Deprecate
|
4429
|
-
deprecate :DetectFake, :none, 2025,
|
4430
|
-
deprecate :DetectFake=, :none, 2025,
|
4440
|
+
deprecate :DetectFake, :none, 2025, 8
|
4441
|
+
deprecate :DetectFake=, :none, 2025, 8
|
4431
4442
|
|
4432
4443
|
def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
|
4433
4444
|
@ReturnHeadImage = returnheadimage
|
@@ -4500,10 +4511,10 @@ module TencentCloud
|
|
4500
4511
|
|
4501
4512
|
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
|
4502
4513
|
extend Gem::Deprecate
|
4503
|
-
deprecate :FakeDetectResult, :none, 2025,
|
4504
|
-
deprecate :FakeDetectResult=, :none, 2025,
|
4505
|
-
deprecate :WarningCode, :none, 2025,
|
4506
|
-
deprecate :WarningCode=, :none, 2025,
|
4514
|
+
deprecate :FakeDetectResult, :none, 2025, 8
|
4515
|
+
deprecate :FakeDetectResult=, :none, 2025, 8
|
4516
|
+
deprecate :WarningCode, :none, 2025, 8
|
4517
|
+
deprecate :WarningCode=, :none, 2025, 8
|
4507
4518
|
|
4508
4519
|
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)
|
4509
4520
|
@CnName = cnname
|
@@ -4970,8 +4981,8 @@ module TencentCloud
|
|
4970
4981
|
|
4971
4982
|
attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
|
4972
4983
|
extend Gem::Deprecate
|
4973
|
-
deprecate :EnableDateVerify, :none, 2025,
|
4974
|
-
deprecate :EnableDateVerify=, :none, 2025,
|
4984
|
+
deprecate :EnableDateVerify, :none, 2025, 8
|
4985
|
+
deprecate :EnableDateVerify=, :none, 2025, 8
|
4975
4986
|
|
4976
4987
|
def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
|
4977
4988
|
@ImageBase64 = imagebase64
|
@@ -5921,10 +5932,10 @@ module TencentCloud
|
|
5921
5932
|
|
5922
5933
|
attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
|
5923
5934
|
extend Gem::Deprecate
|
5924
|
-
deprecate :Warn, :none, 2025,
|
5925
|
-
deprecate :Warn=, :none, 2025,
|
5926
|
-
deprecate :AdvancedInfo, :none, 2025,
|
5927
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
5935
|
+
deprecate :Warn, :none, 2025, 8
|
5936
|
+
deprecate :Warn=, :none, 2025, 8
|
5937
|
+
deprecate :AdvancedInfo, :none, 2025, 8
|
5938
|
+
deprecate :AdvancedInfo=, :none, 2025, 8
|
5928
5939
|
|
5929
5940
|
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)
|
5930
5941
|
@ID = id
|
@@ -6033,10 +6044,10 @@ module TencentCloud
|
|
6033
6044
|
|
6034
6045
|
attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
|
6035
6046
|
extend Gem::Deprecate
|
6036
|
-
deprecate :Warn, :none, 2025,
|
6037
|
-
deprecate :Warn=, :none, 2025,
|
6038
|
-
deprecate :AdvancedInfo, :none, 2025,
|
6039
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
6047
|
+
deprecate :Warn, :none, 2025, 8
|
6048
|
+
deprecate :Warn=, :none, 2025, 8
|
6049
|
+
deprecate :AdvancedInfo, :none, 2025, 8
|
6050
|
+
deprecate :AdvancedInfo=, :none, 2025, 8
|
6040
6051
|
|
6041
6052
|
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)
|
6042
6053
|
@ID = id
|
@@ -9441,9 +9452,9 @@ module TencentCloud
|
|
9441
9452
|
|
9442
9453
|
# RecognizeTableAccurateOCR请求参数结构体
|
9443
9454
|
class RecognizeTableAccurateOCRRequest < TencentCloud::Common::AbstractModel
|
9444
|
-
# @param ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
9455
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9445
9456
|
# @type ImageBase64: String
|
9446
|
-
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800
|
9457
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,且长宽比小于3(短边分辨率大于600, 长边分辨率小于等于短边分辨率的三倍)。支持PNG、JPG、JPEG、BMP、PDF格式。图片支持的像素范围:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9447
9458
|
# @type ImageUrl: String
|
9448
9459
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
|
9449
9460
|
# @type PdfPageNumber: Integer
|
@@ -9718,8 +9729,8 @@ module TencentCloud
|
|
9718
9729
|
|
9719
9730
|
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
|
9720
9731
|
extend Gem::Deprecate
|
9721
|
-
deprecate :AdvancedInfo, :none, 2025,
|
9722
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
9732
|
+
deprecate :AdvancedInfo, :none, 2025, 8
|
9733
|
+
deprecate :AdvancedInfo=, :none, 2025, 8
|
9723
9734
|
|
9724
9735
|
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)
|
9725
9736
|
@ID = id
|
@@ -10005,6 +10016,30 @@ module TencentCloud
|
|
10005
10016
|
end
|
10006
10017
|
end
|
10007
10018
|
|
10019
|
+
# 请求 id 信息
|
10020
|
+
class RequestIdInfo < TencentCloud::Common::AbstractModel
|
10021
|
+
# @param ApiRequestId: 请求 api 的 requestid
|
10022
|
+
# @type ApiRequestId: String
|
10023
|
+
# @param ApiErrorCode: 请求 api 的错误码
|
10024
|
+
# @type ApiErrorCode: String
|
10025
|
+
# @param WarnCodes: 告警码
|
10026
|
+
# @type WarnCodes: Array
|
10027
|
+
|
10028
|
+
attr_accessor :ApiRequestId, :ApiErrorCode, :WarnCodes
|
10029
|
+
|
10030
|
+
def initialize(apirequestid=nil, apierrorcode=nil, warncodes=nil)
|
10031
|
+
@ApiRequestId = apirequestid
|
10032
|
+
@ApiErrorCode = apierrorcode
|
10033
|
+
@WarnCodes = warncodes
|
10034
|
+
end
|
10035
|
+
|
10036
|
+
def deserialize(params)
|
10037
|
+
@ApiRequestId = params['ApiRequestId']
|
10038
|
+
@ApiErrorCode = params['ApiErrorCode']
|
10039
|
+
@WarnCodes = params['WarnCodes']
|
10040
|
+
end
|
10041
|
+
end
|
10042
|
+
|
10008
10043
|
# ResidenceBookletOCR请求参数结构体
|
10009
10044
|
class ResidenceBookletOCRRequest < TencentCloud::Common::AbstractModel
|
10010
10045
|
# @param ImageBase64: 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
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.1116
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|