tencentcloud-sdk-nodejs-ocr 4.1.188 → 4.1.191
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.
|
@@ -228,9 +228,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
228
228
|
async RecognizeMedicalInvoiceOCR(req, cb) {
|
|
229
229
|
return this.request("RecognizeMedicalInvoiceOCR", req, cb);
|
|
230
230
|
}
|
|
231
|
-
async RecognizeTableMultiOCR(req, cb) {
|
|
232
|
-
return this.request("RecognizeTableMultiOCR", req, cb);
|
|
233
|
-
}
|
|
234
231
|
async GeneralFastOCR(req, cb) {
|
|
235
232
|
return this.request("GeneralFastOCR", req, cb);
|
|
236
233
|
}
|
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, 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,
|
|
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, 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, 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
|
|
@@ -233,7 +233,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
233
233
|
*/
|
|
234
234
|
TaxiInvoiceOCR(req: TaxiInvoiceOCRRequest, cb?: (error: string, rep: TaxiInvoiceOCRResponse) => void): Promise<TaxiInvoiceOCRResponse>;
|
|
235
235
|
/**
|
|
236
|
-
*
|
|
236
|
+
* 模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
237
237
|
*/
|
|
238
238
|
DescribeExtractDocAgentJob(req: DescribeExtractDocAgentJobRequest, cb?: (error: string, rep: DescribeExtractDocAgentJobResponse) => void): Promise<DescribeExtractDocAgentJobResponse>;
|
|
239
239
|
/**
|
|
@@ -750,7 +750,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
750
750
|
*/
|
|
751
751
|
RecognizeTableOCR(req: RecognizeTableOCRRequest, cb?: (error: string, rep: RecognizeTableOCRResponse) => void): Promise<RecognizeTableOCRResponse>;
|
|
752
752
|
/**
|
|
753
|
-
*
|
|
753
|
+
* 模型参数更小,速度更快。推荐场景:实时性要求高(30s以内)并且样本输入输出token2000以内,建议用实时模型。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
754
754
|
*/
|
|
755
755
|
ExtractDocAgent(req: ExtractDocAgentRequest, cb?: (error: string, rep: ExtractDocAgentResponse) => void): Promise<ExtractDocAgentResponse>;
|
|
756
756
|
/**
|
|
@@ -823,7 +823,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
823
823
|
*/
|
|
824
824
|
RecognizeTravelCardOCR(req: RecognizeTravelCardOCRRequest, cb?: (error: string, rep: RecognizeTravelCardOCRResponse) => void): Promise<RecognizeTravelCardOCRResponse>;
|
|
825
825
|
/**
|
|
826
|
-
*
|
|
826
|
+
* 模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
827
827
|
*/
|
|
828
828
|
SubmitExtractDocAgentJob(req: SubmitExtractDocAgentJobRequest, cb?: (error: string, rep: SubmitExtractDocAgentJobResponse) => void): Promise<SubmitExtractDocAgentJobResponse>;
|
|
829
829
|
/**
|
|
@@ -888,12 +888,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
888
888
|
默认接口请求频率限制:5次/秒。
|
|
889
889
|
*/
|
|
890
890
|
RecognizeMedicalInvoiceOCR(req: RecognizeMedicalInvoiceOCRRequest, cb?: (error: string, rep: RecognizeMedicalInvoiceOCRResponse) => void): Promise<RecognizeMedicalInvoiceOCRResponse>;
|
|
891
|
-
/**
|
|
892
|
-
* 基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
|
|
893
|
-
|
|
894
|
-
默认接口请求频率限制:1次/秒。
|
|
895
|
-
*/
|
|
896
|
-
RecognizeTableMultiOCR(req: RecognizeTableMultiOCRRequest, cb?: (error: string, rep: RecognizeTableMultiOCRResponse) => void): Promise<RecognizeTableMultiOCRResponse>;
|
|
897
891
|
/**
|
|
898
892
|
* 本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快。
|
|
899
893
|
|
|
@@ -295,7 +295,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
295
295
|
return this.request("TaxiInvoiceOCR", req, cb);
|
|
296
296
|
}
|
|
297
297
|
/**
|
|
298
|
-
*
|
|
298
|
+
* 模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
299
299
|
*/
|
|
300
300
|
async DescribeExtractDocAgentJob(req, cb) {
|
|
301
301
|
return this.request("DescribeExtractDocAgentJob", req, cb);
|
|
@@ -878,7 +878,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
878
878
|
return this.request("RecognizeTableOCR", req, cb);
|
|
879
879
|
}
|
|
880
880
|
/**
|
|
881
|
-
*
|
|
881
|
+
* 模型参数更小,速度更快。推荐场景:实时性要求高(30s以内)并且样本输入输出token2000以内,建议用实时模型。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
882
882
|
*/
|
|
883
883
|
async ExtractDocAgent(req, cb) {
|
|
884
884
|
return this.request("ExtractDocAgent", req, cb);
|
|
@@ -975,7 +975,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
975
975
|
return this.request("RecognizeTravelCardOCR", req, cb);
|
|
976
976
|
}
|
|
977
977
|
/**
|
|
978
|
-
*
|
|
978
|
+
* 模型参数更大,速度更慢。推荐场景:可以接受异步(超过30s返回),样本输入输出token大于2000,长文本类文档建议用异步模型。需要 SubmitExtractDocAgentJob(提交任务)、DescribeExtractDocAgentJob(查询任务)两个接口配套使用,计费发生在提交任务后。【备注:1.固定价格不限抽取字段数,2.自适应价格抽取字段大于10记两次费用,小于等于10记一次费用】
|
|
979
979
|
*/
|
|
980
980
|
async SubmitExtractDocAgentJob(req, cb) {
|
|
981
981
|
return this.request("SubmitExtractDocAgentJob", req, cb);
|
|
@@ -1060,14 +1060,6 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
1060
1060
|
async RecognizeMedicalInvoiceOCR(req, cb) {
|
|
1061
1061
|
return this.request("RecognizeMedicalInvoiceOCR", req, cb);
|
|
1062
1062
|
}
|
|
1063
|
-
/**
|
|
1064
|
-
* 基于MLLM(多模态大语言模型)的表格识别能力,针对复杂表格的算法识别效果更佳,适配财务报表识别场景,并可输出直接对接业务系统的Excel数据。
|
|
1065
|
-
|
|
1066
|
-
默认接口请求频率限制:1次/秒。
|
|
1067
|
-
*/
|
|
1068
|
-
async RecognizeTableMultiOCR(req, cb) {
|
|
1069
|
-
return this.request("RecognizeTableMultiOCR", req, cb);
|
|
1070
|
-
}
|
|
1071
1063
|
/**
|
|
1072
1064
|
* 本接口支持图片中整体文字的检测和识别,返回文字框位置与文字内容。相比通用印刷体识别接口,识别速度更快。
|
|
1073
1065
|
|
|
@@ -1490,58 +1490,43 @@ export interface VehicleRegCertInfo {
|
|
|
1490
1490
|
*/
|
|
1491
1491
|
export interface IDCardOCRResponse {
|
|
1492
1492
|
/**
|
|
1493
|
-
*
|
|
1493
|
+
* <p>姓名(人像面)</p>
|
|
1494
1494
|
*/
|
|
1495
1495
|
Name?: string;
|
|
1496
1496
|
/**
|
|
1497
|
-
*
|
|
1497
|
+
* <p>性别(人像面)</p>
|
|
1498
1498
|
*/
|
|
1499
1499
|
Sex?: string;
|
|
1500
1500
|
/**
|
|
1501
|
-
*
|
|
1501
|
+
* <p>民族(人像面)</p>
|
|
1502
1502
|
*/
|
|
1503
1503
|
Nation?: string;
|
|
1504
1504
|
/**
|
|
1505
|
-
*
|
|
1505
|
+
* <p>出生日期(人像面)</p>
|
|
1506
1506
|
*/
|
|
1507
1507
|
Birth?: string;
|
|
1508
1508
|
/**
|
|
1509
|
-
*
|
|
1509
|
+
* <p>地址(人像面)</p>
|
|
1510
1510
|
*/
|
|
1511
1511
|
Address?: string;
|
|
1512
1512
|
/**
|
|
1513
|
-
*
|
|
1513
|
+
* <p>身份证号(人像面)</p>
|
|
1514
1514
|
*/
|
|
1515
1515
|
IdNum?: string;
|
|
1516
1516
|
/**
|
|
1517
|
-
*
|
|
1517
|
+
* <p>发证机关(国徽面)</p>
|
|
1518
1518
|
*/
|
|
1519
1519
|
Authority?: string;
|
|
1520
1520
|
/**
|
|
1521
|
-
*
|
|
1521
|
+
* <p>证件有效期(国徽面)</p>
|
|
1522
1522
|
*/
|
|
1523
1523
|
ValidDate?: string;
|
|
1524
1524
|
/**
|
|
1525
|
-
*
|
|
1526
|
-
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
|
1527
|
-
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
|
1528
|
-
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
|
1529
|
-
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
|
1530
|
-
WarnInfos,告警信息,Code 告警码列表和释义:
|
|
1531
|
-
-9100 身份证有效日期不合法告警,
|
|
1532
|
-
-9101 身份证边框不完整告警,
|
|
1533
|
-
-9102 身份证复印件告警(黑白及彩色复印件),
|
|
1534
|
-
-9108 身份证复印件告警(仅黑白复印件),
|
|
1535
|
-
-9103 身份证翻拍告警,
|
|
1536
|
-
-9105 身份证框内遮挡告警,
|
|
1537
|
-
-9104 临时身份证告警,
|
|
1538
|
-
-9106 身份证疑似存在PS痕迹告警,
|
|
1539
|
-
-9107 身份证反光告警,
|
|
1540
|
-
-9110 电子身份证告警
|
|
1525
|
+
* <p>扩展信息,不请求则不返回,具体输入参考示例3和示例4。<br>IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;<br>Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;<br>Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);<br>BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);<br>WarnInfos,告警信息,Code 告警码列表和释义:<br>-9100 身份证有效日期不合法告警,<br>-9101 身份证边框不完整告警,<br>-9102 身份证复印件告警(黑白及彩色复印件),<br>-9108 身份证复印件告警(仅黑白复印件),<br>-9103 身份证翻拍告警,<br>-9105 身份证框内遮挡告警,<br>-9104 临时身份证告警,<br>-9106 身份证疑似存在PS痕迹告警,<br>-9107 身份证反光告警,<br>-9110 电子身份证告警,<br>-9111 水印告警(仅CardWarnType参数为Advanced时)</p>
|
|
1541
1526
|
*/
|
|
1542
1527
|
AdvancedInfo?: string;
|
|
1543
1528
|
/**
|
|
1544
|
-
*
|
|
1529
|
+
* <p>反光点覆盖区域详情结果,具体内容请点击左侧链接</p>
|
|
1545
1530
|
*/
|
|
1546
1531
|
ReflectDetailInfos?: Array<ReflectDetailInfo>;
|
|
1547
1532
|
/**
|
|
@@ -2779,56 +2764,39 @@ export interface MixedInvoiceItem {
|
|
|
2779
2764
|
*/
|
|
2780
2765
|
export interface RecognizeEncryptedIDCardOCRRequest {
|
|
2781
2766
|
/**
|
|
2782
|
-
*
|
|
2767
|
+
* <p>请求体被加密后的密文(Base64编码),本接口只支持加密传输</p>
|
|
2783
2768
|
*/
|
|
2784
2769
|
EncryptedBody: string;
|
|
2785
2770
|
/**
|
|
2786
|
-
*
|
|
2771
|
+
* <p>敏感数据加密信息。对传入信息有加密需求的用户可使用此参数,详情请点击左侧链接。</p>
|
|
2787
2772
|
*/
|
|
2788
2773
|
Encryption: Encryption;
|
|
2789
2774
|
/**
|
|
2790
|
-
*
|
|
2775
|
+
* <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
2791
2776
|
*/
|
|
2792
2777
|
ImageBase64?: string;
|
|
2793
2778
|
/**
|
|
2794
|
-
*
|
|
2779
|
+
* <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片下载时间不超过 3 秒。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
|
|
2795
2780
|
*/
|
|
2796
2781
|
ImageUrl?: string;
|
|
2797
2782
|
/**
|
|
2798
|
-
* FRONT
|
|
2799
|
-
BACK:身份证有国徽的一面(国徽面),
|
|
2800
|
-
该参数如果不填,将为您自动判断身份证正反面。
|
|
2783
|
+
* <p>FRONT:身份证有照片的一面(人像面),<br>BACK:身份证有国徽的一面(国徽面),<br>该参数如果不填,将为您自动判断身份证正反面。</p>
|
|
2801
2784
|
*/
|
|
2802
2785
|
CardSide?: string;
|
|
2803
2786
|
/**
|
|
2804
|
-
*
|
|
2805
|
-
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
|
2806
|
-
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
|
2807
|
-
CopyWarn,复印件告警
|
|
2808
|
-
BorderCheckWarn,边框不完整和框内遮挡告警
|
|
2809
|
-
ReshootWarn,屏幕翻拍告警
|
|
2810
|
-
DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
|
|
2811
|
-
TempIdWarn,临时身份证告警
|
|
2812
|
-
InvalidDateWarn,身份证有效日期不合法告警
|
|
2813
|
-
Quality,图片质量分数(评价图片的模糊程度)
|
|
2814
|
-
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
|
2815
|
-
ReflectWarn,是否开启反光检测
|
|
2816
|
-
SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
|
2817
|
-
API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
|
|
2787
|
+
* <p>以下可选字段均为bool 类型,默认false:<br>CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)<br>CropPortrait,人像照片裁剪(自动抠取身份证头像区域)<br>CopyWarn,复印件告警<br>BorderCheckWarn,边框不完整和框内遮挡告警<br>ReshootWarn,屏幕翻拍告警<br>DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证、水印告警)<br>TempIdWarn,临时身份证告警<br>InvalidDateWarn,身份证有效日期不合法告警<br>Quality,图片质量分数(评价图片的模糊程度)<br>MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)<br>ReflectWarn,是否开启反光检测<br>SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})<br>API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}</p>
|
|
2818
2788
|
*/
|
|
2819
2789
|
Config?: string;
|
|
2820
2790
|
/**
|
|
2821
|
-
*
|
|
2791
|
+
* <p>默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。</p>
|
|
2822
2792
|
*/
|
|
2823
2793
|
EnableRecognitionRectify?: boolean;
|
|
2824
2794
|
/**
|
|
2825
|
-
*
|
|
2826
|
-
|
|
2827
|
-
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
|
2795
|
+
* <p>默认值为false。</p><p>此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。</p>
|
|
2828
2796
|
*/
|
|
2829
2797
|
EnableReflectDetail?: boolean;
|
|
2830
2798
|
/**
|
|
2831
|
-
* Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic
|
|
2799
|
+
* <p>Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic</p>
|
|
2832
2800
|
*/
|
|
2833
2801
|
CardWarnType?: string;
|
|
2834
2802
|
}
|
|
@@ -6031,32 +5999,82 @@ export interface UsedVehicleInvoiceInfo {
|
|
|
6031
5999
|
MarketTel: string;
|
|
6032
6000
|
}
|
|
6033
6001
|
/**
|
|
6034
|
-
*
|
|
6002
|
+
* 行驶证副页正面的识别结果
|
|
6035
6003
|
*/
|
|
6036
|
-
export interface
|
|
6004
|
+
export interface TextVehicleBack {
|
|
6037
6005
|
/**
|
|
6038
|
-
*
|
|
6006
|
+
* 号牌号码
|
|
6007
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6039
6008
|
*/
|
|
6040
|
-
|
|
6009
|
+
PlateNo?: string;
|
|
6041
6010
|
/**
|
|
6042
|
-
*
|
|
6011
|
+
* 档案编号
|
|
6012
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6043
6013
|
*/
|
|
6044
|
-
|
|
6014
|
+
FileNo?: string;
|
|
6015
|
+
/**
|
|
6016
|
+
* 核定人数
|
|
6017
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6018
|
+
*/
|
|
6019
|
+
AllowNum?: string;
|
|
6020
|
+
/**
|
|
6021
|
+
* 总质量
|
|
6022
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6023
|
+
*/
|
|
6024
|
+
TotalMass?: string;
|
|
6025
|
+
/**
|
|
6026
|
+
* 整备质量
|
|
6027
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6028
|
+
*/
|
|
6029
|
+
CurbWeight?: string;
|
|
6030
|
+
/**
|
|
6031
|
+
* 核定载质量
|
|
6032
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6033
|
+
*/
|
|
6034
|
+
LoadQuality?: string;
|
|
6035
|
+
/**
|
|
6036
|
+
* 外廓尺寸
|
|
6037
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6038
|
+
*/
|
|
6039
|
+
ExternalSize?: string;
|
|
6045
6040
|
/**
|
|
6046
|
-
*
|
|
6041
|
+
* 备注
|
|
6042
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6047
6043
|
*/
|
|
6048
|
-
|
|
6044
|
+
Marks?: string;
|
|
6049
6045
|
/**
|
|
6050
|
-
*
|
|
6046
|
+
* 检验记录
|
|
6047
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6051
6048
|
*/
|
|
6052
|
-
|
|
6049
|
+
Record?: string;
|
|
6053
6050
|
/**
|
|
6054
|
-
*
|
|
6051
|
+
* 准牵引总质量
|
|
6052
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6053
|
+
*/
|
|
6054
|
+
TotalQuasiMass?: string;
|
|
6055
|
+
/**
|
|
6056
|
+
* 副页编码
|
|
6057
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6058
|
+
*/
|
|
6059
|
+
SubPageCode?: string;
|
|
6060
|
+
/**
|
|
6061
|
+
* 燃料种类
|
|
6055
6062
|
|
|
6056
|
-
|
|
6057
|
-
|
|
6063
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
6064
|
+
*/
|
|
6065
|
+
FuelType?: string;
|
|
6066
|
+
/**
|
|
6067
|
+
* 住址
|
|
6068
|
+
*/
|
|
6069
|
+
AddressElectronic?: string;
|
|
6070
|
+
/**
|
|
6071
|
+
* 发证机关
|
|
6072
|
+
*/
|
|
6073
|
+
IssueAuthorityElectronic?: string;
|
|
6074
|
+
/**
|
|
6075
|
+
* 车身颜色
|
|
6058
6076
|
*/
|
|
6059
|
-
|
|
6077
|
+
CarBodyColor?: string;
|
|
6060
6078
|
}
|
|
6061
6079
|
/**
|
|
6062
6080
|
* SubmitMarkEssayAgentJob返回参数结构体
|
|
@@ -6256,84 +6274,6 @@ export interface RideHailingDriverLicenseOCRResponse {
|
|
|
6256
6274
|
*/
|
|
6257
6275
|
RequestId?: string;
|
|
6258
6276
|
}
|
|
6259
|
-
/**
|
|
6260
|
-
* 行驶证副页正面的识别结果
|
|
6261
|
-
*/
|
|
6262
|
-
export interface TextVehicleBack {
|
|
6263
|
-
/**
|
|
6264
|
-
* 号牌号码
|
|
6265
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6266
|
-
*/
|
|
6267
|
-
PlateNo?: string;
|
|
6268
|
-
/**
|
|
6269
|
-
* 档案编号
|
|
6270
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6271
|
-
*/
|
|
6272
|
-
FileNo?: string;
|
|
6273
|
-
/**
|
|
6274
|
-
* 核定人数
|
|
6275
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6276
|
-
*/
|
|
6277
|
-
AllowNum?: string;
|
|
6278
|
-
/**
|
|
6279
|
-
* 总质量
|
|
6280
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6281
|
-
*/
|
|
6282
|
-
TotalMass?: string;
|
|
6283
|
-
/**
|
|
6284
|
-
* 整备质量
|
|
6285
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6286
|
-
*/
|
|
6287
|
-
CurbWeight?: string;
|
|
6288
|
-
/**
|
|
6289
|
-
* 核定载质量
|
|
6290
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6291
|
-
*/
|
|
6292
|
-
LoadQuality?: string;
|
|
6293
|
-
/**
|
|
6294
|
-
* 外廓尺寸
|
|
6295
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6296
|
-
*/
|
|
6297
|
-
ExternalSize?: string;
|
|
6298
|
-
/**
|
|
6299
|
-
* 备注
|
|
6300
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6301
|
-
*/
|
|
6302
|
-
Marks?: string;
|
|
6303
|
-
/**
|
|
6304
|
-
* 检验记录
|
|
6305
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6306
|
-
*/
|
|
6307
|
-
Record?: string;
|
|
6308
|
-
/**
|
|
6309
|
-
* 准牵引总质量
|
|
6310
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6311
|
-
*/
|
|
6312
|
-
TotalQuasiMass?: string;
|
|
6313
|
-
/**
|
|
6314
|
-
* 副页编码
|
|
6315
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6316
|
-
*/
|
|
6317
|
-
SubPageCode?: string;
|
|
6318
|
-
/**
|
|
6319
|
-
* 燃料种类
|
|
6320
|
-
|
|
6321
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6322
|
-
*/
|
|
6323
|
-
FuelType?: string;
|
|
6324
|
-
/**
|
|
6325
|
-
* 住址
|
|
6326
|
-
*/
|
|
6327
|
-
AddressElectronic?: string;
|
|
6328
|
-
/**
|
|
6329
|
-
* 发证机关
|
|
6330
|
-
*/
|
|
6331
|
-
IssueAuthorityElectronic?: string;
|
|
6332
|
-
/**
|
|
6333
|
-
* 车身颜色
|
|
6334
|
-
*/
|
|
6335
|
-
CarBodyColor?: string;
|
|
6336
|
-
}
|
|
6337
6277
|
/**
|
|
6338
6278
|
* ImageEnhancement请求参数结构体
|
|
6339
6279
|
*/
|
|
@@ -6971,18 +6911,41 @@ export interface CarInvoiceInfo {
|
|
|
6971
6911
|
Polygon?: Polygon;
|
|
6972
6912
|
}
|
|
6973
6913
|
/**
|
|
6974
|
-
*
|
|
6914
|
+
* 单元格数据
|
|
6975
6915
|
*/
|
|
6976
|
-
export interface
|
|
6916
|
+
export interface TableCellInfo {
|
|
6977
6917
|
/**
|
|
6978
|
-
*
|
|
6979
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
6918
|
+
* 单元格左上角的列索引
|
|
6980
6919
|
*/
|
|
6981
|
-
|
|
6920
|
+
ColTl: number;
|
|
6982
6921
|
/**
|
|
6983
|
-
*
|
|
6922
|
+
* 单元格左上角的行索引
|
|
6984
6923
|
*/
|
|
6985
|
-
|
|
6924
|
+
RowTl: number;
|
|
6925
|
+
/**
|
|
6926
|
+
* 单元格右下角的列索引
|
|
6927
|
+
*/
|
|
6928
|
+
ColBr: number;
|
|
6929
|
+
/**
|
|
6930
|
+
* 单元格右下角的行索引
|
|
6931
|
+
*/
|
|
6932
|
+
RowBr: number;
|
|
6933
|
+
/**
|
|
6934
|
+
* 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
|
|
6935
|
+
*/
|
|
6936
|
+
Text: string;
|
|
6937
|
+
/**
|
|
6938
|
+
* 单元格类型
|
|
6939
|
+
*/
|
|
6940
|
+
Type: string;
|
|
6941
|
+
/**
|
|
6942
|
+
* 单元格置信度
|
|
6943
|
+
*/
|
|
6944
|
+
Confidence: number;
|
|
6945
|
+
/**
|
|
6946
|
+
* 单元格在图像中的四点坐标
|
|
6947
|
+
*/
|
|
6948
|
+
Polygon: Array<Coord>;
|
|
6986
6949
|
}
|
|
6987
6950
|
/**
|
|
6988
6951
|
* 机票行程单识别结果
|
|
@@ -10288,66 +10251,51 @@ export interface QuotaInvoiceOCRResponse {
|
|
|
10288
10251
|
*/
|
|
10289
10252
|
export interface RecognizeEncryptedIDCardOCRResponse {
|
|
10290
10253
|
/**
|
|
10291
|
-
*
|
|
10254
|
+
* <p>姓名(人像面)</p>
|
|
10292
10255
|
*/
|
|
10293
10256
|
Name?: string;
|
|
10294
10257
|
/**
|
|
10295
|
-
*
|
|
10258
|
+
* <p>性别(人像面)</p>
|
|
10296
10259
|
*/
|
|
10297
10260
|
Sex?: string;
|
|
10298
10261
|
/**
|
|
10299
|
-
*
|
|
10262
|
+
* <p>民族(人像面)</p>
|
|
10300
10263
|
*/
|
|
10301
10264
|
Nation?: string;
|
|
10302
10265
|
/**
|
|
10303
|
-
*
|
|
10266
|
+
* <p>出生日期(人像面)</p>
|
|
10304
10267
|
*/
|
|
10305
10268
|
Birth?: string;
|
|
10306
10269
|
/**
|
|
10307
|
-
*
|
|
10270
|
+
* <p>地址(人像面)</p>
|
|
10308
10271
|
*/
|
|
10309
10272
|
Address?: string;
|
|
10310
10273
|
/**
|
|
10311
|
-
*
|
|
10274
|
+
* <p>身份证号(人像面)</p>
|
|
10312
10275
|
*/
|
|
10313
10276
|
IdNum?: string;
|
|
10314
10277
|
/**
|
|
10315
|
-
*
|
|
10278
|
+
* <p>发证机关(国徽面)</p>
|
|
10316
10279
|
*/
|
|
10317
10280
|
Authority?: string;
|
|
10318
10281
|
/**
|
|
10319
|
-
*
|
|
10282
|
+
* <p>证件有效期(国徽面)</p>
|
|
10320
10283
|
*/
|
|
10321
10284
|
ValidDate?: string;
|
|
10322
10285
|
/**
|
|
10323
|
-
*
|
|
10324
|
-
IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;
|
|
10325
|
-
Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;
|
|
10326
|
-
Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);
|
|
10327
|
-
BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);
|
|
10328
|
-
WarnInfos,告警信息,Code 告警码列表和释义:
|
|
10329
|
-
-9100 身份证有效日期不合法告警,
|
|
10330
|
-
-9101 身份证边框不完整告警,
|
|
10331
|
-
-9102 身份证复印件告警(黑白及彩色复印件),
|
|
10332
|
-
-9108 身份证复印件告警(仅黑白复印件),
|
|
10333
|
-
-9103 身份证翻拍告警,
|
|
10334
|
-
-9105 身份证框内遮挡告警,
|
|
10335
|
-
-9104 临时身份证告警,
|
|
10336
|
-
-9106 身份证疑似存在PS痕迹告警,
|
|
10337
|
-
-9107 身份证反光告警,
|
|
10338
|
-
-9110 电子身份证告警
|
|
10286
|
+
* <p>扩展信息,不请求则不返回,具体输入参考示例3和示例4。<br>IdCard,裁剪后身份证照片的base64编码,请求 Config.CropIdCard 时返回;<br>Portrait,身份证头像照片的base64编码,请求 Config.CropPortrait 时返回;<br>Quality,图片质量分数,请求 Config.Quality 时返回(取值范围:0 ~ 100,分数越低越模糊,建议阈值≥50);<br>BorderCodeValue,身份证边框不完整告警阈值分数,请求 Config.BorderCheckWarn时返回(取值范围:0 ~ 100,分数越低边框遮挡可能性越低,建议阈值≤50);<br>WarnInfos,告警信息,Code 告警码列表和释义:<br>-9100 身份证有效日期不合法告警,<br>-9101 身份证边框不完整告警,<br>-9102 身份证复印件告警(黑白及彩色复印件),<br>-9108 身份证复印件告警(仅黑白复印件),<br>-9103 身份证翻拍告警,<br>-9105 身份证框内遮挡告警,<br>-9104 临时身份证告警,<br>-9106 身份证疑似存在PS痕迹告警,<br>-9107 身份证反光告警,<br>-9110 电子身份证告警,<br>-9111 水印告警(仅CardWarnType参数为Advanced时),</p>
|
|
10339
10287
|
*/
|
|
10340
10288
|
AdvancedInfo?: string;
|
|
10341
10289
|
/**
|
|
10342
|
-
*
|
|
10290
|
+
* <p>反光点覆盖区域详情结果,具体内容请点击左侧链接</p>
|
|
10343
10291
|
*/
|
|
10344
10292
|
ReflectDetailInfos?: Array<ReflectDetailInfo>;
|
|
10345
10293
|
/**
|
|
10346
|
-
*
|
|
10294
|
+
* <p>加密后的数据(Base64编码)</p>
|
|
10347
10295
|
*/
|
|
10348
10296
|
EncryptedBody?: string;
|
|
10349
10297
|
/**
|
|
10350
|
-
*
|
|
10298
|
+
* <p>敏感数据加密信息</p>
|
|
10351
10299
|
*/
|
|
10352
10300
|
Encryption?: Encryption;
|
|
10353
10301
|
/**
|
|
@@ -10874,53 +10822,36 @@ export interface RecognizeOnlineTaxiItineraryOCRRequest {
|
|
|
10874
10822
|
*/
|
|
10875
10823
|
export interface IDCardOCRRequest {
|
|
10876
10824
|
/**
|
|
10877
|
-
*
|
|
10825
|
+
* <p>图片的 Base64 值。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。</p>
|
|
10878
10826
|
*/
|
|
10879
10827
|
ImageBase64?: string;
|
|
10880
10828
|
/**
|
|
10881
|
-
*
|
|
10829
|
+
* <p>图片的 Url 地址。要求图片经Base64编码后不超过 10M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。建议图片存储于腾讯云,可保障更高的下载速度和稳定性。</p>
|
|
10882
10830
|
*/
|
|
10883
10831
|
ImageUrl?: string;
|
|
10884
10832
|
/**
|
|
10885
|
-
* FRONT
|
|
10886
|
-
BACK:身份证有国徽的一面(国徽面),
|
|
10887
|
-
该参数如果不填,将为您自动判断身份证正反面。
|
|
10833
|
+
* <p>FRONT:身份证有照片的一面(人像面),<br>BACK:身份证有国徽的一面(国徽面),<br>该参数如果不填,将为您自动判断身份证正反面。</p>
|
|
10888
10834
|
*/
|
|
10889
10835
|
CardSide?: string;
|
|
10890
10836
|
/**
|
|
10891
|
-
*
|
|
10892
|
-
CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)
|
|
10893
|
-
CropPortrait,人像照片裁剪(自动抠取身份证头像区域)
|
|
10894
|
-
CopyWarn,复印件告警
|
|
10895
|
-
BorderCheckWarn,边框不完整和框内遮挡告警
|
|
10896
|
-
ReshootWarn,屏幕翻拍告警
|
|
10897
|
-
DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证告警)
|
|
10898
|
-
TempIdWarn,临时身份证告警
|
|
10899
|
-
InvalidDateWarn,身份证有效日期不合法告警
|
|
10900
|
-
Quality,图片质量分数(评价图片的模糊程度)
|
|
10901
|
-
MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)
|
|
10902
|
-
ReflectWarn,是否开启反光检测
|
|
10903
|
-
SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})
|
|
10904
|
-
API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}
|
|
10837
|
+
* <p>以下可选字段均为bool 类型,默认false:<br>CropIdCard,身份证照片裁剪(去掉证件外多余的边缘、自动矫正拍摄角度)<br>CropPortrait,人像照片裁剪(自动抠取身份证头像区域)<br>CopyWarn,复印件告警<br>BorderCheckWarn,边框不完整和框内遮挡告警<br>ReshootWarn,屏幕翻拍告警<br>DetectPsWarn,疑似存在PS痕迹告警(CardWarnType参数为 Advanced时同时开启电子身份证、水印告警)<br>TempIdWarn,临时身份证告警<br>InvalidDateWarn,身份证有效日期不合法告警<br>Quality,图片质量分数(评价图片的模糊程度)<br>MultiCardDetect,是否开启正反面同框识别(仅支持二代身份证正反页同框识别或临时身份证正反页同框识别)<br>ReflectWarn,是否开启反光检测<br>SDK 设置方式参考:Config = Json.stringify({"CropIdCard":true,"CropPortrait":true})<br>API 3.0 Explorer 设置方式参考:Config = {"CropIdCard":true,"CropPortrait":true}</p>
|
|
10905
10838
|
*/
|
|
10906
10839
|
Config?: string;
|
|
10907
10840
|
/**
|
|
10908
|
-
*
|
|
10841
|
+
* <p>默认值为true,打开识别结果纠正开关。开关开启后,身份证号、出生日期、性别,三个字段会进行矫正补齐,统一结果输出;若关闭此开关,以上三个字段不会进行矫正补齐,保持原始识别结果输出,若原图出现篡改情况,这三个字段的识别结果可能会不统一。</p>
|
|
10909
10842
|
*/
|
|
10910
10843
|
EnableRecognitionRectify?: boolean;
|
|
10911
10844
|
/**
|
|
10912
|
-
*
|
|
10913
|
-
|
|
10914
|
-
此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。
|
|
10845
|
+
* <p>默认值为false。</p><p>此开关需要在反光检测开关开启下才会生效(即此开关生效的前提是config入参里的"ReflectWarn":true),若EnableReflectDetail设置为true,则会返回反光点覆盖区域详情。反光点覆盖区域详情分为四部分:人像照片位置、国徽位置、识别字段位置、其他位置。一个反光点允许覆盖多个区域,且一张图片可能存在多个反光点。</p>
|
|
10915
10846
|
*/
|
|
10916
10847
|
EnableReflectDetail?: boolean;
|
|
10917
10848
|
/**
|
|
10918
|
-
*
|
|
10849
|
+
* <p>用于控制是否开启日期校验,默认值为true,打开会进行日期校验。</p>
|
|
10919
10850
|
* @deprecated
|
|
10920
10851
|
*/
|
|
10921
10852
|
EnableDateVerify?: boolean;
|
|
10922
10853
|
/**
|
|
10923
|
-
* Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic
|
|
10854
|
+
* <p>Basic:使用基础卡证告警能力(含基础PS告警); Advanced:开启进阶PS告警能力,PS告警效果更佳但需要更长耗时;建议测试对比后选用,默认值为 Basic</p>
|
|
10924
10855
|
*/
|
|
10925
10856
|
CardWarnType?: string;
|
|
10926
10857
|
}
|
|
@@ -11153,43 +11084,6 @@ export interface MLIDCardOCRResponse {
|
|
|
11153
11084
|
*/
|
|
11154
11085
|
RequestId?: string;
|
|
11155
11086
|
}
|
|
11156
|
-
/**
|
|
11157
|
-
* 单元格数据
|
|
11158
|
-
*/
|
|
11159
|
-
export interface TableCellInfo {
|
|
11160
|
-
/**
|
|
11161
|
-
* 单元格左上角的列索引
|
|
11162
|
-
*/
|
|
11163
|
-
ColTl: number;
|
|
11164
|
-
/**
|
|
11165
|
-
* 单元格左上角的行索引
|
|
11166
|
-
*/
|
|
11167
|
-
RowTl: number;
|
|
11168
|
-
/**
|
|
11169
|
-
* 单元格右下角的列索引
|
|
11170
|
-
*/
|
|
11171
|
-
ColBr: number;
|
|
11172
|
-
/**
|
|
11173
|
-
* 单元格右下角的行索引
|
|
11174
|
-
*/
|
|
11175
|
-
RowBr: number;
|
|
11176
|
-
/**
|
|
11177
|
-
* 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
|
|
11178
|
-
*/
|
|
11179
|
-
Text: string;
|
|
11180
|
-
/**
|
|
11181
|
-
* 单元格类型
|
|
11182
|
-
*/
|
|
11183
|
-
Type: string;
|
|
11184
|
-
/**
|
|
11185
|
-
* 单元格置信度
|
|
11186
|
-
*/
|
|
11187
|
-
Confidence: number;
|
|
11188
|
-
/**
|
|
11189
|
-
* 单元格在图像中的四点坐标
|
|
11190
|
-
*/
|
|
11191
|
-
Polygon: Array<Coord>;
|
|
11192
|
-
}
|
|
11193
11087
|
/**
|
|
11194
11088
|
* RecognizeTableOCR请求参数结构体
|
|
11195
11089
|
*/
|