tencentcloud-sdk-nodejs-ocr 4.1.154 → 4.1.157
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.
|
@@ -153,6 +153,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
153
153
|
async RecognizeTableOCR(req, cb) {
|
|
154
154
|
return this.request("RecognizeTableOCR", req, cb);
|
|
155
155
|
}
|
|
156
|
+
async ExtractDocAgent(req, cb) {
|
|
157
|
+
return this.request("ExtractDocAgent", req, cb);
|
|
158
|
+
}
|
|
156
159
|
async WaybillOCR(req, cb) {
|
|
157
160
|
return this.request("WaybillOCR", req, cb);
|
|
158
161
|
}
|
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, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, 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, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, MLIDCardOCRRequest, LicensePlateOCRResponse, ExtractDocBasicRequest, RecognizeThaiIDCardOCRResponse, InvoiceGeneralOCRResponse, ExtractDocMultiResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, RecognizeTableMultiOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, PermitOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RecognizeEncryptedIDCardOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, SubmitExtractDocAgentJobRequest, AdvertiseOCRResponse, RecognizeTravelCardOCRResponse, VatRollInvoiceOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, RecognizeStoreNameResponse, WaybillOCRRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeValidIDCardOCRResponse, GeneralFastOCRResponse } from "./ocr_models";
|
|
2
|
+
import { TableOCRRequest, RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, QuotaInvoiceOCRRequest, VinOCRResponse, BankCardOCRRequest, VatInvoiceVerifyNewResponse, CarInvoiceOCRRequest, ExtractDocMultiRequest, QuestionSplitLayoutOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, ExtractDocMultiProRequest, MLIDPassportOCRRequest, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, FlightInvoiceOCRRequest, HmtResidentPermitOCRResponse, IDCardOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, DriverLicenseOCRRequest, TollInvoiceOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, HKIDCardOCRResponse, MainlandPermitOCRRequest, EnterpriseLicenseOCRRequest, 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, SubmitExtractDocAgentJobResponse, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, QuestionSplitLayoutOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeTableMultiOCRRequest, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, ExtractDocBasicResponse, EnglishOCRRequest, SmartStructuralOCRResponse, GeneralAccurateOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, VatInvoiceVerifyNewRequest, RecognizeTableMultiOCRResponse, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, GetOCRTokenRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, DescribeExtractDocAgentJobRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, HandwritingEssayOCRRequest, BankSlipOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, DescribeExtractDocAgentJobResponse, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, HandwritingEssayOCRResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, 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, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, BankCardOCRResponse, RecognizeHealthCodeOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeValidIDCardOCRResponse, GeneralFastOCRResponse } from "./ocr_models";
|
|
3
3
|
/**
|
|
4
4
|
* ocr client
|
|
5
5
|
* @class
|
|
@@ -58,7 +58,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
58
58
|
</tr>
|
|
59
59
|
<tr>
|
|
60
60
|
<td>支持的语言</td>
|
|
61
|
-
<td
|
|
61
|
+
<td>中文、英文、中英文、泰语、印尼语、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、西班牙语(智利)、西班牙语(墨西哥)、希伯来语、克罗地亚语、波兰语、葡萄牙语(巴西)、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语</td>
|
|
62
62
|
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
63
63
|
</tr>
|
|
64
64
|
<tr>
|
|
@@ -90,7 +90,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
90
90
|
/**
|
|
91
91
|
* 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
|
|
92
92
|
|
|
93
|
-
|
|
93
|
+
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别速度快、准确度高。
|
|
94
94
|
|
|
95
95
|
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
|
96
96
|
|
|
@@ -441,7 +441,12 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
441
441
|
<td> 25 </td>
|
|
442
442
|
</tr>
|
|
443
443
|
<tr>
|
|
444
|
-
|
|
444
|
+
<td> ElectronicTollSummary </td>
|
|
445
|
+
<td> 通行费电子票据汇总单 </td>
|
|
446
|
+
<td> 26 </td>
|
|
447
|
+
</tr>
|
|
448
|
+
<tr>
|
|
449
|
+
<td> OtherInvoice </td>
|
|
445
450
|
<td> 其他发票 </td>
|
|
446
451
|
<td> -1 </td>
|
|
447
452
|
</tr>
|
|
@@ -712,6 +717,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
712
717
|
默认接口请求频率限制:10次/秒。
|
|
713
718
|
*/
|
|
714
719
|
RecognizeTableOCR(req: RecognizeTableOCRRequest, cb?: (error: string, rep: RecognizeTableOCRResponse) => void): Promise<RecognizeTableOCRResponse>;
|
|
720
|
+
/**
|
|
721
|
+
* 用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
|
|
722
|
+
*/
|
|
723
|
+
ExtractDocAgent(req: ExtractDocAgentRequest, cb?: (error: string, rep: ExtractDocAgentResponse) => void): Promise<ExtractDocAgentResponse>;
|
|
715
724
|
/**
|
|
716
725
|
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
|
717
726
|
|
|
@@ -954,9 +963,9 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
954
963
|
*/
|
|
955
964
|
GeneralEfficientOCR(req: GeneralEfficientOCRRequest, cb?: (error: string, rep: GeneralEfficientOCRResponse) => void): Promise<GeneralEfficientOCRResponse>;
|
|
956
965
|
/**
|
|
957
|
-
*
|
|
966
|
+
* <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/33526">通用印刷体识别</a>。</b>
|
|
958
967
|
|
|
959
|
-
|
|
968
|
+
支持广告商品图片内文字的检测和识别,返回文本框位置与文字内容。支持中英文、横排、竖排以及倾斜场景文字识别,支持90度、180度、270度翻转以及倾斜场景文字识别,具有较高召回率和准确率。
|
|
960
969
|
|
|
961
970
|
默认接口请求频率限制:20次/秒。
|
|
962
971
|
*/
|
|
@@ -86,7 +86,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
86
86
|
</tr>
|
|
87
87
|
<tr>
|
|
88
88
|
<td>支持的语言</td>
|
|
89
|
-
<td
|
|
89
|
+
<td>中文、英文、中英文、泰语、印尼语、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、哈萨克语、阿拉伯语、维吾尔语、藏语、捷克语、希腊语、西班牙语(智利)、西班牙语(墨西哥)、希伯来语、克罗地亚语、波兰语、葡萄牙语(巴西)、罗马尼亚语、斯洛伐克语、斯洛文尼亚语、土耳其语、保加利亚语、爱沙尼亚语、拉脱维亚语、立陶宛语</td>
|
|
90
90
|
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
|
91
91
|
</tr>
|
|
92
92
|
<tr>
|
|
@@ -122,7 +122,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
122
122
|
/**
|
|
123
123
|
* 身份证识别(安全加密版)接口实现了数据加密传输,能够有效防止个人身份证隐私信息不被窃取泄露。
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
本接口支持中国大陆居民二代身份证正反面所有字段的识别,包括姓名、性别、民族、出生日期、住址、公民身份证号、签发机关、有效期限,识别速度快、准确度高。
|
|
126
126
|
|
|
127
127
|
另外,本接口还支持多种扩展能力,满足不同场景的需求。如身份证照片、人像照片的裁剪功能,同时具备9种告警功能,如下表所示。
|
|
128
128
|
|
|
@@ -509,7 +509,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
509
509
|
<td> 25 </td>
|
|
510
510
|
</tr>
|
|
511
511
|
<tr>
|
|
512
|
-
|
|
512
|
+
<td> ElectronicTollSummary </td>
|
|
513
|
+
<td> 通行费电子票据汇总单 </td>
|
|
514
|
+
<td> 26 </td>
|
|
515
|
+
</tr>
|
|
516
|
+
<tr>
|
|
517
|
+
<td> OtherInvoice </td>
|
|
513
518
|
<td> 其他发票 </td>
|
|
514
519
|
<td> -1 </td>
|
|
515
520
|
</tr>
|
|
@@ -834,6 +839,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
834
839
|
async RecognizeTableOCR(req, cb) {
|
|
835
840
|
return this.request("RecognizeTableOCR", req, cb);
|
|
836
841
|
}
|
|
842
|
+
/**
|
|
843
|
+
* 用于查询文档处理任务。文档处理领域里常见的通用Agent 如抽取、比对之类的,目前我们提供的抽取,但未来可以根据实际情况和客户需求扩展。
|
|
844
|
+
*/
|
|
845
|
+
async ExtractDocAgent(req, cb) {
|
|
846
|
+
return this.request("ExtractDocAgent", req, cb);
|
|
847
|
+
}
|
|
837
848
|
/**
|
|
838
849
|
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
|
839
850
|
|
|
@@ -1132,9 +1143,9 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
1132
1143
|
return this.request("GeneralEfficientOCR", req, cb);
|
|
1133
1144
|
}
|
|
1134
1145
|
/**
|
|
1135
|
-
*
|
|
1146
|
+
* <b>此接口不再进行服务升级,建议您使用识别能力更强、服务性能更优的<a href="https://cloud.tencent.com/document/product/866/33526">通用印刷体识别</a>。</b>
|
|
1136
1147
|
|
|
1137
|
-
|
|
1148
|
+
支持广告商品图片内文字的检测和识别,返回文本框位置与文字内容。支持中英文、横排、竖排以及倾斜场景文字识别,支持90度、180度、270度翻转以及倾斜场景文字识别,具有较高召回率和准确率。
|
|
1138
1149
|
|
|
1139
1150
|
默认接口请求频率限制:20次/秒。
|
|
1140
1151
|
*/
|
|
@@ -177,6 +177,7 @@ export interface InvoiceItem {
|
|
|
177
177
|
SubTypeDescription?: string;
|
|
178
178
|
/**
|
|
179
179
|
* 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。
|
|
180
|
+
字段在原始图的坐标可以根据Polygon转换得出。
|
|
180
181
|
*/
|
|
181
182
|
ItemPolygon?: Array<ItemPolygonInfo>;
|
|
182
183
|
/**
|
|
@@ -3489,6 +3490,31 @@ export interface VinOCRRequest {
|
|
|
3489
3490
|
*/
|
|
3490
3491
|
ImageUrl?: string;
|
|
3491
3492
|
}
|
|
3493
|
+
/**
|
|
3494
|
+
* ExtractDocAgent返回参数结构体
|
|
3495
|
+
*/
|
|
3496
|
+
export interface ExtractDocAgentResponse {
|
|
3497
|
+
/**
|
|
3498
|
+
* 图片旋转角度(角度制),文本的水平方向为 0;顺时针为正,逆时针为负。
|
|
3499
|
+
*/
|
|
3500
|
+
Angle?: number;
|
|
3501
|
+
/**
|
|
3502
|
+
* 配置结构化文本信息。
|
|
3503
|
+
*/
|
|
3504
|
+
StructuralList?: Array<GroupInfo>;
|
|
3505
|
+
/**
|
|
3506
|
+
* 任务执行错误码。当任务状态不为 FAIL 时,该值为""。
|
|
3507
|
+
*/
|
|
3508
|
+
ErrorCode?: string;
|
|
3509
|
+
/**
|
|
3510
|
+
* 任务执行错误信息。当任务状态不为 FAIL 时,该值为""。
|
|
3511
|
+
*/
|
|
3512
|
+
ErrorMessage?: string;
|
|
3513
|
+
/**
|
|
3514
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
3515
|
+
*/
|
|
3516
|
+
RequestId?: string;
|
|
3517
|
+
}
|
|
3492
3518
|
/**
|
|
3493
3519
|
* ocr结果信息
|
|
3494
3520
|
*/
|
|
@@ -6441,7 +6467,7 @@ export interface GeneralAccurateOCRRequest {
|
|
|
6441
6467
|
*/
|
|
6442
6468
|
ImageUrl?: string;
|
|
6443
6469
|
/**
|
|
6444
|
-
*
|
|
6470
|
+
* 是否返回单字信息,默认值为false,注:仅ConfigID配置为OCR时支持。
|
|
6445
6471
|
*/
|
|
6446
6472
|
IsWords?: boolean;
|
|
6447
6473
|
/**
|
|
@@ -6461,7 +6487,7 @@ export interface GeneralAccurateOCRRequest {
|
|
|
6461
6487
|
*/
|
|
6462
6488
|
EnableDetectText?: boolean;
|
|
6463
6489
|
/**
|
|
6464
|
-
* 配置ID支持:
|
|
6490
|
+
* 配置ID支持: OCR -- 通用场景 MulOCR--多语种场景,默认值为OCR
|
|
6465
6491
|
*/
|
|
6466
6492
|
ConfigID?: string;
|
|
6467
6493
|
}
|
|
@@ -7252,6 +7278,10 @@ export interface RecognizeGeneralCardWarnResponse {
|
|
|
7252
7278
|
* 是否水印
|
|
7253
7279
|
*/
|
|
7254
7280
|
Watermark?: GeneralCardWarnInfo;
|
|
7281
|
+
/**
|
|
7282
|
+
* 是否电子证照(目前仅支持电子身份证、电子营业执照识别
|
|
7283
|
+
*/
|
|
7284
|
+
Electron?: GeneralCardWarnInfo;
|
|
7255
7285
|
/**
|
|
7256
7286
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
7257
7287
|
*/
|
|
@@ -7419,7 +7449,8 @@ export interface HandwritingEssayOCRRequest {
|
|
|
7419
7449
|
PdfPageNumber?: number;
|
|
7420
7450
|
/**
|
|
7421
7451
|
* 配置id支持:
|
|
7422
|
-
ArticleRecognize --
|
|
7452
|
+
ArticleRecognize -- 手写中文作文模板
|
|
7453
|
+
ArticleRecognizeEng -- 手写英文作文模板
|
|
7423
7454
|
默认:ArticleRecognize
|
|
7424
7455
|
*/
|
|
7425
7456
|
ConfigId?: string;
|
|
@@ -10450,6 +10481,27 @@ export interface SubmitExtractDocAgentJobRequest {
|
|
|
10450
10481
|
*/
|
|
10451
10482
|
FileEndPageNumber?: number;
|
|
10452
10483
|
}
|
|
10484
|
+
/**
|
|
10485
|
+
* ExtractDocAgent请求参数结构体
|
|
10486
|
+
*/
|
|
10487
|
+
export interface ExtractDocAgentRequest {
|
|
10488
|
+
/**
|
|
10489
|
+
* 图片/PDF的 Base64 值。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
|
10490
|
+
*/
|
|
10491
|
+
ImageBase64?: string;
|
|
10492
|
+
/**
|
|
10493
|
+
* 图片/PDF的 Url 地址。 要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。 图片支持的像素范围:需介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
|
10494
|
+
*/
|
|
10495
|
+
ImageUrl?: string;
|
|
10496
|
+
/**
|
|
10497
|
+
* 自定义抽取需要的字段名称、字段类型、字段提示词。
|
|
10498
|
+
*/
|
|
10499
|
+
ItemNames?: Array<ItemNames>;
|
|
10500
|
+
/**
|
|
10501
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF时有效。
|
|
10502
|
+
*/
|
|
10503
|
+
PdfPageNumber?: number;
|
|
10504
|
+
}
|
|
10453
10505
|
/**
|
|
10454
10506
|
* AdvertiseOCR返回参数结构体
|
|
10455
10507
|
*/
|