tencentcloud-sdk-ocr 3.0.686 → 3.0.688
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/models.rb +61 -10
- 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: 1304a8a34e10d8ba8e42b1eb2033dc70d5807f44
|
4
|
+
data.tar.gz: 72b4f9af9cc0a092ce08112aad02ba2bc9aa30b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f6a46b1b7e811ee9f223db03d0fd530a8e43a64d6c206a26dbcc3d3ea893cfd60b0f753b5ef97fdf4ccbe1976dc9c2eeacd64eea4475d491c567dbb09052121
|
7
|
+
data.tar.gz: 37f679a47f88d60aaa8ca86a134cc53dd810f07f582befd4c52fef725a3647937366f50becec93102a4c6071b970d0bf07a969db6f84dab10d62c94789f4b1d4
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.688
|
data/lib/v20181119/models.rb
CHANGED
@@ -1279,6 +1279,7 @@ module TencentCloud
|
|
1279
1279
|
# @type ImageUrl: String
|
1280
1280
|
# @param CardSide: FRONT 为驾驶证主页正面(有红色印章的一面),
|
1281
1281
|
# BACK 为驾驶证副页正面(有档案编号的一面)。
|
1282
|
+
# DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
|
1282
1283
|
# 默认值为:FRONT。
|
1283
1284
|
# @type CardSide: String
|
1284
1285
|
|
@@ -1299,7 +1300,7 @@ module TencentCloud
|
|
1299
1300
|
|
1300
1301
|
# DriverLicenseOCR返回参数结构体
|
1301
1302
|
class DriverLicenseOCRResponse < TencentCloud::Common::AbstractModel
|
1302
|
-
# @param Name:
|
1303
|
+
# @param Name: 驾驶证正页姓名
|
1303
1304
|
# @type Name: String
|
1304
1305
|
# @param Sex: 性别
|
1305
1306
|
# @type Sex: String
|
@@ -1318,7 +1319,7 @@ module TencentCloud
|
|
1318
1319
|
# @param EndDate: 有效期截止时间(新版驾驶证返回 YYYY-MM-DD,
|
1319
1320
|
# 老版驾驶证返回有效期限 X年)
|
1320
1321
|
# @type EndDate: String
|
1321
|
-
# @param CardCode:
|
1322
|
+
# @param CardCode: 驾驶证正页证号
|
1322
1323
|
# @type CardCode: String
|
1323
1324
|
# @param ArchivesCode: 档案编号
|
1324
1325
|
# @type ArchivesCode: String
|
@@ -1344,12 +1345,16 @@ module TencentCloud
|
|
1344
1345
|
# @type CurrentTime: String
|
1345
1346
|
# @param GenerateTime: 生成时间(仅电子驾驶证支持返回该字段)
|
1346
1347
|
# @type GenerateTime: String
|
1348
|
+
# @param BackPageName: 驾驶证副页姓名
|
1349
|
+
# @type BackPageName: String
|
1350
|
+
# @param BackPageCardCode: 驾驶证副页证号
|
1351
|
+
# @type BackPageCardCode: String
|
1347
1352
|
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1348
1353
|
# @type RequestId: String
|
1349
1354
|
|
1350
|
-
attr_accessor :Name, :Sex, :Nationality, :Address, :DateOfBirth, :DateOfFirstIssue, :Class, :StartDate, :EndDate, :CardCode, :ArchivesCode, :Record, :RecognizeWarnCode, :RecognizeWarnMsg, :IssuingAuthority, :State, :CumulativeScore, :CurrentTime, :GenerateTime, :RequestId
|
1355
|
+
attr_accessor :Name, :Sex, :Nationality, :Address, :DateOfBirth, :DateOfFirstIssue, :Class, :StartDate, :EndDate, :CardCode, :ArchivesCode, :Record, :RecognizeWarnCode, :RecognizeWarnMsg, :IssuingAuthority, :State, :CumulativeScore, :CurrentTime, :GenerateTime, :BackPageName, :BackPageCardCode, :RequestId
|
1351
1356
|
|
1352
|
-
def initialize(name=nil, sex=nil, nationality=nil, address=nil, dateofbirth=nil, dateoffirstissue=nil, _class=nil, startdate=nil, enddate=nil, cardcode=nil, archivescode=nil, record=nil, recognizewarncode=nil, recognizewarnmsg=nil, issuingauthority=nil, state=nil, cumulativescore=nil, currenttime=nil, generatetime=nil, requestid=nil)
|
1357
|
+
def initialize(name=nil, sex=nil, nationality=nil, address=nil, dateofbirth=nil, dateoffirstissue=nil, _class=nil, startdate=nil, enddate=nil, cardcode=nil, archivescode=nil, record=nil, recognizewarncode=nil, recognizewarnmsg=nil, issuingauthority=nil, state=nil, cumulativescore=nil, currenttime=nil, generatetime=nil, backpagename=nil, backpagecardcode=nil, requestid=nil)
|
1353
1358
|
@Name = name
|
1354
1359
|
@Sex = sex
|
1355
1360
|
@Nationality = nationality
|
@@ -1369,6 +1374,8 @@ module TencentCloud
|
|
1369
1374
|
@CumulativeScore = cumulativescore
|
1370
1375
|
@CurrentTime = currenttime
|
1371
1376
|
@GenerateTime = generatetime
|
1377
|
+
@BackPageName = backpagename
|
1378
|
+
@BackPageCardCode = backpagecardcode
|
1372
1379
|
@RequestId = requestid
|
1373
1380
|
end
|
1374
1381
|
|
@@ -1392,6 +1399,8 @@ module TencentCloud
|
|
1392
1399
|
@CumulativeScore = params['CumulativeScore']
|
1393
1400
|
@CurrentTime = params['CurrentTime']
|
1394
1401
|
@GenerateTime = params['GenerateTime']
|
1402
|
+
@BackPageName = params['BackPageName']
|
1403
|
+
@BackPageCardCode = params['BackPageCardCode']
|
1395
1404
|
@RequestId = params['RequestId']
|
1396
1405
|
end
|
1397
1406
|
end
|
@@ -3390,18 +3399,20 @@ module TencentCloud
|
|
3390
3399
|
# @type SingleInvoiceInfos: :class:`Tencentcloud::Ocr.v20181119.models.SingleInvoiceItem`
|
3391
3400
|
# @param Page: 发票处于识别图片或PDF文件中的页教,默认从1开始。
|
3392
3401
|
# @type Page: Integer
|
3393
|
-
# @param SubType:
|
3402
|
+
# @param SubType: 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
|
3394
3403
|
# @type SubType: String
|
3395
|
-
# @param TypeDescription:
|
3404
|
+
# @param TypeDescription: 发票类型描述,详见票据识别(高级版)接口文档说明中 TypeDescription 返回值说明
|
3396
3405
|
# @type TypeDescription: String
|
3397
3406
|
# @param CutImage: 切割单图文件,Base64编码后的切图后的图片文件,开启 EnableCutImage 后进行返回
|
3398
3407
|
# @type CutImage: String
|
3399
3408
|
# @param SubTypeDescription: 发票详细类型描述,详见上方 SubType 返回值说明
|
3400
3409
|
# @type SubTypeDescription: String
|
3410
|
+
# @param ItemPolygon: 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。
|
3411
|
+
# @type ItemPolygon: Array
|
3401
3412
|
|
3402
|
-
attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription
|
3413
|
+
attr_accessor :Code, :Type, :Polygon, :Angle, :SingleInvoiceInfos, :Page, :SubType, :TypeDescription, :CutImage, :SubTypeDescription, :ItemPolygon
|
3403
3414
|
|
3404
|
-
def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil)
|
3415
|
+
def initialize(code=nil, type=nil, polygon=nil, angle=nil, singleinvoiceinfos=nil, page=nil, subtype=nil, typedescription=nil, cutimage=nil, subtypedescription=nil, itempolygon=nil)
|
3405
3416
|
@Code = code
|
3406
3417
|
@Type = type
|
3407
3418
|
@Polygon = polygon
|
@@ -3412,6 +3423,7 @@ module TencentCloud
|
|
3412
3423
|
@TypeDescription = typedescription
|
3413
3424
|
@CutImage = cutimage
|
3414
3425
|
@SubTypeDescription = subtypedescription
|
3426
|
+
@ItemPolygon = itempolygon
|
3415
3427
|
end
|
3416
3428
|
|
3417
3429
|
def deserialize(params)
|
@@ -3431,6 +3443,14 @@ module TencentCloud
|
|
3431
3443
|
@TypeDescription = params['TypeDescription']
|
3432
3444
|
@CutImage = params['CutImage']
|
3433
3445
|
@SubTypeDescription = params['SubTypeDescription']
|
3446
|
+
unless params['ItemPolygon'].nil?
|
3447
|
+
@ItemPolygon = []
|
3448
|
+
params['ItemPolygon'].each do |i|
|
3449
|
+
itempolygoninfo_tmp = ItemPolygonInfo.new
|
3450
|
+
itempolygoninfo_tmp.deserialize(i)
|
3451
|
+
@ItemPolygon << itempolygoninfo_tmp
|
3452
|
+
end
|
3453
|
+
end
|
3434
3454
|
end
|
3435
3455
|
end
|
3436
3456
|
|
@@ -3490,6 +3510,33 @@ module TencentCloud
|
|
3490
3510
|
end
|
3491
3511
|
end
|
3492
3512
|
|
3513
|
+
# 发票字段坐标信息。包括字段英文名称、字段值所在位置的四点坐标、字段所属行号,具体内容请点击左侧链接。
|
3514
|
+
class ItemPolygonInfo < TencentCloud::Common::AbstractModel
|
3515
|
+
# @param Key: 发票的英文字段名称(如Title)
|
3516
|
+
# @type Key: String
|
3517
|
+
# @param Polygon: 字段值所在位置的四点坐标
|
3518
|
+
# @type Polygon: :class:`Tencentcloud::Ocr.v20181119.models.Polygon`
|
3519
|
+
# @param Row: 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
|
3520
|
+
# @type Row: Integer
|
3521
|
+
|
3522
|
+
attr_accessor :Key, :Polygon, :Row
|
3523
|
+
|
3524
|
+
def initialize(key=nil, polygon=nil, row=nil)
|
3525
|
+
@Key = key
|
3526
|
+
@Polygon = polygon
|
3527
|
+
@Row = row
|
3528
|
+
end
|
3529
|
+
|
3530
|
+
def deserialize(params)
|
3531
|
+
@Key = params['Key']
|
3532
|
+
unless params['Polygon'].nil?
|
3533
|
+
@Polygon = Polygon.new
|
3534
|
+
@Polygon.deserialize(params['Polygon'])
|
3535
|
+
end
|
3536
|
+
@Row = params['Row']
|
3537
|
+
end
|
3538
|
+
end
|
3539
|
+
|
3493
3540
|
# key信息组
|
3494
3541
|
class Key < TencentCloud::Common::AbstractModel
|
3495
3542
|
# @param AutoName: 自动识别的字段名称
|
@@ -5739,10 +5786,12 @@ module TencentCloud
|
|
5739
5786
|
# @type EnableMultiplePage: Boolean
|
5740
5787
|
# @param EnableCutImage: 是否返回切割图片base64,默认值为false。
|
5741
5788
|
# @type EnableCutImage: Boolean
|
5789
|
+
# @param EnableItemPolygon: 是否打开字段坐标返回。默认为false。
|
5790
|
+
# @type EnableItemPolygon: Boolean
|
5742
5791
|
|
5743
|
-
attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage
|
5792
|
+
attr_accessor :ImageBase64, :ImageUrl, :Types, :EnableOther, :EnablePdf, :PdfPageNumber, :EnableMultiplePage, :EnableCutImage, :EnableItemPolygon
|
5744
5793
|
|
5745
|
-
def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil)
|
5794
|
+
def initialize(imagebase64=nil, imageurl=nil, types=nil, enableother=nil, enablepdf=nil, pdfpagenumber=nil, enablemultiplepage=nil, enablecutimage=nil, enableitempolygon=nil)
|
5746
5795
|
@ImageBase64 = imagebase64
|
5747
5796
|
@ImageUrl = imageurl
|
5748
5797
|
@Types = types
|
@@ -5751,6 +5800,7 @@ module TencentCloud
|
|
5751
5800
|
@PdfPageNumber = pdfpagenumber
|
5752
5801
|
@EnableMultiplePage = enablemultiplepage
|
5753
5802
|
@EnableCutImage = enablecutimage
|
5803
|
+
@EnableItemPolygon = enableitempolygon
|
5754
5804
|
end
|
5755
5805
|
|
5756
5806
|
def deserialize(params)
|
@@ -5762,6 +5812,7 @@ module TencentCloud
|
|
5762
5812
|
@PdfPageNumber = params['PdfPageNumber']
|
5763
5813
|
@EnableMultiplePage = params['EnableMultiplePage']
|
5764
5814
|
@EnableCutImage = params['EnableCutImage']
|
5815
|
+
@EnableItemPolygon = params['EnableItemPolygon']
|
5765
5816
|
end
|
5766
5817
|
end
|
5767
5818
|
|
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.688
|
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-10-
|
11
|
+
date: 2023-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|