tencentcloud-sdk-nodejs-ocr 4.0.781 → 4.0.783
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 +20 -20
- package/src/services/ocr/v20181119/ocr_client.ts +21 -9
- package/src/services/ocr/v20181119/ocr_models.ts +71 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +10 -6
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +12 -6
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +69 -0
package/package.json
CHANGED
package/products.md
CHANGED
@@ -39,10 +39,10 @@
|
|
39
39
|
| car | [应用云渲染](https://cloud.tencent.com/document/product/1547) | 2024-01-11 01:07:51 |
|
40
40
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2023-12-29 01:09:11 |
|
41
41
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-12-27 01:08:57 |
|
42
|
-
| ccc | [云联络中心](https://cloud.tencent.com/document/product/679) |
|
42
|
+
| ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2024-01-16 14:53:34 |
|
43
43
|
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-01-05 01:08:31 |
|
44
44
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-01-15 01:08:17 |
|
45
|
-
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-01-
|
45
|
+
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-01-17 01:09:06 |
|
46
46
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2023-08-17 01:43:06 |
|
47
47
|
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2024-01-04 01:08:58 |
|
48
48
|
| cdwdoris | [腾讯云数据仓库 TCHouse-D](https://cloud.tencent.com/document/product/1387) | 2024-01-05 01:09:22 |
|
@@ -55,7 +55,7 @@
|
|
55
55
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
|
56
56
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
57
57
|
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
58
|
-
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) |
|
58
|
+
| ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2024-01-17 01:10:02 |
|
59
59
|
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-01-10 01:09:43 |
|
60
60
|
| cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-15 01:09:37 |
|
61
61
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-08-17 01:57:08 |
|
@@ -73,10 +73,10 @@
|
|
73
73
|
| cwp | [主机安全](https://cloud.tencent.com/document/product/296) | 2024-01-05 01:11:37 |
|
74
74
|
| cws | [漏洞扫描服务](https://cloud.tencent.com/document/product) | 2019-11-22 12:16:15 |
|
75
75
|
| cynosdb | [TDSQL-C MySQL 版](https://cloud.tencent.com/document/product/1003) | 2024-01-10 01:11:56 |
|
76
|
-
| dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-01-
|
76
|
+
| dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-01-17 01:12:30 |
|
77
77
|
| dataintegration | [数据接入平台](https://cloud.tencent.com/document/product/1591) | 2022-07-26 15:32:15 |
|
78
78
|
| dayu | [DDoS 高防包](https://cloud.tencent.com/document/product/1021) | 2023-05-18 01:20:11 |
|
79
|
-
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) |
|
79
|
+
| dbbrain | [数据库智能管家 DBbrain](https://cloud.tencent.com/document/product/1130) | 2024-01-16 01:12:56 |
|
80
80
|
| dbdc | [云数据库独享集群](https://cloud.tencent.com/document/product/1322) | 2023-08-22 01:11:33 |
|
81
81
|
| dc | [专线接入](https://cloud.tencent.com/document/product/216) | 2024-01-11 01:12:33 |
|
82
82
|
| dcdb | [TDSQL MySQL 版](https://cloud.tencent.com/document/product/557) | 2023-10-30 00:33:47 |
|
@@ -88,7 +88,7 @@
|
|
88
88
|
| dsgc | [数据安全治理中心](https://cloud.tencent.com/document/product/1087) | 2023-11-29 01:53:04 |
|
89
89
|
| dtf | [分布式事务](https://cloud.tencent.com/document/product/1224) | 2022-04-04 06:38:57 |
|
90
90
|
| dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2024-01-15 01:13:18 |
|
91
|
-
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) |
|
91
|
+
| eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2024-01-17 01:14:14 |
|
92
92
|
| ecc | [英文作文批改](https://cloud.tencent.com/document/product/1076) | 2023-09-13 01:42:58 |
|
93
93
|
| ecdn | [全站加速网络](https://cloud.tencent.com/document/product/570) | 2023-08-17 03:03:04 |
|
94
94
|
| ecm | [边缘计算机器](https://cloud.tencent.com/document/product/1108) | 2023-12-20 01:36:00 |
|
@@ -96,8 +96,8 @@
|
|
96
96
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 |
|
97
97
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-12-25 00:10:01 |
|
98
98
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-01-03 01:15:03 |
|
99
|
-
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-01-
|
100
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-01-
|
99
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-01-17 01:14:55 |
|
100
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-01-16 01:15:09 |
|
101
101
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-12-15 19:41:44 |
|
102
102
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-01-12 01:15:37 |
|
103
103
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-12-25 00:11:01 |
|
@@ -134,7 +134,7 @@
|
|
134
134
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2023-08-17 03:51:31 |
|
135
135
|
| lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2023-12-21 01:48:52 |
|
136
136
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-01-03 01:18:19 |
|
137
|
-
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) |
|
137
|
+
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-01-17 01:17:58 |
|
138
138
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
139
139
|
| lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 |
|
140
140
|
| mall | [商场客留大数据](https://cloud.tencent.com/document/product/1707) | 2023-07-17 10:16:02 |
|
@@ -145,7 +145,7 @@
|
|
145
145
|
| mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2023-05-18 01:39:20 |
|
146
146
|
| mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2023-12-01 01:19:47 |
|
147
147
|
| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2023-12-27 01:26:46 |
|
148
|
-
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-01-
|
148
|
+
| monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-01-17 01:18:35 |
|
149
149
|
| mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-01-09 01:20:43 |
|
150
150
|
| mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-01-08 00:14:42 |
|
151
151
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2023-12-05 02:07:42 |
|
@@ -154,9 +154,9 @@
|
|
154
154
|
| nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2023-09-15 02:14:19 |
|
155
155
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
156
156
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2024-01-05 01:21:32 |
|
157
|
-
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2024-01-
|
157
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2024-01-16 01:19:57 |
|
158
158
|
| omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2024-01-05 01:21:57 |
|
159
|
-
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) |
|
159
|
+
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2024-01-17 01:19:45 |
|
160
160
|
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2023-08-17 04:23:46 |
|
161
161
|
| pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2023-05-18 01:44:14 |
|
162
162
|
| postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2023-11-14 01:22:46 |
|
@@ -176,12 +176,12 @@
|
|
176
176
|
| sms | [短信](https://cloud.tencent.com/document/product/382) | 2023-11-28 01:23:01 |
|
177
177
|
| soe | [智聆口语评测](https://cloud.tencent.com/document/product/884) | 2023-10-16 01:23:02 |
|
178
178
|
| solar | [智汇零售](https://cloud.tencent.com/document/product) | 2020-03-19 08:01:59 |
|
179
|
-
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-01-
|
179
|
+
| sqlserver | [云数据库 SQL Server](https://cloud.tencent.com/document/product/238) | 2024-01-17 01:21:16 |
|
180
180
|
| ssa | [安全运营中心](https://cloud.tencent.com/document/product/664) | 2023-11-15 02:18:28 |
|
181
181
|
| ssl | [SSL 证书](https://cloud.tencent.com/document/product/400) | 2023-12-20 02:05:02 |
|
182
182
|
| sslpod | [证书监控 SSLPod](https://cloud.tencent.com/document/product/1084) | 2023-08-17 04:46:28 |
|
183
183
|
| ssm | [凭据管理系统](https://cloud.tencent.com/document/product/1140) | 2023-12-28 01:23:11 |
|
184
|
-
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) |
|
184
|
+
| sts | [安全凭证服务](https://cloud.tencent.com/document/product/1312) | 2024-01-17 01:21:44 |
|
185
185
|
| taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2023-08-17 04:47:19 |
|
186
186
|
| tag | [标签](https://cloud.tencent.com/document/product/651) | 2023-12-22 01:22:58 |
|
187
187
|
| tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2023-05-18 01:50:16 |
|
@@ -212,7 +212,7 @@
|
|
212
212
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2023-08-17 05:26:12 |
|
213
213
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
214
214
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2023-09-01 01:23:47 |
|
215
|
-
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-01-
|
215
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2024-01-16 01:24:12 |
|
216
216
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-12-29 01:26:38 |
|
217
217
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-12-26 01:27:04 |
|
218
218
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
@@ -223,7 +223,7 @@
|
|
223
223
|
| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-01-04 01:25:28 |
|
224
224
|
| trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2023-12-29 01:27:21 |
|
225
225
|
| trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2023-07-18 01:53:24 |
|
226
|
-
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-01-
|
226
|
+
| trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-01-16 14:56:12 |
|
227
227
|
| tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2024-01-12 01:26:19 |
|
228
228
|
| tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-01-15 01:25:03 |
|
229
229
|
| tsw | [微服务观测平台 TSW](https://cloud.tencent.com/document/product/1311) | 2023-05-18 02:04:00 |
|
@@ -232,12 +232,12 @@
|
|
232
232
|
| vm | [视频内容安全](https://cloud.tencent.com/document/product/1265) | 2023-12-22 01:27:31 |
|
233
233
|
| vms | [语音消息](https://cloud.tencent.com/document/product/1128) | 2023-08-17 05:50:56 |
|
234
234
|
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2024-01-09 01:28:56 |
|
235
|
-
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-01-
|
235
|
+
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2024-01-17 01:26:10 |
|
236
236
|
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-11-27 00:23:42 |
|
237
|
-
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) |
|
237
|
+
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2024-01-17 01:26:45 |
|
238
238
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2023-11-15 02:42:49 |
|
239
|
-
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) |
|
240
|
-
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) |
|
239
|
+
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-01-17 01:27:06 |
|
240
|
+
| weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2024-01-17 01:27:53 |
|
241
241
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
242
242
|
| yinsuda | [音速达直播音乐版权引擎](https://cloud.tencent.com/document/product/1592) | 2023-12-26 02:06:57 |
|
243
243
|
| youmall | [](https://cloud.tencent.com/document/product) | 2019-01-11 11:24:15 |
|
@@ -252,6 +252,7 @@ import {
|
|
252
252
|
MLIDCardOCRRequest,
|
253
253
|
TaxiTicket,
|
254
254
|
EnglishOCRResponse,
|
255
|
+
RecognizeForeignPermanentResidentIdCardResponse,
|
255
256
|
BusInvoiceOCRRequest,
|
256
257
|
OrgCodeCertOCRResponse,
|
257
258
|
RideHailingTransportLicenseOCRResponse,
|
@@ -289,6 +290,7 @@ import {
|
|
289
290
|
FinanBillOCRRequest,
|
290
291
|
QuotaInvoiceOCRResponse,
|
291
292
|
UsedCarPurchaseInvoice,
|
293
|
+
RecognizeForeignPermanentResidentIdCardRequest,
|
292
294
|
GeneralFastOCRResponse,
|
293
295
|
QrcodePositionObj,
|
294
296
|
} from "./ocr_models"
|
@@ -635,6 +637,18 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
635
637
|
return this.request("QuotaInvoiceOCR", req, cb)
|
636
638
|
}
|
637
639
|
|
640
|
+
/**
|
641
|
+
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
642
|
+
|
643
|
+
默认接口请求频率限制:10次/秒。
|
644
|
+
*/
|
645
|
+
async WaybillOCR(
|
646
|
+
req: WaybillOCRRequest,
|
647
|
+
cb?: (error: string, rep: WaybillOCRResponse) => void
|
648
|
+
): Promise<WaybillOCRResponse> {
|
649
|
+
return this.request("WaybillOCR", req, cb)
|
650
|
+
}
|
651
|
+
|
638
652
|
/**
|
639
653
|
* 菲律宾UMID识别
|
640
654
|
*/
|
@@ -708,15 +722,13 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
708
722
|
}
|
709
723
|
|
710
724
|
/**
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
|
717
|
-
|
718
|
-
): Promise<WaybillOCRResponse> {
|
719
|
-
return this.request("WaybillOCR", req, cb)
|
725
|
+
* 外国人永久居留身份证识别
|
726
|
+
*/
|
727
|
+
async RecognizeForeignPermanentResidentIdCard(
|
728
|
+
req: RecognizeForeignPermanentResidentIdCardRequest,
|
729
|
+
cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void
|
730
|
+
): Promise<RecognizeForeignPermanentResidentIdCardResponse> {
|
731
|
+
return this.request("RecognizeForeignPermanentResidentIdCard", req, cb)
|
720
732
|
}
|
721
733
|
|
722
734
|
/**
|
@@ -8707,6 +8707,44 @@ export interface EnglishOCRResponse {
|
|
8707
8707
|
RequestId?: string
|
8708
8708
|
}
|
8709
8709
|
|
8710
|
+
/**
|
8711
|
+
* RecognizeForeignPermanentResidentIdCard返回参数结构体
|
8712
|
+
*/
|
8713
|
+
export interface RecognizeForeignPermanentResidentIdCardResponse {
|
8714
|
+
/**
|
8715
|
+
* 中文姓名。
|
8716
|
+
*/
|
8717
|
+
CnName?: string
|
8718
|
+
/**
|
8719
|
+
* 英文名。
|
8720
|
+
*/
|
8721
|
+
EnName?: string
|
8722
|
+
/**
|
8723
|
+
* 性别。
|
8724
|
+
*/
|
8725
|
+
Sex?: string
|
8726
|
+
/**
|
8727
|
+
* 出生日期。规范格式为 XXXX年XX月XX日。
|
8728
|
+
*/
|
8729
|
+
DateOfBirth?: string
|
8730
|
+
/**
|
8731
|
+
* 国籍。
|
8732
|
+
*/
|
8733
|
+
Nationality?: string
|
8734
|
+
/**
|
8735
|
+
* 有效期限。
|
8736
|
+
*/
|
8737
|
+
PeriodOfValidity?: string
|
8738
|
+
/**
|
8739
|
+
* 证件号码。
|
8740
|
+
*/
|
8741
|
+
No?: string
|
8742
|
+
/**
|
8743
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8744
|
+
*/
|
8745
|
+
RequestId?: string
|
8746
|
+
}
|
8747
|
+
|
8710
8748
|
/**
|
8711
8749
|
* BusInvoiceOCR请求参数结构体
|
8712
8750
|
*/
|
@@ -9985,6 +10023,39 @@ export interface UsedCarPurchaseInvoice {
|
|
9985
10023
|
MachineNumber?: string
|
9986
10024
|
}
|
9987
10025
|
|
10026
|
+
/**
|
10027
|
+
* RecognizeForeignPermanentResidentIdCard请求参数结构体
|
10028
|
+
*/
|
10029
|
+
export interface RecognizeForeignPermanentResidentIdCardRequest {
|
10030
|
+
/**
|
10031
|
+
* 图片的 Url 地址。
|
10032
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10033
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
10034
|
+
支持的图片像素:需介于20-10000px之间。
|
10035
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
10036
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
10037
|
+
示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume
|
10038
|
+
*/
|
10039
|
+
ImageUrl?: string
|
10040
|
+
/**
|
10041
|
+
* 图片的 Base64 值。
|
10042
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
10043
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
10044
|
+
支持的图片像素:需介于20-10000px之间。
|
10045
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10046
|
+
*/
|
10047
|
+
ImageBase64?: string
|
10048
|
+
/**
|
10049
|
+
* 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
10050
|
+
*/
|
10051
|
+
EnablePdf?: boolean
|
10052
|
+
/**
|
10053
|
+
* 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
10054
|
+
示例值:1
|
10055
|
+
*/
|
10056
|
+
PdfPageNumber?: number
|
10057
|
+
}
|
10058
|
+
|
9988
10059
|
/**
|
9989
10060
|
* GeneralFastOCR返回参数结构体
|
9990
10061
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, GeneralHandwritingOCRResponse, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, QrcodeOCRRequest, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RecognizePhilippinesUMIDOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, QuotaInvoiceOCRResponse, GeneralFastOCRResponse } from "./ocr_models";
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, GeneralHandwritingOCRResponse, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, QrcodeOCRRequest, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RecognizePhilippinesUMIDOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -225,6 +225,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
225
225
|
默认接口请求频率限制:5次/秒。
|
226
226
|
*/
|
227
227
|
QuotaInvoiceOCR(req: QuotaInvoiceOCRRequest, cb?: (error: string, rep: QuotaInvoiceOCRResponse) => void): Promise<QuotaInvoiceOCRResponse>;
|
228
|
+
/**
|
229
|
+
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
230
|
+
|
231
|
+
默认接口请求频率限制:10次/秒。
|
232
|
+
*/
|
233
|
+
WaybillOCR(req: WaybillOCRRequest, cb?: (error: string, rep: WaybillOCRResponse) => void): Promise<WaybillOCRResponse>;
|
228
234
|
/**
|
229
235
|
* 菲律宾UMID识别
|
230
236
|
*/
|
@@ -262,11 +268,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
262
268
|
*/
|
263
269
|
GeneralHandwritingOCR(req: GeneralHandwritingOCRRequest, cb?: (error: string, rep: GeneralHandwritingOCRResponse) => void): Promise<GeneralHandwritingOCRResponse>;
|
264
270
|
/**
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
*/
|
269
|
-
WaybillOCR(req: WaybillOCRRequest, cb?: (error: string, rep: WaybillOCRResponse) => void): Promise<WaybillOCRResponse>;
|
271
|
+
* 外国人永久居留身份证识别
|
272
|
+
*/
|
273
|
+
RecognizeForeignPermanentResidentIdCard(req: RecognizeForeignPermanentResidentIdCardRequest, cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void): Promise<RecognizeForeignPermanentResidentIdCardResponse>;
|
270
274
|
/**
|
271
275
|
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
272
276
|
|
@@ -284,6 +284,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
284
284
|
async QuotaInvoiceOCR(req, cb) {
|
285
285
|
return this.request("QuotaInvoiceOCR", req, cb);
|
286
286
|
}
|
287
|
+
/**
|
288
|
+
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
289
|
+
|
290
|
+
默认接口请求频率限制:10次/秒。
|
291
|
+
*/
|
292
|
+
async WaybillOCR(req, cb) {
|
293
|
+
return this.request("WaybillOCR", req, cb);
|
294
|
+
}
|
287
295
|
/**
|
288
296
|
* 菲律宾UMID识别
|
289
297
|
*/
|
@@ -333,12 +341,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
333
341
|
return this.request("GeneralHandwritingOCR", req, cb);
|
334
342
|
}
|
335
343
|
/**
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
async WaybillOCR(req, cb) {
|
341
|
-
return this.request("WaybillOCR", req, cb);
|
344
|
+
* 外国人永久居留身份证识别
|
345
|
+
*/
|
346
|
+
async RecognizeForeignPermanentResidentIdCard(req, cb) {
|
347
|
+
return this.request("RecognizeForeignPermanentResidentIdCard", req, cb);
|
342
348
|
}
|
343
349
|
/**
|
344
350
|
* 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
@@ -8455,6 +8455,43 @@ export interface EnglishOCRResponse {
|
|
8455
8455
|
*/
|
8456
8456
|
RequestId?: string;
|
8457
8457
|
}
|
8458
|
+
/**
|
8459
|
+
* RecognizeForeignPermanentResidentIdCard返回参数结构体
|
8460
|
+
*/
|
8461
|
+
export interface RecognizeForeignPermanentResidentIdCardResponse {
|
8462
|
+
/**
|
8463
|
+
* 中文姓名。
|
8464
|
+
*/
|
8465
|
+
CnName?: string;
|
8466
|
+
/**
|
8467
|
+
* 英文名。
|
8468
|
+
*/
|
8469
|
+
EnName?: string;
|
8470
|
+
/**
|
8471
|
+
* 性别。
|
8472
|
+
*/
|
8473
|
+
Sex?: string;
|
8474
|
+
/**
|
8475
|
+
* 出生日期。规范格式为 XXXX年XX月XX日。
|
8476
|
+
*/
|
8477
|
+
DateOfBirth?: string;
|
8478
|
+
/**
|
8479
|
+
* 国籍。
|
8480
|
+
*/
|
8481
|
+
Nationality?: string;
|
8482
|
+
/**
|
8483
|
+
* 有效期限。
|
8484
|
+
*/
|
8485
|
+
PeriodOfValidity?: string;
|
8486
|
+
/**
|
8487
|
+
* 证件号码。
|
8488
|
+
*/
|
8489
|
+
No?: string;
|
8490
|
+
/**
|
8491
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
8492
|
+
*/
|
8493
|
+
RequestId?: string;
|
8494
|
+
}
|
8458
8495
|
/**
|
8459
8496
|
* BusInvoiceOCR请求参数结构体
|
8460
8497
|
*/
|
@@ -9696,6 +9733,38 @@ export interface UsedCarPurchaseInvoice {
|
|
9696
9733
|
*/
|
9697
9734
|
MachineNumber?: string;
|
9698
9735
|
}
|
9736
|
+
/**
|
9737
|
+
* RecognizeForeignPermanentResidentIdCard请求参数结构体
|
9738
|
+
*/
|
9739
|
+
export interface RecognizeForeignPermanentResidentIdCardRequest {
|
9740
|
+
/**
|
9741
|
+
* 图片的 Url 地址。
|
9742
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
9743
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
9744
|
+
支持的图片像素:需介于20-10000px之间。
|
9745
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
9746
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
9747
|
+
示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/docume
|
9748
|
+
*/
|
9749
|
+
ImageUrl?: string;
|
9750
|
+
/**
|
9751
|
+
* 图片的 Base64 值。
|
9752
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
9753
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
9754
|
+
支持的图片像素:需介于20-10000px之间。
|
9755
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
9756
|
+
*/
|
9757
|
+
ImageBase64?: string;
|
9758
|
+
/**
|
9759
|
+
* 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
9760
|
+
*/
|
9761
|
+
EnablePdf?: boolean;
|
9762
|
+
/**
|
9763
|
+
* 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
9764
|
+
示例值:1
|
9765
|
+
*/
|
9766
|
+
PdfPageNumber?: number;
|
9767
|
+
}
|
9699
9768
|
/**
|
9700
9769
|
* GeneralFastOCR返回参数结构体
|
9701
9770
|
*/
|