tencentcloud-sdk-nodejs-ocr 4.0.1034 → 4.0.1036
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.
- package/package.json +1 -1
- package/src/services/ocr/v20181119/ocr_client.ts +9 -5
- package/src/services/ocr/v20181119/ocr_models.ts +64 -22
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +6 -4
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +5 -3
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +62 -22
package/package.json
CHANGED
@@ -55,7 +55,7 @@ import {
|
|
55
55
|
ClassifyStoreNameRequest,
|
56
56
|
InvoiceGeneralOCRRequest,
|
57
57
|
Rect,
|
58
|
-
|
58
|
+
CustomsPaymentReceipt,
|
59
59
|
QuestionSplitOCRRequest,
|
60
60
|
VatRollItem,
|
61
61
|
TextFormula,
|
@@ -87,6 +87,7 @@ import {
|
|
87
87
|
SmartStructuralOCRV2Response,
|
88
88
|
EnterpriseLicenseOCRRequest,
|
89
89
|
QuestionSplitOCRResponse,
|
90
|
+
TableOCRResponse,
|
90
91
|
RecognizeStoreNameRequest,
|
91
92
|
StructuralItem,
|
92
93
|
OnlineTaxiItineraryInfo,
|
@@ -172,6 +173,7 @@ import {
|
|
172
173
|
PassportOCRResponse,
|
173
174
|
FinancialBillItemDetails,
|
174
175
|
CardWarnInfo,
|
176
|
+
TaxPayment,
|
175
177
|
VehicleRegCertOCRRequest,
|
176
178
|
RecognizeTravelCardOCRResponse,
|
177
179
|
ElectronicAirTransportDetail,
|
@@ -301,7 +303,7 @@ import {
|
|
301
303
|
GeneralHandwritingOCRResponse,
|
302
304
|
IDCardResult,
|
303
305
|
TableCell,
|
304
|
-
|
306
|
+
LicensePlateInfo,
|
305
307
|
DetectedWordCoordPoint,
|
306
308
|
QuestionBlockObj,
|
307
309
|
Element,
|
@@ -977,8 +979,10 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
977
979
|
}
|
978
980
|
|
979
981
|
/**
|
980
|
-
|
981
|
-
|
982
|
+
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
983
|
+
|
984
|
+
默认接口请求频率限制:5次/秒。
|
985
|
+
*/
|
982
986
|
async RecognizeGeneralCardWarn(
|
983
987
|
req: RecognizeGeneralCardWarnRequest,
|
984
988
|
cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void
|
@@ -1111,7 +1115,7 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
1111
1115
|
/**
|
1112
1116
|
* 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
|
1113
1117
|
|
1114
|
-
默认接口请求频率限制:
|
1118
|
+
默认接口请求频率限制:5次/秒。
|
1115
1119
|
*/
|
1116
1120
|
async RecognizeValidIDCardOCR(
|
1117
1121
|
req: RecognizeValidIDCardOCRRequest,
|
@@ -139,6 +139,8 @@ FailedOperation.UnKnowError:表示识别失败;
|
|
139
139
|
15:非税发票
|
140
140
|
16:全电发票
|
141
141
|
17:医疗发票
|
142
|
+
18:完税凭证
|
143
|
+
19:海关缴款书
|
142
144
|
*/
|
143
145
|
Type?: number
|
144
146
|
/**
|
@@ -1377,25 +1379,17 @@ export interface Rect {
|
|
1377
1379
|
}
|
1378
1380
|
|
1379
1381
|
/**
|
1380
|
-
*
|
1382
|
+
* 海关缴款书
|
1381
1383
|
*/
|
1382
|
-
export interface
|
1383
|
-
/**
|
1384
|
-
* 识别出的车牌号码。
|
1385
|
-
*/
|
1386
|
-
Number?: string
|
1387
|
-
/**
|
1388
|
-
* 置信度,0 - 100 之间。
|
1389
|
-
*/
|
1390
|
-
Confidence?: number
|
1384
|
+
export interface CustomsPaymentReceipt {
|
1391
1385
|
/**
|
1392
|
-
*
|
1386
|
+
* 发票名称
|
1393
1387
|
*/
|
1394
|
-
|
1388
|
+
Title?: string
|
1395
1389
|
/**
|
1396
|
-
*
|
1390
|
+
* 识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号
|
1397
1391
|
*/
|
1398
|
-
|
1392
|
+
Content?: Array<OtherInvoiceItem>
|
1399
1393
|
}
|
1400
1394
|
|
1401
1395
|
/**
|
@@ -2274,6 +2268,24 @@ export interface QuestionSplitOCRResponse {
|
|
2274
2268
|
RequestId?: string
|
2275
2269
|
}
|
2276
2270
|
|
2271
|
+
/**
|
2272
|
+
* TableOCR返回参数结构体
|
2273
|
+
*/
|
2274
|
+
export interface TableOCRResponse {
|
2275
|
+
/**
|
2276
|
+
* 检测到的文本信息,具体内容请点击左侧链接
|
2277
|
+
*/
|
2278
|
+
TextDetections?: Array<TextTable>
|
2279
|
+
/**
|
2280
|
+
* Base64 编码后的 Excel 数据。
|
2281
|
+
*/
|
2282
|
+
Data?: string
|
2283
|
+
/**
|
2284
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2285
|
+
*/
|
2286
|
+
RequestId?: string
|
2287
|
+
}
|
2288
|
+
|
2277
2289
|
/**
|
2278
2290
|
* RecognizeStoreName请求参数结构体
|
2279
2291
|
*/
|
@@ -4343,6 +4355,16 @@ export interface SingleInvoiceItem {
|
|
4343
4355
|
注意:此字段可能返回 null,表示取不到有效值。
|
4344
4356
|
*/
|
4345
4357
|
ElectronicFlightTicketFull?: ElectronicFlightTicketFull
|
4358
|
+
/**
|
4359
|
+
* 完税凭证
|
4360
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4361
|
+
*/
|
4362
|
+
TaxPayment?: TaxPayment
|
4363
|
+
/**
|
4364
|
+
* 海关缴款
|
4365
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4366
|
+
*/
|
4367
|
+
CustomsPaymentReceipt?: CustomsPaymentReceipt
|
4346
4368
|
}
|
4347
4369
|
|
4348
4370
|
/**
|
@@ -5828,6 +5850,22 @@ export interface CardWarnInfo {
|
|
5828
5850
|
PSCheck?: number
|
5829
5851
|
}
|
5830
5852
|
|
5853
|
+
/**
|
5854
|
+
* 完税凭证
|
5855
|
+
*/
|
5856
|
+
export interface TaxPayment {
|
5857
|
+
/**
|
5858
|
+
* 发票名称
|
5859
|
+
*/
|
5860
|
+
Title?: string
|
5861
|
+
/**
|
5862
|
+
* 识别出的字段名称(关键字),支持以下字段:
|
5863
|
+
税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
5864
|
+
示例值:纳税人识别号
|
5865
|
+
*/
|
5866
|
+
Content?: Array<OtherInvoiceItem>
|
5867
|
+
}
|
5868
|
+
|
5831
5869
|
/**
|
5832
5870
|
* VehicleRegCertOCR请求参数结构体
|
5833
5871
|
*/
|
@@ -10616,21 +10654,25 @@ export interface TableCell {
|
|
10616
10654
|
}
|
10617
10655
|
|
10618
10656
|
/**
|
10619
|
-
*
|
10657
|
+
* 全部车牌信息
|
10620
10658
|
*/
|
10621
|
-
export interface
|
10659
|
+
export interface LicensePlateInfo {
|
10622
10660
|
/**
|
10623
|
-
*
|
10661
|
+
* 识别出的车牌号码。
|
10624
10662
|
*/
|
10625
|
-
|
10663
|
+
Number?: string
|
10626
10664
|
/**
|
10627
|
-
*
|
10665
|
+
* 置信度,0 - 100 之间。
|
10628
10666
|
*/
|
10629
|
-
|
10667
|
+
Confidence?: number
|
10630
10668
|
/**
|
10631
|
-
*
|
10669
|
+
* 文本行在原图片中的像素坐标框。
|
10632
10670
|
*/
|
10633
|
-
|
10671
|
+
Rect?: Rect
|
10672
|
+
/**
|
10673
|
+
* 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”、“喷漆”、“其它”。
|
10674
|
+
*/
|
10675
|
+
Color?: string
|
10634
10676
|
}
|
10635
10677
|
|
10636
10678
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, QuestionOCRRequest, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, GetTaskStateResponse, QuestionOCRRequest, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, OrgCodeCertOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, TableOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, QuotaInvoiceOCRResponse, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -452,8 +452,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
452
452
|
*/
|
453
453
|
GetTaskState(req: GetTaskStateRequest, cb?: (error: string, rep: GetTaskStateResponse) => void): Promise<GetTaskStateResponse>;
|
454
454
|
/**
|
455
|
-
|
456
|
-
|
455
|
+
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
456
|
+
|
457
|
+
默认接口请求频率限制:5次/秒。
|
458
|
+
*/
|
457
459
|
RecognizeGeneralCardWarn(req: RecognizeGeneralCardWarnRequest, cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void): Promise<RecognizeGeneralCardWarnResponse>;
|
458
460
|
/**
|
459
461
|
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
@@ -550,7 +552,7 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
550
552
|
/**
|
551
553
|
* 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
|
552
554
|
|
553
|
-
默认接口请求频率限制:
|
555
|
+
默认接口请求频率限制:5次/秒。
|
554
556
|
*/
|
555
557
|
RecognizeValidIDCardOCR(req: RecognizeValidIDCardOCRRequest, cb?: (error: string, rep: RecognizeValidIDCardOCRResponse) => void): Promise<RecognizeValidIDCardOCRResponse>;
|
556
558
|
/**
|
@@ -535,8 +535,10 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
535
535
|
return this.request("GetTaskState", req, cb);
|
536
536
|
}
|
537
537
|
/**
|
538
|
-
|
539
|
-
|
538
|
+
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
539
|
+
|
540
|
+
默认接口请求频率限制:5次/秒。
|
541
|
+
*/
|
540
542
|
async RecognizeGeneralCardWarn(req, cb) {
|
541
543
|
return this.request("RecognizeGeneralCardWarn", req, cb);
|
542
544
|
}
|
@@ -645,7 +647,7 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
645
647
|
/**
|
646
648
|
* 本接口支持二代身份证、临时身份证、港澳台居住证、外国人永久居留证,字段内容识别功能,包括姓名、性别、民族、出生、出生日期、住址、公民身份号码、签发机关、有效期限、国籍、通行证号码、持证人持有号码;支持返回证件类型;支持翻拍、复印、边框不完整、遮挡、字段级反光和字段级完整性告警;支持卡片主体框裁剪和头像裁剪。
|
647
649
|
|
648
|
-
默认接口请求频率限制:
|
650
|
+
默认接口请求频率限制:5次/秒。
|
649
651
|
*/
|
650
652
|
async RecognizeValidIDCardOCR(req, cb) {
|
651
653
|
return this.request("RecognizeValidIDCardOCR", req, cb);
|
@@ -118,6 +118,8 @@ export interface InvoiceItem {
|
|
118
118
|
15:非税发票
|
119
119
|
16:全电发票
|
120
120
|
17:医疗发票
|
121
|
+
18:完税凭证
|
122
|
+
19:海关缴款书
|
121
123
|
*/
|
122
124
|
Type?: number;
|
123
125
|
/**
|
@@ -1322,25 +1324,17 @@ export interface Rect {
|
|
1322
1324
|
Height?: number;
|
1323
1325
|
}
|
1324
1326
|
/**
|
1325
|
-
*
|
1327
|
+
* 海关缴款书
|
1326
1328
|
*/
|
1327
|
-
export interface
|
1328
|
-
/**
|
1329
|
-
* 识别出的车牌号码。
|
1330
|
-
*/
|
1331
|
-
Number?: string;
|
1332
|
-
/**
|
1333
|
-
* 置信度,0 - 100 之间。
|
1334
|
-
*/
|
1335
|
-
Confidence?: number;
|
1329
|
+
export interface CustomsPaymentReceipt {
|
1336
1330
|
/**
|
1337
|
-
*
|
1331
|
+
* 发票名称
|
1338
1332
|
*/
|
1339
|
-
|
1333
|
+
Title?: string;
|
1340
1334
|
/**
|
1341
|
-
*
|
1335
|
+
* 识别出的字段名称(关键字),支持以下字段: 税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。 示例值:纳税人识别号
|
1342
1336
|
*/
|
1343
|
-
|
1337
|
+
Content?: Array<OtherInvoiceItem>;
|
1344
1338
|
}
|
1345
1339
|
/**
|
1346
1340
|
* QuestionSplitOCR请求参数结构体
|
@@ -2187,6 +2181,23 @@ export interface QuestionSplitOCRResponse {
|
|
2187
2181
|
*/
|
2188
2182
|
RequestId?: string;
|
2189
2183
|
}
|
2184
|
+
/**
|
2185
|
+
* TableOCR返回参数结构体
|
2186
|
+
*/
|
2187
|
+
export interface TableOCRResponse {
|
2188
|
+
/**
|
2189
|
+
* 检测到的文本信息,具体内容请点击左侧链接
|
2190
|
+
*/
|
2191
|
+
TextDetections?: Array<TextTable>;
|
2192
|
+
/**
|
2193
|
+
* Base64 编码后的 Excel 数据。
|
2194
|
+
*/
|
2195
|
+
Data?: string;
|
2196
|
+
/**
|
2197
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2198
|
+
*/
|
2199
|
+
RequestId?: string;
|
2200
|
+
}
|
2190
2201
|
/**
|
2191
2202
|
* RecognizeStoreName请求参数结构体
|
2192
2203
|
*/
|
@@ -4199,6 +4210,16 @@ export interface SingleInvoiceItem {
|
|
4199
4210
|
注意:此字段可能返回 null,表示取不到有效值。
|
4200
4211
|
*/
|
4201
4212
|
ElectronicFlightTicketFull?: ElectronicFlightTicketFull;
|
4213
|
+
/**
|
4214
|
+
* 完税凭证
|
4215
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4216
|
+
*/
|
4217
|
+
TaxPayment?: TaxPayment;
|
4218
|
+
/**
|
4219
|
+
* 海关缴款
|
4220
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
4221
|
+
*/
|
4222
|
+
CustomsPaymentReceipt?: CustomsPaymentReceipt;
|
4202
4223
|
}
|
4203
4224
|
/**
|
4204
4225
|
* InvoiceGeneralOCR返回参数结构体
|
@@ -5656,6 +5677,21 @@ export interface CardWarnInfo {
|
|
5656
5677
|
*/
|
5657
5678
|
PSCheck?: number;
|
5658
5679
|
}
|
5680
|
+
/**
|
5681
|
+
* 完税凭证
|
5682
|
+
*/
|
5683
|
+
export interface TaxPayment {
|
5684
|
+
/**
|
5685
|
+
* 发票名称
|
5686
|
+
*/
|
5687
|
+
Title?: string;
|
5688
|
+
/**
|
5689
|
+
* 识别出的字段名称(关键字),支持以下字段:
|
5690
|
+
税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
|
5691
|
+
示例值:纳税人识别号
|
5692
|
+
*/
|
5693
|
+
Content?: Array<OtherInvoiceItem>;
|
5694
|
+
}
|
5659
5695
|
/**
|
5660
5696
|
* VehicleRegCertOCR请求参数结构体
|
5661
5697
|
*/
|
@@ -10315,21 +10351,25 @@ export interface TableCell {
|
|
10315
10351
|
Contents: Array<CellContent>;
|
10316
10352
|
}
|
10317
10353
|
/**
|
10318
|
-
*
|
10354
|
+
* 全部车牌信息
|
10319
10355
|
*/
|
10320
|
-
export interface
|
10356
|
+
export interface LicensePlateInfo {
|
10321
10357
|
/**
|
10322
|
-
*
|
10358
|
+
* 识别出的车牌号码。
|
10323
10359
|
*/
|
10324
|
-
|
10360
|
+
Number?: string;
|
10325
10361
|
/**
|
10326
|
-
*
|
10362
|
+
* 置信度,0 - 100 之间。
|
10327
10363
|
*/
|
10328
|
-
|
10364
|
+
Confidence?: number;
|
10329
10365
|
/**
|
10330
|
-
*
|
10366
|
+
* 文本行在原图片中的像素坐标框。
|
10331
10367
|
*/
|
10332
|
-
|
10368
|
+
Rect?: Rect;
|
10369
|
+
/**
|
10370
|
+
* 识别出的车牌颜色,目前支持颜色包括 “白”、“黑”、“蓝”、“绿“、“黄”、“黄绿”、“临牌”、“喷漆”、“其它”。
|
10371
|
+
*/
|
10372
|
+
Color?: string;
|
10333
10373
|
}
|
10334
10374
|
/**
|
10335
10375
|
* 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
|