tencentcloud-sdk-nodejs-ocr 4.0.970 → 4.0.973
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.
- package/package.json +1 -1
- package/products.md +60 -59
- package/src/services/ocr/v20181119/ocr_client.ts +42 -16
- package/src/services/ocr/v20181119/ocr_models.ts +213 -66
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +17 -7
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +22 -8
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +209 -66
@@ -438,11 +438,11 @@ export interface TextDetectionResult {
|
|
438
438
|
/**
|
439
439
|
* 识别出的文本行内容
|
440
440
|
*/
|
441
|
-
Value
|
441
|
+
Value?: string
|
442
442
|
/**
|
443
443
|
* 坐标,以四个顶点坐标表示
|
444
444
|
*/
|
445
|
-
Polygon
|
445
|
+
Polygon?: Array<Coord>
|
446
446
|
}
|
447
447
|
|
448
448
|
/**
|
@@ -1568,30 +1568,57 @@ export interface EnterpriseLicenseOCRResponse {
|
|
1568
1568
|
}
|
1569
1569
|
|
1570
1570
|
/**
|
1571
|
-
*
|
1571
|
+
* RecognizeKoreanDrivingLicenseOCR返回参数结构体
|
1572
1572
|
*/
|
1573
|
-
export interface
|
1573
|
+
export interface RecognizeKoreanDrivingLicenseOCRResponse {
|
1574
1574
|
/**
|
1575
|
-
*
|
1575
|
+
* 身份证号码
|
1576
1576
|
*/
|
1577
|
-
|
1577
|
+
ID?: string
|
1578
1578
|
/**
|
1579
|
-
*
|
1579
|
+
* 驾照号码
|
1580
1580
|
*/
|
1581
|
-
|
1581
|
+
LicenseNumber?: string
|
1582
1582
|
/**
|
1583
|
-
*
|
1583
|
+
* 居民登记号码
|
1584
1584
|
*/
|
1585
|
-
|
1585
|
+
Number?: string
|
1586
1586
|
/**
|
1587
|
-
*
|
1588
|
-
圆形印章:0
|
1589
|
-
椭圆形印章:1
|
1590
|
-
方形印章:2
|
1591
|
-
菱形印章:3
|
1592
|
-
三角形印章:4
|
1587
|
+
* 驾照类型
|
1593
1588
|
*/
|
1594
|
-
|
1589
|
+
Type?: string
|
1590
|
+
/**
|
1591
|
+
* 地址
|
1592
|
+
*/
|
1593
|
+
Address?: string
|
1594
|
+
/**
|
1595
|
+
* 姓名
|
1596
|
+
*/
|
1597
|
+
Name?: string
|
1598
|
+
/**
|
1599
|
+
* 换证时间
|
1600
|
+
*/
|
1601
|
+
AptitudeTesDate?: string
|
1602
|
+
/**
|
1603
|
+
* 发证日期
|
1604
|
+
*/
|
1605
|
+
DateOfIssue?: string
|
1606
|
+
/**
|
1607
|
+
* 人像截图Base64后的结果
|
1608
|
+
*/
|
1609
|
+
Photo?: string
|
1610
|
+
/**
|
1611
|
+
* 性别
|
1612
|
+
*/
|
1613
|
+
Sex?: string
|
1614
|
+
/**
|
1615
|
+
* 生日,格式为dd/mm/yyyy
|
1616
|
+
*/
|
1617
|
+
Birthday?: string
|
1618
|
+
/**
|
1619
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1620
|
+
*/
|
1621
|
+
RequestId?: string
|
1595
1622
|
}
|
1596
1623
|
|
1597
1624
|
/**
|
@@ -1626,6 +1653,31 @@ V2
|
|
1626
1653
|
Scene?: string
|
1627
1654
|
}
|
1628
1655
|
|
1656
|
+
/**
|
1657
|
+
* RecognizeKoreanDrivingLicenseOCR请求参数结构体
|
1658
|
+
*/
|
1659
|
+
export interface RecognizeKoreanDrivingLicenseOCRRequest {
|
1660
|
+
/**
|
1661
|
+
* 图片的 Base64 值。
|
1662
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1663
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1664
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1665
|
+
*/
|
1666
|
+
ImageBase64?: string
|
1667
|
+
/**
|
1668
|
+
* 图片的 Url 地址。
|
1669
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1670
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1671
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1672
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1673
|
+
*/
|
1674
|
+
ImageUrl?: string
|
1675
|
+
/**
|
1676
|
+
* 是否返回人像照片。
|
1677
|
+
*/
|
1678
|
+
ReturnHeadImage?: boolean
|
1679
|
+
}
|
1680
|
+
|
1629
1681
|
/**
|
1630
1682
|
* 通用机打发票信息
|
1631
1683
|
*/
|
@@ -2504,27 +2556,27 @@ export interface RecognizePhilippinesTinIDOCRResponse {
|
|
2504
2556
|
/**
|
2505
2557
|
* 人像照片Base64后的结果
|
2506
2558
|
*/
|
2507
|
-
HeadPortrait
|
2559
|
+
HeadPortrait?: TextDetectionResult
|
2508
2560
|
/**
|
2509
2561
|
* 编码
|
2510
2562
|
*/
|
2511
|
-
LicenseNumber
|
2563
|
+
LicenseNumber?: TextDetectionResult
|
2512
2564
|
/**
|
2513
2565
|
* 姓名
|
2514
2566
|
*/
|
2515
|
-
FullName
|
2567
|
+
FullName?: TextDetectionResult
|
2516
2568
|
/**
|
2517
2569
|
* 地址
|
2518
2570
|
*/
|
2519
|
-
Address
|
2571
|
+
Address?: TextDetectionResult
|
2520
2572
|
/**
|
2521
2573
|
* 生日
|
2522
2574
|
*/
|
2523
|
-
Birthday
|
2575
|
+
Birthday?: TextDetectionResult
|
2524
2576
|
/**
|
2525
2577
|
* 发证日期
|
2526
2578
|
*/
|
2527
|
-
IssueDate
|
2579
|
+
IssueDate?: TextDetectionResult
|
2528
2580
|
/**
|
2529
2581
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2530
2582
|
*/
|
@@ -5671,24 +5723,41 @@ export interface CardWarnInfo {
|
|
5671
5723
|
}
|
5672
5724
|
|
5673
5725
|
/**
|
5674
|
-
*
|
5726
|
+
* RecognizeKoreanIDCardOCR返回参数结构体
|
5675
5727
|
*/
|
5676
|
-
export interface
|
5728
|
+
export interface RecognizeKoreanIDCardOCRResponse {
|
5677
5729
|
/**
|
5678
|
-
*
|
5679
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5680
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
5681
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5730
|
+
* 身份证号码
|
5682
5731
|
*/
|
5683
|
-
|
5732
|
+
ID?: string
|
5684
5733
|
/**
|
5685
|
-
*
|
5686
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5687
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
5688
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5689
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5734
|
+
* 地址
|
5690
5735
|
*/
|
5691
|
-
|
5736
|
+
Address?: string
|
5737
|
+
/**
|
5738
|
+
* 姓名
|
5739
|
+
*/
|
5740
|
+
Name?: string
|
5741
|
+
/**
|
5742
|
+
* 发证日期
|
5743
|
+
*/
|
5744
|
+
DateOfIssue?: string
|
5745
|
+
/**
|
5746
|
+
* 人像截图Base64后的结果
|
5747
|
+
*/
|
5748
|
+
Photo?: string
|
5749
|
+
/**
|
5750
|
+
* 性别
|
5751
|
+
*/
|
5752
|
+
Sex?: string
|
5753
|
+
/**
|
5754
|
+
* 生日,格式为dd/mm/yyyy
|
5755
|
+
*/
|
5756
|
+
Birthday?: string
|
5757
|
+
/**
|
5758
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5759
|
+
*/
|
5760
|
+
RequestId?: string
|
5692
5761
|
}
|
5693
5762
|
|
5694
5763
|
/**
|
@@ -6892,7 +6961,7 @@ export interface ReconstructDocumentRequest {
|
|
6892
6961
|
*/
|
6893
6962
|
FileType: string
|
6894
6963
|
/**
|
6895
|
-
* 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的
|
6964
|
+
* 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
|
6896
6965
|
*/
|
6897
6966
|
FileBase64?: string
|
6898
6967
|
/**
|
@@ -7195,12 +7264,12 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
7195
7264
|
*/
|
7196
7265
|
export interface Encryption {
|
7197
7266
|
/**
|
7198
|
-
* 有加密需求的用户,接入传入kms的CiphertextBlob
|
7267
|
+
* 有加密需求的用户,接入传入kms的CiphertextBlob(Base64编码),关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
|
7199
7268
|
注意:此字段可能返回 null,表示取不到有效值。
|
7200
7269
|
*/
|
7201
7270
|
CiphertextBlob: string
|
7202
7271
|
/**
|
7203
|
-
* 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16
|
7272
|
+
* 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符,Base64编码)。
|
7204
7273
|
注意:此字段可能返回 null,表示取不到有效值。
|
7205
7274
|
*/
|
7206
7275
|
Iv: string
|
@@ -7600,11 +7669,11 @@ export interface Coord {
|
|
7600
7669
|
/**
|
7601
7670
|
* 横坐标
|
7602
7671
|
*/
|
7603
|
-
X
|
7672
|
+
X?: number
|
7604
7673
|
/**
|
7605
7674
|
* 纵坐标
|
7606
7675
|
*/
|
7607
|
-
Y
|
7676
|
+
Y?: number
|
7608
7677
|
}
|
7609
7678
|
|
7610
7679
|
/**
|
@@ -7782,7 +7851,7 @@ WarnInfos,告警信息,Code 告警码列表和释义:
|
|
7782
7851
|
*/
|
7783
7852
|
ReflectDetailInfos?: Array<ReflectDetailInfo>
|
7784
7853
|
/**
|
7785
|
-
*
|
7854
|
+
* 加密后的数据(Base64编码)
|
7786
7855
|
*/
|
7787
7856
|
EncryptedBody?: string
|
7788
7857
|
/**
|
@@ -8116,7 +8185,7 @@ export interface LineInfo {
|
|
8116
8185
|
*/
|
8117
8186
|
export interface RecognizeEncryptedIDCardOCRRequest {
|
8118
8187
|
/**
|
8119
|
-
*
|
8188
|
+
* 请求体被加密后的密文(Base64编码),本接口只支持加密传输
|
8120
8189
|
*/
|
8121
8190
|
EncryptedBody: string
|
8122
8191
|
/**
|
@@ -10210,11 +10279,16 @@ export interface GeneralHandwritingOCRResponse {
|
|
10210
10279
|
/**
|
10211
10280
|
* 检测到的文本信息,具体内容请点击左侧链接。
|
10212
10281
|
*/
|
10213
|
-
TextDetections
|
10282
|
+
TextDetections?: Array<TextGeneralHandwriting>
|
10214
10283
|
/**
|
10215
10284
|
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
10285
|
+
* @deprecated
|
10216
10286
|
*/
|
10217
|
-
Angel
|
10287
|
+
Angel?: number
|
10288
|
+
/**
|
10289
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
10290
|
+
*/
|
10291
|
+
Angle?: number
|
10218
10292
|
/**
|
10219
10293
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10220
10294
|
*/
|
@@ -10312,6 +10386,27 @@ export interface TableOCRResponse {
|
|
10312
10386
|
RequestId?: string
|
10313
10387
|
}
|
10314
10388
|
|
10389
|
+
/**
|
10390
|
+
* VehicleRegCertOCR请求参数结构体
|
10391
|
+
*/
|
10392
|
+
export interface VehicleRegCertOCRRequest {
|
10393
|
+
/**
|
10394
|
+
* 图片的 Base64 值。
|
10395
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10396
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
10397
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10398
|
+
*/
|
10399
|
+
ImageBase64?: string
|
10400
|
+
/**
|
10401
|
+
* 图片的 Url 地址。
|
10402
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10403
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
10404
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
10405
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
10406
|
+
*/
|
10407
|
+
ImageUrl?: string
|
10408
|
+
}
|
10409
|
+
|
10315
10410
|
/**
|
10316
10411
|
* 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
|
10317
10412
|
*/
|
@@ -10336,6 +10431,31 @@ export interface QuestionBlockObj {
|
|
10336
10431
|
QuestionBboxCoord: Rect
|
10337
10432
|
}
|
10338
10433
|
|
10434
|
+
/**
|
10435
|
+
* RecognizeKoreanIDCardOCR请求参数结构体
|
10436
|
+
*/
|
10437
|
+
export interface RecognizeKoreanIDCardOCRRequest {
|
10438
|
+
/**
|
10439
|
+
* 图片的 Base64 值。
|
10440
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10441
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
10442
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10443
|
+
*/
|
10444
|
+
ImageBase64?: string
|
10445
|
+
/**
|
10446
|
+
* 图片的 Url 地址。
|
10447
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10448
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
10449
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
10450
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
10451
|
+
*/
|
10452
|
+
ImageUrl?: string
|
10453
|
+
/**
|
10454
|
+
* 是否返回人像照片。
|
10455
|
+
*/
|
10456
|
+
ReturnHeadImage?: boolean
|
10457
|
+
}
|
10458
|
+
|
10339
10459
|
/**
|
10340
10460
|
* AdvertiseOCR返回参数结构体
|
10341
10461
|
*/
|
@@ -11019,33 +11139,33 @@ export interface BankCardOCRResponse {
|
|
11019
11139
|
/**
|
11020
11140
|
* 卡号
|
11021
11141
|
*/
|
11022
|
-
CardNo
|
11142
|
+
CardNo?: string
|
11023
11143
|
/**
|
11024
11144
|
* 银行信息
|
11025
11145
|
*/
|
11026
|
-
BankInfo
|
11146
|
+
BankInfo?: string
|
11027
11147
|
/**
|
11028
11148
|
* 有效期,格式如:07/2023
|
11029
11149
|
*/
|
11030
|
-
ValidDate
|
11150
|
+
ValidDate?: string
|
11031
11151
|
/**
|
11032
11152
|
* 卡类型
|
11033
11153
|
*/
|
11034
|
-
CardType
|
11154
|
+
CardType?: string
|
11035
11155
|
/**
|
11036
11156
|
* 卡名字
|
11037
11157
|
*/
|
11038
|
-
CardName
|
11158
|
+
CardName?: string
|
11039
11159
|
/**
|
11040
11160
|
* 切片图片数据
|
11041
11161
|
注意:此字段可能返回 null,表示取不到有效值。
|
11042
11162
|
*/
|
11043
|
-
BorderCutImage
|
11163
|
+
BorderCutImage?: string
|
11044
11164
|
/**
|
11045
11165
|
* 卡号图片数据
|
11046
11166
|
注意:此字段可能返回 null,表示取不到有效值。
|
11047
11167
|
*/
|
11048
|
-
CardNoImage
|
11168
|
+
CardNoImage?: string
|
11049
11169
|
/**
|
11050
11170
|
* WarningCode 告警码列表和释义:
|
11051
11171
|
-9110:银行卡日期无效;
|
@@ -11056,18 +11176,45 @@ export interface BankCardOCRResponse {
|
|
11056
11176
|
(告警码可以同时存在多个)
|
11057
11177
|
注意:此字段可能返回 null,表示取不到有效值。
|
11058
11178
|
*/
|
11059
|
-
WarningCode
|
11179
|
+
WarningCode?: Array<number | bigint>
|
11060
11180
|
/**
|
11061
11181
|
* 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
|
11062
11182
|
注意:此字段可能返回 null,表示取不到有效值。
|
11063
11183
|
*/
|
11064
|
-
QualityValue
|
11184
|
+
QualityValue?: number
|
11065
11185
|
/**
|
11066
11186
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11067
11187
|
*/
|
11068
11188
|
RequestId?: string
|
11069
11189
|
}
|
11070
11190
|
|
11191
|
+
/**
|
11192
|
+
* 印章信息
|
11193
|
+
*/
|
11194
|
+
export interface SealInfo {
|
11195
|
+
/**
|
11196
|
+
* 印章主体内容
|
11197
|
+
*/
|
11198
|
+
SealBody: string
|
11199
|
+
/**
|
11200
|
+
* 印章坐标
|
11201
|
+
*/
|
11202
|
+
Location: Rect
|
11203
|
+
/**
|
11204
|
+
* 印章其它文本内容
|
11205
|
+
*/
|
11206
|
+
OtherTexts: Array<string>
|
11207
|
+
/**
|
11208
|
+
* 印章类型,表示为:
|
11209
|
+
圆形印章:0
|
11210
|
+
椭圆形印章:1
|
11211
|
+
方形印章:2
|
11212
|
+
菱形印章:3
|
11213
|
+
三角形印章:4
|
11214
|
+
*/
|
11215
|
+
SealShape: string
|
11216
|
+
}
|
11217
|
+
|
11071
11218
|
/**
|
11072
11219
|
* BusinessCardOCR请求参数结构体
|
11073
11220
|
*/
|
@@ -11108,51 +11255,51 @@ export interface RecognizePhilippinesDrivingLicenseOCRResponse {
|
|
11108
11255
|
/**
|
11109
11256
|
* 人像照片Base64后的结果
|
11110
11257
|
*/
|
11111
|
-
HeadPortrait
|
11258
|
+
HeadPortrait?: TextDetectionResult
|
11112
11259
|
/**
|
11113
11260
|
* 姓名
|
11114
11261
|
*/
|
11115
|
-
Name
|
11262
|
+
Name?: TextDetectionResult
|
11116
11263
|
/**
|
11117
11264
|
* 姓氏
|
11118
11265
|
*/
|
11119
|
-
LastName
|
11266
|
+
LastName?: TextDetectionResult
|
11120
11267
|
/**
|
11121
11268
|
* 首姓名
|
11122
11269
|
*/
|
11123
|
-
FirstName
|
11270
|
+
FirstName?: TextDetectionResult
|
11124
11271
|
/**
|
11125
11272
|
* 中间姓名
|
11126
11273
|
*/
|
11127
|
-
MiddleName
|
11274
|
+
MiddleName?: TextDetectionResult
|
11128
11275
|
/**
|
11129
11276
|
* 国籍
|
11130
11277
|
*/
|
11131
|
-
Nationality
|
11278
|
+
Nationality?: TextDetectionResult
|
11132
11279
|
/**
|
11133
11280
|
* 性别
|
11134
11281
|
*/
|
11135
|
-
Sex
|
11282
|
+
Sex?: TextDetectionResult
|
11136
11283
|
/**
|
11137
11284
|
* 地址
|
11138
11285
|
*/
|
11139
|
-
Address
|
11286
|
+
Address?: TextDetectionResult
|
11140
11287
|
/**
|
11141
11288
|
* 证号
|
11142
11289
|
*/
|
11143
|
-
LicenseNo
|
11290
|
+
LicenseNo?: TextDetectionResult
|
11144
11291
|
/**
|
11145
11292
|
* 有效期
|
11146
11293
|
*/
|
11147
|
-
ExpiresDate
|
11294
|
+
ExpiresDate?: TextDetectionResult
|
11148
11295
|
/**
|
11149
11296
|
* 机构代码
|
11150
11297
|
*/
|
11151
|
-
AgencyCode
|
11298
|
+
AgencyCode?: TextDetectionResult
|
11152
11299
|
/**
|
11153
11300
|
* 出生日期
|
11154
11301
|
*/
|
11155
|
-
Birthday
|
11302
|
+
Birthday?: TextDetectionResult
|
11156
11303
|
/**
|
11157
11304
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
11158
11305
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizeIndonesiaIDCardOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeStoreNameResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizeKoreanDrivingLicenseOCRResponse, RecognizeIndonesiaIDCardOCRRequest, RecognizeKoreanDrivingLicenseOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeStoreNameResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, RecognizeKoreanIDCardOCRResponse, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, ReconstructDocumentResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, RecognizePhilippinesVoteIDOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, VehicleRegCertOCRRequest, RecognizeKoreanIDCardOCRRequest, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RecognizePhilippinesUMIDOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -564,8 +564,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
564
564
|
*/
|
565
565
|
VatInvoiceVerify(req: VatInvoiceVerifyRequest, cb?: (error: string, rep: VatInvoiceVerifyResponse) => void): Promise<VatInvoiceVerifyResponse>;
|
566
566
|
/**
|
567
|
-
|
568
|
-
|
567
|
+
* 菲律宾驾驶证识别
|
568
|
+
|
569
|
+
默认接口请求频率限制:20次/秒。
|
570
|
+
*/
|
569
571
|
RecognizePhilippinesDrivingLicenseOCR(req: RecognizePhilippinesDrivingLicenseOCRRequest, cb?: (error: string, rep: RecognizePhilippinesDrivingLicenseOCRResponse) => void): Promise<RecognizePhilippinesDrivingLicenseOCRResponse>;
|
570
572
|
/**
|
571
573
|
* 本接口支持数学试题内容的识别和结构化输出,包括通用文本解析和小学/初中/高中数学公式解析能力(包括91种题型,180种符号),公式返回格式为 Latex 格式文本。
|
@@ -746,17 +748,21 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
746
748
|
*/
|
747
749
|
BankSlipOCR(req: BankSlipOCRRequest, cb?: (error: string, rep: BankSlipOCRResponse) => void): Promise<BankSlipOCRResponse>;
|
748
750
|
/**
|
749
|
-
*
|
751
|
+
* 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
|
750
752
|
|
751
753
|
默认接口请求频率限制:5次/秒。
|
752
754
|
*/
|
753
|
-
|
755
|
+
VehicleRegCertOCR(req: VehicleRegCertOCRRequest, cb?: (error: string, rep: VehicleRegCertOCRResponse) => void): Promise<VehicleRegCertOCRResponse>;
|
754
756
|
/**
|
755
757
|
* 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
756
758
|
|
757
759
|
默认接口请求频率限制:20次/秒。
|
758
760
|
*/
|
759
761
|
RecognizeTravelCardOCR(req: RecognizeTravelCardOCRRequest, cb?: (error: string, rep: RecognizeTravelCardOCRResponse) => void): Promise<RecognizeTravelCardOCRResponse>;
|
762
|
+
/**
|
763
|
+
* 韩国身份证识别
|
764
|
+
*/
|
765
|
+
RecognizeKoreanIDCardOCR(req: RecognizeKoreanIDCardOCRRequest, cb?: (error: string, rep: RecognizeKoreanIDCardOCRResponse) => void): Promise<RecognizeKoreanIDCardOCRResponse>;
|
760
766
|
/**
|
761
767
|
* 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
762
768
|
*/
|
@@ -775,6 +781,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
775
781
|
默认接口请求频率限制:10次/秒。
|
776
782
|
*/
|
777
783
|
DriverLicenseOCR(req: DriverLicenseOCRRequest, cb?: (error: string, rep: DriverLicenseOCRResponse) => void): Promise<DriverLicenseOCRResponse>;
|
784
|
+
/**
|
785
|
+
* 韩国驾驶证识别
|
786
|
+
*/
|
787
|
+
RecognizeKoreanDrivingLicenseOCR(req: RecognizeKoreanDrivingLicenseOCRRequest, cb?: (error: string, rep: RecognizeKoreanDrivingLicenseOCRResponse) => void): Promise<RecognizeKoreanDrivingLicenseOCRResponse>;
|
778
788
|
/**
|
779
789
|
* 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
|
780
790
|
|
@@ -913,11 +923,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
913
923
|
*/
|
914
924
|
AdvertiseOCR(req: AdvertiseOCRRequest, cb?: (error: string, rep: AdvertiseOCRResponse) => void): Promise<AdvertiseOCRResponse>;
|
915
925
|
/**
|
916
|
-
*
|
926
|
+
* 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
917
927
|
|
918
928
|
默认接口请求频率限制:5次/秒。
|
919
929
|
*/
|
920
|
-
|
930
|
+
ResidenceBookletOCR(req: ResidenceBookletOCRRequest, cb?: (error: string, rep: ResidenceBookletOCRResponse) => void): Promise<ResidenceBookletOCRResponse>;
|
921
931
|
/**
|
922
932
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
923
933
|
|
@@ -663,8 +663,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
663
663
|
return this.request("VatInvoiceVerify", req, cb);
|
664
664
|
}
|
665
665
|
/**
|
666
|
-
|
667
|
-
|
666
|
+
* 菲律宾驾驶证识别
|
667
|
+
|
668
|
+
默认接口请求频率限制:20次/秒。
|
669
|
+
*/
|
668
670
|
async RecognizePhilippinesDrivingLicenseOCR(req, cb) {
|
669
671
|
return this.request("RecognizePhilippinesDrivingLicenseOCR", req, cb);
|
670
672
|
}
|
@@ -891,12 +893,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
891
893
|
return this.request("BankSlipOCR", req, cb);
|
892
894
|
}
|
893
895
|
/**
|
894
|
-
*
|
896
|
+
* 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
|
895
897
|
|
896
898
|
默认接口请求频率限制:5次/秒。
|
897
899
|
*/
|
898
|
-
async
|
899
|
-
return this.request("
|
900
|
+
async VehicleRegCertOCR(req, cb) {
|
901
|
+
return this.request("VehicleRegCertOCR", req, cb);
|
900
902
|
}
|
901
903
|
/**
|
902
904
|
* 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
@@ -906,6 +908,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
906
908
|
async RecognizeTravelCardOCR(req, cb) {
|
907
909
|
return this.request("RecognizeTravelCardOCR", req, cb);
|
908
910
|
}
|
911
|
+
/**
|
912
|
+
* 韩国身份证识别
|
913
|
+
*/
|
914
|
+
async RecognizeKoreanIDCardOCR(req, cb) {
|
915
|
+
return this.request("RecognizeKoreanIDCardOCR", req, cb);
|
916
|
+
}
|
909
917
|
/**
|
910
918
|
* 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
911
919
|
*/
|
@@ -928,6 +936,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
928
936
|
async DriverLicenseOCR(req, cb) {
|
929
937
|
return this.request("DriverLicenseOCR", req, cb);
|
930
938
|
}
|
939
|
+
/**
|
940
|
+
* 韩国驾驶证识别
|
941
|
+
*/
|
942
|
+
async RecognizeKoreanDrivingLicenseOCR(req, cb) {
|
943
|
+
return this.request("RecognizeKoreanDrivingLicenseOCR", req, cb);
|
944
|
+
}
|
931
945
|
/**
|
932
946
|
* 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
|
933
947
|
|
@@ -1092,12 +1106,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
1092
1106
|
return this.request("AdvertiseOCR", req, cb);
|
1093
1107
|
}
|
1094
1108
|
/**
|
1095
|
-
*
|
1109
|
+
* 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
1096
1110
|
|
1097
1111
|
默认接口请求频率限制:5次/秒。
|
1098
1112
|
*/
|
1099
|
-
async
|
1100
|
-
return this.request("
|
1113
|
+
async ResidenceBookletOCR(req, cb) {
|
1114
|
+
return this.request("ResidenceBookletOCR", req, cb);
|
1101
1115
|
}
|
1102
1116
|
/**
|
1103
1117
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|