tencentcloud-sdk-ocr 3.0.563 → 3.0.565
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20181119/client.rb +127 -0
- data/lib/v20181119/models.rb +2325 -26
- 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: 92ad48edfefe6b046c477427296f30a2f4f80305
|
4
|
+
data.tar.gz: 1eead9e82844114ca2c32b866b67f01d55f378b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23ccc1081d38efc93693d960792627fef5cbe8217592d2e097b59105a7861dc8726654e885da8727d8e7796156dd0c48aad9b61009dc1dd50775327ee7746376
|
7
|
+
data.tar.gz: 76b7a1fc088ea1e9f3975bfb0188fa3a6dbbb33cb7488c34d9d94ccf56bf2a48e40cb837ab30c0bc56d6b48891df174842ecba8a9249ee89f392102d3a0e2b63
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.565
|
data/lib/v20181119/client.rb
CHANGED
@@ -1481,6 +1481,133 @@ module TencentCloud
|
|
1481
1481
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1482
1482
|
end
|
1483
1483
|
|
1484
|
+
# 本接口支持 PDF多页、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持非上述类型的其他发票的智能识别。
|
1485
|
+
|
1486
|
+
# 默认接口请求频率限制:5次/秒。
|
1487
|
+
|
1488
|
+
|
1489
|
+
# 支持的细项目子票种SubType、子票种中文TypeDescription 返回说明如下列表:
|
1490
|
+
# <table style="width:715px">
|
1491
|
+
# <thead>
|
1492
|
+
# <tr>
|
1493
|
+
# <th style="width:200px">SubType 子票种英文</th>
|
1494
|
+
# <th >TypeDescription子票种中文</th>
|
1495
|
+
# </tr>
|
1496
|
+
# </thead>
|
1497
|
+
# <tbody>
|
1498
|
+
# <tr>
|
1499
|
+
# <td> VatSpecialInvoice</td>
|
1500
|
+
# <td> 增值税专用发票 </td>
|
1501
|
+
# </tr>
|
1502
|
+
# <tr>
|
1503
|
+
# <td> VatCommonInvoice</td>
|
1504
|
+
# <td> 增值税普通发票 </td>
|
1505
|
+
# </tr>
|
1506
|
+
# <tr>
|
1507
|
+
# <td> VatElectronicCommonInvoice </td>
|
1508
|
+
# <td> 增值税电子普通发票 </td>
|
1509
|
+
# </tr>
|
1510
|
+
# <tr>
|
1511
|
+
# <td> VatElectronicSpecialInvoice </td>
|
1512
|
+
# <td> 增值税电子专用发票 </td>
|
1513
|
+
# </tr>
|
1514
|
+
# <tr>
|
1515
|
+
# <td> VatElectronicInvoiceBlockchain</td>
|
1516
|
+
# <td> 区块链电子发票 </td>
|
1517
|
+
# </tr>
|
1518
|
+
# <tr>
|
1519
|
+
# <td> VatElectronicSpecialInvoiceFull</td>
|
1520
|
+
# <td> 增值税电子普通发票(通行费)</td>
|
1521
|
+
# </tr>
|
1522
|
+
# <tr>
|
1523
|
+
# <td> VatElectronicSpecialInvoiceFull</td>
|
1524
|
+
# <td> 电子发票(专用发票)</td>
|
1525
|
+
# </tr>
|
1526
|
+
# <tr>
|
1527
|
+
# <td> VatElectronicSpecialInvoiceFull</td>
|
1528
|
+
# <td> 电子发票(普通发票) </td>
|
1529
|
+
# </tr>
|
1530
|
+
# <tr>
|
1531
|
+
# <td> MotorVehicleSaleInvoice </td>
|
1532
|
+
# <td> 机动车销售统一发票 </td>
|
1533
|
+
# </tr>
|
1534
|
+
# <tr>
|
1535
|
+
# <td> UsedCarPurchaseInvoice </td>
|
1536
|
+
# <td> 二手车销售统一发票 </td>
|
1537
|
+
# </tr>
|
1538
|
+
# <tr>
|
1539
|
+
# <td> VatInvoiceRoll </td>
|
1540
|
+
# <td> 增值税普通发票(卷票) </td>
|
1541
|
+
# </tr>
|
1542
|
+
# <tr>
|
1543
|
+
# <td> TaxiTicket </td>
|
1544
|
+
# <td> 出租车发票 </td>
|
1545
|
+
# </tr>
|
1546
|
+
# <tr>
|
1547
|
+
# <td> QuotaInvoice </td>
|
1548
|
+
# <td> 定额发票 </td>
|
1549
|
+
# </tr>
|
1550
|
+
# <tr>
|
1551
|
+
# <td> TrainTicket </td>
|
1552
|
+
# <td> 火车票 </td>
|
1553
|
+
# </tr>
|
1554
|
+
# <tr>
|
1555
|
+
# <td> AirTransport </td>
|
1556
|
+
# <td> 机票行程单 </td>
|
1557
|
+
# </tr>
|
1558
|
+
# <tr>
|
1559
|
+
# <td> MachinePrintedInvoice </td>
|
1560
|
+
# <td> 通用机打发票 </td>
|
1561
|
+
# </tr>
|
1562
|
+
# <tr>
|
1563
|
+
# <td> BusInvoice </td>
|
1564
|
+
# <td> 汽车票 </td>
|
1565
|
+
# </tr>
|
1566
|
+
# <tr>
|
1567
|
+
# <td> ShippingInvoice </td>
|
1568
|
+
# <td> 轮船票 </td>
|
1569
|
+
# </tr>
|
1570
|
+
# <tr>
|
1571
|
+
# <td> NonTaxIncomeGeneralBill </td>
|
1572
|
+
# <td> 非税收入通用票据 </td>
|
1573
|
+
# </tr>
|
1574
|
+
# <tr>
|
1575
|
+
# <td> NonTaxIncomeElectronicBill </td>
|
1576
|
+
# <td> 非税收入一般缴款书(电子) </td>
|
1577
|
+
# </tr>
|
1578
|
+
# <tr>
|
1579
|
+
# <td> TollInvoice </td>
|
1580
|
+
# <td> 过路过桥费发票 </td>
|
1581
|
+
# </tr>
|
1582
|
+
# <tr>
|
1583
|
+
# <td> OtherInvoice </td>
|
1584
|
+
# <td> 其他发票 </td>
|
1585
|
+
# </tr>
|
1586
|
+
# </tbody>
|
1587
|
+
# </table>
|
1588
|
+
|
1589
|
+
# @param request: Request instance for RecognizeGeneralInvoice.
|
1590
|
+
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceRequest`
|
1591
|
+
# @rtype: :class:`Tencentcloud::ocr::V20181119::RecognizeGeneralInvoiceResponse`
|
1592
|
+
def RecognizeGeneralInvoice(request)
|
1593
|
+
body = send_request('RecognizeGeneralInvoice', request.serialize)
|
1594
|
+
response = JSON.parse(body)
|
1595
|
+
if response['Response'].key?('Error') == false
|
1596
|
+
model = RecognizeGeneralInvoiceResponse.new
|
1597
|
+
model.deserialize(response['Response'])
|
1598
|
+
model
|
1599
|
+
else
|
1600
|
+
code = response['Response']['Error']['Code']
|
1601
|
+
message = response['Response']['Error']['Message']
|
1602
|
+
reqid = response['Response']['RequestId']
|
1603
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1604
|
+
end
|
1605
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1606
|
+
raise e
|
1607
|
+
rescue StandardError => e
|
1608
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1609
|
+
end
|
1610
|
+
|
1484
1611
|
# 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
1485
1612
|
|
1486
1613
|
# 默认接口请求频率限制:10次/秒。
|