tencentcloud-sdk-ocr 3.0.519 → 3.0.520
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 +27 -0
- data/lib/v20181119/models.rb +13 -5
- 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: fc1f50d0032cf9e2c6505d7ca37fb41493abf6b7
|
|
4
|
+
data.tar.gz: 68799e34e4ebf0c9c1b9ffb6c93e676f4e8dabd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98e0bc48f29e5e6d23f7c75fe3f65a1fb72039e8a89bca2b5b72fa529974815e6ae03fea2aed07dc7bf60de8c5da7ce9c257e5e3a0cf34a7c0e0bb31dbb8e897
|
|
7
|
+
data.tar.gz: 726e5c69574f5a750136c693bb9d71f445763108020f6158e4b8129a21a9580a498bd375414f5713c1cf2a1b7f0403dc9baf7c17c1c776708c61eb5166f9b6fb
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.520
|
data/lib/v20181119/client.rb
CHANGED
|
@@ -107,6 +107,7 @@ module TencentCloud
|
|
|
107
107
|
|
|
108
108
|
# 本接口支持银行回单全字段的识别,包括付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
|
|
109
109
|
|
|
110
|
+
# 默认接口请求频率限制:10次/秒。
|
|
110
111
|
|
|
111
112
|
# @param request: Request instance for BankSlipOCR.
|
|
112
113
|
# @type request: :class:`Tencentcloud::ocr::V20181119::BankSlipOCRRequest`
|
|
@@ -158,6 +159,8 @@ module TencentCloud
|
|
|
158
159
|
|
|
159
160
|
# 本接口支持识别公路汽车客票的发票代码、发票号码、日期、姓名、票价等字段。
|
|
160
161
|
|
|
162
|
+
# 默认接口请求频率限制:5次/秒。
|
|
163
|
+
|
|
161
164
|
# @param request: Request instance for BusInvoiceOCR.
|
|
162
165
|
# @type request: :class:`Tencentcloud::ocr::V20181119::BusInvoiceOCRRequest`
|
|
163
166
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::BusInvoiceOCRResponse`
|
|
@@ -314,6 +317,8 @@ module TencentCloud
|
|
|
314
317
|
|
|
315
318
|
# 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
|
|
316
319
|
|
|
320
|
+
# 默认接口请求频率限制:5次/秒。
|
|
321
|
+
|
|
317
322
|
# @param request: Request instance for DutyPaidProofOCR.
|
|
318
323
|
# @type request: :class:`Tencentcloud::ocr::V20181119::DutyPaidProofOCRRequest`
|
|
319
324
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::DutyPaidProofOCRResponse`
|
|
@@ -486,6 +491,8 @@ module TencentCloud
|
|
|
486
491
|
|
|
487
492
|
# 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
|
488
493
|
|
|
494
|
+
# 默认接口请求频率限制:5次/秒。
|
|
495
|
+
|
|
489
496
|
# @param request: Request instance for FlightInvoiceOCR.
|
|
490
497
|
# @type request: :class:`Tencentcloud::ocr::V20181119::FlightInvoiceOCRRequest`
|
|
491
498
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::FlightInvoiceOCRResponse`
|
|
@@ -1061,6 +1068,8 @@ module TencentCloud
|
|
|
1061
1068
|
|
|
1062
1069
|
# 本接口支持对通用机打发票的发票代码、发票号码、日期、购买方识别号、销售方识别号、校验码、小写金额等关键字段的识别。
|
|
1063
1070
|
|
|
1071
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1072
|
+
|
|
1064
1073
|
# @param request: Request instance for InvoiceGeneralOCR.
|
|
1065
1074
|
# @type request: :class:`Tencentcloud::ocr::V20181119::InvoiceGeneralOCRRequest`
|
|
1066
1075
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::InvoiceGeneralOCRResponse`
|
|
@@ -1383,6 +1392,8 @@ module TencentCloud
|
|
|
1383
1392
|
|
|
1384
1393
|
# 本接口支持定额发票的发票号码、发票代码、金额(大小写)、发票消费类型、地区及是否有公司印章等关键字段的识别。
|
|
1385
1394
|
|
|
1395
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1396
|
+
|
|
1386
1397
|
# @param request: Request instance for QuotaInvoiceOCR.
|
|
1387
1398
|
# @type request: :class:`Tencentcloud::ocr::V20181119::QuotaInvoiceOCRRequest`
|
|
1388
1399
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::QuotaInvoiceOCRResponse`
|
|
@@ -1481,6 +1492,8 @@ module TencentCloud
|
|
|
1481
1492
|
|
|
1482
1493
|
# 医疗发票识别目前支持全国统一门诊发票、全国统一住院发票、以及部分地方的门诊和住院发票的识别。
|
|
1483
1494
|
|
|
1495
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1496
|
+
|
|
1484
1497
|
# @param request: Request instance for RecognizeMedicalInvoiceOCR.
|
|
1485
1498
|
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRRequest`
|
|
1486
1499
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeMedicalInvoiceOCRResponse`
|
|
@@ -1775,6 +1788,8 @@ module TencentCloud
|
|
|
1775
1788
|
|
|
1776
1789
|
# 本接口支持识别轮船票的发票代码、发票号码、日期、姓名、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种字段。
|
|
1777
1790
|
|
|
1791
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1792
|
+
|
|
1778
1793
|
# @param request: Request instance for ShipInvoiceOCR.
|
|
1779
1794
|
# @type request: :class:`Tencentcloud::ocr::V20181119::ShipInvoiceOCRRequest`
|
|
1780
1795
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::ShipInvoiceOCRResponse`
|
|
@@ -1852,6 +1867,8 @@ module TencentCloud
|
|
|
1852
1867
|
|
|
1853
1868
|
# 本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
|
|
1854
1869
|
|
|
1870
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1871
|
+
|
|
1855
1872
|
# @param request: Request instance for TaxiInvoiceOCR.
|
|
1856
1873
|
# @type request: :class:`Tencentcloud::ocr::V20181119::TaxiInvoiceOCRRequest`
|
|
1857
1874
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::TaxiInvoiceOCRResponse`
|
|
@@ -1900,6 +1917,8 @@ module TencentCloud
|
|
|
1900
1917
|
|
|
1901
1918
|
# 本接口支持对过路过桥费发票的发票代码、发票号码、日期、小写金额等关键字段的识别。
|
|
1902
1919
|
|
|
1920
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1921
|
+
|
|
1903
1922
|
# @param request: Request instance for TollInvoiceOCR.
|
|
1904
1923
|
# @type request: :class:`Tencentcloud::ocr::V20181119::TollInvoiceOCRRequest`
|
|
1905
1924
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::TollInvoiceOCRResponse`
|
|
@@ -1924,6 +1943,8 @@ module TencentCloud
|
|
|
1924
1943
|
|
|
1925
1944
|
# 本接口支持火车票全字段的识别,包括编号、票价、姓名、座位号、出发时间、出发站、到达站、车次、席别、发票类型及序列号等。
|
|
1926
1945
|
|
|
1946
|
+
# 默认接口请求频率限制:5次/秒。
|
|
1947
|
+
|
|
1927
1948
|
# @param request: Request instance for TrainTicketOCR.
|
|
1928
1949
|
# @type request: :class:`Tencentcloud::ocr::V20181119::TrainTicketOCRRequest`
|
|
1929
1950
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::TrainTicketOCRResponse`
|
|
@@ -1974,6 +1995,8 @@ module TencentCloud
|
|
|
1974
1995
|
|
|
1975
1996
|
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
|
1976
1997
|
|
|
1998
|
+
# 默认接口请求频率限制:20次/秒。
|
|
1999
|
+
|
|
1977
2000
|
# @param request: Request instance for VatInvoiceVerify.
|
|
1978
2001
|
# @type request: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyRequest`
|
|
1979
2002
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyResponse`
|
|
@@ -1998,6 +2021,8 @@ module TencentCloud
|
|
|
1998
2021
|
|
|
1999
2022
|
# 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票、通用机打电子发票(广东和浙江)。
|
|
2000
2023
|
|
|
2024
|
+
# 默认接口请求频率限制:20次/秒。
|
|
2025
|
+
|
|
2001
2026
|
# @param request: Request instance for VatInvoiceVerifyNew.
|
|
2002
2027
|
# @type request: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewRequest`
|
|
2003
2028
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatInvoiceVerifyNewResponse`
|
|
@@ -2022,6 +2047,8 @@ module TencentCloud
|
|
|
2022
2047
|
|
|
2023
2048
|
# 本接口支持对增值税发票(卷票)的发票代码、发票号码、日期、校验码、合计金额(小写)等关键字段的识别。
|
|
2024
2049
|
|
|
2050
|
+
# 默认接口请求频率限制:5次/秒。
|
|
2051
|
+
|
|
2025
2052
|
# @param request: Request instance for VatRollInvoiceOCR.
|
|
2026
2053
|
# @type request: :class:`Tencentcloud::ocr::V20181119::VatRollInvoiceOCRRequest`
|
|
2027
2054
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::VatRollInvoiceOCRResponse`
|
data/lib/v20181119/models.rb
CHANGED
|
@@ -3603,15 +3603,18 @@ module TencentCloud
|
|
|
3603
3603
|
# @type Angle: Float
|
|
3604
3604
|
# @param SingleInvoiceInfos: 识别到的内容。
|
|
3605
3605
|
# @type SingleInvoiceInfos: Array
|
|
3606
|
+
# @param Page: 发票处于识别图片或PDF文件中的页教,默认从1开始。
|
|
3607
|
+
# @type Page: Integer
|
|
3606
3608
|
|
|
3607
|
-
attr_accessor :Code, :Type, :Rect, :Angle, :SingleInvoiceInfos
|
|
3609
|
+
attr_accessor :Code, :Type, :Rect, :Angle, :SingleInvoiceInfos, :Page
|
|
3608
3610
|
|
|
3609
|
-
def initialize(code=nil, type=nil, rect=nil, angle=nil, singleinvoiceinfos=nil)
|
|
3611
|
+
def initialize(code=nil, type=nil, rect=nil, angle=nil, singleinvoiceinfos=nil, page=nil)
|
|
3610
3612
|
@Code = code
|
|
3611
3613
|
@Type = type
|
|
3612
3614
|
@Rect = rect
|
|
3613
3615
|
@Angle = angle
|
|
3614
3616
|
@SingleInvoiceInfos = singleinvoiceinfos
|
|
3617
|
+
@Page = page
|
|
3615
3618
|
end
|
|
3616
3619
|
|
|
3617
3620
|
def deserialize(params)
|
|
@@ -3630,6 +3633,7 @@ module TencentCloud
|
|
|
3630
3633
|
@SingleInvoiceInfos << singleinvoiceinfo_tmp
|
|
3631
3634
|
end
|
|
3632
3635
|
end
|
|
3636
|
+
@Page = params['Page']
|
|
3633
3637
|
end
|
|
3634
3638
|
end
|
|
3635
3639
|
|
|
@@ -3661,7 +3665,7 @@ module TencentCloud
|
|
|
3661
3665
|
# 15:非税发票
|
|
3662
3666
|
# 16:全电发票
|
|
3663
3667
|
# ----------------------
|
|
3664
|
-
# -1
|
|
3668
|
+
# -1:其他发票,(只传入此类型时,图片均采用其他票类型进行识别)
|
|
3665
3669
|
# @type Types: Array
|
|
3666
3670
|
# @param ReturnOther: 是否识别其他类型发票,默认为Yes
|
|
3667
3671
|
# Yes:识别其他类型发票
|
|
@@ -3671,16 +3675,19 @@ module TencentCloud
|
|
|
3671
3675
|
# @type IsPdf: Boolean
|
|
3672
3676
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
3673
3677
|
# @type PdfPageNumber: Integer
|
|
3678
|
+
# @param ReturnMultiplePage: 是否开启PDF多页识别,默认值为false,开启后可同时支持多页PDF的识别返回,仅支持返回文件前30页。开启后IsPDF和PdfPageNumber入参不进行控制。
|
|
3679
|
+
# @type ReturnMultiplePage: Boolean
|
|
3674
3680
|
|
|
3675
|
-
attr_accessor :ImageBase64, :ImageUrl, :Types, :ReturnOther, :IsPdf, :PdfPageNumber
|
|
3681
|
+
attr_accessor :ImageBase64, :ImageUrl, :Types, :ReturnOther, :IsPdf, :PdfPageNumber, :ReturnMultiplePage
|
|
3676
3682
|
|
|
3677
|
-
def initialize(imagebase64=nil, imageurl=nil, types=nil, returnother=nil, ispdf=nil, pdfpagenumber=nil)
|
|
3683
|
+
def initialize(imagebase64=nil, imageurl=nil, types=nil, returnother=nil, ispdf=nil, pdfpagenumber=nil, returnmultiplepage=nil)
|
|
3678
3684
|
@ImageBase64 = imagebase64
|
|
3679
3685
|
@ImageUrl = imageurl
|
|
3680
3686
|
@Types = types
|
|
3681
3687
|
@ReturnOther = returnother
|
|
3682
3688
|
@IsPdf = ispdf
|
|
3683
3689
|
@PdfPageNumber = pdfpagenumber
|
|
3690
|
+
@ReturnMultiplePage = returnmultiplepage
|
|
3684
3691
|
end
|
|
3685
3692
|
|
|
3686
3693
|
def deserialize(params)
|
|
@@ -3690,6 +3697,7 @@ module TencentCloud
|
|
|
3690
3697
|
@ReturnOther = params['ReturnOther']
|
|
3691
3698
|
@IsPdf = params['IsPdf']
|
|
3692
3699
|
@PdfPageNumber = params['PdfPageNumber']
|
|
3700
|
+
@ReturnMultiplePage = params['ReturnMultiplePage']
|
|
3693
3701
|
end
|
|
3694
3702
|
end
|
|
3695
3703
|
|
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.520
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2023-03-
|
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|