tencentcloud-sdk-nodejs-ocr 4.1.250 → 4.1.255
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.
|
@@ -39,9 +39,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
39
39
|
async VerifyBizLicenseEnterprise4(req, cb) {
|
|
40
40
|
return this.request("VerifyBizLicenseEnterprise4", req, cb);
|
|
41
41
|
}
|
|
42
|
-
async RecognizeContainerOCR(req, cb) {
|
|
43
|
-
return this.request("RecognizeContainerOCR", req, cb);
|
|
44
|
-
}
|
|
45
42
|
async RecognizeTableAccurateOCR(req, cb) {
|
|
46
43
|
return this.request("RecognizeTableAccurateOCR", req, cb);
|
|
47
44
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, MLIDCardOCRRequest, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, VerifyBizLicenseEnterprise3Response, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, VerifyScenePhotoResponse, RecognizeAgentResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest,
|
|
2
|
+
import { TableOCRRequest, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, VinOCRResponse, BankCardOCRRequest, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, GetOCRTokenResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, MLIDCardOCRRequest, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, VerifyBizLicenseEnterprise3Response, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, VerifyScenePhotoResponse, RecognizeAgentResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, ExtractDocAgentResponse, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, ExtractDocMultiResponse, TextDetectRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, RecognizeEncryptedIDCardOCRRequest, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, SubmitMarkEssayAgentJobRequest, LicensePlateOCRRequest, GeneralBasicOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, VerifyBizLicenseEnterprise4Response, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, VerifyScenePhotoRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, TrainTicketOCRRequest, GeneralEfficientOCRResponse, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, VerifyBizLicenseEnterprise3Request, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, SubmitQuestionMarkAgentJobRequest, BusinessCardOCRRequest, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
|
|
3
3
|
/**
|
|
4
4
|
* ocr client
|
|
5
5
|
* @class
|
|
@@ -178,11 +178,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
178
178
|
按周更新企业信息变更情况,如遇到未及时更新的情况,可联系在线客服转产品团队进行人工处理。
|
|
179
179
|
*/
|
|
180
180
|
VerifyBizLicenseEnterprise4(req: VerifyBizLicenseEnterprise4Request, cb?: (error: string, rep: VerifyBizLicenseEnterprise4Response) => void): Promise<VerifyBizLicenseEnterprise4Response>;
|
|
181
|
-
/**
|
|
182
|
-
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
183
|
-
默认接口请求频率限制:5次/秒。
|
|
184
|
-
*/
|
|
185
|
-
RecognizeContainerOCR(req: RecognizeContainerOCRRequest, cb?: (error: string, rep: RecognizeContainerOCRResponse) => void): Promise<RecognizeContainerOCRResponse>;
|
|
186
181
|
/**
|
|
187
182
|
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
|
188
183
|
|
|
@@ -224,13 +224,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
224
224
|
async VerifyBizLicenseEnterprise4(req, cb) {
|
|
225
225
|
return this.request("VerifyBizLicenseEnterprise4", req, cb);
|
|
226
226
|
}
|
|
227
|
-
/**
|
|
228
|
-
* 本接口支持集装箱箱门信息识别,识别字段包括集装箱箱号、类型、总重量、有效承重、容量、自身重量,具备集装箱箱号、类型不完整或者不清晰的告警功能。
|
|
229
|
-
默认接口请求频率限制:5次/秒。
|
|
230
|
-
*/
|
|
231
|
-
async RecognizeContainerOCR(req, cb) {
|
|
232
|
-
return this.request("RecognizeContainerOCR", req, cb);
|
|
233
|
-
}
|
|
234
227
|
/**
|
|
235
228
|
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
|
236
229
|
|
|
@@ -346,53 +346,42 @@ export interface BankCardOCRRequest {
|
|
|
346
346
|
EnableQualityValue?: boolean;
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
|
-
*
|
|
349
|
+
* VatInvoiceVerifyNew返回参数结构体
|
|
350
350
|
*/
|
|
351
|
-
export interface
|
|
352
|
-
/**
|
|
353
|
-
* 发票名称
|
|
354
|
-
*/
|
|
355
|
-
Title?: string;
|
|
356
|
-
/**
|
|
357
|
-
* 发票代码
|
|
358
|
-
*/
|
|
359
|
-
Code?: string;
|
|
360
|
-
/**
|
|
361
|
-
* 发票号码
|
|
362
|
-
*/
|
|
363
|
-
Number?: string;
|
|
351
|
+
export interface VatInvoiceVerifyNewResponse {
|
|
364
352
|
/**
|
|
365
|
-
*
|
|
353
|
+
* 增值税发票、购车发票、全电发票的基础要素字段信息。
|
|
366
354
|
*/
|
|
367
|
-
|
|
355
|
+
Invoice?: VatInvoice;
|
|
368
356
|
/**
|
|
369
|
-
*
|
|
357
|
+
* 机动车销售统一发票详细字段信息。
|
|
370
358
|
*/
|
|
371
|
-
|
|
359
|
+
VehicleInvoiceInfo?: VehicleInvoiceInfo;
|
|
372
360
|
/**
|
|
373
|
-
*
|
|
361
|
+
* 二手车销售统一发票详细字段信息。
|
|
374
362
|
*/
|
|
375
|
-
|
|
363
|
+
UsedVehicleInvoiceInfo?: UsedVehicleInvoiceInfo;
|
|
376
364
|
/**
|
|
377
|
-
*
|
|
365
|
+
* 通行费发票详细字段信息。
|
|
378
366
|
*/
|
|
379
|
-
|
|
367
|
+
PassInvoiceInfoList?: Array<PassInvoiceInfo>;
|
|
380
368
|
/**
|
|
381
|
-
*
|
|
369
|
+
* 全电发票(铁路电子客票)详细字段信息。
|
|
370
|
+
|
|
382
371
|
*/
|
|
383
|
-
|
|
372
|
+
ElectronicTrainTicket?: ElectronicTrainTicket;
|
|
384
373
|
/**
|
|
385
|
-
*
|
|
374
|
+
* 全电发票(航空运输电子客票行程单)详细字段信息。
|
|
386
375
|
*/
|
|
387
|
-
|
|
376
|
+
ElectronicAirTransport?: ElectronicAirTransport;
|
|
388
377
|
/**
|
|
389
|
-
*
|
|
378
|
+
* 财政发票详细字段信息
|
|
390
379
|
*/
|
|
391
|
-
|
|
380
|
+
FinancialBill?: FinancialBill;
|
|
392
381
|
/**
|
|
393
|
-
*
|
|
382
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
394
383
|
*/
|
|
395
|
-
|
|
384
|
+
RequestId?: string;
|
|
396
385
|
}
|
|
397
386
|
/**
|
|
398
387
|
* CarInvoiceOCR请求参数结构体
|
|
@@ -2878,19 +2867,6 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
|
2878
2867
|
*/
|
|
2879
2868
|
ImageUrl?: string;
|
|
2880
2869
|
}
|
|
2881
|
-
/**
|
|
2882
|
-
* 购物小票
|
|
2883
|
-
*/
|
|
2884
|
-
export interface ShoppingReceipt {
|
|
2885
|
-
/**
|
|
2886
|
-
* 发票名称
|
|
2887
|
-
*/
|
|
2888
|
-
Title?: string;
|
|
2889
|
-
/**
|
|
2890
|
-
* 识别出的字段名称(关键字)
|
|
2891
|
-
*/
|
|
2892
|
-
Content?: Array<OtherInvoiceItem>;
|
|
2893
|
-
}
|
|
2894
2870
|
/**
|
|
2895
2871
|
* 发票人员信息
|
|
2896
2872
|
*/
|
|
@@ -3162,44 +3138,6 @@ export interface QrcodeOCRRequest {
|
|
|
3162
3138
|
*/
|
|
3163
3139
|
ImageUrl?: string;
|
|
3164
3140
|
}
|
|
3165
|
-
/**
|
|
3166
|
-
* VatInvoiceVerifyNew返回参数结构体
|
|
3167
|
-
*/
|
|
3168
|
-
export interface VatInvoiceVerifyNewResponse {
|
|
3169
|
-
/**
|
|
3170
|
-
* 增值税发票、购车发票、全电发票的基础要素字段信息。
|
|
3171
|
-
*/
|
|
3172
|
-
Invoice?: VatInvoice;
|
|
3173
|
-
/**
|
|
3174
|
-
* 机动车销售统一发票详细字段信息。
|
|
3175
|
-
*/
|
|
3176
|
-
VehicleInvoiceInfo?: VehicleInvoiceInfo;
|
|
3177
|
-
/**
|
|
3178
|
-
* 二手车销售统一发票详细字段信息。
|
|
3179
|
-
*/
|
|
3180
|
-
UsedVehicleInvoiceInfo?: UsedVehicleInvoiceInfo;
|
|
3181
|
-
/**
|
|
3182
|
-
* 通行费发票详细字段信息。
|
|
3183
|
-
*/
|
|
3184
|
-
PassInvoiceInfoList?: Array<PassInvoiceInfo>;
|
|
3185
|
-
/**
|
|
3186
|
-
* 全电发票(铁路电子客票)详细字段信息。
|
|
3187
|
-
|
|
3188
|
-
*/
|
|
3189
|
-
ElectronicTrainTicket?: ElectronicTrainTicket;
|
|
3190
|
-
/**
|
|
3191
|
-
* 全电发票(航空运输电子客票行程单)详细字段信息。
|
|
3192
|
-
*/
|
|
3193
|
-
ElectronicAirTransport?: ElectronicAirTransport;
|
|
3194
|
-
/**
|
|
3195
|
-
* 财政发票详细字段信息
|
|
3196
|
-
*/
|
|
3197
|
-
FinancialBill?: FinancialBill;
|
|
3198
|
-
/**
|
|
3199
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3200
|
-
*/
|
|
3201
|
-
RequestId?: string;
|
|
3202
|
-
}
|
|
3203
3141
|
/**
|
|
3204
3142
|
* RecognizeGeneralInvoice请求参数结构体
|
|
3205
3143
|
*/
|
|
@@ -4692,17 +4630,17 @@ export interface SingleInvoiceInfo {
|
|
|
4692
4630
|
Row?: number;
|
|
4693
4631
|
}
|
|
4694
4632
|
/**
|
|
4695
|
-
*
|
|
4633
|
+
* 购物小票
|
|
4696
4634
|
*/
|
|
4697
|
-
export interface
|
|
4635
|
+
export interface ShoppingReceipt {
|
|
4698
4636
|
/**
|
|
4699
|
-
*
|
|
4637
|
+
* 发票名称
|
|
4700
4638
|
*/
|
|
4701
|
-
|
|
4639
|
+
Title?: string;
|
|
4702
4640
|
/**
|
|
4703
|
-
*
|
|
4641
|
+
* 识别出的字段名称(关键字)
|
|
4704
4642
|
*/
|
|
4705
|
-
|
|
4643
|
+
Content?: Array<OtherInvoiceItem>;
|
|
4706
4644
|
}
|
|
4707
4645
|
/**
|
|
4708
4646
|
* 火车票
|
|
@@ -10042,59 +9980,53 @@ export interface CandWord {
|
|
|
10042
9980
|
CandWords: Array<Words>;
|
|
10043
9981
|
}
|
|
10044
9982
|
/**
|
|
10045
|
-
*
|
|
9983
|
+
* 过路过桥费发票
|
|
10046
9984
|
*/
|
|
10047
|
-
export interface
|
|
10048
|
-
/**
|
|
10049
|
-
* 集装箱箱号
|
|
10050
|
-
*/
|
|
10051
|
-
ContainerId?: string;
|
|
9985
|
+
export interface TollInvoice {
|
|
10052
9986
|
/**
|
|
10053
|
-
*
|
|
9987
|
+
* 发票名称
|
|
10054
9988
|
*/
|
|
10055
|
-
|
|
9989
|
+
Title?: string;
|
|
10056
9990
|
/**
|
|
10057
|
-
*
|
|
9991
|
+
* 发票代码
|
|
10058
9992
|
*/
|
|
10059
|
-
|
|
9993
|
+
Code?: string;
|
|
10060
9994
|
/**
|
|
10061
|
-
*
|
|
9995
|
+
* 发票号码
|
|
10062
9996
|
*/
|
|
10063
|
-
|
|
9997
|
+
Number?: string;
|
|
10064
9998
|
/**
|
|
10065
|
-
*
|
|
9999
|
+
* 价税合计(小写)
|
|
10066
10000
|
*/
|
|
10067
|
-
|
|
10001
|
+
Total?: string;
|
|
10068
10002
|
/**
|
|
10069
|
-
*
|
|
10003
|
+
* 发票消费类型
|
|
10070
10004
|
*/
|
|
10071
|
-
|
|
10005
|
+
Kind?: string;
|
|
10072
10006
|
/**
|
|
10073
|
-
*
|
|
10007
|
+
* 日期
|
|
10074
10008
|
*/
|
|
10075
|
-
|
|
10009
|
+
Date?: string;
|
|
10076
10010
|
/**
|
|
10077
|
-
*
|
|
10011
|
+
* 时间
|
|
10078
10012
|
*/
|
|
10079
|
-
|
|
10013
|
+
Time?: string;
|
|
10080
10014
|
/**
|
|
10081
|
-
*
|
|
10082
|
-
-9926 集装箱箱号不完整或者不清晰
|
|
10083
|
-
-9927 集装箱类型不完整或者不清晰
|
|
10015
|
+
* 入口
|
|
10084
10016
|
*/
|
|
10085
|
-
|
|
10017
|
+
Entrance?: string;
|
|
10086
10018
|
/**
|
|
10087
|
-
*
|
|
10019
|
+
* 出口
|
|
10088
10020
|
*/
|
|
10089
|
-
|
|
10021
|
+
Exit?: string;
|
|
10090
10022
|
/**
|
|
10091
|
-
*
|
|
10023
|
+
* 高速标志(0:没有,1:有)
|
|
10092
10024
|
*/
|
|
10093
|
-
|
|
10025
|
+
HighwayMark?: number;
|
|
10094
10026
|
/**
|
|
10095
|
-
*
|
|
10027
|
+
* 是否存在二维码(1:有,0:无)
|
|
10096
10028
|
*/
|
|
10097
|
-
|
|
10029
|
+
QRCodeMark?: number;
|
|
10098
10030
|
}
|
|
10099
10031
|
/**
|
|
10100
10032
|
* 企业证照单个字段的内容
|