tencentcloud-sdk-nodejs-ocr 4.0.780 → 4.0.782

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.0.780",
3
+ "version": "4.0.782",
4
4
  "description": "Tencent Cloud API NODEJS SDK",
5
5
  "main": "tencentcloud/index.js",
6
6
  "scripts": {
package/products.md CHANGED
@@ -41,7 +41,7 @@
41
41
  | cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-12-27 01:08:57 |
42
42
  | ccc | [云联络中心](https://cloud.tencent.com/document/product/679) | 2023-12-22 01:08:08 |
43
43
  | cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2024-01-05 01:08:31 |
44
- | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-01-03 01:08:25 |
44
+ | cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2024-01-15 01:08:17 |
45
45
  | cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2024-01-08 00:04:01 |
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 |
@@ -57,7 +57,7 @@
57
57
  | cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
58
58
  | ckafka | [消息队列 CKafka 版](https://cloud.tencent.com/document/product/597) | 2023-12-18 10:51:23 |
59
59
  | clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2024-01-10 01:09:43 |
60
- | cloudaudit | [操作审计](https://cloud.tencent.com/document/product/629) | 2024-01-11 01:09:52 |
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 |
62
62
  | cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-08-03 01:03:28 |
63
63
  | cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-12-26 01:10:29 |
@@ -76,18 +76,18 @@
76
76
  | dasb | [T-Sec-堡垒机(BH)](https://cloud.tencent.com/document/product/1025) | 2024-01-05 01:13:10 |
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) | 2023-10-09 01:12:39 |
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 |
83
- | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-01-12 01:13:15 |
83
+ | dlc | [数据湖计算 DLC](https://cloud.tencent.com/document/product/1342) | 2024-01-15 01:12:23 |
84
84
  | dnspod | [DNSPod](https://cloud.tencent.com/document/product/1427) | 2024-01-10 01:13:10 |
85
85
  | domain | [域名注册](https://cloud.tencent.com/document/product/242) | 2023-12-15 01:10:52 |
86
86
  | drm | [数字版权管理](https://cloud.tencent.com/document/product/1000) | 2023-11-10 01:14:28 |
87
87
  | ds | [文档服务](https://cloud.tencent.com/document/product/869) | 2023-08-17 02:59:40 |
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
- | dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2024-01-12 01:14:12 |
90
+ | dts | [数据传输服务](https://cloud.tencent.com/document/product/571) | 2024-01-15 01:13:18 |
91
91
  | eb | [事件总线](https://cloud.tencent.com/document/product/1359) | 2023-12-15 19:35:27 |
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 |
@@ -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-10 01:15:05 |
100
- | essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-01-11 01:14:56 |
99
+ | ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-01-16 01:14:53 |
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 |
@@ -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-12 01:19:06 |
148
+ | monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-01-15 01:18:07 |
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-12 01:20:10 |
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) | 2023-12-25 00:15:53 |
159
+ | organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2024-01-16 01:20:17 |
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 |
@@ -204,7 +204,7 @@
204
204
  | tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2024-01-12 01:24:10 |
205
205
  | tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-11-15 02:26:59 |
206
206
  | tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-12-20 02:13:36 |
207
- | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-01-12 01:24:41 |
207
+ | teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2024-01-15 01:23:22 |
208
208
  | thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-11-27 00:20:12 |
209
209
  | tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
210
210
  | tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-08-17 05:26:08 |
@@ -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-09 01:26:40 |
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 |
@@ -225,7 +225,7 @@
225
225
  | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2023-07-18 01:53:24 |
226
226
  | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-01-11 01:25:31 |
227
227
  | tse | [微服务引擎 TSE](https://cloud.tencent.com/document/product/1364) | 2024-01-12 01:26:19 |
228
- | tsf | [微服务平台 TSF](https://cloud.tencent.com/document/product/649) | 2024-01-12 01:26:29 |
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 |
230
230
  | tts | [语音合成](https://cloud.tencent.com/document/product/1073) | 2023-11-27 00:22:20 |
231
231
  | ump | [客流数字化平台](https://cloud.tencent.com/document/product/1320) | 2023-08-17 05:50:27 |
@@ -236,7 +236,7 @@
236
236
  | vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-11-27 00:23:42 |
237
237
  | waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-12-26 02:05:35 |
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) | 2023-12-28 01:29:55 |
239
+ | wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2024-01-16 01:27:38 |
240
240
  | weilingwith | [微瓴同业开放平台](https://cloud.tencent.com/document/product/1693) | 2023-12-14 02:56:46 |
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 |
@@ -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
- 默认接口请求频率限制:10次/秒。
714
- */
715
- async WaybillOCR(
716
- req: WaybillOCRRequest,
717
- cb?: (error: string, rep: WaybillOCRResponse) => void
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
  /**
@@ -6967,7 +6967,7 @@ export interface RecognizeTableAccurateOCRRequest {
6967
6967
  */
6968
6968
  ImageUrl?: string
6969
6969
  /**
6970
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
6970
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
6971
6971
  */
6972
6972
  PdfPageNumber?: number
6973
6973
  }
@@ -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
- 默认接口请求频率限制:10次/秒。
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
- 默认接口请求频率限制:10次/秒。
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
  * 本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
@@ -6768,7 +6768,7 @@ export interface RecognizeTableAccurateOCRRequest {
6768
6768
  */
6769
6769
  ImageUrl?: string;
6770
6770
  /**
6771
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
6771
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF有效,默认值为1。
6772
6772
  */
6773
6773
  PdfPageNumber?: number;
6774
6774
  }
@@ -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
  */