tencentcloud-sdk-ocr 3.0.1163 → 3.0.1171
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/client.rb +4 -0
- data/lib/v20181119/models.rb +126 -25
- 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: 4733ea46331805fe738d3f05416a2824fc22b2b2
|
|
4
|
+
data.tar.gz: e1417c7396a43765461fbbfb55a659ea70baf9a1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: eaac1f111762c27406df131e6517d46ff3ff4fc2243362510af77ec3da1f0f6bf0b7a137b160096795a0061c9cf1038d65d29d2433439b2bcf12c88f1235d6ef
|
|
7
|
+
data.tar.gz: 44bf136f34a48ad8a5d91ce1f7820e1ae00d7284ecff4ad5f87bd979fcd08f7015a802486a58e507718c5deb76df42c65402e5f8ff8bbef6d6dabb177732e681
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1171
|
data/lib/v20181119/client.rb
CHANGED
|
@@ -1957,6 +1957,8 @@ module TencentCloud
|
|
|
1957
1957
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1958
1958
|
end
|
|
1959
1959
|
|
|
1960
|
+
# 产品规划
|
|
1961
|
+
|
|
1960
1962
|
# 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
|
1961
1963
|
|
|
1962
1964
|
# 默认接口请求频率限制:10次/秒。
|
|
@@ -2165,6 +2167,8 @@ module TencentCloud
|
|
|
2165
2167
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2166
2168
|
end
|
|
2167
2169
|
|
|
2170
|
+
# 产品规划
|
|
2171
|
+
|
|
2168
2172
|
# 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
|
2169
2173
|
|
|
2170
2174
|
# 默认接口请求频率限制:20次/秒。
|
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: 购方名称
|
|
@@ -4556,14 +4649,7 @@ module TencentCloud
|
|
|
4556
4649
|
# @type SmallHeadImage: String
|
|
4557
4650
|
# @param WarningCode: 该字段已废弃, 将固定返回空数组,不建议使用。
|
|
4558
4651
|
# @type WarningCode: Array
|
|
4559
|
-
# @param WarnCardInfos:
|
|
4560
|
-
# -9101 证件边框不完整告警
|
|
4561
|
-
# -9102 证件复印件告警
|
|
4562
|
-
# -9103 证件翻拍告警
|
|
4563
|
-
# -9104 证件PS告警
|
|
4564
|
-
# -9107 证件反光告警
|
|
4565
|
-
# -9108 证件模糊告警
|
|
4566
|
-
# -9109 告警能力未开通
|
|
4652
|
+
# @param WarnCardInfos: 该字段仅对国际站请求起作用,国内站该字段将固定返回空数组。国际站告警码如下: 告警码-9101 证件边框不完整告警-9102 证件复印件告警-9103 证件翻拍告警-9104 证件PS告警-9107 证件反光告警-9108 证件模糊告警-9109 告警能力未开通
|
|
4567
4653
|
# @type WarnCardInfos: Array
|
|
4568
4654
|
# @param WindowEmbeddedText: 证件透明视窗内的文本信息
|
|
4569
4655
|
# @type WindowEmbeddedText: String
|
|
@@ -5659,7 +5745,7 @@ module TencentCloud
|
|
|
5659
5745
|
end
|
|
5660
5746
|
end
|
|
5661
5747
|
|
|
5662
|
-
#
|
|
5748
|
+
# 文档智能元素组
|
|
5663
5749
|
class ItemInfo < TencentCloud::Common::AbstractModel
|
|
5664
5750
|
# @param Key: key信息组
|
|
5665
5751
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -6050,14 +6136,7 @@ module TencentCloud
|
|
|
6050
6136
|
# @type Type: String
|
|
6051
6137
|
# @param PassportRecognizeInfos: 信息区证件内容
|
|
6052
6138
|
# @type PassportRecognizeInfos: :class:`Tencentcloud::Ocr.v20181119.models.PassportRecognizeInfos`
|
|
6053
|
-
# @param WarnCardInfos:
|
|
6054
|
-
# -9101 证件边框不完整告警
|
|
6055
|
-
# -9102 证件复印件告警
|
|
6056
|
-
# -9103 证件翻拍告警
|
|
6057
|
-
# -9104 证件PS告警
|
|
6058
|
-
# -9107 证件反光告警
|
|
6059
|
-
# -9108 证件模糊告警
|
|
6060
|
-
# -9109 告警能力未开通
|
|
6139
|
+
# @param WarnCardInfos: 该字段仅对国际站请求起作用,国内站该字段将固定返回空数组。国际站告警码如下: 告警码-9101 证件边框不完整告警-9102 证件复印件告警-9103 证件翻拍告警-9104 证件PS告警-9107 证件反光告警-9108 证件模糊告警-9109 告警能力未开通
|
|
6061
6140
|
# @type WarnCardInfos: Array
|
|
6062
6141
|
# @param CardCount: 输入图片中的卡证数量(仅请求曼谷地域[ap-bangkok]返回)
|
|
6063
6142
|
# @type CardCount: Integer
|
|
@@ -10767,10 +10846,13 @@ module TencentCloud
|
|
|
10767
10846
|
# @param UsedCarPurchaseInvoiceElectronic: 二手车销售统一发票(电子)
|
|
10768
10847
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
10769
10848
|
# @type UsedCarPurchaseInvoiceElectronic: :class:`Tencentcloud::Ocr.v20181119.models.UsedCarPurchaseInvoice`
|
|
10849
|
+
# @param ElectronicTollSummary: 通行费电子票据汇总单
|
|
10850
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
10851
|
+
# @type ElectronicTollSummary: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicTollSummary`
|
|
10770
10852
|
|
|
10771
|
-
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
|
|
10772
10854
|
|
|
10773
|
-
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)
|
|
10774
10856
|
@VatSpecialInvoice = vatspecialinvoice
|
|
10775
10857
|
@VatCommonInvoice = vatcommoninvoice
|
|
10776
10858
|
@VatElectronicCommonInvoice = vatelectroniccommoninvoice
|
|
@@ -10808,6 +10890,7 @@ module TencentCloud
|
|
|
10808
10890
|
@SaleInventory = saleinventory
|
|
10809
10891
|
@MotorVehicleSaleInvoiceElectronic = motorvehiclesaleinvoiceelectronic
|
|
10810
10892
|
@UsedCarPurchaseInvoiceElectronic = usedcarpurchaseinvoiceelectronic
|
|
10893
|
+
@ElectronicTollSummary = electronictollsummary
|
|
10811
10894
|
end
|
|
10812
10895
|
|
|
10813
10896
|
def deserialize(params)
|
|
@@ -10959,6 +11042,10 @@ module TencentCloud
|
|
|
10959
11042
|
@UsedCarPurchaseInvoiceElectronic = UsedCarPurchaseInvoice.new
|
|
10960
11043
|
@UsedCarPurchaseInvoiceElectronic.deserialize(params['UsedCarPurchaseInvoiceElectronic'])
|
|
10961
11044
|
end
|
|
11045
|
+
unless params['ElectronicTollSummary'].nil?
|
|
11046
|
+
@ElectronicTollSummary = ElectronicTollSummary.new
|
|
11047
|
+
@ElectronicTollSummary.deserialize(params['ElectronicTollSummary'])
|
|
11048
|
+
end
|
|
10962
11049
|
end
|
|
10963
11050
|
end
|
|
10964
11051
|
|
|
@@ -11066,7 +11153,7 @@ module TencentCloud
|
|
|
11066
11153
|
end
|
|
11067
11154
|
end
|
|
11068
11155
|
|
|
11069
|
-
#
|
|
11156
|
+
# 文档智能识别
|
|
11070
11157
|
class StructuralItem < TencentCloud::Common::AbstractModel
|
|
11071
11158
|
# @param Name: 识别出的字段名称(关键字)。
|
|
11072
11159
|
# @type Name: String
|
|
@@ -13444,16 +13531,30 @@ module TencentCloud
|
|
|
13444
13531
|
# 03:机动车销售统一发票,
|
|
13445
13532
|
# 04:增值税普通发票,
|
|
13446
13533
|
# 08:增值税电子专用发票(含全电,全电仅新版接口支持),
|
|
13534
|
+
# 09:全电发票,
|
|
13535
|
+
# 0901:全电纸质发票(增值税专用发票),
|
|
13536
|
+
# 0903:全电纸质(机动车销售统一发票),
|
|
13537
|
+
# 0904:全电纸质发票(增值税普通发票),
|
|
13538
|
+
# 0910:电子发票(普通发票),
|
|
13539
|
+
# 0915:全电纸质(二手车销售统一发票),
|
|
13540
|
+
# 0920:电子发票(增值税专用发票),
|
|
13541
|
+
# 0930:电子发票(机动车销售统一发票),
|
|
13542
|
+
# 0940:电子发票(二手车销售统一发票),
|
|
13447
13543
|
# 10:增值税电子普通发票(含全电,全电仅新版接口支持),
|
|
13448
13544
|
# 11:增值税普通发票(卷式),
|
|
13449
13545
|
# 14:增值税电子(通行费)发票,
|
|
13450
13546
|
# 15:二手车销售统一发票,
|
|
13451
13547
|
# 32:深圳区块链发票,
|
|
13452
|
-
#
|
|
13453
|
-
#
|
|
13454
|
-
# 83
|
|
13455
|
-
#
|
|
13456
|
-
#
|
|
13548
|
+
# 61:电子发票(航空运输电子客票行程单),
|
|
13549
|
+
# 8208:电子发票(通行费发票),
|
|
13550
|
+
# 83:电子发票(铁路电子客票),
|
|
13551
|
+
# 100:区块链发票,
|
|
13552
|
+
# 101:财政票据,
|
|
13553
|
+
# 102:通用电子发票,
|
|
13554
|
+
# 103:车辆通行费
|
|
13555
|
+
|
|
13556
|
+
|
|
13557
|
+
|
|
13457
13558
|
# @type Type: String
|
|
13458
13559
|
# @param ElectronicType: 具体的全电发票类型:01: 全电专用发票;02:全电普通发票;03:全电火车票;04:全电机票行程单
|
|
13459
13560
|
# @type ElectronicType: String
|
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.1171
|
|
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-
|
|
11
|
+
date: 2025-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|