tencentcloud-sdk-nodejs-ocr 4.1.223 → 4.1.225
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.
|
@@ -36,6 +36,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
36
36
|
async RecognizeValidIDCardOCR(req, cb) {
|
|
37
37
|
return this.request("RecognizeValidIDCardOCR", req, cb);
|
|
38
38
|
}
|
|
39
|
+
async VerifyScenePhoto(req, cb) {
|
|
40
|
+
return this.request("VerifyScenePhoto", req, cb);
|
|
41
|
+
}
|
|
39
42
|
async InvoiceGeneralOCR(req, cb) {
|
|
40
43
|
return this.request("InvoiceGeneralOCR", req, cb);
|
|
41
44
|
}
|
|
@@ -78,9 +81,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
78
81
|
async FlightInvoiceOCR(req, cb) {
|
|
79
82
|
return this.request("FlightInvoiceOCR", req, cb);
|
|
80
83
|
}
|
|
81
|
-
async CropEnhanceImageOCR(req, cb) {
|
|
82
|
-
return this.request("CropEnhanceImageOCR", req, cb);
|
|
83
|
-
}
|
|
84
84
|
async RecognizeGeneralInvoice(req, cb) {
|
|
85
85
|
return this.request("RecognizeGeneralInvoice", req, cb);
|
|
86
86
|
}
|
|
@@ -126,15 +126,15 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
126
126
|
async BankCardOCR(req, cb) {
|
|
127
127
|
return this.request("BankCardOCR", req, cb);
|
|
128
128
|
}
|
|
129
|
-
async EraseHandwrittenImageOCR(req, cb) {
|
|
130
|
-
return this.request("EraseHandwrittenImageOCR", req, cb);
|
|
131
|
-
}
|
|
132
129
|
async GetOCRToken(req, cb) {
|
|
133
130
|
return this.request("GetOCRToken", req, cb);
|
|
134
131
|
}
|
|
135
132
|
async EduPaperOCR(req, cb) {
|
|
136
133
|
return this.request("EduPaperOCR", req, cb);
|
|
137
134
|
}
|
|
135
|
+
async RecognizeAgent(req, cb) {
|
|
136
|
+
return this.request("RecognizeAgent", req, cb);
|
|
137
|
+
}
|
|
138
138
|
async EnterpriseLicenseOCR(req, cb) {
|
|
139
139
|
return this.request("EnterpriseLicenseOCR", req, cb);
|
|
140
140
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import {
|
|
2
|
+
import { BankSlipOCRRequest, HKIDCardOCRRequest, DescribeQuestionMarkAgentJobResponse, RecognizeTravelCardOCRRequest, EstateCertOCRResponse, RecognizeTableOCRRequest, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, InvoiceGeneralOCRRequest, RecognizeFormulaOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, BizLicenseOCRRequest, RecognizeGeneralInvoiceRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TaxiInvoiceOCRRequest, VerifyScenePhotoRequest, ImageEnhancementResponse, LicensePlateOCRRequest, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, ClassifyStoreNameResponse, HandwritingEssayOCRRequest, VinOCRResponse, MLIDCardOCRRequest, DescribeExtractDocAgentJobResponse, RecognizeFormulaOCRResponse, QuotaInvoiceOCRResponse, ResidenceBookletOCRRequest, InsuranceBillOCRRequest, QrcodeOCRRequest, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, SmartStructuralOCRResponse, IDCardOCRRequest, GetOCRTokenRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, ShipInvoiceOCRRequest, BusinessCardOCRRequest, VerifyBizLicenseEnterprise4Response, GeneralFastOCRResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, MLIDPassportOCRRequest, VehicleLicenseOCRRequest, QuestionOCRResponse, SubmitQuestionMarkAgentJobRequest, QuestionSplitOCRResponse, TrainTicketOCRResponse, RecognizeGeneralCardWarnRequest, GeneralHandwritingOCRRequest, TaxiInvoiceOCRResponse, VinOCRRequest, QuotaInvoiceOCRRequest, TollInvoiceOCRRequest, VerifyScenePhotoResponse, VatRollInvoiceOCRResponse, RecognizeThaiIDCardOCRRequest, RecognizeEncryptedIDCardOCRRequest, SubmitMarkEssayAgentJobRequest, TrainTicketOCRRequest, ExtractDocBasicResponse, EnglishOCRRequest, FlightInvoiceOCRResponse, ArithmeticOCRRequest, MLIDPassportOCRResponse, DescribeExtractDocAgentJobRequest, SealOCRResponse, EduPaperOCRRequest, PassportOCRRequest, RideHailingDriverLicenseOCRRequest, MixedInvoiceOCRRequest, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, VehicleRegCertOCRResponse, RecognizeTableAccurateOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, BusInvoiceOCRRequest, RecognizeContainerOCRResponse, TableOCRResponse, AdvertiseOCRResponse, RecognizeOnlineTaxiItineraryOCRRequest, EstateCertOCRRequest, FinanBillOCRRequest, DescribeMarkEssayAgentJobRequest, RecognizeOnlineTaxiItineraryOCRResponse, ClassifyDetectOCRResponse, CarInvoiceOCRRequest, TextDetectResponse, VatInvoiceVerifyNewRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizeStoreNameRequest, FormulaOCRResponse, DescribeQuestionMarkAgentJobRequest, GeneralEfficientOCRResponse, HmtResidentPermitOCRRequest, GeneralBasicOCRResponse, PermitOCRRequest, BankCardOCRRequest, ExtractDocAgentResponse, VatInvoiceOCRRequest, IDCardOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, VatInvoiceVerifyNewResponse, ExtractDocMultiResponse, TextDetectRequest, ResidenceBookletOCRResponse, QuestionSplitLayoutOCRResponse, GeneralBasicOCRRequest, TollInvoiceOCRResponse, EnterpriseLicenseOCRRequest, GeneralAccurateOCRRequest, FinanBillSliceOCRRequest, VatRollInvoiceOCRRequest, SmartStructuralOCRRequest, RecognizeMedicalInvoiceOCRRequest, PermitOCRResponse, FormulaOCRRequest, DutyPaidProofOCRRequest, CarInvoiceOCRResponse, GeneralFastOCRRequest, VerifyOfdVatInvoiceOCRResponse, BusInvoiceOCRResponse, ExtractDocMultiProRequest, RideHailingTransportLicenseOCRResponse, GeneralHandwritingOCRResponse, RecognizeAgentRequest, MixedInvoiceDetectRequest, BankCardOCRResponse, RecognizeValidIDCardOCRResponse, BusinessCardOCRResponse, VehicleRegCertOCRRequest, EnglishOCRResponse, AdvertiseOCRRequest, GetOCRTokenResponse, ClassifyStoreNameRequest, DriverLicenseOCRRequest, MainlandPermitOCRRequest, ArithmeticOCRResponse, ExtractDocMultiProResponse, MixedInvoiceDetectResponse, RecognizeAgentResponse, GeneralAccurateOCRResponse, GetOCRResultRequest, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, VehicleLicenseOCRResponse, WaybillOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, InvoiceGeneralOCRResponse, SubmitExtractDocAgentJobResponse, RecognizeContainerOCRRequest, EduPaperOCRResponse, TableOCRRequest, RecognizeTravelCardOCRResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, PassportOCRResponse, VerifyOfdVatInvoiceOCRRequest, RecognizeGeneralCardWarnResponse, RecognizeTableAccurateOCRRequest, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, QuestionSplitOCRRequest, RecognizeHealthCodeOCRResponse, RecognizeEncryptedIDCardOCRResponse, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, InsuranceBillOCRResponse, SealOCRRequest, SubmitQuestionMarkAgentJobResponse, FlightInvoiceOCRRequest, WaybillOCRRequest, RecognizeStoreNameResponse, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse } from "./ocr_models";
|
|
3
3
|
/**
|
|
4
4
|
* ocr client
|
|
5
5
|
* @class
|
|
@@ -177,6 +177,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
177
177
|
默认接口请求频率限制:5次/秒。
|
|
178
178
|
*/
|
|
179
179
|
RecognizeValidIDCardOCR(req: RecognizeValidIDCardOCRRequest, cb?: (error: string, rep: RecognizeValidIDCardOCRResponse) => void): Promise<RecognizeValidIDCardOCRResponse>;
|
|
180
|
+
/**
|
|
181
|
+
* 提供针对特定场景(如商户门头照、车牌等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对特定场景图片真实性、有效性校验的场景。
|
|
182
|
+
*/
|
|
183
|
+
VerifyScenePhoto(req: VerifyScenePhotoRequest, cb?: (error: string, rep: VerifyScenePhotoResponse) => void): Promise<VerifyScenePhotoResponse>;
|
|
180
184
|
/**
|
|
181
185
|
* <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
|
|
182
186
|
本接口支持对通用机打发票的发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、购买方地址、电话、销售方地址、电话、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、货物或应税劳务、服务名称、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类等字段的识别。
|
|
@@ -261,12 +265,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
261
265
|
默认接口请求频率限制:5次/秒。
|
|
262
266
|
*/
|
|
263
267
|
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
|
264
|
-
/**
|
|
265
|
-
* 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
|
|
266
|
-
|
|
267
|
-
默认接口请求频率限制:5次/秒。
|
|
268
|
-
*/
|
|
269
|
-
CropEnhanceImageOCR(req: CropEnhanceImageOCRRequest, cb?: (error: string, rep: CropEnhanceImageOCRResponse) => void): Promise<CropEnhanceImageOCRResponse>;
|
|
270
268
|
/**
|
|
271
269
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
272
270
|
|
|
@@ -625,12 +623,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
625
623
|
默认接口请求频率限制:10次/秒。
|
|
626
624
|
*/
|
|
627
625
|
BankCardOCR(req: BankCardOCRRequest, cb?: (error: string, rep: BankCardOCRResponse) => void): Promise<BankCardOCRResponse>;
|
|
628
|
-
/**
|
|
629
|
-
* 本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
|
|
630
|
-
|
|
631
|
-
默认接口请求频率限制:5次/秒。
|
|
632
|
-
*/
|
|
633
|
-
EraseHandwrittenImageOCR(req: EraseHandwrittenImageOCRRequest, cb?: (error: string, rep: EraseHandwrittenImageOCRResponse) => void): Promise<EraseHandwrittenImageOCRResponse>;
|
|
634
626
|
/**
|
|
635
627
|
* 获取ocr的token值
|
|
636
628
|
*/
|
|
@@ -641,6 +633,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
641
633
|
默认接口请求频率限制:5次/秒。
|
|
642
634
|
*/
|
|
643
635
|
EduPaperOCR(req: EduPaperOCRRequest, cb?: (error: string, rep: EduPaperOCRResponse) => void): Promise<EduPaperOCRResponse>;
|
|
636
|
+
/**
|
|
637
|
+
* 支持对输入图的内容进行判断、分类以及总结;支持用户对通用文字识别输出结构进行自定义。
|
|
638
|
+
*/
|
|
639
|
+
RecognizeAgent(req: RecognizeAgentRequest, cb?: (error: string, rep: RecognizeAgentResponse) => void): Promise<RecognizeAgentResponse>;
|
|
644
640
|
/**
|
|
645
641
|
* 本接口支持智能化识别各类企业登记证书、许可证书、企业执照、三证合一类证书,结构化输出统一社会信用代码、公司名称、法定代表人、公司地址、注册资金、企业类型、经营范围、成立日期、有效期、开办资金、经费来源、举办单位等关键字段。
|
|
646
642
|
|
|
@@ -221,6 +221,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
221
221
|
async RecognizeValidIDCardOCR(req, cb) {
|
|
222
222
|
return this.request("RecognizeValidIDCardOCR", req, cb);
|
|
223
223
|
}
|
|
224
|
+
/**
|
|
225
|
+
* 提供针对特定场景(如商户门头照、车牌等)图片的PS篡改、AIGC合成、图片质量检测能力,可应用于业务流程中对特定场景图片真实性、有效性校验的场景。
|
|
226
|
+
*/
|
|
227
|
+
async VerifyScenePhoto(req, cb) {
|
|
228
|
+
return this.request("VerifyScenePhoto", req, cb);
|
|
229
|
+
}
|
|
224
230
|
/**
|
|
225
231
|
* <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/90802">通用票据识别(高级版)</a>。</b>
|
|
226
232
|
本接口支持对通用机打发票的发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、购买方地址、电话、销售方地址、电话、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、货物或应税劳务、服务名称、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类等字段的识别。
|
|
@@ -333,14 +339,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
333
339
|
async FlightInvoiceOCR(req, cb) {
|
|
334
340
|
return this.request("FlightInvoiceOCR", req, cb);
|
|
335
341
|
}
|
|
336
|
-
/**
|
|
337
|
-
* 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
|
|
338
|
-
|
|
339
|
-
默认接口请求频率限制:5次/秒。
|
|
340
|
-
*/
|
|
341
|
-
async CropEnhanceImageOCR(req, cb) {
|
|
342
|
-
return this.request("CropEnhanceImageOCR", req, cb);
|
|
343
|
-
}
|
|
344
342
|
/**
|
|
345
343
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
346
344
|
|
|
@@ -729,14 +727,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
729
727
|
async BankCardOCR(req, cb) {
|
|
730
728
|
return this.request("BankCardOCR", req, cb);
|
|
731
729
|
}
|
|
732
|
-
/**
|
|
733
|
-
* 本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
|
|
734
|
-
|
|
735
|
-
默认接口请求频率限制:5次/秒。
|
|
736
|
-
*/
|
|
737
|
-
async EraseHandwrittenImageOCR(req, cb) {
|
|
738
|
-
return this.request("EraseHandwrittenImageOCR", req, cb);
|
|
739
|
-
}
|
|
740
730
|
/**
|
|
741
731
|
* 获取ocr的token值
|
|
742
732
|
*/
|
|
@@ -751,6 +741,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
751
741
|
async EduPaperOCR(req, cb) {
|
|
752
742
|
return this.request("EduPaperOCR", req, cb);
|
|
753
743
|
}
|
|
744
|
+
/**
|
|
745
|
+
* 支持对输入图的内容进行判断、分类以及总结;支持用户对通用文字识别输出结构进行自定义。
|
|
746
|
+
*/
|
|
747
|
+
async RecognizeAgent(req, cb) {
|
|
748
|
+
return this.request("RecognizeAgent", req, cb);
|
|
749
|
+
}
|
|
754
750
|
/**
|
|
755
751
|
* 本接口支持智能化识别各类企业登记证书、许可证书、企业执照、三证合一类证书,结构化输出统一社会信用代码、公司名称、法定代表人、公司地址、注册资金、企业类型、经营范围、成立日期、有效期、开办资金、经费来源、举办单位等关键字段。
|
|
756
752
|
|