tencentcloud-sdk-nodejs-ocr 4.1.58 → 4.1.59
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.
@@ -69,9 +69,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
69
69
|
async FlightInvoiceOCR(req, cb) {
|
70
70
|
return this.request("FlightInvoiceOCR", req, cb);
|
71
71
|
}
|
72
|
-
async RecognizeThaiIDCardOCR(req, cb) {
|
73
|
-
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
74
|
-
}
|
75
72
|
async RecognizeGeneralInvoice(req, cb) {
|
76
73
|
return this.request("RecognizeGeneralInvoice", req, cb);
|
77
74
|
}
|
@@ -96,8 +93,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
96
93
|
async GeneralBasicOCR(req, cb) {
|
97
94
|
return this.request("GeneralBasicOCR", req, cb);
|
98
95
|
}
|
99
|
-
async
|
100
|
-
return this.request("
|
96
|
+
async RecognizeThaiIDCardOCR(req, cb) {
|
97
|
+
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
101
98
|
}
|
102
99
|
async ExtractDocMultiPro(req, cb) {
|
103
100
|
return this.request("ExtractDocMultiPro", req, cb);
|
@@ -138,9 +135,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
138
135
|
async InstitutionOCR(req, cb) {
|
139
136
|
return this.request("InstitutionOCR", req, cb);
|
140
137
|
}
|
141
|
-
async SmartStructuralOCRV2(req, cb) {
|
142
|
-
return this.request("SmartStructuralOCRV2", req, cb);
|
143
|
-
}
|
144
138
|
async RecognizeTableAccurateOCR(req, cb) {
|
145
139
|
return this.request("RecognizeTableAccurateOCR", req, cb);
|
146
140
|
}
|
@@ -204,8 +198,8 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
204
198
|
async FinanBillOCR(req, cb) {
|
205
199
|
return this.request("FinanBillOCR", req, cb);
|
206
200
|
}
|
207
|
-
async
|
208
|
-
return this.request("
|
201
|
+
async MixedInvoiceOCR(req, cb) {
|
202
|
+
return this.request("MixedInvoiceOCR", req, cb);
|
209
203
|
}
|
210
204
|
async RecognizeHealthCodeOCR(req, cb) {
|
211
205
|
return this.request("RecognizeHealthCodeOCR", 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, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest,
|
2
|
+
import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, ExtractDocMultiProResponse, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, RecognizeGeneralTextImageWarnResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, VatInvoiceVerifyNewResponse, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -244,13 +244,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
244
244
|
默认接口请求频率限制:5次/秒。
|
245
245
|
*/
|
246
246
|
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
247
|
-
/**
|
248
|
-
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
249
|
-
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
250
|
-
|
251
|
-
默认接口请求频率限制:10次/秒
|
252
|
-
*/
|
253
|
-
RecognizeThaiIDCardOCR(req: RecognizeThaiIDCardOCRRequest, cb?: (error: string, rep: RecognizeThaiIDCardOCRResponse) => void): Promise<RecognizeThaiIDCardOCRResponse>;
|
254
247
|
/**
|
255
248
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
256
249
|
|
@@ -554,11 +547,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
554
547
|
*/
|
555
548
|
GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
|
556
549
|
/**
|
557
|
-
*
|
550
|
+
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
551
|
+
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
558
552
|
|
559
|
-
默认接口请求频率限制:
|
553
|
+
默认接口请求频率限制:10次/秒
|
560
554
|
*/
|
561
|
-
|
555
|
+
RecognizeThaiIDCardOCR(req: RecognizeThaiIDCardOCRRequest, cb?: (error: string, rep: RecognizeThaiIDCardOCRResponse) => void): Promise<RecognizeThaiIDCardOCRResponse>;
|
562
556
|
/**
|
563
557
|
* 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
564
558
|
|
@@ -679,12 +673,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
679
673
|
默认接口请求频率限制:5次/秒。
|
680
674
|
*/
|
681
675
|
InstitutionOCR(req: InstitutionOCRRequest, cb?: (error: string, rep: InstitutionOCRResponse) => void): Promise<InstitutionOCRResponse>;
|
682
|
-
/**
|
683
|
-
* 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
684
|
-
|
685
|
-
默认接口请求频率限制:5次/秒。
|
686
|
-
*/
|
687
|
-
SmartStructuralOCRV2(req: SmartStructuralOCRV2Request, cb?: (error: string, rep: SmartStructuralOCRV2Response) => void): Promise<SmartStructuralOCRV2Response>;
|
688
676
|
/**
|
689
677
|
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
690
678
|
|
@@ -819,11 +807,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
819
807
|
*/
|
820
808
|
FinanBillOCR(req: FinanBillOCRRequest, cb?: (error: string, rep: FinanBillOCRResponse) => void): Promise<FinanBillOCRResponse>;
|
821
809
|
/**
|
822
|
-
*
|
810
|
+
* 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
|
823
811
|
|
824
812
|
默认接口请求频率限制:5次/秒。
|
825
813
|
*/
|
826
|
-
|
814
|
+
MixedInvoiceOCR(req: MixedInvoiceOCRRequest, cb?: (error: string, rep: MixedInvoiceOCRResponse) => void): Promise<MixedInvoiceOCRResponse>;
|
827
815
|
/**
|
828
816
|
* 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
829
817
|
|
@@ -310,15 +310,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
310
310
|
async FlightInvoiceOCR(req, cb) {
|
311
311
|
return this.request("FlightInvoiceOCR", req, cb);
|
312
312
|
}
|
313
|
-
/**
|
314
|
-
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
315
|
-
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
316
|
-
|
317
|
-
默认接口请求频率限制:10次/秒
|
318
|
-
*/
|
319
|
-
async RecognizeThaiIDCardOCR(req, cb) {
|
320
|
-
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
321
|
-
}
|
322
313
|
/**
|
323
314
|
* 本接口支持 PDF多页(最多30页)、一页中单张、多张、类型票据的混合识别,同时支持单选识别某类票据,已支持票种包括:增值税发票(专票、普票、卷票、区块链发票、通行费发票)、全电发票(专票、普票)、非税发票(通用票据、统一缴纳书)、定额发票、通用机打发票、购车发票(机动车销售发票、二手车发票)、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票等常用标准报销发票,支持OFD格式的 增值税电子普通发票、增值税电子专用发票、电子发票(普通发票)、电子发票(增值税专用发票)、电子发票(机票行程单)、电子发票(铁路电子客票)的第一页识别,并支持非上述类型的其他发票的智能识别,点击[立即试用](https://cloud.tencent.com/product/ocr)。
|
324
315
|
|
@@ -638,12 +629,13 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
638
629
|
return this.request("GeneralBasicOCR", req, cb);
|
639
630
|
}
|
640
631
|
/**
|
641
|
-
*
|
632
|
+
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
633
|
+
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
642
634
|
|
643
|
-
默认接口请求频率限制:
|
635
|
+
默认接口请求频率限制:10次/秒
|
644
636
|
*/
|
645
|
-
async
|
646
|
-
return this.request("
|
637
|
+
async RecognizeThaiIDCardOCR(req, cb) {
|
638
|
+
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
647
639
|
}
|
648
640
|
/**
|
649
641
|
* 本接口当前仅支持复杂磅单收发货单抽取,更多强推理场景支持定制咨询。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
@@ -791,14 +783,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
791
783
|
async InstitutionOCR(req, cb) {
|
792
784
|
return this.request("InstitutionOCR", req, cb);
|
793
785
|
}
|
794
|
-
/**
|
795
|
-
* 本接口支持识别并提取制式卡证、票据、表单等结构化场景的字段信息。无需任何配置,灵活高效。适用于各类结构化信息录入场景。点击[立即体验](https://ocrdemo.cloud.tencent.com/)。
|
796
|
-
|
797
|
-
默认接口请求频率限制:5次/秒。
|
798
|
-
*/
|
799
|
-
async SmartStructuralOCRV2(req, cb) {
|
800
|
-
return this.request("SmartStructuralOCRV2", req, cb);
|
801
|
-
}
|
802
786
|
/**
|
803
787
|
* 本接口支持中英文图片/PDF内常规表格、无线表格、多表格的检测和识别,返回每个单元格的文字内容,支持旋转的表格图片识别,且支持将识别结果保存为 Excel 格式。识别效果比表格识别V2更好,覆盖场景更加广泛,对表格难例场景,如无线表格、嵌套表格(有线表格中包含无线表格)的识别效果均优于表格识别V2。
|
804
788
|
|
@@ -975,12 +959,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
975
959
|
return this.request("FinanBillOCR", req, cb);
|
976
960
|
}
|
977
961
|
/**
|
978
|
-
*
|
962
|
+
* 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
|
979
963
|
|
980
964
|
默认接口请求频率限制:5次/秒。
|
981
965
|
*/
|
982
|
-
async
|
983
|
-
return this.request("
|
966
|
+
async MixedInvoiceOCR(req, cb) {
|
967
|
+
return this.request("MixedInvoiceOCR", req, cb);
|
984
968
|
}
|
985
969
|
/**
|
986
970
|
* 本接口支持北京、上海、广东、江苏、吉林、黑龙江、天津、辽宁、浙江、河南、四川、贵州、山东、安徽、福建、江西、湖北、湖南等省份健康码的识别,包括持码人姓名、持码人身份证号、健康码更新时间、健康码颜色、核酸检测结果、核酸检测间隔时长、核酸检测时间,疫苗接种信息,八个字段的识别结果输出。不同省市健康码显示的字段信息有所不同,上述字段的识别结果可能为空,以图片上具体展示的信息为准。
|
@@ -716,59 +716,6 @@ export interface ItemInfo {
|
|
716
716
|
*/
|
717
717
|
Value?: Value;
|
718
718
|
}
|
719
|
-
/**
|
720
|
-
* SmartStructuralOCRV2请求参数结构体
|
721
|
-
*/
|
722
|
-
export interface SmartStructuralOCRV2Request {
|
723
|
-
/**
|
724
|
-
* 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
725
|
-
*/
|
726
|
-
ImageUrl?: string;
|
727
|
-
/**
|
728
|
-
* 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 10M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
729
|
-
*/
|
730
|
-
ImageBase64?: string;
|
731
|
-
/**
|
732
|
-
* 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
|
733
|
-
*/
|
734
|
-
IsPdf?: boolean;
|
735
|
-
/**
|
736
|
-
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
737
|
-
*/
|
738
|
-
PdfPageNumber?: number;
|
739
|
-
/**
|
740
|
-
* 自定义结构化功能需返回的字段名称,例:
|
741
|
-
若客户只想返回姓名、性别两个字段的识别结果,则输入
|
742
|
-
ItemNames=["姓名","性别"]
|
743
|
-
*/
|
744
|
-
ItemNames?: Array<string>;
|
745
|
-
/**
|
746
|
-
* 是否开启全文字段识别
|
747
|
-
*/
|
748
|
-
ReturnFullText?: boolean;
|
749
|
-
/**
|
750
|
-
* 配置id支持:
|
751
|
-
General -- 通用场景
|
752
|
-
OnlineTaxiItinerary -- 网约车行程单
|
753
|
-
RideHailingDriverLicense -- 网约车驾驶证
|
754
|
-
RideHailingTransportLicense -- 网约车运输证
|
755
|
-
WayBill -- 快递运单
|
756
|
-
AccountOpeningPermit -- 银行开户许可证
|
757
|
-
InvoiceEng -- 海外发票模版
|
758
|
-
Coin --钱币识别模板
|
759
|
-
OnboardingDocuments -- 入职材料识别
|
760
|
-
PropertyOwnershipCertificate -- 房产证识别
|
761
|
-
RealEstateCertificate --不动产权证识别
|
762
|
-
HouseEncumbranceCertificate -- 他权证识别
|
763
|
-
CarInsurance -- 车险保单
|
764
|
-
MultiRealEstateCertificate -- 房产证、不动产证、产权证等材料合一模板
|
765
|
-
*/
|
766
|
-
ConfigId?: string;
|
767
|
-
/**
|
768
|
-
* 是否打开印章识别
|
769
|
-
*/
|
770
|
-
EnableSealRecognize?: boolean;
|
771
|
-
}
|
772
719
|
/**
|
773
720
|
* TextDetect返回参数结构体
|
774
721
|
*/
|
@@ -1876,69 +1823,39 @@ export interface OtherInvoiceItem {
|
|
1876
1823
|
Value?: string;
|
1877
1824
|
}
|
1878
1825
|
/**
|
1879
|
-
*
|
1826
|
+
* 文字识别结果
|
1880
1827
|
*/
|
1881
|
-
export interface
|
1882
|
-
/**
|
1883
|
-
* 图片的 Url 地址。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1884
|
-
*/
|
1885
|
-
ImageUrl?: string;
|
1886
|
-
/**
|
1887
|
-
* 图片的 Base64 值。支持的图片格式:PNG、JPG、JPEG,WORD,EXCEL,暂不支持 GIF 格式。支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。支持的图片像素:需介于20-10000px之间。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1888
|
-
*/
|
1889
|
-
ImageBase64?: string;
|
1890
|
-
/**
|
1891
|
-
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为前3页。
|
1892
|
-
*/
|
1893
|
-
PdfPageNumber?: number;
|
1828
|
+
export interface TextDetection {
|
1894
1829
|
/**
|
1895
|
-
*
|
1830
|
+
* 识别出的文本行内容
|
1896
1831
|
*/
|
1897
|
-
|
1832
|
+
DetectedText: string;
|
1898
1833
|
/**
|
1899
|
-
*
|
1900
|
-
flase:输出默认字段+自定义字段
|
1901
|
-
默认true
|
1834
|
+
* 置信度 0 ~100
|
1902
1835
|
*/
|
1903
|
-
|
1836
|
+
Confidence: number;
|
1904
1837
|
/**
|
1905
|
-
*
|
1838
|
+
* 文本行坐标,以四个顶点坐标表示
|
1839
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
1906
1840
|
*/
|
1907
|
-
|
1841
|
+
Polygon: Array<Coord>;
|
1908
1842
|
/**
|
1909
|
-
*
|
1910
|
-
|
1911
|
-
InvoiceEng -- 国际invoice模版
|
1912
|
-
WayBillEng --海运订单模板
|
1913
|
-
CustomsDeclaration -- 进出口报关单
|
1914
|
-
WeightNote -- 磅单
|
1915
|
-
MedicalMeter -- 血压仪表识别
|
1916
|
-
BillOfLading -- 海运提单
|
1917
|
-
EntrustmentBook -- 海运托书
|
1918
|
-
WordRecognize -- 手写英文作文模版
|
1919
|
-
Statement -- 对账单识别模板
|
1920
|
-
BookingConfirmation -- 配舱通知书识别模板
|
1921
|
-
AirWayBill -- 航空运单识别模板
|
1922
|
-
DispatchWeightNote -- 磅单发货单识别模板
|
1923
|
-
ReceiptWeightNote -- 磅单收货单识别模板
|
1924
|
-
ArticalRecognize -- 手写作文模版
|
1925
|
-
Table -- 表格模版
|
1926
|
-
SteelLabel -- 实物标签识别模板
|
1927
|
-
CarInsurance -- 车辆保险单识别模板
|
1843
|
+
* 此字段为扩展字段。
|
1844
|
+
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
|
1928
1845
|
*/
|
1929
|
-
|
1846
|
+
AdvancedInfo: string;
|
1930
1847
|
/**
|
1931
|
-
*
|
1848
|
+
* 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
|
1932
1849
|
*/
|
1933
|
-
|
1850
|
+
ItemPolygon: ItemCoord;
|
1934
1851
|
/**
|
1935
|
-
*
|
1852
|
+
* 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
1936
1853
|
*/
|
1937
|
-
|
1854
|
+
Words: Array<DetectedWords>;
|
1938
1855
|
/**
|
1939
|
-
*
|
1856
|
+
* 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
1940
1857
|
*/
|
1941
|
-
|
1858
|
+
WordCoordPoint: Array<DetectedWordCoordPoint>;
|
1942
1859
|
}
|
1943
1860
|
/**
|
1944
1861
|
* RecognizeTableOCR返回参数结构体
|
@@ -2235,26 +2152,17 @@ export interface VatElectronicItemInfo {
|
|
2235
2152
|
TravelLevel?: string;
|
2236
2153
|
}
|
2237
2154
|
/**
|
2238
|
-
*
|
2155
|
+
* 单词坐标信息
|
2239
2156
|
*/
|
2240
|
-
export interface
|
2241
|
-
/**
|
2242
|
-
* 图片旋转角度(角度制),文本的水平方向
|
2243
|
-
为 0;顺时针为正,逆时针为负
|
2244
|
-
*/
|
2245
|
-
Angle?: number;
|
2246
|
-
/**
|
2247
|
-
* 配置结构化文本信息
|
2248
|
-
*/
|
2249
|
-
StructuralList?: Array<GroupInfo>;
|
2157
|
+
export interface WordPolygon {
|
2250
2158
|
/**
|
2251
|
-
*
|
2159
|
+
* 文本块内容
|
2252
2160
|
*/
|
2253
|
-
|
2161
|
+
DetectedText?: string;
|
2254
2162
|
/**
|
2255
|
-
*
|
2163
|
+
* 四点坐标
|
2256
2164
|
*/
|
2257
|
-
|
2165
|
+
Coord?: Polygon;
|
2258
2166
|
}
|
2259
2167
|
/**
|
2260
2168
|
* EnterpriseLicenseOCR请求参数结构体
|
@@ -2436,41 +2344,6 @@ export interface FlightItemInfo {
|
|
2436
2344
|
*/
|
2437
2345
|
DateEnd?: string;
|
2438
2346
|
}
|
2439
|
-
/**
|
2440
|
-
* 文字识别结果
|
2441
|
-
*/
|
2442
|
-
export interface TextDetection {
|
2443
|
-
/**
|
2444
|
-
* 识别出的文本行内容
|
2445
|
-
*/
|
2446
|
-
DetectedText: string;
|
2447
|
-
/**
|
2448
|
-
* 置信度 0 ~100
|
2449
|
-
*/
|
2450
|
-
Confidence: number;
|
2451
|
-
/**
|
2452
|
-
* 文本行坐标,以四个顶点坐标表示
|
2453
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
2454
|
-
*/
|
2455
|
-
Polygon: Array<Coord>;
|
2456
|
-
/**
|
2457
|
-
* 此字段为扩展字段。
|
2458
|
-
GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
|
2459
|
-
*/
|
2460
|
-
AdvancedInfo: string;
|
2461
|
-
/**
|
2462
|
-
* 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
|
2463
|
-
*/
|
2464
|
-
ItemPolygon: ItemCoord;
|
2465
|
-
/**
|
2466
|
-
* 识别出来的单字信息包括单字(包括单字Character和单字置信度confidence), 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
2467
|
-
*/
|
2468
|
-
Words: Array<DetectedWords>;
|
2469
|
-
/**
|
2470
|
-
* 单字在原图中的四点坐标, 支持识别的接口:GeneralBasicOCR、GeneralAccurateOCR
|
2471
|
-
*/
|
2472
|
-
WordCoordPoint: Array<DetectedWordCoordPoint>;
|
2473
|
-
}
|
2474
2347
|
/**
|
2475
2348
|
* PropOwnerCertOCR返回参数结构体
|
2476
2349
|
*/
|
@@ -10356,31 +10229,6 @@ export interface EnterpriseLicenseInfo {
|
|
10356
10229
|
*/
|
10357
10230
|
Value?: string;
|
10358
10231
|
}
|
10359
|
-
/**
|
10360
|
-
* SmartStructuralPro返回参数结构体
|
10361
|
-
*/
|
10362
|
-
export interface SmartStructuralProResponse {
|
10363
|
-
/**
|
10364
|
-
* 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负
|
10365
|
-
*/
|
10366
|
-
Angle?: number;
|
10367
|
-
/**
|
10368
|
-
* 配置结构化文本信息
|
10369
|
-
*/
|
10370
|
-
StructuralList?: Array<GroupInfo>;
|
10371
|
-
/**
|
10372
|
-
* 还原文本信息
|
10373
|
-
*/
|
10374
|
-
WordList?: Array<WordItem>;
|
10375
|
-
/**
|
10376
|
-
* 识别出的token个数
|
10377
|
-
*/
|
10378
|
-
TokenNum?: number;
|
10379
|
-
/**
|
10380
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10381
|
-
*/
|
10382
|
-
RequestId?: string;
|
10383
|
-
}
|
10384
10232
|
/**
|
10385
10233
|
* PermitOCR返回参数结构体
|
10386
10234
|
*/
|
@@ -10599,19 +10447,6 @@ export interface LicensePlateInfo {
|
|
10599
10447
|
*/
|
10600
10448
|
Color?: string;
|
10601
10449
|
}
|
10602
|
-
/**
|
10603
|
-
* 单词坐标信息
|
10604
|
-
*/
|
10605
|
-
export interface WordPolygon {
|
10606
|
-
/**
|
10607
|
-
* 文本块内容
|
10608
|
-
*/
|
10609
|
-
DetectedText?: string;
|
10610
|
-
/**
|
10611
|
-
* 四点坐标
|
10612
|
-
*/
|
10613
|
-
Coord?: Polygon;
|
10614
|
-
}
|
10615
10450
|
/**
|
10616
10451
|
* 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
|
10617
10452
|
*/
|