tencentcloud-sdk-nodejs-ocr 4.0.445 → 4.0.447
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/CHANGELOG.md +590 -0
- package/SERVICE_CHANGELOG.md +699 -7
- package/package.json +1 -1
- package/products.md +16 -16
- package/src/services/ocr/v20181119/ocr_client.ts +22 -10
- package/src/services/ocr/v20181119/ocr_models.ts +159 -93
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +7 -3
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +9 -3
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +144 -85
package/package.json
CHANGED
package/products.md
CHANGED
@@ -37,14 +37,14 @@
|
|
37
37
|
| casb | [云数据加密代理网关](https://cloud.tencent.com/document/product/1303) | 2022-04-04 06:11:55 |
|
38
38
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2022-09-15 11:03:22 |
|
39
39
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2022-09-08 06:11:23 |
|
40
|
-
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-09-
|
41
|
-
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-09-
|
40
|
+
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2022-09-21 06:12:40 |
|
41
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2022-09-21 06:12:53 |
|
42
42
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2022-07-30 15:07:54 |
|
43
43
|
| cdn | [内容分发网络](https://cloud.tencent.com/document/product/228) | 2022-09-19 06:14:28 |
|
44
44
|
| cds | [数据安全审计](https://cloud.tencent.com/document/product/856) | 2022-04-04 06:17:07 |
|
45
45
|
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2022-07-22 06:04:01 |
|
46
46
|
| cfs | [文件存储](https://cloud.tencent.com/document/product/582) | 2022-09-07 06:15:13 |
|
47
|
-
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-09-
|
47
|
+
| cfw | [云防火墙](https://cloud.tencent.com/document/product/1132) | 2022-09-20 06:15:17 |
|
48
48
|
| chdfs | [云 HDFS](https://cloud.tencent.com/document/product/1105) | 2022-07-04 06:04:36 |
|
49
49
|
| ciam | [账号风控平台](https://cloud.tencent.com/document/product/1441) | 2022-07-19 20:27:09 |
|
50
50
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2022-06-27 06:06:02 |
|
@@ -61,7 +61,7 @@
|
|
61
61
|
| cms | [内容安全](https://cloud.tencent.com/document/product) | 2020-10-29 08:03:08 |
|
62
62
|
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2022-09-14 06:15:14 |
|
63
63
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
64
|
-
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-09-
|
64
|
+
| cvm | [云服务器](https://cloud.tencent.com/document/product/213) | 2022-09-21 06:19:55 |
|
65
65
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2022-09-16 06:18:26 |
|
66
66
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
67
67
|
| cynosdb | [云原生数据库 TDSQL-C](https://cloud.tencent.com/document/product/1003) | 2022-09-14 06:18:19 |
|
@@ -87,10 +87,10 @@
|
|
87
87
|
| eis | [企业集成服务](https://cloud.tencent.com/document/product/1270) | 2022-08-16 06:23:41 |
|
88
88
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2022-09-06 06:30:34 |
|
89
89
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2022-09-16 06:24:23 |
|
90
|
-
| ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-09-
|
91
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-09-
|
90
|
+
| ess | [电子签服务](https://cloud.tencent.com/document/product/1323) | 2022-09-20 21:03:08 |
|
91
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2022-09-20 21:03:25 |
|
92
92
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2022-06-15 06:09:10 |
|
93
|
-
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-09-
|
93
|
+
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2022-09-20 06:29:06 |
|
94
94
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2022-04-04 06:43:06 |
|
95
95
|
| ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2022-04-04 06:43:12 |
|
96
96
|
| gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2022-09-01 06:29:26 |
|
@@ -111,10 +111,10 @@
|
|
111
111
|
| iotcloud | [物联网通信](https://cloud.tencent.com/document/product/634) | 2022-08-16 06:27:22 |
|
112
112
|
| iotexplorer | [物联网开发平台](https://cloud.tencent.com/document/product/1081) | 2022-09-12 06:28:33 |
|
113
113
|
| iottid | [物联网设备身份认证](https://cloud.tencent.com/document/product/1086) | 2022-04-04 06:49:46 |
|
114
|
-
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-
|
114
|
+
| iotvideo | [物联网智能视频服务](https://cloud.tencent.com/document/product/1131) | 2022-09-21 06:33:00 |
|
115
115
|
| iotvideoindustry | [物联网智能视频服务(行业版)](https://cloud.tencent.com/document/product/1361) | 2022-08-11 06:37:02 |
|
116
116
|
| irp | [智能推荐平台](https://cloud.tencent.com/document/product/1541) | 2022-08-19 06:27:03 |
|
117
|
-
| ivld | [视频智能标签](https://cloud.tencent.com/document/product/1509) | 2022-
|
117
|
+
| ivld | [视频智能标签](https://cloud.tencent.com/document/product/1509) | 2022-09-20 19:36:34 |
|
118
118
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2022-08-05 06:26:44 |
|
119
119
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2022-09-14 06:27:13 |
|
120
120
|
| live | [云直播](https://cloud.tencent.com/document/product/267) | 2022-09-16 06:31:07 |
|
@@ -126,9 +126,9 @@
|
|
126
126
|
| mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 |
|
127
127
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2022-08-25 06:38:57 |
|
128
128
|
| mna | [移动网络加速](https://cloud.tencent.com/document/product/1385) | 2022-09-14 20:21:28 |
|
129
|
-
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-09-
|
129
|
+
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2022-09-21 06:37:03 |
|
130
130
|
| monitor | [云监控](https://cloud.tencent.com/document/product/248) | 2022-09-15 06:31:40 |
|
131
|
-
| mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2022-09-
|
131
|
+
| mps | [视频处理](https://cloud.tencent.com/document/product/862) | 2022-09-20 06:38:58 |
|
132
132
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2022-06-28 06:14:04 |
|
133
133
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2022-09-16 17:41:33 |
|
134
134
|
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2022-04-04 07:00:13 |
|
@@ -136,7 +136,7 @@
|
|
136
136
|
| nlp | [自然语言处理](https://cloud.tencent.com/document/product/271) | 2022-04-13 07:00:13 |
|
137
137
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
138
138
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2022-08-30 06:43:16 |
|
139
|
-
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-09-
|
139
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2022-09-21 06:39:36 |
|
140
140
|
| organization | [企业组织](https://cloud.tencent.com/document/product/850) | 2022-07-21 06:14:50 |
|
141
141
|
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2022-09-05 06:41:45 |
|
142
142
|
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2022-04-04 07:02:02 |
|
@@ -182,14 +182,14 @@
|
|
182
182
|
| tdid | [分布式身份](https://cloud.tencent.com/document/product/1439) | 2022-04-04 07:15:50 |
|
183
183
|
| tdmq | [分布式消息队列](https://cloud.tencent.com/document/product/1179) | 2022-07-29 06:15:49 |
|
184
184
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2022-09-07 06:51:54 |
|
185
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-09-
|
185
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2022-09-20 06:52:09 |
|
186
186
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2022-06-02 06:15:03 |
|
187
187
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
188
188
|
| tic | [腾讯云IaC平台](https://cloud.tencent.com/document/product/1213) | 2022-04-04 07:16:52 |
|
189
189
|
| ticm | [智能鉴黄](https://cloud.tencent.com/document/product/864) | 2021-01-07 08:08:15 |
|
190
190
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2022-04-04 07:16:59 |
|
191
191
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
192
|
-
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-09-
|
192
|
+
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2022-09-20 06:53:40 |
|
193
193
|
| tione | [腾讯云 TI 平台 TI-ONE](https://cloud.tencent.com/document/product/851) | 2022-09-06 13:11:30 |
|
194
194
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2022-05-17 06:17:19 |
|
195
195
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2022-09-15 06:43:33 |
|
@@ -197,7 +197,7 @@
|
|
197
197
|
| tms | [文本内容安全](https://cloud.tencent.com/document/product/1124) | 2022-04-04 07:18:11 |
|
198
198
|
| tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2022-08-31 06:55:53 |
|
199
199
|
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2022-09-02 07:00:24 |
|
200
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-09-
|
200
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2022-09-20 06:56:04 |
|
201
201
|
| tse | [腾讯云微服务引擎](https://cloud.tencent.com/document/product/1364) | 2022-08-24 06:56:05 |
|
202
202
|
| tsf | [腾讯微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2022-07-27 06:18:08 |
|
203
203
|
| tsw | [腾讯微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2022-04-04 07:22:40 |
|
@@ -209,7 +209,7 @@
|
|
209
209
|
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2022-09-16 06:49:40 |
|
210
210
|
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2022-09-15 06:49:04 |
|
211
211
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2022-04-04 07:39:05 |
|
212
|
-
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-09-
|
212
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2022-09-19 21:02:53 |
|
213
213
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
214
214
|
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2022-09-16 06:52:09 |
|
215
215
|
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
@@ -46,11 +46,11 @@ import {
|
|
46
46
|
LicensePlateInfo,
|
47
47
|
SingleInvoiceInfo,
|
48
48
|
TextFormula,
|
49
|
-
|
49
|
+
HmtResidentPermitOCRResponse,
|
50
50
|
VatInvoiceItem,
|
51
51
|
VehicleRegCertInfo,
|
52
52
|
VehicleLicenseOCRRequest,
|
53
|
-
|
53
|
+
ImageEnhancementRequest,
|
54
54
|
SealInfo,
|
55
55
|
RecognizePhilippinesVoteIDOCRRequest,
|
56
56
|
InvoiceGeneralInfo,
|
@@ -122,6 +122,7 @@ import {
|
|
122
122
|
TextGeneralHandwriting,
|
123
123
|
TableOCRRequest,
|
124
124
|
UsedVehicleInvoiceInfo,
|
125
|
+
ImageEnhancementResponse,
|
125
126
|
QrcodeImgSize,
|
126
127
|
PassportOCRResponse,
|
127
128
|
VerifyBasicBizLicenseResponse,
|
@@ -146,6 +147,7 @@ import {
|
|
146
147
|
Polygon,
|
147
148
|
GeneralAccurateOCRRequest,
|
148
149
|
OrgCodeCertOCRRequest,
|
150
|
+
MixedInvoiceDetectRequest,
|
149
151
|
FlightInvoiceOCRResponse,
|
150
152
|
TextDetectionResult,
|
151
153
|
InstitutionOCRRequest,
|
@@ -200,7 +202,7 @@ import {
|
|
200
202
|
QrcodeResultsInfo,
|
201
203
|
MainlandPermitOCRResponse,
|
202
204
|
VatInvoice,
|
203
|
-
|
205
|
+
MLIDCardOCRRequest,
|
204
206
|
EnglishOCRResponse,
|
205
207
|
BusInvoiceOCRRequest,
|
206
208
|
QuotaInvoiceOCRResponse,
|
@@ -218,7 +220,7 @@ import {
|
|
218
220
|
VatRollInvoiceInfo,
|
219
221
|
RecognizeOnlineTaxiItineraryOCRRequest,
|
220
222
|
IDCardOCRRequest,
|
221
|
-
|
223
|
+
EnterpriseLicenseOCRResponse,
|
222
224
|
WaybillOCRRequest,
|
223
225
|
VinOCRRequest,
|
224
226
|
RideHailingTransportLicenseOCRRequest,
|
@@ -270,13 +272,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
270
272
|
}
|
271
273
|
|
272
274
|
/**
|
273
|
-
*
|
275
|
+
* 图像增强
|
274
276
|
*/
|
275
|
-
async
|
276
|
-
req:
|
277
|
-
cb?: (error: string, rep:
|
278
|
-
): Promise<
|
279
|
-
return this.request("
|
277
|
+
async ImageEnhancement(
|
278
|
+
req: ImageEnhancementRequest,
|
279
|
+
cb?: (error: string, rep: ImageEnhancementResponse) => void
|
280
|
+
): Promise<ImageEnhancementResponse> {
|
281
|
+
return this.request("ImageEnhancement", req, cb)
|
280
282
|
}
|
281
283
|
|
282
284
|
/**
|
@@ -625,6 +627,16 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
625
627
|
return this.request("WaybillOCR", req, cb)
|
626
628
|
}
|
627
629
|
|
630
|
+
/**
|
631
|
+
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
632
|
+
*/
|
633
|
+
async VatInvoiceVerify(
|
634
|
+
req: VatInvoiceVerifyRequest,
|
635
|
+
cb?: (error: string, rep: VatInvoiceVerifyResponse) => void
|
636
|
+
): Promise<VatInvoiceVerifyResponse> {
|
637
|
+
return this.request("VatInvoiceVerify", req, cb)
|
638
|
+
}
|
639
|
+
|
628
640
|
/**
|
629
641
|
* 本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
|
630
642
|
*/
|
@@ -1049,29 +1049,64 @@ export interface TextFormula {
|
|
1049
1049
|
}
|
1050
1050
|
|
1051
1051
|
/**
|
1052
|
-
*
|
1052
|
+
* HmtResidentPermitOCR返回参数结构体
|
1053
1053
|
*/
|
1054
|
-
export interface
|
1054
|
+
export interface HmtResidentPermitOCRResponse {
|
1055
1055
|
/**
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
*/
|
1060
|
-
ImageBase64?: string
|
1056
|
+
* 证件姓名
|
1057
|
+
*/
|
1058
|
+
Name: string
|
1061
1059
|
|
1062
1060
|
/**
|
1063
|
-
|
1064
|
-
|
1065
|
-
|
1066
|
-
|
1067
|
-
|
1061
|
+
* 性别
|
1062
|
+
*/
|
1063
|
+
Sex: string
|
1064
|
+
|
1065
|
+
/**
|
1066
|
+
* 出生日期
|
1067
|
+
*/
|
1068
|
+
Birth: string
|
1069
|
+
|
1070
|
+
/**
|
1071
|
+
* 地址
|
1072
|
+
*/
|
1073
|
+
Address: string
|
1074
|
+
|
1075
|
+
/**
|
1076
|
+
* 身份证号
|
1077
|
+
*/
|
1078
|
+
IdCardNo: string
|
1079
|
+
|
1080
|
+
/**
|
1081
|
+
* 0-正面
|
1082
|
+
1-反面
|
1068
1083
|
*/
|
1069
|
-
|
1084
|
+
CardType: number
|
1070
1085
|
|
1071
1086
|
/**
|
1072
|
-
*
|
1087
|
+
* 证件有效期限
|
1073
1088
|
*/
|
1074
|
-
|
1089
|
+
ValidDate: string
|
1090
|
+
|
1091
|
+
/**
|
1092
|
+
* 签发机关
|
1093
|
+
*/
|
1094
|
+
Authority: string
|
1095
|
+
|
1096
|
+
/**
|
1097
|
+
* 签发次数
|
1098
|
+
*/
|
1099
|
+
VisaNum: string
|
1100
|
+
|
1101
|
+
/**
|
1102
|
+
* 通行证号码
|
1103
|
+
*/
|
1104
|
+
PassNo: string
|
1105
|
+
|
1106
|
+
/**
|
1107
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1108
|
+
*/
|
1109
|
+
RequestId?: string
|
1075
1110
|
}
|
1076
1111
|
|
1077
1112
|
/**
|
@@ -1181,23 +1216,47 @@ DOUBLE 为行驶证主页正面和副页正面。
|
|
1181
1216
|
}
|
1182
1217
|
|
1183
1218
|
/**
|
1184
|
-
*
|
1219
|
+
* ImageEnhancement请求参数结构体
|
1185
1220
|
*/
|
1186
|
-
export interface
|
1221
|
+
export interface ImageEnhancementRequest {
|
1187
1222
|
/**
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1223
|
+
* 图片的 Base64 值。
|
1224
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1225
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1226
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1227
|
+
*/
|
1228
|
+
ImageBase64?: string
|
1191
1229
|
|
1192
1230
|
/**
|
1193
|
-
|
1194
|
-
|
1195
|
-
|
1231
|
+
* 图片的 Url 地址。
|
1232
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1233
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1234
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1235
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1236
|
+
*/
|
1237
|
+
ImageUrl?: string
|
1196
1238
|
|
1197
1239
|
/**
|
1198
|
-
|
1199
|
-
|
1200
|
-
|
1240
|
+
* 默认为空,ReturnImage的取值以及含义如下:
|
1241
|
+
“preprocess”: 返回预处理后的图片数据
|
1242
|
+
“origin”:返回原图片数据
|
1243
|
+
" ":不返回图片数据
|
1244
|
+
*/
|
1245
|
+
ReturnImage?: string
|
1246
|
+
|
1247
|
+
/**
|
1248
|
+
* 默认值为1,指定图像增强方法:
|
1249
|
+
1:切边增强
|
1250
|
+
2:弯曲矫正
|
1251
|
+
202:黑白模式
|
1252
|
+
204:提亮模式
|
1253
|
+
205:灰度模式
|
1254
|
+
207:省墨模式
|
1255
|
+
208:文字锐化(适合非彩色图片)
|
1256
|
+
301:去摩尔纹
|
1257
|
+
302:去除阴影
|
1258
|
+
*/
|
1259
|
+
TaskType?: number
|
1201
1260
|
}
|
1202
1261
|
|
1203
1262
|
/**
|
@@ -3425,6 +3484,28 @@ export interface UsedVehicleInvoiceInfo {
|
|
3425
3484
|
MarketTel: string
|
3426
3485
|
}
|
3427
3486
|
|
3487
|
+
/**
|
3488
|
+
* ImageEnhancement返回参数结构体
|
3489
|
+
*/
|
3490
|
+
export interface ImageEnhancementResponse {
|
3491
|
+
/**
|
3492
|
+
* 图片数据标识:
|
3493
|
+
“origin”:原图
|
3494
|
+
“preprocess”:预处理后的图
|
3495
|
+
*/
|
3496
|
+
ImageTag: string
|
3497
|
+
|
3498
|
+
/**
|
3499
|
+
* 图片数据,返回预处理后图像或原图像base64字符
|
3500
|
+
*/
|
3501
|
+
Image: string
|
3502
|
+
|
3503
|
+
/**
|
3504
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
3505
|
+
*/
|
3506
|
+
RequestId?: string
|
3507
|
+
}
|
3508
|
+
|
3428
3509
|
/**
|
3429
3510
|
* 图片大小
|
3430
3511
|
*/
|
@@ -4383,6 +4464,33 @@ export interface OrgCodeCertOCRRequest {
|
|
4383
4464
|
ImageUrl?: string
|
4384
4465
|
}
|
4385
4466
|
|
4467
|
+
/**
|
4468
|
+
* MixedInvoiceDetect请求参数结构体
|
4469
|
+
*/
|
4470
|
+
export interface MixedInvoiceDetectRequest {
|
4471
|
+
/**
|
4472
|
+
* 是否需要返回裁剪后的图片。
|
4473
|
+
*/
|
4474
|
+
ReturnImage: boolean
|
4475
|
+
|
4476
|
+
/**
|
4477
|
+
* 图片的 Base64 值。
|
4478
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4479
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
4480
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
4481
|
+
*/
|
4482
|
+
ImageBase64?: string
|
4483
|
+
|
4484
|
+
/**
|
4485
|
+
* 图片的 Url 地址。
|
4486
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
4487
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
4488
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
4489
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
4490
|
+
*/
|
4491
|
+
ImageUrl?: string
|
4492
|
+
}
|
4493
|
+
|
4386
4494
|
/**
|
4387
4495
|
* FlightInvoiceOCR返回参数结构体
|
4388
4496
|
*/
|
@@ -6200,64 +6308,29 @@ Y: 有清单 N:无清单
|
|
6200
6308
|
}
|
6201
6309
|
|
6202
6310
|
/**
|
6203
|
-
*
|
6311
|
+
* MLIDCardOCR请求参数结构体
|
6204
6312
|
*/
|
6205
|
-
export interface
|
6206
|
-
/**
|
6207
|
-
* 证件姓名
|
6208
|
-
*/
|
6209
|
-
Name: string
|
6210
|
-
|
6211
|
-
/**
|
6212
|
-
* 性别
|
6213
|
-
*/
|
6214
|
-
Sex: string
|
6215
|
-
|
6216
|
-
/**
|
6217
|
-
* 出生日期
|
6218
|
-
*/
|
6219
|
-
Birth: string
|
6220
|
-
|
6221
|
-
/**
|
6222
|
-
* 地址
|
6223
|
-
*/
|
6224
|
-
Address: string
|
6225
|
-
|
6226
|
-
/**
|
6227
|
-
* 身份证号
|
6228
|
-
*/
|
6229
|
-
IdCardNo: string
|
6230
|
-
|
6313
|
+
export interface MLIDCardOCRRequest {
|
6231
6314
|
/**
|
6232
|
-
*
|
6233
|
-
|
6315
|
+
* 图片的 Base64 值。
|
6316
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
6317
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
6234
6318
|
*/
|
6235
|
-
|
6236
|
-
|
6237
|
-
/**
|
6238
|
-
* 证件有效期限
|
6239
|
-
*/
|
6240
|
-
ValidDate: string
|
6241
|
-
|
6242
|
-
/**
|
6243
|
-
* 签发机关
|
6244
|
-
*/
|
6245
|
-
Authority: string
|
6246
|
-
|
6247
|
-
/**
|
6248
|
-
* 签发次数
|
6249
|
-
*/
|
6250
|
-
VisaNum: string
|
6319
|
+
ImageBase64?: string
|
6251
6320
|
|
6252
6321
|
/**
|
6253
|
-
|
6254
|
-
|
6255
|
-
|
6322
|
+
* 图片的 Url 地址。( 中国地区之外不支持这个字段 )
|
6323
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
6324
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
6325
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
6326
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
6327
|
+
*/
|
6328
|
+
ImageUrl?: string
|
6256
6329
|
|
6257
6330
|
/**
|
6258
|
-
*
|
6331
|
+
* 是否返回图片,默认false
|
6259
6332
|
*/
|
6260
|
-
|
6333
|
+
RetImage?: boolean
|
6261
6334
|
}
|
6262
6335
|
|
6263
6336
|
/**
|
@@ -6745,30 +6818,23 @@ Config = {"CropIdCard":true,"CropPortrait":true}
|
|
6745
6818
|
}
|
6746
6819
|
|
6747
6820
|
/**
|
6748
|
-
*
|
6821
|
+
* EnterpriseLicenseOCR返回参数结构体
|
6749
6822
|
*/
|
6750
|
-
export interface
|
6823
|
+
export interface EnterpriseLicenseOCRResponse {
|
6751
6824
|
/**
|
6752
|
-
*
|
6825
|
+
* 企业证照识别结果,具体内容请点击左侧链接。
|
6753
6826
|
*/
|
6754
|
-
|
6827
|
+
EnterpriseLicenseInfos: Array<EnterpriseLicenseInfo>
|
6755
6828
|
|
6756
6829
|
/**
|
6757
|
-
|
6758
|
-
|
6759
|
-
|
6760
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
6761
|
-
*/
|
6762
|
-
ImageBase64?: string
|
6830
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
|
6831
|
+
*/
|
6832
|
+
Angle: number
|
6763
6833
|
|
6764
6834
|
/**
|
6765
|
-
|
6766
|
-
|
6767
|
-
|
6768
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
6769
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
6770
|
-
*/
|
6771
|
-
ImageUrl?: string
|
6835
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6836
|
+
*/
|
6837
|
+
RequestId?: string
|
6772
6838
|
}
|
6773
6839
|
|
6774
6840
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, VehicleLicenseOCRRequest, ImageEnhancementRequest, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, BankCardOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, InsuranceBillOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, VerifyEnterpriseFourFactorsRequest, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, MixedInvoiceDetectRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, QueryBarCodeResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VehicleRegCertOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizePhilippinesVoteIDOCRResponse, QueryBarCodeRequest, OrgCodeCertOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeMedicalInvoiceOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, EnterpriseLicenseOCRResponse, WaybillOCRRequest, VinOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, VerifyEnterpriseFourFactorsResponse, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -17,9 +17,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
17
17
|
*/
|
18
18
|
VerifyBasicBizLicense(req: VerifyBasicBizLicenseRequest, cb?: (error: string, rep: VerifyBasicBizLicenseResponse) => void): Promise<VerifyBasicBizLicenseResponse>;
|
19
19
|
/**
|
20
|
-
*
|
20
|
+
* 图像增强
|
21
21
|
*/
|
22
|
-
|
22
|
+
ImageEnhancement(req: ImageEnhancementRequest, cb?: (error: string, rep: ImageEnhancementResponse) => void): Promise<ImageEnhancementResponse>;
|
23
23
|
/**
|
24
24
|
* 本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
|
25
25
|
|
@@ -234,6 +234,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
234
234
|
默认接口请求频率限制:10次/秒。
|
235
235
|
*/
|
236
236
|
WaybillOCR(req: WaybillOCRRequest, cb?: (error: string, rep: WaybillOCRResponse) => void): Promise<WaybillOCRResponse>;
|
237
|
+
/**
|
238
|
+
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
239
|
+
*/
|
240
|
+
VatInvoiceVerify(req: VatInvoiceVerifyRequest, cb?: (error: string, rep: VatInvoiceVerifyResponse) => void): Promise<VatInvoiceVerifyResponse>;
|
237
241
|
/**
|
238
242
|
* 本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
|
239
243
|
*/
|
@@ -42,10 +42,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
42
42
|
return this.request("VerifyBasicBizLicense", req, cb);
|
43
43
|
}
|
44
44
|
/**
|
45
|
-
*
|
45
|
+
* 图像增强
|
46
46
|
*/
|
47
|
-
async
|
48
|
-
return this.request("
|
47
|
+
async ImageEnhancement(req, cb) {
|
48
|
+
return this.request("ImageEnhancement", req, cb);
|
49
49
|
}
|
50
50
|
/**
|
51
51
|
* 本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
|
@@ -305,6 +305,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
305
305
|
async WaybillOCR(req, cb) {
|
306
306
|
return this.request("WaybillOCR", req, cb);
|
307
307
|
}
|
308
|
+
/**
|
309
|
+
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
310
|
+
*/
|
311
|
+
async VatInvoiceVerify(req, cb) {
|
312
|
+
return this.request("VatInvoiceVerify", req, cb);
|
313
|
+
}
|
308
314
|
/**
|
309
315
|
* 本接口支持出租车发票关键字段的识别,包括发票号码、发票代码、金额、日期、上下车时间、里程、车牌号、发票类型及所属地区等字段。
|
310
316
|
*/
|