tencentcloud-sdk-nodejs-ocr 4.0.971 → 4.0.974
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 +64 -63
- package/src/services/ocr/v20181119/ocr_client.ts +43 -19
- package/src/services/ocr/v20181119/ocr_models.ts +291 -144
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +18 -10
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +23 -11
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +287 -144
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizeIndonesiaIDCardOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeStoreNameResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizeKoreanDrivingLicenseOCRResponse, RecognizeIndonesiaIDCardOCRRequest, RecognizeKoreanDrivingLicenseOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, SmartStructuralOCRRequest, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, SmartStructuralOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeStoreNameResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, RecognizeKoreanIDCardOCRResponse, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, ReconstructDocumentResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, RecognizePhilippinesVoteIDOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRRequest, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, VehicleRegCertOCRRequest, RecognizeKoreanIDCardOCRRequest, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RecognizePhilippinesUMIDOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, TableOCRRequest, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -535,8 +535,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
535
535
|
* 本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
|
536
536
|
|
537
537
|
默认接口请求频率限制:5次/秒。
|
538
|
-
|
539
|
-
|
540
538
|
*/
|
541
539
|
EstateCertOCR(req: EstateCertOCRRequest, cb?: (error: string, rep: EstateCertOCRResponse) => void): Promise<EstateCertOCRResponse>;
|
542
540
|
/**
|
@@ -564,8 +562,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
564
562
|
*/
|
565
563
|
VatInvoiceVerify(req: VatInvoiceVerifyRequest, cb?: (error: string, rep: VatInvoiceVerifyResponse) => void): Promise<VatInvoiceVerifyResponse>;
|
566
564
|
/**
|
567
|
-
|
568
|
-
|
565
|
+
* 菲律宾驾驶证识别
|
566
|
+
|
567
|
+
默认接口请求频率限制:20次/秒。
|
568
|
+
*/
|
569
569
|
RecognizePhilippinesDrivingLicenseOCR(req: RecognizePhilippinesDrivingLicenseOCRRequest, cb?: (error: string, rep: RecognizePhilippinesDrivingLicenseOCRResponse) => void): Promise<RecognizePhilippinesDrivingLicenseOCRResponse>;
|
570
570
|
/**
|
571
571
|
* 本接口支持数学试题内容的识别和结构化输出,包括通用文本解析和小学/初中/高中数学公式解析能力(包括91种题型,180种符号),公式返回格式为 Latex 格式文本。
|
@@ -746,17 +746,21 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
746
746
|
*/
|
747
747
|
BankSlipOCR(req: BankSlipOCRRequest, cb?: (error: string, rep: BankSlipOCRResponse) => void): Promise<BankSlipOCRResponse>;
|
748
748
|
/**
|
749
|
-
*
|
749
|
+
* 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
|
750
750
|
|
751
751
|
默认接口请求频率限制:5次/秒。
|
752
752
|
*/
|
753
|
-
|
753
|
+
VehicleRegCertOCR(req: VehicleRegCertOCRRequest, cb?: (error: string, rep: VehicleRegCertOCRResponse) => void): Promise<VehicleRegCertOCRResponse>;
|
754
754
|
/**
|
755
755
|
* 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
756
756
|
|
757
757
|
默认接口请求频率限制:20次/秒。
|
758
758
|
*/
|
759
759
|
RecognizeTravelCardOCR(req: RecognizeTravelCardOCRRequest, cb?: (error: string, rep: RecognizeTravelCardOCRResponse) => void): Promise<RecognizeTravelCardOCRResponse>;
|
760
|
+
/**
|
761
|
+
* 韩国身份证识别
|
762
|
+
*/
|
763
|
+
RecognizeKoreanIDCardOCR(req: RecognizeKoreanIDCardOCRRequest, cb?: (error: string, rep: RecognizeKoreanIDCardOCRResponse) => void): Promise<RecognizeKoreanIDCardOCRResponse>;
|
760
764
|
/**
|
761
765
|
* 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
762
766
|
*/
|
@@ -775,6 +779,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
775
779
|
默认接口请求频率限制:10次/秒。
|
776
780
|
*/
|
777
781
|
DriverLicenseOCR(req: DriverLicenseOCRRequest, cb?: (error: string, rep: DriverLicenseOCRResponse) => void): Promise<DriverLicenseOCRResponse>;
|
782
|
+
/**
|
783
|
+
* 韩国驾驶证识别
|
784
|
+
*/
|
785
|
+
RecognizeKoreanDrivingLicenseOCR(req: RecognizeKoreanDrivingLicenseOCRRequest, cb?: (error: string, rep: RecognizeKoreanDrivingLicenseOCRResponse) => void): Promise<RecognizeKoreanDrivingLicenseOCRResponse>;
|
778
786
|
/**
|
779
787
|
* 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
|
780
788
|
|
@@ -784,7 +792,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
784
792
|
/**
|
785
793
|
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
|
786
794
|
|
787
|
-
默认接口请求频率限制:
|
795
|
+
默认接口请求频率限制:5次/秒。
|
788
796
|
*/
|
789
797
|
SmartStructuralPro(req: SmartStructuralProRequest, cb?: (error: string, rep: SmartStructuralProResponse) => void): Promise<SmartStructuralProResponse>;
|
790
798
|
/**
|
@@ -913,11 +921,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
913
921
|
*/
|
914
922
|
AdvertiseOCR(req: AdvertiseOCRRequest, cb?: (error: string, rep: AdvertiseOCRResponse) => void): Promise<AdvertiseOCRResponse>;
|
915
923
|
/**
|
916
|
-
*
|
924
|
+
* 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
917
925
|
|
918
926
|
默认接口请求频率限制:5次/秒。
|
919
927
|
*/
|
920
|
-
|
928
|
+
ResidenceBookletOCR(req: ResidenceBookletOCRRequest, cb?: (error: string, rep: ResidenceBookletOCRResponse) => void): Promise<ResidenceBookletOCRResponse>;
|
921
929
|
/**
|
922
930
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
923
931
|
|
@@ -624,8 +624,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
624
624
|
* 本接口支持不动产权证关键字段的识别,包括使用期限、面积、用途、权利性质、权利类型、坐落、共有情况、权利人、权利其他状况等。
|
625
625
|
|
626
626
|
默认接口请求频率限制:5次/秒。
|
627
|
-
|
628
|
-
|
629
627
|
*/
|
630
628
|
async EstateCertOCR(req, cb) {
|
631
629
|
return this.request("EstateCertOCR", req, cb);
|
@@ -663,8 +661,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
663
661
|
return this.request("VatInvoiceVerify", req, cb);
|
664
662
|
}
|
665
663
|
/**
|
666
|
-
|
667
|
-
|
664
|
+
* 菲律宾驾驶证识别
|
665
|
+
|
666
|
+
默认接口请求频率限制:20次/秒。
|
667
|
+
*/
|
668
668
|
async RecognizePhilippinesDrivingLicenseOCR(req, cb) {
|
669
669
|
return this.request("RecognizePhilippinesDrivingLicenseOCR", req, cb);
|
670
670
|
}
|
@@ -891,12 +891,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
891
891
|
return this.request("BankSlipOCR", req, cb);
|
892
892
|
}
|
893
893
|
/**
|
894
|
-
*
|
894
|
+
* 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
|
895
895
|
|
896
896
|
默认接口请求频率限制:5次/秒。
|
897
897
|
*/
|
898
|
-
async
|
899
|
-
return this.request("
|
898
|
+
async VehicleRegCertOCR(req, cb) {
|
899
|
+
return this.request("VehicleRegCertOCR", req, cb);
|
900
900
|
}
|
901
901
|
/**
|
902
902
|
* 本接口支持通信大数据行程卡识别,包括行程卡颜色、更新时间、途经地、存在中高风险地区的城市、电话号码,五个字段的识别结果输出。
|
@@ -906,6 +906,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
906
906
|
async RecognizeTravelCardOCR(req, cb) {
|
907
907
|
return this.request("RecognizeTravelCardOCR", req, cb);
|
908
908
|
}
|
909
|
+
/**
|
910
|
+
* 韩国身份证识别
|
911
|
+
*/
|
912
|
+
async RecognizeKoreanIDCardOCR(req, cb) {
|
913
|
+
return this.request("RecognizeKoreanIDCardOCR", req, cb);
|
914
|
+
}
|
909
915
|
/**
|
910
916
|
* 本接口支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(铁路电子客票)、电子发票(航空运输电子客票行程单)识别,返回发票代码、发票号码、开票日期、验证码、机器编号、密码区,购买方和销售方信息,包括名称、纳税人识别号、地址电话、开户行及账号,以及价税合计、开票人、收款人、复核人、税额、不含税金额等字段信息。
|
911
917
|
*/
|
@@ -928,6 +934,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
928
934
|
async DriverLicenseOCR(req, cb) {
|
929
935
|
return this.request("DriverLicenseOCR", req, cb);
|
930
936
|
}
|
937
|
+
/**
|
938
|
+
* 韩国驾驶证识别
|
939
|
+
*/
|
940
|
+
async RecognizeKoreanDrivingLicenseOCR(req, cb) {
|
941
|
+
return this.request("RecognizeKoreanDrivingLicenseOCR", req, cb);
|
942
|
+
}
|
931
943
|
/**
|
932
944
|
* 本接口支持常见银行票据的自动分类和识别。整单识别包括支票(含现金支票、普通支票、转账支票),承兑汇票(含银行承兑汇票、商业承兑汇票)以及进账单等,适用于中国人民银行印发的 2010 版银行票据凭证版式(银发[2010]299 号)。
|
933
945
|
|
@@ -939,7 +951,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
939
951
|
/**
|
940
952
|
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
|
941
953
|
|
942
|
-
默认接口请求频率限制:
|
954
|
+
默认接口请求频率限制:5次/秒。
|
943
955
|
*/
|
944
956
|
async SmartStructuralPro(req, cb) {
|
945
957
|
return this.request("SmartStructuralPro", req, cb);
|
@@ -1092,12 +1104,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
1092
1104
|
return this.request("AdvertiseOCR", req, cb);
|
1093
1105
|
}
|
1094
1106
|
/**
|
1095
|
-
*
|
1107
|
+
* 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
1096
1108
|
|
1097
1109
|
默认接口请求频率限制:5次/秒。
|
1098
1110
|
*/
|
1099
|
-
async
|
1100
|
-
return this.request("
|
1111
|
+
async ResidenceBookletOCR(req, cb) {
|
1112
|
+
return this.request("ResidenceBookletOCR", req, cb);
|
1101
1113
|
}
|
1102
1114
|
/**
|
1103
1115
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|