tencentcloud-sdk-nodejs-ocr 4.1.186 → 4.1.187
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.
|
@@ -27,6 +27,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
27
27
|
async MLIDPassportOCR(req, cb) {
|
|
28
28
|
return this.request("MLIDPassportOCR", req, cb);
|
|
29
29
|
}
|
|
30
|
+
async SubmitMarkEssayAgentJob(req, cb) {
|
|
31
|
+
return this.request("SubmitMarkEssayAgentJob", req, cb);
|
|
32
|
+
}
|
|
30
33
|
async TrainTicketOCR(req, cb) {
|
|
31
34
|
return this.request("TrainTicketOCR", req, cb);
|
|
32
35
|
}
|
|
@@ -171,6 +174,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
171
174
|
async HmtResidentPermitOCR(req, cb) {
|
|
172
175
|
return this.request("HmtResidentPermitOCR", req, cb);
|
|
173
176
|
}
|
|
177
|
+
async DescribeMarkEssayAgentJob(req, cb) {
|
|
178
|
+
return this.request("DescribeMarkEssayAgentJob", req, cb);
|
|
179
|
+
}
|
|
174
180
|
async TollInvoiceOCR(req, cb) {
|
|
175
181
|
return this.request("TollInvoiceOCR", req, cb);
|
|
176
182
|
}
|
|
@@ -186,8 +192,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
186
192
|
async BankSlipOCR(req, cb) {
|
|
187
193
|
return this.request("BankSlipOCR", req, cb);
|
|
188
194
|
}
|
|
189
|
-
async
|
|
190
|
-
return this.request("
|
|
195
|
+
async VehicleRegCertOCR(req, cb) {
|
|
196
|
+
return this.request("VehicleRegCertOCR", req, cb);
|
|
191
197
|
}
|
|
192
198
|
async RecognizeTravelCardOCR(req, cb) {
|
|
193
199
|
return this.request("RecognizeTravelCardOCR", req, cb);
|
|
@@ -249,8 +255,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
249
255
|
async AdvertiseOCR(req, cb) {
|
|
250
256
|
return this.request("AdvertiseOCR", req, cb);
|
|
251
257
|
}
|
|
252
|
-
async
|
|
253
|
-
return this.request("
|
|
258
|
+
async ResidenceBookletOCR(req, cb) {
|
|
259
|
+
return this.request("ResidenceBookletOCR", req, cb);
|
|
254
260
|
}
|
|
255
261
|
async CarInvoiceOCR(req, cb) {
|
|
256
262
|
return this.request("CarInvoiceOCR", req, cb);
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, VinOCRResponse, BankCardOCRRequest,
|
|
2
|
+
import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, VinOCRResponse, BankCardOCRRequest, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, SubmitQuestionMarkAgentJobRequest, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, RecognizeTravelCardOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, ExtractDocAgentResponse, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, MLIDCardOCRRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, RecognizeHealthCodeOCRResponse, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, SubmitMarkEssayAgentJobRequest, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, RecognizeTableMultiOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, TrainTicketOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeTravelCardOCRResponse, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeValidIDCardOCRResponse, DescribeMarkEssayAgentJobRequest, GeneralFastOCRResponse } from "./ocr_models";
|
|
3
3
|
/**
|
|
4
4
|
* ocr client
|
|
5
5
|
* @class
|
|
@@ -157,6 +157,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
157
157
|
默认接口请求频率限制:5次/秒。
|
|
158
158
|
*/
|
|
159
159
|
MLIDPassportOCR(req: MLIDPassportOCRRequest, cb?: (error: string, rep: MLIDPassportOCRResponse) => void): Promise<MLIDPassportOCRResponse>;
|
|
160
|
+
/**
|
|
161
|
+
* 用于作文批改Agent提交任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
|
|
162
|
+
|
|
163
|
+
默认接口请求并发限制:2次/分钟。
|
|
164
|
+
*/
|
|
165
|
+
SubmitMarkEssayAgentJob(req: SubmitMarkEssayAgentJobRequest, cb?: (error: string, rep: SubmitMarkEssayAgentJobResponse) => void): Promise<SubmitMarkEssayAgentJobResponse>;
|
|
160
166
|
/**
|
|
161
167
|
* 本接口支持火车票全字段的识别,包括编号、出发站、到达站、出发时间、车次、座位号、姓名、票价、席别、身份证号、发票消费类型、序列号、加收票价、手续费、大写金额、售票站、原票价、发票类型、收据号码、是否仅供报销使用等字段的识别。
|
|
162
168
|
|
|
@@ -765,6 +771,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
765
771
|
默认接口请求频率限制:20次/秒。
|
|
766
772
|
*/
|
|
767
773
|
HmtResidentPermitOCR(req: HmtResidentPermitOCRRequest, cb?: (error: string, rep: HmtResidentPermitOCRResponse) => void): Promise<HmtResidentPermitOCRResponse>;
|
|
774
|
+
/**
|
|
775
|
+
* 用于作文批改Agent查询任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
|
|
776
|
+
|
|
777
|
+
默认接口请求并发限制:2次/分钟。
|
|
778
|
+
*/
|
|
779
|
+
DescribeMarkEssayAgentJob(req: DescribeMarkEssayAgentJobRequest, cb?: (error: string, rep: DescribeMarkEssayAgentJobResponse) => void): Promise<DescribeMarkEssayAgentJobResponse>;
|
|
768
780
|
/**
|
|
769
781
|
* <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
|
|
770
782
|
本接口支持过路过桥费发票关键字段的识别,包括发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志等。
|
|
@@ -797,11 +809,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
797
809
|
*/
|
|
798
810
|
BankSlipOCR(req: BankSlipOCRRequest, cb?: (error: string, rep: BankSlipOCRResponse) => void): Promise<BankSlipOCRResponse>;
|
|
799
811
|
/**
|
|
800
|
-
*
|
|
812
|
+
* 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
|
|
801
813
|
|
|
802
814
|
默认接口请求频率限制:5次/秒。
|
|
803
815
|
*/
|
|
804
|
-
|
|
816
|
+
VehicleRegCertOCR(req: VehicleRegCertOCRRequest, cb?: (error: string, rep: VehicleRegCertOCRResponse) => void): Promise<VehicleRegCertOCRResponse>;
|
|
805
817
|
/**
|
|
806
818
|
* 产品规划
|
|
807
819
|
|
|
@@ -995,11 +1007,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
995
1007
|
*/
|
|
996
1008
|
AdvertiseOCR(req: AdvertiseOCRRequest, cb?: (error: string, rep: AdvertiseOCRResponse) => void): Promise<AdvertiseOCRResponse>;
|
|
997
1009
|
/**
|
|
998
|
-
*
|
|
1010
|
+
* 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
|
999
1011
|
|
|
1000
1012
|
默认接口请求频率限制:5次/秒。
|
|
1001
1013
|
*/
|
|
1002
|
-
|
|
1014
|
+
ResidenceBookletOCR(req: ResidenceBookletOCRRequest, cb?: (error: string, rep: ResidenceBookletOCRResponse) => void): Promise<ResidenceBookletOCRResponse>;
|
|
1003
1015
|
/**
|
|
1004
1016
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
1005
1017
|
|
|
@@ -195,6 +195,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
195
195
|
async MLIDPassportOCR(req, cb) {
|
|
196
196
|
return this.request("MLIDPassportOCR", req, cb);
|
|
197
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* 用于作文批改Agent提交任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
|
|
200
|
+
|
|
201
|
+
默认接口请求并发限制:2次/分钟。
|
|
202
|
+
*/
|
|
203
|
+
async SubmitMarkEssayAgentJob(req, cb) {
|
|
204
|
+
return this.request("SubmitMarkEssayAgentJob", req, cb);
|
|
205
|
+
}
|
|
198
206
|
/**
|
|
199
207
|
* 本接口支持火车票全字段的识别,包括编号、出发站、到达站、出发时间、车次、座位号、姓名、票价、席别、身份证号、发票消费类型、序列号、加收票价、手续费、大写金额、售票站、原票价、发票类型、收据号码、是否仅供报销使用等字段的识别。
|
|
200
208
|
|
|
@@ -899,6 +907,14 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
899
907
|
async HmtResidentPermitOCR(req, cb) {
|
|
900
908
|
return this.request("HmtResidentPermitOCR", req, cb);
|
|
901
909
|
}
|
|
910
|
+
/**
|
|
911
|
+
* 用于作文批改Agent查询任务。基于业界领先的千亿参数多模态大模型技术,提供中英文手写作文的精准批改端到端服务。核心功能涵盖错别字智能识别、好词好句点评、错句纠错,并能够在原文中定位至具体段落与字符位置,同时提供详细的修改建议与优化内容。此能力是作业批改场景中的核心模块。
|
|
912
|
+
|
|
913
|
+
默认接口请求并发限制:2次/分钟。
|
|
914
|
+
*/
|
|
915
|
+
async DescribeMarkEssayAgentJob(req, cb) {
|
|
916
|
+
return this.request("DescribeMarkEssayAgentJob", req, cb);
|
|
917
|
+
}
|
|
902
918
|
/**
|
|
903
919
|
* <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
|
|
904
920
|
本接口支持过路过桥费发票关键字段的识别,包括发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志等。
|
|
@@ -941,12 +957,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
941
957
|
return this.request("BankSlipOCR", req, cb);
|
|
942
958
|
}
|
|
943
959
|
/**
|
|
944
|
-
*
|
|
960
|
+
* 本接口支持国内机动车登记证书主要字段的结构化识别,包括机动车所有人、身份证明名称、号码、车辆型号、车辆识别代号、发动机号、制造厂名称等。
|
|
945
961
|
|
|
946
962
|
默认接口请求频率限制:5次/秒。
|
|
947
963
|
*/
|
|
948
|
-
async
|
|
949
|
-
return this.request("
|
|
964
|
+
async VehicleRegCertOCR(req, cb) {
|
|
965
|
+
return this.request("VehicleRegCertOCR", req, cb);
|
|
950
966
|
}
|
|
951
967
|
/**
|
|
952
968
|
* 产品规划
|
|
@@ -1181,12 +1197,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
1181
1197
|
return this.request("AdvertiseOCR", req, cb);
|
|
1182
1198
|
}
|
|
1183
1199
|
/**
|
|
1184
|
-
*
|
|
1200
|
+
* 本接口支持居民户口簿户主页及成员页关键字段的识别,包括姓名、户别、地址、籍贯、身份证号码等。
|
|
1185
1201
|
|
|
1186
1202
|
默认接口请求频率限制:5次/秒。
|
|
1187
1203
|
*/
|
|
1188
|
-
async
|
|
1189
|
-
return this.request("
|
|
1204
|
+
async ResidenceBookletOCR(req, cb) {
|
|
1205
|
+
return this.request("ResidenceBookletOCR", req, cb);
|
|
1190
1206
|
}
|
|
1191
1207
|
/**
|
|
1192
1208
|
* 本接口支持机动车销售统一发票和二手车销售统一发票的识别,包括发票号码、发票代码、合计金额、合计税额等二十多个字段。
|
|
@@ -384,42 +384,77 @@ export interface BankCardOCRRequest {
|
|
|
384
384
|
EnableQualityValue?: boolean;
|
|
385
385
|
}
|
|
386
386
|
/**
|
|
387
|
-
*
|
|
387
|
+
* 增值税发票项目明细
|
|
388
388
|
*/
|
|
389
|
-
export interface
|
|
389
|
+
export interface VatInvoiceItem {
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* 行号
|
|
392
392
|
*/
|
|
393
|
-
|
|
393
|
+
LineNo: string;
|
|
394
394
|
/**
|
|
395
|
-
*
|
|
395
|
+
* 名称
|
|
396
396
|
*/
|
|
397
|
-
|
|
397
|
+
Name: string;
|
|
398
398
|
/**
|
|
399
|
-
*
|
|
399
|
+
* 规格
|
|
400
400
|
*/
|
|
401
|
-
|
|
401
|
+
Spec: string;
|
|
402
402
|
/**
|
|
403
|
-
*
|
|
403
|
+
* 单位
|
|
404
404
|
*/
|
|
405
|
-
|
|
405
|
+
Unit: string;
|
|
406
406
|
/**
|
|
407
|
-
*
|
|
408
|
-
|
|
407
|
+
* 数量
|
|
409
408
|
*/
|
|
410
|
-
|
|
409
|
+
Quantity: string;
|
|
411
410
|
/**
|
|
412
|
-
*
|
|
411
|
+
* 单价
|
|
413
412
|
*/
|
|
414
|
-
|
|
413
|
+
UnitPrice: string;
|
|
415
414
|
/**
|
|
416
|
-
*
|
|
415
|
+
* 不含税金额
|
|
417
416
|
*/
|
|
418
|
-
|
|
417
|
+
AmountWithoutTax: string;
|
|
419
418
|
/**
|
|
420
|
-
*
|
|
419
|
+
* 税率
|
|
421
420
|
*/
|
|
422
|
-
|
|
421
|
+
TaxRate: string;
|
|
422
|
+
/**
|
|
423
|
+
* 税额
|
|
424
|
+
*/
|
|
425
|
+
TaxAmount: string;
|
|
426
|
+
/**
|
|
427
|
+
* 税收分类编码
|
|
428
|
+
*/
|
|
429
|
+
TaxClassifyCode: string;
|
|
430
|
+
/**
|
|
431
|
+
* 运输工具类型
|
|
432
|
+
*/
|
|
433
|
+
VehicleType?: string;
|
|
434
|
+
/**
|
|
435
|
+
* 运输工具牌号
|
|
436
|
+
*/
|
|
437
|
+
VehicleBrand?: string;
|
|
438
|
+
/**
|
|
439
|
+
* 起始地
|
|
440
|
+
*/
|
|
441
|
+
DeparturePlace?: string;
|
|
442
|
+
/**
|
|
443
|
+
* 到达地
|
|
444
|
+
*/
|
|
445
|
+
ArrivalPlace?: string;
|
|
446
|
+
/**
|
|
447
|
+
* 运输货物名称
|
|
448
|
+
*/
|
|
449
|
+
TransportItemsName?: string;
|
|
450
|
+
/**
|
|
451
|
+
* 建筑服务发生地
|
|
452
|
+
*/
|
|
453
|
+
ConstructionPlace?: string;
|
|
454
|
+
/**
|
|
455
|
+
* 建筑项目名称
|
|
456
|
+
*/
|
|
457
|
+
ConstructionName?: string;
|
|
423
458
|
}
|
|
424
459
|
/**
|
|
425
460
|
* CarInvoiceOCR请求参数结构体
|
|
@@ -581,25 +616,33 @@ export interface QuestionSplitLayoutOCRRequest {
|
|
|
581
616
|
UseNewModel?: boolean;
|
|
582
617
|
}
|
|
583
618
|
/**
|
|
584
|
-
*
|
|
619
|
+
* DescribeMarkEssayAgentJob返回参数结构体
|
|
585
620
|
*/
|
|
586
|
-
export interface
|
|
621
|
+
export interface DescribeMarkEssayAgentJobResponse {
|
|
587
622
|
/**
|
|
588
|
-
*
|
|
623
|
+
* 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
|
|
589
624
|
*/
|
|
590
|
-
|
|
625
|
+
Angle?: number;
|
|
591
626
|
/**
|
|
592
|
-
*
|
|
627
|
+
* 配置结构化文本信息。
|
|
593
628
|
*/
|
|
594
|
-
|
|
629
|
+
SentenceSuggests?: Array<MarkEssaySuggestions>;
|
|
595
630
|
/**
|
|
596
|
-
*
|
|
631
|
+
* 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
597
632
|
*/
|
|
598
|
-
|
|
633
|
+
ErrorCode?: string;
|
|
599
634
|
/**
|
|
600
|
-
*
|
|
635
|
+
* 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
601
636
|
*/
|
|
602
|
-
|
|
637
|
+
ErrorMessage?: string;
|
|
638
|
+
/**
|
|
639
|
+
* 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
640
|
+
*/
|
|
641
|
+
JobStatus?: string;
|
|
642
|
+
/**
|
|
643
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
644
|
+
*/
|
|
645
|
+
RequestId?: string;
|
|
603
646
|
}
|
|
604
647
|
/**
|
|
605
648
|
* EstateCertOCR返回参数结构体
|
|
@@ -2207,24 +2250,39 @@ export interface WordPolygon {
|
|
|
2207
2250
|
Coord?: Polygon;
|
|
2208
2251
|
}
|
|
2209
2252
|
/**
|
|
2210
|
-
*
|
|
2253
|
+
* EnglishOCR请求参数结构体
|
|
2211
2254
|
*/
|
|
2212
|
-
export interface
|
|
2255
|
+
export interface EnglishOCRRequest {
|
|
2213
2256
|
/**
|
|
2214
2257
|
* 图片的 Base64 值。
|
|
2215
2258
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
2216
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3
|
|
2259
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。像素须介于20-10000px之间。
|
|
2217
2260
|
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
2261
|
+
|
|
2218
2262
|
*/
|
|
2219
2263
|
ImageBase64?: string;
|
|
2220
2264
|
/**
|
|
2221
2265
|
* 图片的 Url 地址。
|
|
2222
2266
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
2223
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3
|
|
2267
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。像素须介于20-10000px之间。
|
|
2224
2268
|
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
2225
2269
|
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
2226
2270
|
*/
|
|
2227
2271
|
ImageUrl?: string;
|
|
2272
|
+
/**
|
|
2273
|
+
* 单词四点坐标开关,开启可返回图片中单词的四点坐标。
|
|
2274
|
+
该参数默认值为false。
|
|
2275
|
+
*/
|
|
2276
|
+
EnableCoordPoint?: boolean;
|
|
2277
|
+
/**
|
|
2278
|
+
* 候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。
|
|
2279
|
+
该参数默认值为false。
|
|
2280
|
+
*/
|
|
2281
|
+
EnableCandWord?: boolean;
|
|
2282
|
+
/**
|
|
2283
|
+
* 预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。
|
|
2284
|
+
*/
|
|
2285
|
+
Preprocess?: boolean;
|
|
2228
2286
|
}
|
|
2229
2287
|
/**
|
|
2230
2288
|
* VehicleLicenseOCR请求参数结构体
|
|
@@ -5779,6 +5837,27 @@ export interface FinancialBill {
|
|
|
5779
5837
|
*/
|
|
5780
5838
|
FinancialBillItemDetails?: Array<FinancialBillItemDetails>;
|
|
5781
5839
|
}
|
|
5840
|
+
/**
|
|
5841
|
+
* SubmitMarkEssayAgentJob请求参数结构体
|
|
5842
|
+
*/
|
|
5843
|
+
export interface SubmitMarkEssayAgentJobRequest {
|
|
5844
|
+
/**
|
|
5845
|
+
* 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。 示例值:/9j/4AAQSkZJRg.....s97n//2Q==
|
|
5846
|
+
*/
|
|
5847
|
+
ImageBase64List?: Array<string>;
|
|
5848
|
+
/**
|
|
5849
|
+
* 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。 示例值:https://ocr-demo-1254418846.cos.ap-guangzhou.myqcloud.com/general/GeneralAccurateOCR/GeneralAccurateOCR1.jpg
|
|
5850
|
+
*/
|
|
5851
|
+
ImageUrlList?: Array<string>;
|
|
5852
|
+
/**
|
|
5853
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。 示例值:1
|
|
5854
|
+
*/
|
|
5855
|
+
PdfPageNumber?: number;
|
|
5856
|
+
/**
|
|
5857
|
+
* 批改信息输出配置,当key对应为1表示开启配置开关。 当key为StructureAndContent value为1 表示SentenceSuggest返回篇章结构和内容信息,默认只返回词汇、语句
|
|
5858
|
+
*/
|
|
5859
|
+
QuestionConfigMap?: string;
|
|
5860
|
+
}
|
|
5782
5861
|
/**
|
|
5783
5862
|
* LicensePlateOCR请求参数结构体
|
|
5784
5863
|
*/
|
|
@@ -5979,6 +6058,19 @@ export interface RecognizeTableMultiOCRRequest {
|
|
|
5979
6058
|
*/
|
|
5980
6059
|
DataFormat?: string;
|
|
5981
6060
|
}
|
|
6061
|
+
/**
|
|
6062
|
+
* SubmitMarkEssayAgentJob返回参数结构体
|
|
6063
|
+
*/
|
|
6064
|
+
export interface SubmitMarkEssayAgentJobResponse {
|
|
6065
|
+
/**
|
|
6066
|
+
* 任务唯一ID。由服务端生成。 示例值:1334797167793684480
|
|
6067
|
+
*/
|
|
6068
|
+
JobIds?: Array<string>;
|
|
6069
|
+
/**
|
|
6070
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
6071
|
+
*/
|
|
6072
|
+
RequestId?: string;
|
|
6073
|
+
}
|
|
5982
6074
|
/**
|
|
5983
6075
|
* GeneralEfficientOCR请求参数结构体
|
|
5984
6076
|
*/
|
|
@@ -6305,39 +6397,24 @@ export interface ExtractDocBasicResponse {
|
|
|
6305
6397
|
RequestId?: string;
|
|
6306
6398
|
}
|
|
6307
6399
|
/**
|
|
6308
|
-
*
|
|
6400
|
+
* EnterpriseLicenseOCR请求参数结构体
|
|
6309
6401
|
*/
|
|
6310
|
-
export interface
|
|
6402
|
+
export interface EnterpriseLicenseOCRRequest {
|
|
6311
6403
|
/**
|
|
6312
6404
|
* 图片的 Base64 值。
|
|
6313
6405
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
6314
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3
|
|
6406
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
6315
6407
|
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
6316
|
-
|
|
6317
6408
|
*/
|
|
6318
6409
|
ImageBase64?: string;
|
|
6319
6410
|
/**
|
|
6320
6411
|
* 图片的 Url 地址。
|
|
6321
6412
|
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
|
6322
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3
|
|
6413
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
|
6323
6414
|
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
|
6324
6415
|
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
6325
6416
|
*/
|
|
6326
6417
|
ImageUrl?: string;
|
|
6327
|
-
/**
|
|
6328
|
-
* 单词四点坐标开关,开启可返回图片中单词的四点坐标。
|
|
6329
|
-
该参数默认值为false。
|
|
6330
|
-
*/
|
|
6331
|
-
EnableCoordPoint?: boolean;
|
|
6332
|
-
/**
|
|
6333
|
-
* 候选字开关,开启可返回识别时多个可能的候选字(每个候选字对应其置信度)。
|
|
6334
|
-
该参数默认值为false。
|
|
6335
|
-
*/
|
|
6336
|
-
EnableCandWord?: boolean;
|
|
6337
|
-
/**
|
|
6338
|
-
* 预处理开关,功能是检测图片倾斜的角度,将原本倾斜的图片矫正。该参数默认值为true。
|
|
6339
|
-
*/
|
|
6340
|
-
Preprocess?: boolean;
|
|
6341
6418
|
}
|
|
6342
6419
|
/**
|
|
6343
6420
|
* 增值税发票项目信息
|
|
@@ -7506,6 +7583,52 @@ export interface ContentInfo {
|
|
|
7506
7583
|
*/
|
|
7507
7584
|
IsKeyReflect?: number;
|
|
7508
7585
|
}
|
|
7586
|
+
/**
|
|
7587
|
+
* 作文批改建议
|
|
7588
|
+
*/
|
|
7589
|
+
export interface MarkEssaySuggestions {
|
|
7590
|
+
/**
|
|
7591
|
+
* 作文批改序号
|
|
7592
|
+
*/
|
|
7593
|
+
ID?: number;
|
|
7594
|
+
/**
|
|
7595
|
+
* 批改类型:主要包括:词汇、语句
|
|
7596
|
+
*/
|
|
7597
|
+
Type?: string;
|
|
7598
|
+
/**
|
|
7599
|
+
* 子类型,基于Type返回二级类型
|
|
7600
|
+
|
|
7601
|
+
词汇: 错别字、使用拼音、词语误用、词语冗余、词汇贫乏、多字/漏字
|
|
7602
|
+
|
|
7603
|
+
语句:语法硬伤、逻辑问题、表达不佳、标点误用、优美句子
|
|
7604
|
+
*/
|
|
7605
|
+
SubType?: string;
|
|
7606
|
+
/**
|
|
7607
|
+
* 原文内容
|
|
7608
|
+
*/
|
|
7609
|
+
Origin?: string;
|
|
7610
|
+
/**
|
|
7611
|
+
* 批改后的内容
|
|
7612
|
+
*/
|
|
7613
|
+
Replace?: string;
|
|
7614
|
+
/**
|
|
7615
|
+
* 点评内容
|
|
7616
|
+
*/
|
|
7617
|
+
Message?: string;
|
|
7618
|
+
/**
|
|
7619
|
+
* array[][]二维数组,原文内容可能存在跨行的句子,会有多组坐标返回
|
|
7620
|
+
|
|
7621
|
+
切图区域的4个角点坐标, 是个长度为8的数组
|
|
7622
|
+
|
|
7623
|
+
[0,1,2,3,4,5,6,7]
|
|
7624
|
+
|
|
7625
|
+
(0,1) 左上角坐标
|
|
7626
|
+
(2,3) 右上角坐标
|
|
7627
|
+
(4,5) 右下角坐标
|
|
7628
|
+
(6,7) 左下角坐标
|
|
7629
|
+
*/
|
|
7630
|
+
Positions?: Array<Positions>;
|
|
7631
|
+
}
|
|
7509
7632
|
/**
|
|
7510
7633
|
* 表格标题
|
|
7511
7634
|
*/
|
|
@@ -8757,6 +8880,27 @@ export interface ClassifyDetectInfo {
|
|
|
8757
8880
|
*/
|
|
8758
8881
|
Rect?: Rect;
|
|
8759
8882
|
}
|
|
8883
|
+
/**
|
|
8884
|
+
* TrainTicketOCR请求参数结构体
|
|
8885
|
+
*/
|
|
8886
|
+
export interface TrainTicketOCRRequest {
|
|
8887
|
+
/**
|
|
8888
|
+
* 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
8889
|
+
*/
|
|
8890
|
+
ImageBase64?: string;
|
|
8891
|
+
/**
|
|
8892
|
+
* 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
8893
|
+
*/
|
|
8894
|
+
ImageUrl?: string;
|
|
8895
|
+
/**
|
|
8896
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
8897
|
+
*/
|
|
8898
|
+
IsPdf?: boolean;
|
|
8899
|
+
/**
|
|
8900
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
|
8901
|
+
*/
|
|
8902
|
+
PdfPageNumber?: number;
|
|
8903
|
+
}
|
|
8760
8904
|
/**
|
|
8761
8905
|
* GeneralEfficientOCR返回参数结构体
|
|
8762
8906
|
*/
|
|
@@ -10212,77 +10356,21 @@ export interface RecognizeEncryptedIDCardOCRResponse {
|
|
|
10212
10356
|
RequestId?: string;
|
|
10213
10357
|
}
|
|
10214
10358
|
/**
|
|
10215
|
-
*
|
|
10359
|
+
* 这是OCR在高精度识别下返回的坐标值,采用的是由一个数组表示4个顶点的坐标构成,如[0,1,2,3,4,5,6,7]
|
|
10360
|
+
- (0,1) 左上角坐标
|
|
10361
|
+
- (2,3) 右上角坐标
|
|
10362
|
+
- (4,5) 右下角坐标
|
|
10363
|
+
- (6,7) 左下角坐标
|
|
10216
10364
|
*/
|
|
10217
|
-
export interface
|
|
10218
|
-
/**
|
|
10219
|
-
* 行号
|
|
10220
|
-
*/
|
|
10221
|
-
LineNo: string;
|
|
10222
|
-
/**
|
|
10223
|
-
* 名称
|
|
10224
|
-
*/
|
|
10225
|
-
Name: string;
|
|
10226
|
-
/**
|
|
10227
|
-
* 规格
|
|
10228
|
-
*/
|
|
10229
|
-
Spec: string;
|
|
10230
|
-
/**
|
|
10231
|
-
* 单位
|
|
10232
|
-
*/
|
|
10233
|
-
Unit: string;
|
|
10234
|
-
/**
|
|
10235
|
-
* 数量
|
|
10236
|
-
*/
|
|
10237
|
-
Quantity: string;
|
|
10238
|
-
/**
|
|
10239
|
-
* 单价
|
|
10240
|
-
*/
|
|
10241
|
-
UnitPrice: string;
|
|
10242
|
-
/**
|
|
10243
|
-
* 不含税金额
|
|
10244
|
-
*/
|
|
10245
|
-
AmountWithoutTax: string;
|
|
10365
|
+
export interface Positions {
|
|
10246
10366
|
/**
|
|
10247
|
-
*
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
*/
|
|
10253
|
-
TaxAmount: string;
|
|
10254
|
-
/**
|
|
10255
|
-
* 税收分类编码
|
|
10256
|
-
*/
|
|
10257
|
-
TaxClassifyCode: string;
|
|
10258
|
-
/**
|
|
10259
|
-
* 运输工具类型
|
|
10260
|
-
*/
|
|
10261
|
-
VehicleType?: string;
|
|
10262
|
-
/**
|
|
10263
|
-
* 运输工具牌号
|
|
10264
|
-
*/
|
|
10265
|
-
VehicleBrand?: string;
|
|
10266
|
-
/**
|
|
10267
|
-
* 起始地
|
|
10367
|
+
* 这是OCR在高精度识别下返回的坐标值,采用的是由一个数组表示4个顶点的坐标构成,如[0,1,2,3,4,5,6,7]
|
|
10368
|
+
- (0,1) 左上角坐标
|
|
10369
|
+
- (2,3) 右上角坐标
|
|
10370
|
+
- (4,5) 右下角坐标
|
|
10371
|
+
- (6,7) 左下角坐标
|
|
10268
10372
|
*/
|
|
10269
|
-
|
|
10270
|
-
/**
|
|
10271
|
-
* 到达地
|
|
10272
|
-
*/
|
|
10273
|
-
ArrivalPlace?: string;
|
|
10274
|
-
/**
|
|
10275
|
-
* 运输货物名称
|
|
10276
|
-
*/
|
|
10277
|
-
TransportItemsName?: string;
|
|
10278
|
-
/**
|
|
10279
|
-
* 建筑服务发生地
|
|
10280
|
-
*/
|
|
10281
|
-
ConstructionPlace?: string;
|
|
10282
|
-
/**
|
|
10283
|
-
* 建筑项目名称
|
|
10284
|
-
*/
|
|
10285
|
-
ConstructionName?: string;
|
|
10373
|
+
Position?: Array<number | bigint>;
|
|
10286
10374
|
}
|
|
10287
10375
|
/**
|
|
10288
10376
|
* RideHailingTransportLicenseOCR返回参数结构体
|
|
@@ -10958,6 +11046,44 @@ export interface RideHailingTransportLicenseOCRRequest {
|
|
|
10958
11046
|
*/
|
|
10959
11047
|
ImageUrl?: string;
|
|
10960
11048
|
}
|
|
11049
|
+
/**
|
|
11050
|
+
* VatInvoiceVerifyNew返回参数结构体
|
|
11051
|
+
*/
|
|
11052
|
+
export interface VatInvoiceVerifyNewResponse {
|
|
11053
|
+
/**
|
|
11054
|
+
* 增值税发票、购车发票、全电发票的基础要素字段信息。
|
|
11055
|
+
*/
|
|
11056
|
+
Invoice?: VatInvoice;
|
|
11057
|
+
/**
|
|
11058
|
+
* 机动车销售统一发票详细字段信息。
|
|
11059
|
+
*/
|
|
11060
|
+
VehicleInvoiceInfo?: VehicleInvoiceInfo;
|
|
11061
|
+
/**
|
|
11062
|
+
* 二手车销售统一发票详细字段信息。
|
|
11063
|
+
*/
|
|
11064
|
+
UsedVehicleInvoiceInfo?: UsedVehicleInvoiceInfo;
|
|
11065
|
+
/**
|
|
11066
|
+
* 通行费发票详细字段信息。
|
|
11067
|
+
*/
|
|
11068
|
+
PassInvoiceInfoList?: Array<PassInvoiceInfo>;
|
|
11069
|
+
/**
|
|
11070
|
+
* 全电发票(铁路电子客票)详细字段信息。
|
|
11071
|
+
|
|
11072
|
+
*/
|
|
11073
|
+
ElectronicTrainTicket?: ElectronicTrainTicket;
|
|
11074
|
+
/**
|
|
11075
|
+
* 全电发票(航空运输电子客票行程单)详细字段信息。
|
|
11076
|
+
*/
|
|
11077
|
+
ElectronicAirTransport?: ElectronicAirTransport;
|
|
11078
|
+
/**
|
|
11079
|
+
* 财政发票详细字段信息
|
|
11080
|
+
*/
|
|
11081
|
+
FinancialBill?: FinancialBill;
|
|
11082
|
+
/**
|
|
11083
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11084
|
+
*/
|
|
11085
|
+
RequestId?: string;
|
|
11086
|
+
}
|
|
10961
11087
|
/**
|
|
10962
11088
|
* MLIDCardOCR返回参数结构体
|
|
10963
11089
|
*/
|
|
@@ -11543,6 +11669,15 @@ export interface RecognizeValidIDCardOCRResponse {
|
|
|
11543
11669
|
*/
|
|
11544
11670
|
RequestId?: string;
|
|
11545
11671
|
}
|
|
11672
|
+
/**
|
|
11673
|
+
* DescribeMarkEssayAgentJob请求参数结构体
|
|
11674
|
+
*/
|
|
11675
|
+
export interface DescribeMarkEssayAgentJobRequest {
|
|
11676
|
+
/**
|
|
11677
|
+
* 任务唯一ID。由服务端生成。
|
|
11678
|
+
*/
|
|
11679
|
+
JobId?: string;
|
|
11680
|
+
}
|
|
11546
11681
|
/**
|
|
11547
11682
|
* GeneralFastOCR返回参数结构体
|
|
11548
11683
|
*/
|