tencentcloud-sdk-nodejs-ocr 4.0.1019 → 4.0.1020
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 +67 -34
- package/src/services/ocr/v20181119/ocr_models.ts +322 -192
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +27 -13
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +34 -16
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +313 -190
@@ -1,11 +1,17 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, QuestionOCRRequest, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, TableOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
6
6
|
*/
|
7
7
|
export declare class Client extends TencentCloudCommon.AbstractClient {
|
8
8
|
constructor(clientConfig: TencentCloudCommon.ClientConfig);
|
9
|
+
/**
|
10
|
+
* 题目识别是教育的基础OCR识别能力。可支持扫描、拍照场景的单题题目识别。接口支持印刷体文本、手写体文本及公式的OCR识别和坐标返回,此外,接口还可对题目中的配图位置进行检测并返回坐标位置。适用于智能批改等场景的题目内容识别作为检索输入。
|
11
|
+
|
12
|
+
默认接口请求频率限制:2次/秒。
|
13
|
+
*/
|
14
|
+
QuestionOCR(req: QuestionOCRRequest, cb?: (error: string, rep: QuestionOCRResponse) => void): Promise<QuestionOCRResponse>;
|
9
15
|
/**
|
10
16
|
* 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
|
11
17
|
|
@@ -227,11 +233,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
227
233
|
*/
|
228
234
|
RideHailingDriverLicenseOCR(req: RideHailingDriverLicenseOCRRequest, cb?: (error: string, rep: RideHailingDriverLicenseOCRResponse) => void): Promise<RideHailingDriverLicenseOCRResponse>;
|
229
235
|
/**
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
*/
|
234
|
-
DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
|
236
|
+
* 外国人永久居留身份证识别
|
237
|
+
*/
|
238
|
+
RecognizeForeignPermanentResidentIdCard(req: RecognizeForeignPermanentResidentIdCardRequest, cb?: (error: string, rep: RecognizeForeignPermanentResidentIdCardResponse) => void): Promise<RecognizeForeignPermanentResidentIdCardResponse>;
|
235
239
|
/**
|
236
240
|
* 智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
|
237
241
|
|
@@ -447,10 +451,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
447
451
|
支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
448
452
|
*/
|
449
453
|
GetTaskState(req: GetTaskStateRequest, cb?: (error: string, rep: GetTaskStateResponse) => void): Promise<GetTaskStateResponse>;
|
450
|
-
/**
|
451
|
-
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
452
|
-
*/
|
453
|
-
RecognizeGeneralCardWarn(req: RecognizeGeneralCardWarnRequest, cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void): Promise<RecognizeGeneralCardWarnResponse>;
|
454
454
|
/**
|
455
455
|
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
456
456
|
|
@@ -727,6 +727,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
727
727
|
默认接口请求频率限制:20次/秒。
|
728
728
|
*/
|
729
729
|
ClassifyDetectOCR(req: ClassifyDetectOCRRequest, cb?: (error: string, rep: ClassifyDetectOCRResponse) => void): Promise<ClassifyDetectOCRResponse>;
|
730
|
+
/**
|
731
|
+
* 公式识别是教育的基础OCR识别能力,可支持理科(数学、物理、化学、生物)的印刷体和手写体的公式识别。
|
732
|
+
|
733
|
+
默认接口请求频率限制:2次/秒。
|
734
|
+
*/
|
735
|
+
RecognizeFormulaOCR(req: RecognizeFormulaOCRRequest, cb?: (error: string, rep: RecognizeFormulaOCRResponse) => void): Promise<RecognizeFormulaOCRResponse>;
|
730
736
|
/**
|
731
737
|
* 本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
|
732
738
|
|
@@ -793,6 +799,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
793
799
|
默认接口请求频率限制:10次/秒。
|
794
800
|
*/
|
795
801
|
ImageEnhancement(req: ImageEnhancementRequest, cb?: (error: string, rep: ImageEnhancementResponse) => void): Promise<ImageEnhancementResponse>;
|
802
|
+
/**
|
803
|
+
* 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
|
804
|
+
|
805
|
+
默认接口请求频率限制:2次/秒。
|
806
|
+
*/
|
807
|
+
QuestionSplitOCR(req: QuestionSplitOCRRequest, cb?: (error: string, rep: QuestionSplitOCRResponse) => void): Promise<QuestionSplitOCRResponse>;
|
796
808
|
/**
|
797
809
|
* 本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。
|
798
810
|
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
@@ -817,9 +829,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
817
829
|
*/
|
818
830
|
VatInvoiceOCR(req: VatInvoiceOCRRequest, cb?: (error: string, rep: VatInvoiceOCRResponse) => void): Promise<VatInvoiceOCRResponse>;
|
819
831
|
/**
|
820
|
-
|
821
|
-
|
822
|
-
|
832
|
+
* 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
|
833
|
+
|
834
|
+
默认接口请求频率限制:5次/秒。
|
835
|
+
*/
|
836
|
+
DutyPaidProofOCR(req: DutyPaidProofOCRRequest, cb?: (error: string, rep: DutyPaidProofOCRResponse) => void): Promise<DutyPaidProofOCRResponse>;
|
823
837
|
/**
|
824
838
|
* 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
|
825
839
|
|
@@ -27,6 +27,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
27
27
|
constructor(clientConfig) {
|
28
28
|
super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
|
29
29
|
}
|
30
|
+
/**
|
31
|
+
* 题目识别是教育的基础OCR识别能力。可支持扫描、拍照场景的单题题目识别。接口支持印刷体文本、手写体文本及公式的OCR识别和坐标返回,此外,接口还可对题目中的配图位置进行检测并返回坐标位置。适用于智能批改等场景的题目内容识别作为检索输入。
|
32
|
+
|
33
|
+
默认接口请求频率限制:2次/秒。
|
34
|
+
*/
|
35
|
+
async QuestionOCR(req, cb) {
|
36
|
+
return this.request("QuestionOCR", req, cb);
|
37
|
+
}
|
30
38
|
/**
|
31
39
|
* 本接口通过检测图片中的文字信息特征,快速判断图片中有无文字并返回判断结果,帮助用户过滤无文字的图片。
|
32
40
|
|
@@ -286,12 +294,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
286
294
|
return this.request("RideHailingDriverLicenseOCR", req, cb);
|
287
295
|
}
|
288
296
|
/**
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
async DutyPaidProofOCR(req, cb) {
|
294
|
-
return this.request("DutyPaidProofOCR", req, cb);
|
297
|
+
* 外国人永久居留身份证识别
|
298
|
+
*/
|
299
|
+
async RecognizeForeignPermanentResidentIdCard(req, cb) {
|
300
|
+
return this.request("RecognizeForeignPermanentResidentIdCard", req, cb);
|
295
301
|
}
|
296
302
|
/**
|
297
303
|
* 智能识别并结构化港澳台居民来往内地通行证正面全部字段,包含中文姓名、英文姓名、性别、出生日期、签发机关、有效期限、证件号、签发地点、签发次数、证件类别。
|
@@ -528,12 +534,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
528
534
|
async GetTaskState(req, cb) {
|
529
535
|
return this.request("GetTaskState", req, cb);
|
530
536
|
}
|
531
|
-
/**
|
532
|
-
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
533
|
-
*/
|
534
|
-
async RecognizeGeneralCardWarn(req, cb) {
|
535
|
-
return this.request("RecognizeGeneralCardWarn", req, cb);
|
536
|
-
}
|
537
537
|
/**
|
538
538
|
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
539
539
|
|
@@ -866,6 +866,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
866
866
|
async ClassifyDetectOCR(req, cb) {
|
867
867
|
return this.request("ClassifyDetectOCR", req, cb);
|
868
868
|
}
|
869
|
+
/**
|
870
|
+
* 公式识别是教育的基础OCR识别能力,可支持理科(数学、物理、化学、生物)的印刷体和手写体的公式识别。
|
871
|
+
|
872
|
+
默认接口请求频率限制:2次/秒。
|
873
|
+
*/
|
874
|
+
async RecognizeFormulaOCR(req, cb) {
|
875
|
+
return this.request("RecognizeFormulaOCR", req, cb);
|
876
|
+
}
|
869
877
|
/**
|
870
878
|
* 本接口支持各类印章主体内容、印章其他内容及形状识别,支持单图多印章识别,包括发票章、财务章等,适用于公文票据等场景。
|
871
879
|
|
@@ -952,6 +960,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
952
960
|
async ImageEnhancement(req, cb) {
|
953
961
|
return this.request("ImageEnhancement", req, cb);
|
954
962
|
}
|
963
|
+
/**
|
964
|
+
* 试卷切题识别可将整页练习册、试卷或教辅中的题目进行自动切题,并识别出其中的文字内容和坐标位置。
|
965
|
+
|
966
|
+
默认接口请求频率限制:2次/秒。
|
967
|
+
*/
|
968
|
+
async QuestionSplitOCR(req, cb) {
|
969
|
+
return this.request("QuestionSplitOCR", req, cb);
|
970
|
+
}
|
955
971
|
/**
|
956
972
|
* 本接口支持马来西亚身份证识别,识别字段包括身份证号、姓名、性别、地址;具备身份证人像照片的裁剪功能和翻拍、复印件告警功能。
|
957
973
|
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
@@ -984,10 +1000,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
984
1000
|
return this.request("VatInvoiceOCR", req, cb);
|
985
1001
|
}
|
986
1002
|
/**
|
987
|
-
|
988
|
-
|
989
|
-
|
990
|
-
|
1003
|
+
* 本接口支持对完税证明的税号、纳税人识别号、纳税人名称、金额合计大写、金额合计小写、填发日期、税务机关、填票人等关键字段的识别。
|
1004
|
+
|
1005
|
+
默认接口请求频率限制:5次/秒。
|
1006
|
+
*/
|
1007
|
+
async DutyPaidProofOCR(req, cb) {
|
1008
|
+
return this.request("DutyPaidProofOCR", req, cb);
|
991
1009
|
}
|
992
1010
|
/**
|
993
1011
|
* 本接口支持组织机构代码证关键字段的识别,包括代码、有效期、地址、机构名称等。
|