tencentcloud-sdk-ocr 3.0.1169 → 3.0.1177
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 +146 -45
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9681bbc98cd13bb44662039b9fa8f153ab9faea2
|
|
4
|
+
data.tar.gz: 560644566aa017a0e5e1a137f1e2712c7174ead1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 32ae185eea6c7b528f842bd2fb67b9b82fd924a7a5ec7679e901e9aa99add6a2700e5d169d71fdbf08763251c85a5a69abb0cfbf39a843b714127bcd210ce2a2
|
|
7
|
+
data.tar.gz: 45da2e0014a5dca2cce98585d570033c1d2f9ae220d1ab692833927a5f603ce1c46b98cead7d0b93982442f0e5595c31c6203d5b0d45913b352a84b8050a31d4
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1177
|
data/lib/v20181119/models.rb
CHANGED
|
@@ -2390,6 +2390,99 @@ module TencentCloud
|
|
|
2390
2390
|
end
|
|
2391
2391
|
end
|
|
2392
2392
|
|
|
2393
|
+
# 其他发票
|
|
2394
|
+
class ElectronicTollSummary < TencentCloud::Common::AbstractModel
|
|
2395
|
+
# @param Title: 发票名称
|
|
2396
|
+
# @type Title: String
|
|
2397
|
+
# @param Total: 金额
|
|
2398
|
+
# @type Total: String
|
|
2399
|
+
# @param Items: 列表
|
|
2400
|
+
# @type Items: Array
|
|
2401
|
+
# @param TableItems: 表格
|
|
2402
|
+
# @type TableItems: Array
|
|
2403
|
+
# @param Date: 发票日期
|
|
2404
|
+
# @type Date: String
|
|
2405
|
+
|
|
2406
|
+
attr_accessor :Title, :Total, :Items, :TableItems, :Date
|
|
2407
|
+
|
|
2408
|
+
def initialize(title=nil, total=nil, items=nil, tableitems=nil, date=nil)
|
|
2409
|
+
@Title = title
|
|
2410
|
+
@Total = total
|
|
2411
|
+
@Items = items
|
|
2412
|
+
@TableItems = tableitems
|
|
2413
|
+
@Date = date
|
|
2414
|
+
end
|
|
2415
|
+
|
|
2416
|
+
def deserialize(params)
|
|
2417
|
+
@Title = params['Title']
|
|
2418
|
+
@Total = params['Total']
|
|
2419
|
+
unless params['Items'].nil?
|
|
2420
|
+
@Items = []
|
|
2421
|
+
params['Items'].each do |i|
|
|
2422
|
+
electronictollsummaryitem_tmp = ElectronicTollSummaryItem.new
|
|
2423
|
+
electronictollsummaryitem_tmp.deserialize(i)
|
|
2424
|
+
@Items << electronictollsummaryitem_tmp
|
|
2425
|
+
end
|
|
2426
|
+
end
|
|
2427
|
+
unless params['TableItems'].nil?
|
|
2428
|
+
@TableItems = []
|
|
2429
|
+
params['TableItems'].each do |i|
|
|
2430
|
+
electronictollsummarylist_tmp = ElectronicTollSummaryList.new
|
|
2431
|
+
electronictollsummarylist_tmp.deserialize(i)
|
|
2432
|
+
@TableItems << electronictollsummarylist_tmp
|
|
2433
|
+
end
|
|
2434
|
+
end
|
|
2435
|
+
@Date = params['Date']
|
|
2436
|
+
end
|
|
2437
|
+
end
|
|
2438
|
+
|
|
2439
|
+
# ElectronicTollSummaryItem
|
|
2440
|
+
class ElectronicTollSummaryItem < TencentCloud::Common::AbstractModel
|
|
2441
|
+
# @param Name: 票面key值
|
|
2442
|
+
# @type Name: String
|
|
2443
|
+
# @param Value: 票面value值
|
|
2444
|
+
# @type Value: String
|
|
2445
|
+
# @param Row: 字段所在行,下标从0开始,非行字段或未能识别行号的返回-1
|
|
2446
|
+
# @type Row: Integer
|
|
2447
|
+
|
|
2448
|
+
attr_accessor :Name, :Value, :Row
|
|
2449
|
+
|
|
2450
|
+
def initialize(name=nil, value=nil, row=nil)
|
|
2451
|
+
@Name = name
|
|
2452
|
+
@Value = value
|
|
2453
|
+
@Row = row
|
|
2454
|
+
end
|
|
2455
|
+
|
|
2456
|
+
def deserialize(params)
|
|
2457
|
+
@Name = params['Name']
|
|
2458
|
+
@Value = params['Value']
|
|
2459
|
+
@Row = params['Row']
|
|
2460
|
+
end
|
|
2461
|
+
end
|
|
2462
|
+
|
|
2463
|
+
# 其他票Table
|
|
2464
|
+
class ElectronicTollSummaryList < TencentCloud::Common::AbstractModel
|
|
2465
|
+
# @param Items: 列表
|
|
2466
|
+
# @type Items: Array
|
|
2467
|
+
|
|
2468
|
+
attr_accessor :Items
|
|
2469
|
+
|
|
2470
|
+
def initialize(items=nil)
|
|
2471
|
+
@Items = items
|
|
2472
|
+
end
|
|
2473
|
+
|
|
2474
|
+
def deserialize(params)
|
|
2475
|
+
unless params['Items'].nil?
|
|
2476
|
+
@Items = []
|
|
2477
|
+
params['Items'].each do |i|
|
|
2478
|
+
electronictollsummaryitem_tmp = ElectronicTollSummaryItem.new
|
|
2479
|
+
electronictollsummaryitem_tmp.deserialize(i)
|
|
2480
|
+
@Items << electronictollsummaryitem_tmp
|
|
2481
|
+
end
|
|
2482
|
+
end
|
|
2483
|
+
end
|
|
2484
|
+
end
|
|
2485
|
+
|
|
2393
2486
|
# 全电发票(铁路电子客票)
|
|
2394
2487
|
class ElectronicTrainTicket < TencentCloud::Common::AbstractModel
|
|
2395
2488
|
# @param BuyerName: 购方名称
|
|
@@ -2935,9 +3028,9 @@ module TencentCloud
|
|
|
2935
3028
|
|
|
2936
3029
|
# ExtractDocBasic请求参数结构体
|
|
2937
3030
|
class ExtractDocBasicRequest < TencentCloud::Common::AbstractModel
|
|
2938
|
-
# @param ImageUrl:
|
|
3031
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
2939
3032
|
# @type ImageUrl: String
|
|
2940
|
-
# @param ImageBase64:
|
|
3033
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
2941
3034
|
# @type ImageBase64: String
|
|
2942
3035
|
# @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
2943
3036
|
# @type IsPdf: Boolean
|
|
@@ -3049,9 +3142,9 @@ module TencentCloud
|
|
|
3049
3142
|
|
|
3050
3143
|
# ExtractDocMultiPro请求参数结构体
|
|
3051
3144
|
class ExtractDocMultiProRequest < TencentCloud::Common::AbstractModel
|
|
3052
|
-
# @param ImageUrl:
|
|
3145
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
3053
3146
|
# @type ImageUrl: String
|
|
3054
|
-
# @param ImageBase64:
|
|
3147
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
3055
3148
|
# @type ImageBase64: String
|
|
3056
3149
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
|
3057
3150
|
# @type PdfPageNumber: Integer
|
|
@@ -3155,11 +3248,11 @@ module TencentCloud
|
|
|
3155
3248
|
|
|
3156
3249
|
# ExtractDocMulti请求参数结构体
|
|
3157
3250
|
class ExtractDocMultiRequest < TencentCloud::Common::AbstractModel
|
|
3158
|
-
# @param ImageUrl:
|
|
3251
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
3159
3252
|
# @type ImageUrl: String
|
|
3160
|
-
# @param ImageBase64:
|
|
3253
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
3161
3254
|
# @type ImageBase64: String
|
|
3162
|
-
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF
|
|
3255
|
+
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为前3页。
|
|
3163
3256
|
# @type PdfPageNumber: Integer
|
|
3164
3257
|
# @param ItemNames: 自定义结构化功能需返回的字段名称,例:若客户想新增返回姓名、性别两个字段的识别结果,则输入ItemNames=["姓名","性别"]
|
|
3165
3258
|
# @type ItemNames: Array
|
|
@@ -3946,8 +4039,8 @@ module TencentCloud
|
|
|
3946
4039
|
|
|
3947
4040
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
3948
4041
|
extend Gem::Deprecate
|
|
3949
|
-
deprecate :Angel, :none, 2025,
|
|
3950
|
-
deprecate :Angel=, :none, 2025,
|
|
4042
|
+
deprecate :Angel, :none, 2025, 12
|
|
4043
|
+
deprecate :Angel=, :none, 2025, 12
|
|
3951
4044
|
|
|
3952
4045
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
3953
4046
|
@TextDetections = textdetections
|
|
@@ -4053,8 +4146,8 @@ module TencentCloud
|
|
|
4053
4146
|
|
|
4054
4147
|
attr_accessor :TextDetections, :Language, :Angel, :PdfPageSize, :Angle, :RequestId
|
|
4055
4148
|
extend Gem::Deprecate
|
|
4056
|
-
deprecate :Angel, :none, 2025,
|
|
4057
|
-
deprecate :Angel=, :none, 2025,
|
|
4149
|
+
deprecate :Angel, :none, 2025, 12
|
|
4150
|
+
deprecate :Angel=, :none, 2025, 12
|
|
4058
4151
|
|
|
4059
4152
|
def initialize(textdetections=nil, language=nil, angel=nil, pdfpagesize=nil, angle=nil, requestid=nil)
|
|
4060
4153
|
@TextDetections = textdetections
|
|
@@ -4150,8 +4243,8 @@ module TencentCloud
|
|
|
4150
4243
|
|
|
4151
4244
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4152
4245
|
extend Gem::Deprecate
|
|
4153
|
-
deprecate :Angel, :none, 2025,
|
|
4154
|
-
deprecate :Angel=, :none, 2025,
|
|
4246
|
+
deprecate :Angel, :none, 2025, 12
|
|
4247
|
+
deprecate :Angel=, :none, 2025, 12
|
|
4155
4248
|
|
|
4156
4249
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4157
4250
|
@TextDetections = textdetections
|
|
@@ -4297,8 +4390,8 @@ module TencentCloud
|
|
|
4297
4390
|
|
|
4298
4391
|
attr_accessor :TextDetections, :Angel, :Angle, :RequestId
|
|
4299
4392
|
extend Gem::Deprecate
|
|
4300
|
-
deprecate :Angel, :none, 2025,
|
|
4301
|
-
deprecate :Angel=, :none, 2025,
|
|
4393
|
+
deprecate :Angel, :none, 2025, 12
|
|
4394
|
+
deprecate :Angel=, :none, 2025, 12
|
|
4302
4395
|
|
|
4303
4396
|
def initialize(textdetections=nil, angel=nil, angle=nil, requestid=nil)
|
|
4304
4397
|
@TextDetections = textdetections
|
|
@@ -4499,8 +4592,8 @@ module TencentCloud
|
|
|
4499
4592
|
|
|
4500
4593
|
attr_accessor :ReturnHeadImage, :DetectFake, :ImageBase64, :ImageUrl
|
|
4501
4594
|
extend Gem::Deprecate
|
|
4502
|
-
deprecate :DetectFake, :none, 2025,
|
|
4503
|
-
deprecate :DetectFake=, :none, 2025,
|
|
4595
|
+
deprecate :DetectFake, :none, 2025, 12
|
|
4596
|
+
deprecate :DetectFake=, :none, 2025, 12
|
|
4504
4597
|
|
|
4505
4598
|
def initialize(returnheadimage=nil, detectfake=nil, imagebase64=nil, imageurl=nil)
|
|
4506
4599
|
@ReturnHeadImage = returnheadimage
|
|
@@ -4565,10 +4658,10 @@ module TencentCloud
|
|
|
4565
4658
|
|
|
4566
4659
|
attr_accessor :CnName, :EnName, :TelexCode, :Sex, :Birthday, :Permanent, :IdNum, :Symbol, :FirstIssueDate, :CurrentIssueDate, :FakeDetectResult, :HeadImage, :SmallHeadImage, :WarningCode, :WarnCardInfos, :WindowEmbeddedText, :RequestId
|
|
4567
4660
|
extend Gem::Deprecate
|
|
4568
|
-
deprecate :FakeDetectResult, :none, 2025,
|
|
4569
|
-
deprecate :FakeDetectResult=, :none, 2025,
|
|
4570
|
-
deprecate :WarningCode, :none, 2025,
|
|
4571
|
-
deprecate :WarningCode=, :none, 2025,
|
|
4661
|
+
deprecate :FakeDetectResult, :none, 2025, 12
|
|
4662
|
+
deprecate :FakeDetectResult=, :none, 2025, 12
|
|
4663
|
+
deprecate :WarningCode, :none, 2025, 12
|
|
4664
|
+
deprecate :WarningCode=, :none, 2025, 12
|
|
4572
4665
|
|
|
4573
4666
|
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)
|
|
4574
4667
|
@CnName = cnname
|
|
@@ -4613,9 +4706,9 @@ module TencentCloud
|
|
|
4613
4706
|
|
|
4614
4707
|
# HandwritingEssayOCR请求参数结构体
|
|
4615
4708
|
class HandwritingEssayOCRRequest < TencentCloud::Common::AbstractModel
|
|
4616
|
-
# @param ImageUrl:
|
|
4709
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
4617
4710
|
# @type ImageUrl: String
|
|
4618
|
-
# @param ImageBase64:
|
|
4711
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
4619
4712
|
# @type ImageBase64: String
|
|
4620
4713
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
|
4621
4714
|
# @type PdfPageNumber: Integer
|
|
@@ -5028,8 +5121,8 @@ module TencentCloud
|
|
|
5028
5121
|
|
|
5029
5122
|
attr_accessor :ImageBase64, :ImageUrl, :CardSide, :Config, :EnableRecognitionRectify, :EnableReflectDetail, :EnableDateVerify, :CardWarnType
|
|
5030
5123
|
extend Gem::Deprecate
|
|
5031
|
-
deprecate :EnableDateVerify, :none, 2025,
|
|
5032
|
-
deprecate :EnableDateVerify=, :none, 2025,
|
|
5124
|
+
deprecate :EnableDateVerify, :none, 2025, 12
|
|
5125
|
+
deprecate :EnableDateVerify=, :none, 2025, 12
|
|
5033
5126
|
|
|
5034
5127
|
def initialize(imagebase64=nil, imageurl=nil, cardside=nil, config=nil, enablerecognitionrectify=nil, enablereflectdetail=nil, enabledateverify=nil, cardwarntype=nil)
|
|
5035
5128
|
@ImageBase64 = imagebase64
|
|
@@ -5947,10 +6040,10 @@ module TencentCloud
|
|
|
5947
6040
|
|
|
5948
6041
|
attr_accessor :ID, :Name, :Address, :Sex, :Warn, :Image, :AdvancedInfo, :Type, :Birthday, :MyKadNumber, :WarnCardInfos, :RequestId
|
|
5949
6042
|
extend Gem::Deprecate
|
|
5950
|
-
deprecate :Warn, :none, 2025,
|
|
5951
|
-
deprecate :Warn=, :none, 2025,
|
|
5952
|
-
deprecate :AdvancedInfo, :none, 2025,
|
|
5953
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
|
6043
|
+
deprecate :Warn, :none, 2025, 12
|
|
6044
|
+
deprecate :Warn=, :none, 2025, 12
|
|
6045
|
+
deprecate :AdvancedInfo, :none, 2025, 12
|
|
6046
|
+
deprecate :AdvancedInfo=, :none, 2025, 12
|
|
5954
6047
|
|
|
5955
6048
|
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)
|
|
5956
6049
|
@ID = id
|
|
@@ -6052,10 +6145,10 @@ module TencentCloud
|
|
|
6052
6145
|
|
|
6053
6146
|
attr_accessor :ID, :Name, :DateOfBirth, :Sex, :DateOfExpiration, :IssuingCountry, :Nationality, :Warn, :Image, :AdvancedInfo, :CodeSet, :CodeCrc, :Surname, :GivenName, :Type, :PassportRecognizeInfos, :WarnCardInfos, :CardCount, :RequestId
|
|
6054
6147
|
extend Gem::Deprecate
|
|
6055
|
-
deprecate :Warn, :none, 2025,
|
|
6056
|
-
deprecate :Warn=, :none, 2025,
|
|
6057
|
-
deprecate :AdvancedInfo, :none, 2025,
|
|
6058
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
|
6148
|
+
deprecate :Warn, :none, 2025, 12
|
|
6149
|
+
deprecate :Warn=, :none, 2025, 12
|
|
6150
|
+
deprecate :AdvancedInfo, :none, 2025, 12
|
|
6151
|
+
deprecate :AdvancedInfo=, :none, 2025, 12
|
|
6059
6152
|
|
|
6060
6153
|
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)
|
|
6061
6154
|
@ID = id
|
|
@@ -8052,9 +8145,9 @@ module TencentCloud
|
|
|
8052
8145
|
|
|
8053
8146
|
# QuestionSplitLayoutOCR请求参数结构体
|
|
8054
8147
|
class QuestionSplitLayoutOCRRequest < TencentCloud::Common::AbstractModel
|
|
8055
|
-
# @param ImageUrl:
|
|
8148
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8056
8149
|
# @type ImageUrl: String
|
|
8057
|
-
# @param ImageBase64:
|
|
8150
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8058
8151
|
# @type ImageBase64: String
|
|
8059
8152
|
# @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
8060
8153
|
# @type IsPdf: Boolean
|
|
@@ -8115,9 +8208,9 @@ module TencentCloud
|
|
|
8115
8208
|
|
|
8116
8209
|
# QuestionSplitOCR请求参数结构体
|
|
8117
8210
|
class QuestionSplitOCRRequest < TencentCloud::Common::AbstractModel
|
|
8118
|
-
# @param ImageUrl:
|
|
8211
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8119
8212
|
# @type ImageUrl: String
|
|
8120
|
-
# @param ImageBase64:
|
|
8213
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8121
8214
|
# @type ImageBase64: String
|
|
8122
8215
|
# @param IsPdf: 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
|
8123
8216
|
# @type IsPdf: Boolean
|
|
@@ -9515,8 +9608,8 @@ module TencentCloud
|
|
|
9515
9608
|
|
|
9516
9609
|
attr_accessor :ID, :ThaiName, :EnFirstName, :EnLastName, :IssueDate, :ExpirationDate, :EnIssueDate, :EnExpirationDate, :Birthday, :EnBirthday, :Religion, :SerialNumber, :Address, :LaserID, :PortraitImage, :WarnCardInfos, :AdvancedInfo, :CardCount, :RequestId
|
|
9517
9610
|
extend Gem::Deprecate
|
|
9518
|
-
deprecate :AdvancedInfo, :none, 2025,
|
|
9519
|
-
deprecate :AdvancedInfo=, :none, 2025,
|
|
9611
|
+
deprecate :AdvancedInfo, :none, 2025, 12
|
|
9612
|
+
deprecate :AdvancedInfo=, :none, 2025, 12
|
|
9520
9613
|
|
|
9521
9614
|
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)
|
|
9522
9615
|
@ID = id
|
|
@@ -10753,10 +10846,13 @@ module TencentCloud
|
|
|
10753
10846
|
# @param UsedCarPurchaseInvoiceElectronic: 二手车销售统一发票(电子)
|
|
10754
10847
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
10755
10848
|
# @type UsedCarPurchaseInvoiceElectronic: :class:`Tencentcloud::Ocr.v20181119.models.UsedCarPurchaseInvoice`
|
|
10849
|
+
# @param ElectronicTollSummary: 通行费电子票据汇总单
|
|
10850
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
10851
|
+
# @type ElectronicTollSummary: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicTollSummary`
|
|
10756
10852
|
|
|
10757
|
-
attr_accessor :VatSpecialInvoice, :VatCommonInvoice, :VatElectronicCommonInvoice, :VatElectronicSpecialInvoice, :VatElectronicInvoiceBlockchain, :VatElectronicInvoiceToll, :VatElectronicSpecialInvoiceFull, :VatElectronicInvoiceFull, :MachinePrintedInvoice, :BusInvoice, :ShippingInvoice, :TollInvoice, :OtherInvoice, :MotorVehicleSaleInvoice, :UsedCarPurchaseInvoice, :VatInvoiceRoll, :TaxiTicket, :QuotaInvoice, :AirTransport, :NonTaxIncomeGeneralBill, :NonTaxIncomeElectronicBill, :TrainTicket, :MedicalOutpatientInvoice, :MedicalHospitalizedInvoice, :VatSalesList, :ElectronicTrainTicketFull, :ElectronicFlightTicketFull, :TaxPayment, :CustomsPaymentReceipt, :BankSlip, :OnlineTaxiItinerary, :CustomsDeclaration, :OverseasInvoice, :ShoppingReceipt, :SaleInventory, :MotorVehicleSaleInvoiceElectronic, :UsedCarPurchaseInvoiceElectronic
|
|
10853
|
+
attr_accessor :VatSpecialInvoice, :VatCommonInvoice, :VatElectronicCommonInvoice, :VatElectronicSpecialInvoice, :VatElectronicInvoiceBlockchain, :VatElectronicInvoiceToll, :VatElectronicSpecialInvoiceFull, :VatElectronicInvoiceFull, :MachinePrintedInvoice, :BusInvoice, :ShippingInvoice, :TollInvoice, :OtherInvoice, :MotorVehicleSaleInvoice, :UsedCarPurchaseInvoice, :VatInvoiceRoll, :TaxiTicket, :QuotaInvoice, :AirTransport, :NonTaxIncomeGeneralBill, :NonTaxIncomeElectronicBill, :TrainTicket, :MedicalOutpatientInvoice, :MedicalHospitalizedInvoice, :VatSalesList, :ElectronicTrainTicketFull, :ElectronicFlightTicketFull, :TaxPayment, :CustomsPaymentReceipt, :BankSlip, :OnlineTaxiItinerary, :CustomsDeclaration, :OverseasInvoice, :ShoppingReceipt, :SaleInventory, :MotorVehicleSaleInvoiceElectronic, :UsedCarPurchaseInvoiceElectronic, :ElectronicTollSummary
|
|
10758
10854
|
|
|
10759
|
-
def initialize(vatspecialinvoice=nil, vatcommoninvoice=nil, vatelectroniccommoninvoice=nil, vatelectronicspecialinvoice=nil, vatelectronicinvoiceblockchain=nil, vatelectronicinvoicetoll=nil, vatelectronicspecialinvoicefull=nil, vatelectronicinvoicefull=nil, machineprintedinvoice=nil, businvoice=nil, shippinginvoice=nil, tollinvoice=nil, otherinvoice=nil, motorvehiclesaleinvoice=nil, usedcarpurchaseinvoice=nil, vatinvoiceroll=nil, taxiticket=nil, quotainvoice=nil, airtransport=nil, nontaxincomegeneralbill=nil, nontaxincomeelectronicbill=nil, trainticket=nil, medicaloutpatientinvoice=nil, medicalhospitalizedinvoice=nil, vatsaleslist=nil, electronictrainticketfull=nil, electronicflightticketfull=nil, taxpayment=nil, customspaymentreceipt=nil, bankslip=nil, onlinetaxiitinerary=nil, customsdeclaration=nil, overseasinvoice=nil, shoppingreceipt=nil, saleinventory=nil, motorvehiclesaleinvoiceelectronic=nil, usedcarpurchaseinvoiceelectronic=nil)
|
|
10855
|
+
def initialize(vatspecialinvoice=nil, vatcommoninvoice=nil, vatelectroniccommoninvoice=nil, vatelectronicspecialinvoice=nil, vatelectronicinvoiceblockchain=nil, vatelectronicinvoicetoll=nil, vatelectronicspecialinvoicefull=nil, vatelectronicinvoicefull=nil, machineprintedinvoice=nil, businvoice=nil, shippinginvoice=nil, tollinvoice=nil, otherinvoice=nil, motorvehiclesaleinvoice=nil, usedcarpurchaseinvoice=nil, vatinvoiceroll=nil, taxiticket=nil, quotainvoice=nil, airtransport=nil, nontaxincomegeneralbill=nil, nontaxincomeelectronicbill=nil, trainticket=nil, medicaloutpatientinvoice=nil, medicalhospitalizedinvoice=nil, vatsaleslist=nil, electronictrainticketfull=nil, electronicflightticketfull=nil, taxpayment=nil, customspaymentreceipt=nil, bankslip=nil, onlinetaxiitinerary=nil, customsdeclaration=nil, overseasinvoice=nil, shoppingreceipt=nil, saleinventory=nil, motorvehiclesaleinvoiceelectronic=nil, usedcarpurchaseinvoiceelectronic=nil, electronictollsummary=nil)
|
|
10760
10856
|
@VatSpecialInvoice = vatspecialinvoice
|
|
10761
10857
|
@VatCommonInvoice = vatcommoninvoice
|
|
10762
10858
|
@VatElectronicCommonInvoice = vatelectroniccommoninvoice
|
|
@@ -10794,6 +10890,7 @@ module TencentCloud
|
|
|
10794
10890
|
@SaleInventory = saleinventory
|
|
10795
10891
|
@MotorVehicleSaleInvoiceElectronic = motorvehiclesaleinvoiceelectronic
|
|
10796
10892
|
@UsedCarPurchaseInvoiceElectronic = usedcarpurchaseinvoiceelectronic
|
|
10893
|
+
@ElectronicTollSummary = electronictollsummary
|
|
10797
10894
|
end
|
|
10798
10895
|
|
|
10799
10896
|
def deserialize(params)
|
|
@@ -10945,6 +11042,10 @@ module TencentCloud
|
|
|
10945
11042
|
@UsedCarPurchaseInvoiceElectronic = UsedCarPurchaseInvoice.new
|
|
10946
11043
|
@UsedCarPurchaseInvoiceElectronic.deserialize(params['UsedCarPurchaseInvoiceElectronic'])
|
|
10947
11044
|
end
|
|
11045
|
+
unless params['ElectronicTollSummary'].nil?
|
|
11046
|
+
@ElectronicTollSummary = ElectronicTollSummary.new
|
|
11047
|
+
@ElectronicTollSummary.deserialize(params['ElectronicTollSummary'])
|
|
11048
|
+
end
|
|
10948
11049
|
end
|
|
10949
11050
|
end
|
|
10950
11051
|
|
|
@@ -11090,9 +11191,9 @@ module TencentCloud
|
|
|
11090
11191
|
|
|
11091
11192
|
# SubmitExtractDocAgentJob请求参数结构体
|
|
11092
11193
|
class SubmitExtractDocAgentJobRequest < TencentCloud::Common::AbstractModel
|
|
11093
|
-
# @param ImageBase64: 图片/PDF的 Base64
|
|
11194
|
+
# @param ImageBase64: 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
11094
11195
|
# @type ImageBase64: String
|
|
11095
|
-
# @param ImageUrl: 图片/PDF的 Url
|
|
11196
|
+
# @param ImageUrl: 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
11096
11197
|
# @type ImageUrl: String
|
|
11097
11198
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前5页。
|
|
11098
11199
|
# @type PdfPageNumber: Integer
|
|
@@ -11107,8 +11208,8 @@ module TencentCloud
|
|
|
11107
11208
|
|
|
11108
11209
|
attr_accessor :ImageBase64, :ImageUrl, :PdfPageNumber, :ItemNames, :EnableCoord, :FileStartPageNumber, :FileEndPageNumber
|
|
11109
11210
|
extend Gem::Deprecate
|
|
11110
|
-
deprecate :PdfPageNumber, :none, 2025,
|
|
11111
|
-
deprecate :PdfPageNumber=, :none, 2025,
|
|
11211
|
+
deprecate :PdfPageNumber, :none, 2025, 12
|
|
11212
|
+
deprecate :PdfPageNumber=, :none, 2025, 12
|
|
11112
11213
|
|
|
11113
11214
|
def initialize(imagebase64=nil, imageurl=nil, pdfpagenumber=nil, itemnames=nil, enablecoord=nil, filestartpagenumber=nil, fileendpagenumber=nil)
|
|
11114
11215
|
@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.
|
|
4
|
+
version: 3.0.1177
|
|
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-12-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
+
- lib/tencentcloud-sdk-ocr.rb
|
|
36
37
|
- lib/v20181119/client.rb
|
|
37
38
|
- lib/v20181119/models.rb
|
|
38
|
-
- lib/tencentcloud-sdk-ocr.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|