tencentcloud-sdk-ocr 3.0.575 → 3.0.577
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 +6 -4
- data/lib/v20181119/models.rb +44 -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: b5b3fb1f91c60bfc0fd7cb8c3f29bd2c3605a809
|
|
4
|
+
data.tar.gz: 75c6a21cab4cfa76213015e8c60ce69e5436f7be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e7a3b37ecf153876c53dc87b437bd1b90c435131c376223901ac59ece28ecf5591dfb0e1e6cd0ec7ca611bafa70004d25a0562dff3f48288a7b2a6f3a42254b9
|
|
7
|
+
data.tar.gz: 1098dc1dd5b95661718f548ba745473b5cf077be436ed21533f71e89f727e297bacd4be7e3cd7e506bb0cbcad855009e14ffc364e1d8f9c2ddd0798b70d0bf00
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.577
|
data/lib/v20181119/client.rb
CHANGED
|
@@ -213,6 +213,8 @@ module TencentCloud
|
|
|
213
213
|
|
|
214
214
|
# 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
215
215
|
|
|
216
|
+
# 默认接口请求频率限制:5次/秒。
|
|
217
|
+
|
|
216
218
|
# @param request: Request instance for CarInvoiceOCR.
|
|
217
219
|
# @type request: :class:`Tencentcloud::ocr::V20181119::CarInvoiceOCRRequest`
|
|
218
220
|
# @rtype: :class:`Tencentcloud::ocr::V20181119::CarInvoiceOCRResponse`
|
|
@@ -1481,7 +1483,7 @@ module TencentCloud
|
|
|
1481
1483
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1482
1484
|
end
|
|
1483
1485
|
|
|
1484
|
-
# 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14
|
|
1486
|
+
# 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
1485
1487
|
|
|
1486
1488
|
# 默认接口请求频率限制:5次/秒。
|
|
1487
1489
|
|
|
@@ -1522,7 +1524,7 @@ module TencentCloud
|
|
|
1522
1524
|
# <td> 3 </td>
|
|
1523
1525
|
# </tr>
|
|
1524
1526
|
# <tr>
|
|
1525
|
-
# <td>
|
|
1527
|
+
# <td> VatElectronicInvoiceToll</td>
|
|
1526
1528
|
# <td> 增值税电子普通发票(通行费)</td>
|
|
1527
1529
|
# <td> 3 </td>
|
|
1528
1530
|
# </tr>
|
|
@@ -1833,7 +1835,7 @@ module TencentCloud
|
|
|
1833
1835
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
1834
1836
|
end
|
|
1835
1837
|
|
|
1836
|
-
# 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
|
1838
|
+
# 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
|
|
1837
1839
|
|
|
1838
1840
|
# @param request: Request instance for RecognizeTableAccurateOCR.
|
|
1839
1841
|
# @type request: :class:`Tencentcloud::ocr::V20181119::RecognizeTableAccurateOCRRequest`
|
|
@@ -2246,7 +2248,7 @@ module TencentCloud
|
|
|
2246
2248
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
2247
2249
|
end
|
|
2248
2250
|
|
|
2249
|
-
#
|
|
2251
|
+
# 本接口支持增值税专用发票、增值税普通发票、增值税电子专票、增值税电子普票、电子发票(普通发票)、电子发票(增值税专用发票)德全字段的内容检测和识别,包括发票代码、发票号码、打印发票代码、打印发票号码、开票日期、合计金额、校验码、税率、合计税额、价税合计、购买方识别号、复核、销售方识别号、开票人、密码区1、密码区2、密码区3、密码区4、发票名称、购买方名称、销售方名称、服务名称、备注、规格型号、数量、单价、金额、税额、收款人等字段,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
2250
2252
|
|
|
2251
2253
|
# 默认接口请求频率限制:10次/秒。
|
|
2252
2254
|
|
data/lib/v20181119/models.rb
CHANGED
|
@@ -1192,13 +1192,16 @@ module TencentCloud
|
|
|
1192
1192
|
# @type FirstNotes: String
|
|
1193
1193
|
# @param SecondNotes: 备注信息2
|
|
1194
1194
|
# @type SecondNotes: String
|
|
1195
|
+
# @param FileType: 文件类型
|
|
1196
|
+
# @type FileType: Integer
|
|
1195
1197
|
|
|
1196
|
-
attr_accessor :FileList, :FirstNotes, :SecondNotes
|
|
1198
|
+
attr_accessor :FileList, :FirstNotes, :SecondNotes, :FileType
|
|
1197
1199
|
|
|
1198
|
-
def initialize(filelist=nil, firstnotes=nil, secondnotes=nil)
|
|
1200
|
+
def initialize(filelist=nil, firstnotes=nil, secondnotes=nil, filetype=nil)
|
|
1199
1201
|
@FileList = filelist
|
|
1200
1202
|
@FirstNotes = firstnotes
|
|
1201
1203
|
@SecondNotes = secondnotes
|
|
1204
|
+
@FileType = filetype
|
|
1202
1205
|
end
|
|
1203
1206
|
|
|
1204
1207
|
def deserialize(params)
|
|
@@ -1212,6 +1215,7 @@ module TencentCloud
|
|
|
1212
1215
|
end
|
|
1213
1216
|
@FirstNotes = params['FirstNotes']
|
|
1214
1217
|
@SecondNotes = params['SecondNotes']
|
|
1218
|
+
@FileType = params['FileType']
|
|
1215
1219
|
end
|
|
1216
1220
|
end
|
|
1217
1221
|
|
|
@@ -5794,11 +5798,13 @@ module TencentCloud
|
|
|
5794
5798
|
# @param ImageBase64: 图片的 Base64 值。
|
|
5795
5799
|
# 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
|
5796
5800
|
# 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
5801
|
+
# 支持的图片像素:需介于20-10000px之间。
|
|
5797
5802
|
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
5798
5803
|
# @type ImageBase64: String
|
|
5799
5804
|
# @param ImageUrl: 图片的 Url 地址。
|
|
5800
5805
|
# 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
|
5801
5806
|
# 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
5807
|
+
# 支持的图片像素:需介于20-10000px之间。
|
|
5802
5808
|
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
5803
5809
|
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
5804
5810
|
# @type ImageUrl: String
|
|
@@ -6648,11 +6654,14 @@ module TencentCloud
|
|
|
6648
6654
|
class RecognizeTableAccurateOCRRequest < TencentCloud::Common::AbstractModel
|
|
6649
6655
|
# @param ImageBase64: 图片/PDF的 Base64 值。
|
|
6650
6656
|
# 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
|
6657
|
+
# 图片支持的像素范围:需介于20-10000px之间。
|
|
6651
6658
|
# 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
6652
6659
|
# @type ImageBase64: String
|
|
6653
6660
|
# @param ImageUrl: 图片/PDF的 Url 地址。
|
|
6654
6661
|
# 要求图片/PDF经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。
|
|
6655
|
-
#
|
|
6662
|
+
# 图片支持的像素范围:需介于20-10000px之间。
|
|
6663
|
+
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定
|
|
6664
|
+
# 性可能受一定影响。
|
|
6656
6665
|
# @type ImageUrl: String
|
|
6657
6666
|
# @param PdfPageNumber: 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
6658
6667
|
# @type PdfPageNumber: Integer
|
|
@@ -10264,10 +10273,24 @@ module TencentCloud
|
|
|
10264
10273
|
# @type TaxAmount: String
|
|
10265
10274
|
# @param TaxClassifyCode: 税收分类编码
|
|
10266
10275
|
# @type TaxClassifyCode: String
|
|
10276
|
+
# @param VehicleType: 运输工具类型
|
|
10277
|
+
# @type VehicleType: String
|
|
10278
|
+
# @param VehicleBrand: 运输工具牌号
|
|
10279
|
+
# @type VehicleBrand: String
|
|
10280
|
+
# @param DeparturePlace: 起始地
|
|
10281
|
+
# @type DeparturePlace: String
|
|
10282
|
+
# @param ArrivalPlace: 到达地
|
|
10283
|
+
# @type ArrivalPlace: String
|
|
10284
|
+
# @param TransportItemsName: 运输货物名称
|
|
10285
|
+
# @type TransportItemsName: String
|
|
10286
|
+
# @param ConstructionPlace: 建筑服务发生地
|
|
10287
|
+
# @type ConstructionPlace: String
|
|
10288
|
+
# @param ConstructionName: 建筑项目名称
|
|
10289
|
+
# @type ConstructionName: String
|
|
10267
10290
|
|
|
10268
|
-
attr_accessor :LineNo, :Name, :Spec, :Unit, :Quantity, :UnitPrice, :AmountWithoutTax, :TaxRate, :TaxAmount, :TaxClassifyCode
|
|
10291
|
+
attr_accessor :LineNo, :Name, :Spec, :Unit, :Quantity, :UnitPrice, :AmountWithoutTax, :TaxRate, :TaxAmount, :TaxClassifyCode, :VehicleType, :VehicleBrand, :DeparturePlace, :ArrivalPlace, :TransportItemsName, :ConstructionPlace, :ConstructionName
|
|
10269
10292
|
|
|
10270
|
-
def initialize(lineno=nil, name=nil, spec=nil, unit=nil, quantity=nil, unitprice=nil, amountwithouttax=nil, taxrate=nil, taxamount=nil, taxclassifycode=nil)
|
|
10293
|
+
def initialize(lineno=nil, name=nil, spec=nil, unit=nil, quantity=nil, unitprice=nil, amountwithouttax=nil, taxrate=nil, taxamount=nil, taxclassifycode=nil, vehicletype=nil, vehiclebrand=nil, departureplace=nil, arrivalplace=nil, transportitemsname=nil, constructionplace=nil, constructionname=nil)
|
|
10271
10294
|
@LineNo = lineno
|
|
10272
10295
|
@Name = name
|
|
10273
10296
|
@Spec = spec
|
|
@@ -10278,6 +10301,13 @@ module TencentCloud
|
|
|
10278
10301
|
@TaxRate = taxrate
|
|
10279
10302
|
@TaxAmount = taxamount
|
|
10280
10303
|
@TaxClassifyCode = taxclassifycode
|
|
10304
|
+
@VehicleType = vehicletype
|
|
10305
|
+
@VehicleBrand = vehiclebrand
|
|
10306
|
+
@DeparturePlace = departureplace
|
|
10307
|
+
@ArrivalPlace = arrivalplace
|
|
10308
|
+
@TransportItemsName = transportitemsname
|
|
10309
|
+
@ConstructionPlace = constructionplace
|
|
10310
|
+
@ConstructionName = constructionname
|
|
10281
10311
|
end
|
|
10282
10312
|
|
|
10283
10313
|
def deserialize(params)
|
|
@@ -10291,6 +10321,13 @@ module TencentCloud
|
|
|
10291
10321
|
@TaxRate = params['TaxRate']
|
|
10292
10322
|
@TaxAmount = params['TaxAmount']
|
|
10293
10323
|
@TaxClassifyCode = params['TaxClassifyCode']
|
|
10324
|
+
@VehicleType = params['VehicleType']
|
|
10325
|
+
@VehicleBrand = params['VehicleBrand']
|
|
10326
|
+
@DeparturePlace = params['DeparturePlace']
|
|
10327
|
+
@ArrivalPlace = params['ArrivalPlace']
|
|
10328
|
+
@TransportItemsName = params['TransportItemsName']
|
|
10329
|
+
@ConstructionPlace = params['ConstructionPlace']
|
|
10330
|
+
@ConstructionName = params['ConstructionName']
|
|
10294
10331
|
end
|
|
10295
10332
|
end
|
|
10296
10333
|
|
|
@@ -10359,11 +10396,13 @@ module TencentCloud
|
|
|
10359
10396
|
# @param ImageBase64: 图片/PDF的 Base64 值。
|
|
10360
10397
|
# 支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
|
10361
10398
|
# 支持的图片/PDF大小:所下载文件经Base64编码后不超过 7M。文件下载时间不超过 3 秒。
|
|
10399
|
+
# 支持的图片像素:需介于20-10000px之间。
|
|
10362
10400
|
# 输入参数 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
10363
10401
|
# @type ImageBase64: String
|
|
10364
10402
|
# @param ImageUrl: 图片/PDF的 Url 地址。
|
|
10365
10403
|
# 支持的文件格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。
|
|
10366
10404
|
# 支持的图片/PDF大小:所下载文件经 Base64 编码后不超过 7M。文件下载时间不超过 3 秒。
|
|
10405
|
+
# 支持的图片像素:需介于20-10000px之间。
|
|
10367
10406
|
# 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
10368
10407
|
# 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
10369
10408
|
# @type ImageUrl: 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.577
|
|
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-05-
|
|
11
|
+
date: 2023-05-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|