tencentcloud-sdk-nodejs-ocr 4.1.223 → 4.1.224
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,9 +78,6 @@ 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
|
-
}
|
|
84
81
|
async RecognizeGeneralInvoice(req, cb) {
|
|
85
82
|
return this.request("RecognizeGeneralInvoice", req, cb);
|
|
86
83
|
}
|
|
@@ -126,9 +123,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
126
123
|
async BankCardOCR(req, cb) {
|
|
127
124
|
return this.request("BankCardOCR", req, cb);
|
|
128
125
|
}
|
|
129
|
-
async EraseHandwrittenImageOCR(req, cb) {
|
|
130
|
-
return this.request("EraseHandwrittenImageOCR", req, cb);
|
|
131
|
-
}
|
|
132
126
|
async GetOCRToken(req, cb) {
|
|
133
127
|
return this.request("GetOCRToken", req, cb);
|
|
134
128
|
}
|
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,
|
|
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, 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
|
|
@@ -261,12 +261,6 @@ 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
|
-
默认接口请求频率限制:5次/秒。
|
|
268
|
-
*/
|
|
269
|
-
CropEnhanceImageOCR(req: CropEnhanceImageOCRRequest, cb?: (error: string, rep: CropEnhanceImageOCRResponse) => void): Promise<CropEnhanceImageOCRResponse>;
|
|
270
264
|
/**
|
|
271
265
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
272
266
|
|
|
@@ -625,12 +619,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
625
619
|
默认接口请求频率限制:10次/秒。
|
|
626
620
|
*/
|
|
627
621
|
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
622
|
/**
|
|
635
623
|
* 获取ocr的token值
|
|
636
624
|
*/
|
|
@@ -333,14 +333,6 @@ 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
|
-
默认接口请求频率限制:5次/秒。
|
|
340
|
-
*/
|
|
341
|
-
async CropEnhanceImageOCR(req, cb) {
|
|
342
|
-
return this.request("CropEnhanceImageOCR", req, cb);
|
|
343
|
-
}
|
|
344
336
|
/**
|
|
345
337
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
|
346
338
|
|
|
@@ -729,14 +721,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
729
721
|
async BankCardOCR(req, cb) {
|
|
730
722
|
return this.request("BankCardOCR", req, cb);
|
|
731
723
|
}
|
|
732
|
-
/**
|
|
733
|
-
* 本功能可自动清除试卷图片中的手写与批改痕迹,并输出洁净的空白试卷。也可以配合集成图像切边矫正技术,能自动定位、拉平试卷区域,从而在最优预处理基础上实现更佳的擦除效果。
|
|
734
|
-
|
|
735
|
-
默认接口请求频率限制:5次/秒。
|
|
736
|
-
*/
|
|
737
|
-
async EraseHandwrittenImageOCR(req, cb) {
|
|
738
|
-
return this.request("EraseHandwrittenImageOCR", req, cb);
|
|
739
|
-
}
|
|
740
724
|
/**
|
|
741
725
|
* 获取ocr的token值
|
|
742
726
|
*/
|
|
@@ -3010,27 +3010,6 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
|
3010
3010
|
*/
|
|
3011
3011
|
ImageUrl?: string;
|
|
3012
3012
|
}
|
|
3013
|
-
/**
|
|
3014
|
-
* SealOCR请求参数结构体
|
|
3015
|
-
*/
|
|
3016
|
-
export interface SealOCRRequest {
|
|
3017
|
-
/**
|
|
3018
|
-
* 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
3019
|
-
*/
|
|
3020
|
-
ImageBase64?: string;
|
|
3021
|
-
/**
|
|
3022
|
-
* 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
3023
|
-
*/
|
|
3024
|
-
ImageUrl?: string;
|
|
3025
|
-
/**
|
|
3026
|
-
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
3027
|
-
*/
|
|
3028
|
-
EnablePdf?: boolean;
|
|
3029
|
-
/**
|
|
3030
|
-
* 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
|
3031
|
-
*/
|
|
3032
|
-
PdfPageNumber?: number;
|
|
3033
|
-
}
|
|
3034
3013
|
/**
|
|
3035
3014
|
* 发票人员信息
|
|
3036
3015
|
*/
|
|
@@ -3053,34 +3032,41 @@ export interface VatInvoiceUserInfo {
|
|
|
3053
3032
|
FinancialAccount: string;
|
|
3054
3033
|
}
|
|
3055
3034
|
/**
|
|
3056
|
-
*
|
|
3035
|
+
* 通用机打发票条目
|
|
3057
3036
|
*/
|
|
3058
|
-
export interface
|
|
3037
|
+
export interface GeneralMachineItem {
|
|
3038
|
+
/**
|
|
3039
|
+
* 项目名称
|
|
3040
|
+
*/
|
|
3041
|
+
Name?: string;
|
|
3059
3042
|
/**
|
|
3060
|
-
*
|
|
3043
|
+
* 规格型号
|
|
3061
3044
|
*/
|
|
3062
|
-
|
|
3045
|
+
Specification?: string;
|
|
3063
3046
|
/**
|
|
3064
|
-
*
|
|
3047
|
+
* 单位
|
|
3065
3048
|
*/
|
|
3066
|
-
|
|
3049
|
+
Unit?: string;
|
|
3067
3050
|
/**
|
|
3068
|
-
*
|
|
3051
|
+
* 数量
|
|
3069
3052
|
*/
|
|
3070
|
-
|
|
3053
|
+
Quantity?: string;
|
|
3071
3054
|
/**
|
|
3072
|
-
*
|
|
3055
|
+
* 单价
|
|
3073
3056
|
*/
|
|
3074
|
-
|
|
3057
|
+
Price?: string;
|
|
3075
3058
|
/**
|
|
3076
|
-
*
|
|
3077
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
3059
|
+
* 金额
|
|
3078
3060
|
*/
|
|
3079
|
-
|
|
3061
|
+
Total?: string;
|
|
3080
3062
|
/**
|
|
3081
|
-
*
|
|
3063
|
+
* 税率
|
|
3082
3064
|
*/
|
|
3083
|
-
|
|
3065
|
+
TaxRate?: string;
|
|
3066
|
+
/**
|
|
3067
|
+
* 税额
|
|
3068
|
+
*/
|
|
3069
|
+
Tax?: string;
|
|
3084
3070
|
}
|
|
3085
3071
|
/**
|
|
3086
3072
|
* GeneralAccurateOCR返回参数结构体
|
|
@@ -3673,27 +3659,6 @@ export interface ExtractDocAgentResponse {
|
|
|
3673
3659
|
*/
|
|
3674
3660
|
RequestId?: string;
|
|
3675
3661
|
}
|
|
3676
|
-
/**
|
|
3677
|
-
* RecognizeStoreName返回参数结构体
|
|
3678
|
-
*/
|
|
3679
|
-
export interface RecognizeStoreNameResponse {
|
|
3680
|
-
/**
|
|
3681
|
-
* 门头照名称
|
|
3682
|
-
*/
|
|
3683
|
-
StoreInfo?: Array<StoreInfo>;
|
|
3684
|
-
/**
|
|
3685
|
-
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负
|
|
3686
|
-
*/
|
|
3687
|
-
Angle?: number;
|
|
3688
|
-
/**
|
|
3689
|
-
* 门头照标签
|
|
3690
|
-
*/
|
|
3691
|
-
StoreLabel?: Array<string>;
|
|
3692
|
-
/**
|
|
3693
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3694
|
-
*/
|
|
3695
|
-
RequestId?: string;
|
|
3696
|
-
}
|
|
3697
3662
|
/**
|
|
3698
3663
|
* ocr结果信息
|
|
3699
3664
|
*/
|
|
@@ -6732,6 +6697,10 @@ export interface GeneralAccurateOCRRequest {
|
|
|
6732
6697
|
* <p>配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,默认值为OCR</p>
|
|
6733
6698
|
*/
|
|
6734
6699
|
ConfigID?: string;
|
|
6700
|
+
/**
|
|
6701
|
+
* <p>需要识别的文字类型,默认识别全部类型的文字。 0:自动识别全部类型文字 1:仅识别手写体文字 2:仅识别印刷体文字</p><p>当config id=OCR 且 iswords 是false 时 才生效</p>
|
|
6702
|
+
*/
|
|
6703
|
+
WordsType?: string;
|
|
6735
6704
|
}
|
|
6736
6705
|
/**
|
|
6737
6706
|
* 铁路电子客票信息
|
|
@@ -7262,19 +7231,6 @@ export interface ShoppingReceipt {
|
|
|
7262
7231
|
*/
|
|
7263
7232
|
Content?: Array<OtherInvoiceItem>;
|
|
7264
7233
|
}
|
|
7265
|
-
/**
|
|
7266
|
-
* EraseHandwrittenImageOCR返回参数结构体
|
|
7267
|
-
*/
|
|
7268
|
-
export interface EraseHandwrittenImageOCRResponse {
|
|
7269
|
-
/**
|
|
7270
|
-
* 图像处理后的jpg图片,base64格式
|
|
7271
|
-
*/
|
|
7272
|
-
Image?: string;
|
|
7273
|
-
/**
|
|
7274
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7275
|
-
*/
|
|
7276
|
-
RequestId?: string;
|
|
7277
|
-
}
|
|
7278
7234
|
/**
|
|
7279
7235
|
* 敏感数据加密
|
|
7280
7236
|
*/
|
|
@@ -7769,19 +7725,6 @@ export interface SealOCRResponse {
|
|
|
7769
7725
|
*/
|
|
7770
7726
|
RequestId?: string;
|
|
7771
7727
|
}
|
|
7772
|
-
/**
|
|
7773
|
-
* InsuranceBillOCR返回参数结构体
|
|
7774
|
-
*/
|
|
7775
|
-
export interface InsuranceBillOCRResponse {
|
|
7776
|
-
/**
|
|
7777
|
-
* 保险单据识别结果,具体内容请点击左侧链接。
|
|
7778
|
-
*/
|
|
7779
|
-
InsuranceBillInfos?: Array<InsuranceBillInfo>;
|
|
7780
|
-
/**
|
|
7781
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7782
|
-
*/
|
|
7783
|
-
RequestId?: string;
|
|
7784
|
-
}
|
|
7785
7728
|
/**
|
|
7786
7729
|
* 识别出的字段
|
|
7787
7730
|
*/
|
|
@@ -8960,41 +8903,17 @@ export interface RecognizeMedicalInvoiceOCRRequest {
|
|
|
8960
8903
|
PdfPageNumber?: number;
|
|
8961
8904
|
}
|
|
8962
8905
|
/**
|
|
8963
|
-
*
|
|
8906
|
+
* InsuranceBillOCR返回参数结构体
|
|
8964
8907
|
*/
|
|
8965
|
-
export interface
|
|
8966
|
-
/**
|
|
8967
|
-
* 项目名称
|
|
8968
|
-
*/
|
|
8969
|
-
Name?: string;
|
|
8970
|
-
/**
|
|
8971
|
-
* 规格型号
|
|
8972
|
-
*/
|
|
8973
|
-
Specification?: string;
|
|
8974
|
-
/**
|
|
8975
|
-
* 单位
|
|
8976
|
-
*/
|
|
8977
|
-
Unit?: string;
|
|
8978
|
-
/**
|
|
8979
|
-
* 数量
|
|
8980
|
-
*/
|
|
8981
|
-
Quantity?: string;
|
|
8982
|
-
/**
|
|
8983
|
-
* 单价
|
|
8984
|
-
*/
|
|
8985
|
-
Price?: string;
|
|
8986
|
-
/**
|
|
8987
|
-
* 金额
|
|
8988
|
-
*/
|
|
8989
|
-
Total?: string;
|
|
8908
|
+
export interface InsuranceBillOCRResponse {
|
|
8990
8909
|
/**
|
|
8991
|
-
*
|
|
8910
|
+
* 保险单据识别结果,具体内容请点击左侧链接。
|
|
8992
8911
|
*/
|
|
8993
|
-
|
|
8912
|
+
InsuranceBillInfos?: Array<InsuranceBillInfo>;
|
|
8994
8913
|
/**
|
|
8995
|
-
*
|
|
8914
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
8996
8915
|
*/
|
|
8997
|
-
|
|
8916
|
+
RequestId?: string;
|
|
8998
8917
|
}
|
|
8999
8918
|
/**
|
|
9000
8919
|
* 卡证智能分类结果
|
|
@@ -9166,41 +9085,25 @@ export interface MLIDPassportOCRResponse {
|
|
|
9166
9085
|
RequestId?: string;
|
|
9167
9086
|
}
|
|
9168
9087
|
/**
|
|
9169
|
-
*
|
|
9088
|
+
* SealOCR请求参数结构体
|
|
9170
9089
|
*/
|
|
9171
|
-
export interface
|
|
9090
|
+
export interface SealOCRRequest {
|
|
9172
9091
|
/**
|
|
9173
|
-
*
|
|
9092
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
9174
9093
|
*/
|
|
9175
9094
|
ImageBase64?: string;
|
|
9176
9095
|
/**
|
|
9177
|
-
*
|
|
9096
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
|
9178
9097
|
*/
|
|
9179
9098
|
ImageUrl?: string;
|
|
9180
9099
|
/**
|
|
9181
|
-
*
|
|
9182
|
-
*/
|
|
9183
|
-
PdfPageNumber?: number;
|
|
9184
|
-
/**
|
|
9185
|
-
* <p>0表示关闭切边<br>1表示开启切边,默认为1</p>
|
|
9186
|
-
*/
|
|
9187
|
-
Crop?: number;
|
|
9188
|
-
/**
|
|
9189
|
-
* <p>0表示关闭弯曲矫正<br>1表示开启弯曲矫正,默认为1</p>
|
|
9190
|
-
*/
|
|
9191
|
-
Deskew?: number;
|
|
9192
|
-
/**
|
|
9193
|
-
* <p>0表示返回处理后的图和坐标,默认为0<br>1表示只返回坐标,不返回图片</p>
|
|
9194
|
-
*/
|
|
9195
|
-
OnlyPosition?: number;
|
|
9196
|
-
/**
|
|
9197
|
-
* <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>
|
|
9100
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
|
9198
9101
|
*/
|
|
9199
|
-
|
|
9102
|
+
EnablePdf?: boolean;
|
|
9200
9103
|
/**
|
|
9201
|
-
*
|
|
9104
|
+
* 需要识别的PDF页面的对应页码,传入时仅支持PDF单页识别,当上传文件为PDF且EnablePdf参数值为true时有效,默认值为1。
|
|
9202
9105
|
*/
|
|
9203
|
-
|
|
9106
|
+
PdfPageNumber?: number;
|
|
9204
9107
|
}
|
|
9205
9108
|
/**
|
|
9206
9109
|
* VerifyOfdVatInvoiceOCR返回参数结构体
|
|
@@ -9616,41 +9519,26 @@ export interface VatInvoiceInfo {
|
|
|
9616
9519
|
SubTax?: string;
|
|
9617
9520
|
}
|
|
9618
9521
|
/**
|
|
9619
|
-
*
|
|
9522
|
+
* 二维码/条形码识别结果信息
|
|
9620
9523
|
*/
|
|
9621
|
-
export interface
|
|
9622
|
-
/**
|
|
9623
|
-
* 图片/PDF的 Base64 值。要求Base64不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
9624
|
-
*/
|
|
9625
|
-
ImageBase64?: string;
|
|
9626
|
-
/**
|
|
9627
|
-
* 图片/PDF的 Url 地址。要求图片经Base64编码后不超过10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
9628
|
-
*/
|
|
9629
|
-
ImageUrl?: string;
|
|
9630
|
-
/**
|
|
9631
|
-
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,默认值为1。
|
|
9632
|
-
*/
|
|
9633
|
-
PdfPageNumber?: number;
|
|
9634
|
-
/**
|
|
9635
|
-
* 0表示关闭切边,默认为0
|
|
9636
|
-
1表示开启切边
|
|
9637
|
-
*/
|
|
9638
|
-
Crop?: number;
|
|
9524
|
+
export interface QrcodeResultsInfo {
|
|
9639
9525
|
/**
|
|
9640
|
-
*
|
|
9641
|
-
|
|
9526
|
+
* 类型包括
|
|
9527
|
+
二维码:QR_CODE
|
|
9528
|
+
一维码:EAN-13、EAN-8、EAN-2、UPC-A、UPC-E、CODE-39、CODE-93、CODE-128
|
|
9529
|
+
PDF:PDF_417
|
|
9530
|
+
DataMatrix:DATA_MATRIX
|
|
9531
|
+
小程序码:WX_CODE
|
|
9642
9532
|
*/
|
|
9643
|
-
|
|
9533
|
+
TypeName?: string;
|
|
9644
9534
|
/**
|
|
9645
|
-
*
|
|
9646
|
-
1表示开启增强锐化
|
|
9535
|
+
* 二维码/条形码包含的地址
|
|
9647
9536
|
*/
|
|
9648
|
-
|
|
9537
|
+
Url?: string;
|
|
9649
9538
|
/**
|
|
9650
|
-
*
|
|
9651
|
-
1表示返回彩色图像,默认为1
|
|
9539
|
+
* 二维码/条形码坐标
|
|
9652
9540
|
*/
|
|
9653
|
-
|
|
9541
|
+
Position?: QrcodePositionObj;
|
|
9654
9542
|
}
|
|
9655
9543
|
/**
|
|
9656
9544
|
* GetOCRResult返回参数结构体
|
|
@@ -11102,26 +10990,25 @@ export interface VatRollItem {
|
|
|
11102
10990
|
Total?: string;
|
|
11103
10991
|
}
|
|
11104
10992
|
/**
|
|
11105
|
-
*
|
|
10993
|
+
* RecognizeStoreName返回参数结构体
|
|
11106
10994
|
*/
|
|
11107
|
-
export interface
|
|
10995
|
+
export interface RecognizeStoreNameResponse {
|
|
11108
10996
|
/**
|
|
11109
|
-
*
|
|
11110
|
-
二维码:QR_CODE
|
|
11111
|
-
一维码:EAN-13、EAN-8、EAN-2、UPC-A、UPC-E、CODE-39、CODE-93、CODE-128
|
|
11112
|
-
PDF:PDF_417
|
|
11113
|
-
DataMatrix:DATA_MATRIX
|
|
11114
|
-
小程序码:WX_CODE
|
|
10997
|
+
* 门头照名称
|
|
11115
10998
|
*/
|
|
11116
|
-
|
|
10999
|
+
StoreInfo?: Array<StoreInfo>;
|
|
11117
11000
|
/**
|
|
11118
|
-
*
|
|
11001
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负
|
|
11119
11002
|
*/
|
|
11120
|
-
|
|
11003
|
+
Angle?: number;
|
|
11121
11004
|
/**
|
|
11122
|
-
*
|
|
11005
|
+
* 门头照标签
|
|
11123
11006
|
*/
|
|
11124
|
-
|
|
11007
|
+
StoreLabel?: Array<string>;
|
|
11008
|
+
/**
|
|
11009
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
11010
|
+
*/
|
|
11011
|
+
RequestId?: string;
|
|
11125
11012
|
}
|
|
11126
11013
|
/**
|
|
11127
11014
|
* 非营业执照的营业类证件识别结果,将以结构化形式呈现。
|