tencentcloud-sdk-nodejs-ocr 4.1.203 → 4.1.209
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.
|
@@ -78,6 +78,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
78
78
|
async FlightInvoiceOCR(req, cb) {
|
|
79
79
|
return this.request("FlightInvoiceOCR", req, cb);
|
|
80
80
|
}
|
|
81
|
+
async CropEnhanceImageOCR(req, cb) {
|
|
82
|
+
return this.request("CropEnhanceImageOCR", req, cb);
|
|
83
|
+
}
|
|
81
84
|
async RecognizeGeneralInvoice(req, cb) {
|
|
82
85
|
return this.request("RecognizeGeneralInvoice", req, cb);
|
|
83
86
|
}
|
|
@@ -123,6 +126,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
123
126
|
async BankCardOCR(req, cb) {
|
|
124
127
|
return this.request("BankCardOCR", req, cb);
|
|
125
128
|
}
|
|
129
|
+
async EraseHandwrittenImageOCR(req, cb) {
|
|
130
|
+
return this.request("EraseHandwrittenImageOCR", req, cb);
|
|
131
|
+
}
|
|
126
132
|
async GetOCRToken(req, cb) {
|
|
127
133
|
return this.request("GetOCRToken", req, cb);
|
|
128
134
|
}
|
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, CarInvoiceOCRRequest, DescribeQuestionMarkAgentJobResponse, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, DescribeMarkEssayAgentJobResponse, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, SubmitQuestionMarkAgentJobRequest, DriverLicenseOCRRequest, VerifyBizLicenseEnterprise4Response, 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, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, 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, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest,
|
|
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, VerifyBizLicenseEnterprise4Response, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnglishOCRRequest, VehicleLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, RecognizeTravelCardOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, SealOCRRequest, CropEnhanceImageOCRResponse, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, ExtractDocAgentResponse, RecognizeStoreNameResponse, 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, SubmitMarkEssayAgentJobResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, SubmitQuestionMarkAgentJobResponse, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnterpriseLicenseOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, EraseHandwrittenImageOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, InsuranceBillOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, DescribeQuestionMarkAgentJobRequest, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, VerifyBizLicenseEnterprise4Request, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, TrainTicketOCRRequest, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, CropEnhanceImageOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, EraseHandwrittenImageOCRRequest, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, ExtractDocAgentRequest, AdvertiseOCRResponse, RecognizeTravelCardOCRResponse, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, 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
|
|
@@ -261,6 +261,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
261
261
|
默认接口请求频率限制:5次/秒。
|
|
262
262
|
*/
|
|
263
263
|
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
|
|
266
|
+
*/
|
|
267
|
+
CropEnhanceImageOCR(req: CropEnhanceImageOCRRequest, cb?: (error: string, rep: CropEnhanceImageOCRResponse) => void): Promise<CropEnhanceImageOCRResponse>;
|
|
264
268
|
/**
|
|
265
269
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
266
270
|
|
|
@@ -619,6 +623,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
619
623
|
默认接口请求频率限制:10次/秒。
|
|
620
624
|
*/
|
|
621
625
|
BankCardOCR(req: BankCardOCRRequest, cb?: (error: string, rep: BankCardOCRResponse) => void): Promise<BankCardOCRResponse>;
|
|
626
|
+
/**
|
|
627
|
+
* 本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
|
|
628
|
+
*/
|
|
629
|
+
EraseHandwrittenImageOCR(req: EraseHandwrittenImageOCRRequest, cb?: (error: string, rep: EraseHandwrittenImageOCRResponse) => void): Promise<EraseHandwrittenImageOCRResponse>;
|
|
622
630
|
/**
|
|
623
631
|
* 获取ocr的token值
|
|
624
632
|
*/
|
|
@@ -333,6 +333,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
333
333
|
async FlightInvoiceOCR(req, cb) {
|
|
334
334
|
return this.request("FlightInvoiceOCR", req, cb);
|
|
335
335
|
}
|
|
336
|
+
/**
|
|
337
|
+
* 图像切边矫正增强是面向文档类图片提供的图像增强处理能力,包括切边增强、图像矫正、阴影去除、摩尔纹去除等;可以有效优化文档类的图片质量,提升文字的清晰度,可以作为所有识别场景的图像预处理原子能力,从而提升识别效果。
|
|
338
|
+
*/
|
|
339
|
+
async CropEnhanceImageOCR(req, cb) {
|
|
340
|
+
return this.request("CropEnhanceImageOCR", req, cb);
|
|
341
|
+
}
|
|
336
342
|
/**
|
|
337
343
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
338
344
|
|
|
@@ -721,6 +727,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
721
727
|
async BankCardOCR(req, cb) {
|
|
722
728
|
return this.request("BankCardOCR", req, cb);
|
|
723
729
|
}
|
|
730
|
+
/**
|
|
731
|
+
* 本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
|
|
732
|
+
*/
|
|
733
|
+
async EraseHandwrittenImageOCR(req, cb) {
|
|
734
|
+
return this.request("EraseHandwrittenImageOCR", req, cb);
|
|
735
|
+
}
|
|
724
736
|
/**
|
|
725
737
|
* 获取ocr的token值
|
|
726
738
|
*/
|
|
@@ -1269,13 +1269,21 @@ export interface ElectronicFlightTicketFull {
|
|
|
1269
1269
|
*/
|
|
1270
1270
|
export interface ClassifyStoreNameRequest {
|
|
1271
1271
|
/**
|
|
1272
|
-
*
|
|
1272
|
+
* <p>图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
1273
1273
|
*/
|
|
1274
1274
|
ImageBase64?: string;
|
|
1275
1275
|
/**
|
|
1276
|
-
*
|
|
1276
|
+
* <p>图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
1277
1277
|
*/
|
|
1278
1278
|
ImageUrl?: string;
|
|
1279
|
+
/**
|
|
1280
|
+
* <p>是否输出具体场景标签。注:开启后耗时会增加。</p>
|
|
1281
|
+
*/
|
|
1282
|
+
SceneType?: boolean;
|
|
1283
|
+
/**
|
|
1284
|
+
* <p>输入商户名称,辅助判断具体场景标签。注:仅SceneType配置为true时支持。</p>
|
|
1285
|
+
*/
|
|
1286
|
+
StoreInfo?: string;
|
|
1279
1287
|
}
|
|
1280
1288
|
/**
|
|
1281
1289
|
* InvoiceGeneralOCR请求参数结构体
|
|
@@ -2998,6 +3006,27 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
|
2998
3006
|
*/
|
|
2999
3007
|
ImageUrl?: string;
|
|
3000
3008
|
}
|
|
3009
|
+
/**
|
|
3010
|
+
* SealOCR请求参数结构体
|
|
3011
|
+
*/
|
|
3012
|
+
export interface SealOCRRequest {
|
|
3013
|
+
/**
|
|
3014
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
3015
|
+
*/
|
|
3016
|
+
ImageBase64?: string;
|
|
3017
|
+
/**
|
|
3018
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
3019
|
+
*/
|
|
3020
|
+
ImageUrl?: string;
|
|
3021
|
+
/**
|
|
3022
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
3023
|
+
*/
|
|
3024
|
+
EnablePdf?: boolean;
|
|
3025
|
+
/**
|
|
3026
|
+
* 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
|
3027
|
+
*/
|
|
3028
|
+
PdfPageNumber?: number;
|
|
3029
|
+
}
|
|
3001
3030
|
/**
|
|
3002
3031
|
* 发票人员信息
|
|
3003
3032
|
*/
|
|
@@ -3020,41 +3049,34 @@ export interface VatInvoiceUserInfo {
|
|
|
3020
3049
|
FinancialAccount: string;
|
|
3021
3050
|
}
|
|
3022
3051
|
/**
|
|
3023
|
-
*
|
|
3052
|
+
* CropEnhanceImageOCR返回参数结构体
|
|
3024
3053
|
*/
|
|
3025
|
-
export interface
|
|
3054
|
+
export interface CropEnhanceImageOCRResponse {
|
|
3026
3055
|
/**
|
|
3027
|
-
*
|
|
3056
|
+
* <p>处理后图的宽</p>
|
|
3028
3057
|
*/
|
|
3029
|
-
|
|
3030
|
-
/**
|
|
3031
|
-
* 规格型号
|
|
3032
|
-
*/
|
|
3033
|
-
Specification?: string;
|
|
3034
|
-
/**
|
|
3035
|
-
* 单位
|
|
3036
|
-
*/
|
|
3037
|
-
Unit?: string;
|
|
3058
|
+
CroppedWidth?: number;
|
|
3038
3059
|
/**
|
|
3039
|
-
*
|
|
3060
|
+
* <p>处理后图的高</p>
|
|
3040
3061
|
*/
|
|
3041
|
-
|
|
3062
|
+
CroppedHeight?: number;
|
|
3042
3063
|
/**
|
|
3043
|
-
*
|
|
3064
|
+
* <p>图像处理后的jpg图片,base64格式</p>
|
|
3044
3065
|
*/
|
|
3045
|
-
|
|
3066
|
+
CroppedImage?: string;
|
|
3046
3067
|
/**
|
|
3047
|
-
*
|
|
3068
|
+
* <p>切图区域的4个角点坐标, 是个长度为8的数组<br>[0,1,2,3,4,5,6,7]</p><p>(0,1) 左上角坐标<br>(2,3) 右上角坐标<br>(4,5) 右下角坐标<br>(6,7) 左下角坐标</p>
|
|
3048
3069
|
*/
|
|
3049
|
-
|
|
3070
|
+
Position?: Array<number | bigint>;
|
|
3050
3071
|
/**
|
|
3051
|
-
*
|
|
3072
|
+
* <p>图像角度,AdjustOrientation =1时生效, 返回值如下 -1: 失败 0、90、180、270</p>
|
|
3073
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
3052
3074
|
*/
|
|
3053
|
-
|
|
3075
|
+
Angle?: number;
|
|
3054
3076
|
/**
|
|
3055
|
-
*
|
|
3077
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3056
3078
|
*/
|
|
3057
|
-
|
|
3079
|
+
RequestId?: string;
|
|
3058
3080
|
}
|
|
3059
3081
|
/**
|
|
3060
3082
|
* GeneralAccurateOCR返回参数结构体
|
|
@@ -3647,6 +3669,27 @@ export interface ExtractDocAgentResponse {
|
|
|
3647
3669
|
*/
|
|
3648
3670
|
RequestId?: string;
|
|
3649
3671
|
}
|
|
3672
|
+
/**
|
|
3673
|
+
* RecognizeStoreName返回参数结构体
|
|
3674
|
+
*/
|
|
3675
|
+
export interface RecognizeStoreNameResponse {
|
|
3676
|
+
/**
|
|
3677
|
+
* 门头照名称
|
|
3678
|
+
*/
|
|
3679
|
+
StoreInfo?: Array<StoreInfo>;
|
|
3680
|
+
/**
|
|
3681
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负
|
|
3682
|
+
*/
|
|
3683
|
+
Angle?: number;
|
|
3684
|
+
/**
|
|
3685
|
+
* 门头照标签
|
|
3686
|
+
*/
|
|
3687
|
+
StoreLabel?: Array<string>;
|
|
3688
|
+
/**
|
|
3689
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3690
|
+
*/
|
|
3691
|
+
RequestId?: string;
|
|
3692
|
+
}
|
|
3650
3693
|
/**
|
|
3651
3694
|
* ocr结果信息
|
|
3652
3695
|
*/
|
|
@@ -7215,6 +7258,19 @@ export interface ShoppingReceipt {
|
|
|
7215
7258
|
*/
|
|
7216
7259
|
Content?: Array<OtherInvoiceItem>;
|
|
7217
7260
|
}
|
|
7261
|
+
/**
|
|
7262
|
+
* EraseHandwrittenImageOCR返回参数结构体
|
|
7263
|
+
*/
|
|
7264
|
+
export interface EraseHandwrittenImageOCRResponse {
|
|
7265
|
+
/**
|
|
7266
|
+
* 图像处理后的jpg图片,base64格式
|
|
7267
|
+
*/
|
|
7268
|
+
Image?: string;
|
|
7269
|
+
/**
|
|
7270
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7271
|
+
*/
|
|
7272
|
+
RequestId?: string;
|
|
7273
|
+
}
|
|
7218
7274
|
/**
|
|
7219
7275
|
* 敏感数据加密
|
|
7220
7276
|
*/
|
|
@@ -7510,9 +7566,13 @@ export interface RecognizeGeneralCardWarnResponse {
|
|
|
7510
7566
|
*/
|
|
7511
7567
|
export interface ClassifyStoreNameResponse {
|
|
7512
7568
|
/**
|
|
7513
|
-
*
|
|
7569
|
+
* <p>门头照标签</p>
|
|
7514
7570
|
*/
|
|
7515
7571
|
StoreLabel?: Array<string>;
|
|
7572
|
+
/**
|
|
7573
|
+
* <p>具体场景标签,输出3个最匹配的场景, 注:仅SceneType配置为true时支持。</p>
|
|
7574
|
+
*/
|
|
7575
|
+
SceneType?: string;
|
|
7516
7576
|
/**
|
|
7517
7577
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7518
7578
|
*/
|
|
@@ -7705,6 +7765,19 @@ export interface SealOCRResponse {
|
|
|
7705
7765
|
*/
|
|
7706
7766
|
RequestId?: string;
|
|
7707
7767
|
}
|
|
7768
|
+
/**
|
|
7769
|
+
* InsuranceBillOCR返回参数结构体
|
|
7770
|
+
*/
|
|
7771
|
+
export interface InsuranceBillOCRResponse {
|
|
7772
|
+
/**
|
|
7773
|
+
* 保险单据识别结果,具体内容请点击左侧链接。
|
|
7774
|
+
*/
|
|
7775
|
+
InsuranceBillInfos?: Array<InsuranceBillInfo>;
|
|
7776
|
+
/**
|
|
7777
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7778
|
+
*/
|
|
7779
|
+
RequestId?: string;
|
|
7780
|
+
}
|
|
7708
7781
|
/**
|
|
7709
7782
|
* 识别出的字段
|
|
7710
7783
|
*/
|
|
@@ -8873,17 +8946,41 @@ export interface RecognizeMedicalInvoiceOCRRequest {
|
|
|
8873
8946
|
PdfPageNumber?: number;
|
|
8874
8947
|
}
|
|
8875
8948
|
/**
|
|
8876
|
-
*
|
|
8949
|
+
* 通用机打发票条目
|
|
8877
8950
|
*/
|
|
8878
|
-
export interface
|
|
8951
|
+
export interface GeneralMachineItem {
|
|
8879
8952
|
/**
|
|
8880
|
-
*
|
|
8953
|
+
* 项目名称
|
|
8881
8954
|
*/
|
|
8882
|
-
|
|
8955
|
+
Name?: string;
|
|
8883
8956
|
/**
|
|
8884
|
-
*
|
|
8957
|
+
* 规格型号
|
|
8885
8958
|
*/
|
|
8886
|
-
|
|
8959
|
+
Specification?: string;
|
|
8960
|
+
/**
|
|
8961
|
+
* 单位
|
|
8962
|
+
*/
|
|
8963
|
+
Unit?: string;
|
|
8964
|
+
/**
|
|
8965
|
+
* 数量
|
|
8966
|
+
*/
|
|
8967
|
+
Quantity?: string;
|
|
8968
|
+
/**
|
|
8969
|
+
* 单价
|
|
8970
|
+
*/
|
|
8971
|
+
Price?: string;
|
|
8972
|
+
/**
|
|
8973
|
+
* 金额
|
|
8974
|
+
*/
|
|
8975
|
+
Total?: string;
|
|
8976
|
+
/**
|
|
8977
|
+
* 税率
|
|
8978
|
+
*/
|
|
8979
|
+
TaxRate?: string;
|
|
8980
|
+
/**
|
|
8981
|
+
* 税额
|
|
8982
|
+
*/
|
|
8983
|
+
Tax?: string;
|
|
8887
8984
|
}
|
|
8888
8985
|
/**
|
|
8889
8986
|
* 卡证智能分类结果
|
|
@@ -9055,25 +9152,41 @@ export interface MLIDPassportOCRResponse {
|
|
|
9055
9152
|
RequestId?: string;
|
|
9056
9153
|
}
|
|
9057
9154
|
/**
|
|
9058
|
-
*
|
|
9155
|
+
* CropEnhanceImageOCR请求参数结构体
|
|
9059
9156
|
*/
|
|
9060
|
-
export interface
|
|
9157
|
+
export interface CropEnhanceImageOCRRequest {
|
|
9061
9158
|
/**
|
|
9062
|
-
*
|
|
9159
|
+
* <p>图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
9063
9160
|
*/
|
|
9064
9161
|
ImageBase64?: string;
|
|
9065
9162
|
/**
|
|
9066
|
-
*
|
|
9163
|
+
* <p>图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。</p>
|
|
9067
9164
|
*/
|
|
9068
9165
|
ImageUrl?: string;
|
|
9069
9166
|
/**
|
|
9070
|
-
*
|
|
9167
|
+
* <p>需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。</p>
|
|
9071
9168
|
*/
|
|
9072
|
-
|
|
9169
|
+
PdfPageNumber?: number;
|
|
9073
9170
|
/**
|
|
9074
|
-
*
|
|
9171
|
+
* <p>0表示关闭切边<br>1表示开启切边,默认为1</p>
|
|
9075
9172
|
*/
|
|
9076
|
-
|
|
9173
|
+
Crop?: number;
|
|
9174
|
+
/**
|
|
9175
|
+
* <p>0表示关闭弯曲矫正<br>1表示开启弯曲矫正,默认为1</p>
|
|
9176
|
+
*/
|
|
9177
|
+
Deskew?: number;
|
|
9178
|
+
/**
|
|
9179
|
+
* <p>0表示返回处理后的图和坐标,默认为0<br>1表示只返回坐标,不返回图片</p>
|
|
9180
|
+
*/
|
|
9181
|
+
OnlyPosition?: number;
|
|
9182
|
+
/**
|
|
9183
|
+
* <p>默认-1</p><ul><li>-1 不处理增强</li><li>1 增亮</li><li>2 增强并锐化</li><li>3 黑白</li><li>4 灰度</li><li>5 去阴影增强</li><li>6 点阵图</li></ul>
|
|
9184
|
+
*/
|
|
9185
|
+
EnhanceType?: number;
|
|
9186
|
+
/**
|
|
9187
|
+
* <p>0表示不矫正图像方向,默认为0 1表示矫正图像方向</p>
|
|
9188
|
+
*/
|
|
9189
|
+
AdjustOrientation?: number;
|
|
9077
9190
|
}
|
|
9078
9191
|
/**
|
|
9079
9192
|
* VerifyOfdVatInvoiceOCR返回参数结构体
|
|
@@ -9491,26 +9604,41 @@ export interface VatInvoiceInfo {
|
|
|
9491
9604
|
SubTax?: string;
|
|
9492
9605
|
}
|
|
9493
9606
|
/**
|
|
9494
|
-
*
|
|
9607
|
+
* EraseHandwrittenImageOCR请求参数结构体
|
|
9495
9608
|
*/
|
|
9496
|
-
export interface
|
|
9609
|
+
export interface EraseHandwrittenImageOCRRequest {
|
|
9497
9610
|
/**
|
|
9498
|
-
*
|
|
9499
|
-
二维码:QR_CODE
|
|
9500
|
-
一维码:EAN-13、EAN-8、EAN-2、UPC-A、UPC-E、CODE-39、CODE-93、CODE-128
|
|
9501
|
-
PDF:PDF_417
|
|
9502
|
-
DataMatrix:DATA_MATRIX
|
|
9503
|
-
小程序码:WX_CODE
|
|
9611
|
+
* 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
9504
9612
|
*/
|
|
9505
|
-
|
|
9613
|
+
ImageBase64?: string;
|
|
9506
9614
|
/**
|
|
9507
|
-
*
|
|
9615
|
+
* 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
9508
9616
|
*/
|
|
9509
|
-
|
|
9617
|
+
ImageUrl?: string;
|
|
9510
9618
|
/**
|
|
9511
|
-
*
|
|
9619
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。
|
|
9512
9620
|
*/
|
|
9513
|
-
|
|
9621
|
+
PdfPageNumber?: number;
|
|
9622
|
+
/**
|
|
9623
|
+
* 0表示关闭切边,默认为0
|
|
9624
|
+
1表示开启切边
|
|
9625
|
+
*/
|
|
9626
|
+
Crop?: number;
|
|
9627
|
+
/**
|
|
9628
|
+
* 0表示关闭弯曲矫正,默认为0
|
|
9629
|
+
1表示开启弯曲矫正
|
|
9630
|
+
*/
|
|
9631
|
+
Deskew?: number;
|
|
9632
|
+
/**
|
|
9633
|
+
* 0表示关闭增强锐化,默认为0
|
|
9634
|
+
1表示开启增强锐化
|
|
9635
|
+
*/
|
|
9636
|
+
Sharpen?: number;
|
|
9637
|
+
/**
|
|
9638
|
+
* 0表示返回黑白图像
|
|
9639
|
+
1表示返回彩色图像,默认为1
|
|
9640
|
+
*/
|
|
9641
|
+
Grayscale?: number;
|
|
9514
9642
|
}
|
|
9515
9643
|
/**
|
|
9516
9644
|
* GetOCRResult返回参数结构体
|
|
@@ -10962,25 +11090,26 @@ export interface VatRollItem {
|
|
|
10962
11090
|
Total?: string;
|
|
10963
11091
|
}
|
|
10964
11092
|
/**
|
|
10965
|
-
*
|
|
11093
|
+
* 二维码/条形码识别结果信息
|
|
10966
11094
|
*/
|
|
10967
|
-
export interface
|
|
10968
|
-
/**
|
|
10969
|
-
* 门头照名称
|
|
10970
|
-
*/
|
|
10971
|
-
StoreInfo?: Array<StoreInfo>;
|
|
11095
|
+
export interface QrcodeResultsInfo {
|
|
10972
11096
|
/**
|
|
10973
|
-
*
|
|
11097
|
+
* 类型包括
|
|
11098
|
+
二维码:QR_CODE
|
|
11099
|
+
一维码:EAN-13、EAN-8、EAN-2、UPC-A、UPC-E、CODE-39、CODE-93、CODE-128
|
|
11100
|
+
PDF:PDF_417
|
|
11101
|
+
DataMatrix:DATA_MATRIX
|
|
11102
|
+
小程序码:WX_CODE
|
|
10974
11103
|
*/
|
|
10975
|
-
|
|
11104
|
+
TypeName?: string;
|
|
10976
11105
|
/**
|
|
10977
|
-
*
|
|
11106
|
+
* 二维码/条形码包含的地址
|
|
10978
11107
|
*/
|
|
10979
|
-
|
|
11108
|
+
Url?: string;
|
|
10980
11109
|
/**
|
|
10981
|
-
*
|
|
11110
|
+
* 二维码/条形码坐标
|
|
10982
11111
|
*/
|
|
10983
|
-
|
|
11112
|
+
Position?: QrcodePositionObj;
|
|
10984
11113
|
}
|
|
10985
11114
|
/**
|
|
10986
11115
|
* 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|