tencentcloud-sdk-ocr 3.0.1002 → 3.0.1004
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 +3 -1
- data/lib/v20181119/models.rb +76 -2
- 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: 8aada8db3094c5e2717a66f2e784f4db33a2114f
|
4
|
+
data.tar.gz: fa9684716700dcea11f411767c1f923a771d0666
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ca93a9b5e3110699056c6d4888521bc09436fde2b76db69e3201c8ed8b65ebac1b90e3b02798c727ffcb9963d5fd405210a1e4ce2a47edc26e9d9a66e721bdc
|
7
|
+
data.tar.gz: 4a398885c6fcc30a002f21bc0a99c8e81a11b471c51e4a607daccdffd32e43faa664e2a3534892cb8d1e0fae1e6731af3fac5c8e84c23b934d2db86b3f64cfa6
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1004
|
data/lib/v20181119/client.rb
CHANGED
@@ -1715,6 +1715,8 @@ module TencentCloud
|
|
1715
1715
|
|
1716
1716
|
# 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
1717
1717
|
|
1718
|
+
# 默认接口请求频率限制:5次/秒。
|
1719
|
+
|
1718
1720
|
# @param request: Request instance for RecognizeGeneralCardWarn.
|
1719
1721
|
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralCardWarnRequest`
|
1720
1722
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralCardWarnResponse`
|
@@ -2146,7 +2148,7 @@ module TencentCloud
|
|
2146
2148
|
|
2147
2149
|
# 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
|
2148
2150
|
|
2149
|
-
# 默认接口请求频率限制:
|
2151
|
+
# 默认接口请求频率限制:5次/秒。
|
2150
2152
|
|
2151
2153
|
# @param request: Request instance for RecognizeValidIDCardOCR.
|
2152
2154
|
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeValidIDCardOCRRequest`
|
data/lib/v20181119/models.rb
CHANGED
@@ -1549,6 +1549,33 @@ module TencentCloud
|
|
1549
1549
|
end
|
1550
1550
|
end
|
1551
1551
|
|
1552
|
+
# 海关缴款书
|
1553
|
+
class CustomsPaymentReceipt < TencentCloud::Common::AbstractModel
|
1554
|
+
# @param Title: 发票名称
|
1555
|
+
# @type Title: String
|
1556
|
+
# @param Content: 识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号
|
1557
|
+
# @type Content: Array
|
1558
|
+
|
1559
|
+
attr_accessor :Title, :Content
|
1560
|
+
|
1561
|
+
def initialize(title=nil, content=nil)
|
1562
|
+
@Title = title
|
1563
|
+
@Content = content
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
def deserialize(params)
|
1567
|
+
@Title = params['Title']
|
1568
|
+
unless params['Content'].nil?
|
1569
|
+
@Content = []
|
1570
|
+
params['Content'].each do |i|
|
1571
|
+
otherinvoiceitem_tmp = OtherInvoiceItem.new
|
1572
|
+
otherinvoiceitem_tmp.deserialize(i)
|
1573
|
+
@Content << otherinvoiceitem_tmp
|
1574
|
+
end
|
1575
|
+
end
|
1576
|
+
end
|
1577
|
+
end
|
1578
|
+
|
1552
1579
|
# 机票详细信息元组
|
1553
1580
|
class DetailInformationOfAirTicketTupleList < TencentCloud::Common::AbstractModel
|
1554
1581
|
# @param DepartureStation: 出发站(自)
|
@@ -5268,6 +5295,8 @@ module TencentCloud
|
|
5268
5295
|
# 15:非税发票
|
5269
5296
|
# 16:全电发票
|
5270
5297
|
# 17:医疗发票
|
5298
|
+
# 18:完税凭证
|
5299
|
+
# 19:海关缴款书
|
5271
5300
|
# @type Type: Integer
|
5272
5301
|
# @param Polygon: 该发票在原图片中的四点坐标。
|
5273
5302
|
# @type Polygon: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
@@ -10646,10 +10675,16 @@ module TencentCloud
|
|
10646
10675
|
# @param ElectronicFlightTicketFull: 电子发票(机票行程单)
|
10647
10676
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
10648
10677
|
# @type ElectronicFlightTicketFull: :class:`Tencentcloud::Ocr.v20181119.models.ElectronicFlightTicketFull`
|
10678
|
+
# @param TaxPayment: 完税凭证
|
10679
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10680
|
+
# @type TaxPayment: :class:`Tencentcloud::Ocr.v20181119.models.TaxPayment`
|
10681
|
+
# @param CustomsPaymentReceipt: 海关缴款
|
10682
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
10683
|
+
# @type CustomsPaymentReceipt: :class:`Tencentcloud::Ocr.v20181119.models.CustomsPaymentReceipt`
|
10649
10684
|
|
10650
|
-
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
|
10685
|
+
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
|
10651
10686
|
|
10652
|
-
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)
|
10687
|
+
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)
|
10653
10688
|
@VatSpecialInvoice = vatspecialinvoice
|
10654
10689
|
@VatCommonInvoice = vatcommoninvoice
|
10655
10690
|
@VatElectronicCommonInvoice = vatelectroniccommoninvoice
|
@@ -10677,6 +10712,8 @@ module TencentCloud
|
|
10677
10712
|
@VatSalesList = vatsaleslist
|
10678
10713
|
@ElectronicTrainTicketFull = electronictrainticketfull
|
10679
10714
|
@ElectronicFlightTicketFull = electronicflightticketfull
|
10715
|
+
@TaxPayment = taxpayment
|
10716
|
+
@CustomsPaymentReceipt = customspaymentreceipt
|
10680
10717
|
end
|
10681
10718
|
|
10682
10719
|
def deserialize(params)
|
@@ -10788,6 +10825,14 @@ module TencentCloud
|
|
10788
10825
|
@ElectronicFlightTicketFull = ElectronicFlightTicketFull.new
|
10789
10826
|
@ElectronicFlightTicketFull.deserialize(params['ElectronicFlightTicketFull'])
|
10790
10827
|
end
|
10828
|
+
unless params['TaxPayment'].nil?
|
10829
|
+
@TaxPayment = TaxPayment.new
|
10830
|
+
@TaxPayment.deserialize(params['TaxPayment'])
|
10831
|
+
end
|
10832
|
+
unless params['CustomsPaymentReceipt'].nil?
|
10833
|
+
@CustomsPaymentReceipt = CustomsPaymentReceipt.new
|
10834
|
+
@CustomsPaymentReceipt.deserialize(params['CustomsPaymentReceipt'])
|
10835
|
+
end
|
10791
10836
|
end
|
10792
10837
|
end
|
10793
10838
|
|
@@ -11429,6 +11474,35 @@ module TencentCloud
|
|
11429
11474
|
end
|
11430
11475
|
end
|
11431
11476
|
|
11477
|
+
# 完税凭证
|
11478
|
+
class TaxPayment < TencentCloud::Common::AbstractModel
|
11479
|
+
# @param Title: 发票名称
|
11480
|
+
# @type Title: String
|
11481
|
+
# @param Content: 识别出的字段名称(关键字),支持以下字段:
|
11482
|
+
# 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
11483
|
+
# 示例值:纳税人识别号
|
11484
|
+
# @type Content: Array
|
11485
|
+
|
11486
|
+
attr_accessor :Title, :Content
|
11487
|
+
|
11488
|
+
def initialize(title=nil, content=nil)
|
11489
|
+
@Title = title
|
11490
|
+
@Content = content
|
11491
|
+
end
|
11492
|
+
|
11493
|
+
def deserialize(params)
|
11494
|
+
@Title = params['Title']
|
11495
|
+
unless params['Content'].nil?
|
11496
|
+
@Content = []
|
11497
|
+
params['Content'].each do |i|
|
11498
|
+
otherinvoiceitem_tmp = OtherInvoiceItem.new
|
11499
|
+
otherinvoiceitem_tmp.deserialize(i)
|
11500
|
+
@Content << otherinvoiceitem_tmp
|
11501
|
+
end
|
11502
|
+
end
|
11503
|
+
end
|
11504
|
+
end
|
11505
|
+
|
11432
11506
|
# TaxiInvoiceOCR请求参数结构体
|
11433
11507
|
class TaxiInvoiceOCRRequest < TencentCloud::Common::AbstractModel
|
11434
11508
|
# @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.
|
4
|
+
version: 3.0.1004
|
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-02-
|
11
|
+
date: 2025-02-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|