tencentcloud-sdk-nodejs-ocr 4.0.781 → 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 +1 -1
- package/products.md +7 -7
- 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
@@ -76,7 +76,7 @@
|
|
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) |
|
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 |
|
@@ -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-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 |
|
@@ -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-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 |
|
@@ -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 |
|
@@ -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) |
|
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
|
-
|
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
|
*/
|