tencentcloud-sdk-nodejs-ocr 4.0.968 → 4.0.971
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/products.md +58 -58
- package/src/services/ocr/v20181119/ocr_client.ts +30 -8
- package/src/services/ocr/v20181119/ocr_models.ts +645 -191
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +7 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +8 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +636 -192
@@ -304,6 +304,64 @@ export interface TextArithmetic {
|
|
304
304
|
Answer?: string
|
305
305
|
}
|
306
306
|
|
307
|
+
/**
|
308
|
+
* 港澳台居住证信息返回
|
309
|
+
*/
|
310
|
+
export interface ResidencePermitInfo {
|
311
|
+
/**
|
312
|
+
* 姓名(人像面)
|
313
|
+
*/
|
314
|
+
Name?: ContentInfo
|
315
|
+
/**
|
316
|
+
* 性别(人像面)
|
317
|
+
*/
|
318
|
+
Sex?: ContentInfo
|
319
|
+
/**
|
320
|
+
* 民族(人像面)
|
321
|
+
*/
|
322
|
+
Nation?: ContentInfo
|
323
|
+
/**
|
324
|
+
* 出生日期(人像面)
|
325
|
+
*/
|
326
|
+
Birth?: ContentInfo
|
327
|
+
/**
|
328
|
+
* 地址(人像面)
|
329
|
+
*/
|
330
|
+
Address?: ContentInfo
|
331
|
+
/**
|
332
|
+
* 公民身份号码(人像面)
|
333
|
+
*/
|
334
|
+
IdNum?: ContentInfo
|
335
|
+
/**
|
336
|
+
* 发证机关(国徽面)
|
337
|
+
*/
|
338
|
+
Authority?: ContentInfo
|
339
|
+
/**
|
340
|
+
* 证件有效期(国徽面)
|
341
|
+
*/
|
342
|
+
ValidDate?: ContentInfo
|
343
|
+
/**
|
344
|
+
* WarnInfos,告警信息
|
345
|
+
*/
|
346
|
+
WarnInfos?: CardWarnInfo
|
347
|
+
/**
|
348
|
+
* IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
|
349
|
+
*/
|
350
|
+
CardImage?: ContentInfo
|
351
|
+
/**
|
352
|
+
* Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
|
353
|
+
*/
|
354
|
+
PortraitImage?: ContentInfo
|
355
|
+
/**
|
356
|
+
* 通行证号码,港澳台居住证国徽面 返回该字段
|
357
|
+
*/
|
358
|
+
PassNum?: ContentInfo
|
359
|
+
/**
|
360
|
+
* 签发次数,港澳台居住证国徽面 返回该字段
|
361
|
+
*/
|
362
|
+
IssueNum?: ContentInfo
|
363
|
+
}
|
364
|
+
|
307
365
|
/**
|
308
366
|
* BankCardOCR请求参数结构体
|
309
367
|
*/
|
@@ -543,21 +601,32 @@ export interface EstateCertOCRResponse {
|
|
543
601
|
}
|
544
602
|
|
545
603
|
/**
|
546
|
-
*
|
604
|
+
* FlightInvoiceOCR请求参数结构体
|
547
605
|
*/
|
548
|
-
export interface
|
606
|
+
export interface FlightInvoiceOCRRequest {
|
549
607
|
/**
|
550
|
-
*
|
608
|
+
* 图片的 Base64 值。
|
609
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
610
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
611
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
551
612
|
*/
|
552
|
-
|
613
|
+
ImageBase64?: string
|
553
614
|
/**
|
554
|
-
*
|
615
|
+
* 图片的 Url 地址。
|
616
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
617
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
618
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
619
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
555
620
|
*/
|
556
|
-
|
621
|
+
ImageUrl?: string
|
557
622
|
/**
|
558
|
-
*
|
623
|
+
* 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
|
559
624
|
*/
|
560
|
-
|
625
|
+
IsPdf?: boolean
|
626
|
+
/**
|
627
|
+
* 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
|
628
|
+
*/
|
629
|
+
PdfPageNumber?: number
|
561
630
|
}
|
562
631
|
|
563
632
|
/**
|
@@ -1274,32 +1343,25 @@ export interface RideHailingTransportLicenseOCRRequest {
|
|
1274
1343
|
}
|
1275
1344
|
|
1276
1345
|
/**
|
1277
|
-
*
|
1346
|
+
* 增值税普通发票(卷票)条目
|
1278
1347
|
*/
|
1279
|
-
export interface
|
1348
|
+
export interface VatRollItem {
|
1280
1349
|
/**
|
1281
|
-
*
|
1282
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1283
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
1284
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
1350
|
+
* 项目名称
|
1285
1351
|
*/
|
1286
|
-
|
1352
|
+
Name?: string
|
1287
1353
|
/**
|
1288
|
-
*
|
1289
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
1290
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
1291
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
1292
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
1354
|
+
* 数量
|
1293
1355
|
*/
|
1294
|
-
|
1356
|
+
Quantity?: string
|
1295
1357
|
/**
|
1296
|
-
*
|
1358
|
+
* 单价
|
1297
1359
|
*/
|
1298
|
-
|
1360
|
+
Price?: string
|
1299
1361
|
/**
|
1300
|
-
*
|
1362
|
+
* 金额
|
1301
1363
|
*/
|
1302
|
-
|
1364
|
+
Total?: string
|
1303
1365
|
}
|
1304
1366
|
|
1305
1367
|
/**
|
@@ -1357,6 +1419,10 @@ export interface HmtResidentPermitOCRResponse {
|
|
1357
1419
|
* 通行证号码
|
1358
1420
|
*/
|
1359
1421
|
PassNo?: string
|
1422
|
+
/**
|
1423
|
+
* 头像和坐标信息
|
1424
|
+
*/
|
1425
|
+
PortraitImageInfo?: PortraitImageInfo
|
1360
1426
|
/**
|
1361
1427
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1362
1428
|
*/
|
@@ -1364,77 +1430,13 @@ export interface HmtResidentPermitOCRResponse {
|
|
1364
1430
|
}
|
1365
1431
|
|
1366
1432
|
/**
|
1367
|
-
*
|
1433
|
+
* 其他票Table
|
1368
1434
|
*/
|
1369
|
-
export interface
|
1370
|
-
/**
|
1371
|
-
* 行号
|
1372
|
-
*/
|
1373
|
-
LineNo: string
|
1374
|
-
/**
|
1375
|
-
* 名称
|
1376
|
-
*/
|
1377
|
-
Name: string
|
1378
|
-
/**
|
1379
|
-
* 规格
|
1380
|
-
*/
|
1381
|
-
Spec: string
|
1382
|
-
/**
|
1383
|
-
* 单位
|
1384
|
-
*/
|
1385
|
-
Unit: string
|
1386
|
-
/**
|
1387
|
-
* 数量
|
1388
|
-
*/
|
1389
|
-
Quantity: string
|
1390
|
-
/**
|
1391
|
-
* 单价
|
1392
|
-
*/
|
1393
|
-
UnitPrice: string
|
1394
|
-
/**
|
1395
|
-
* 不含税金额
|
1396
|
-
*/
|
1397
|
-
AmountWithoutTax: string
|
1398
|
-
/**
|
1399
|
-
* 税率
|
1400
|
-
*/
|
1401
|
-
TaxRate: string
|
1402
|
-
/**
|
1403
|
-
* 税额
|
1404
|
-
*/
|
1405
|
-
TaxAmount: string
|
1406
|
-
/**
|
1407
|
-
* 税收分类编码
|
1408
|
-
*/
|
1409
|
-
TaxClassifyCode: string
|
1410
|
-
/**
|
1411
|
-
* 运输工具类型
|
1412
|
-
*/
|
1413
|
-
VehicleType?: string
|
1414
|
-
/**
|
1415
|
-
* 运输工具牌号
|
1416
|
-
*/
|
1417
|
-
VehicleBrand?: string
|
1418
|
-
/**
|
1419
|
-
* 起始地
|
1420
|
-
*/
|
1421
|
-
DeparturePlace?: string
|
1422
|
-
/**
|
1423
|
-
* 到达地
|
1424
|
-
*/
|
1425
|
-
ArrivalPlace?: string
|
1426
|
-
/**
|
1427
|
-
* 运输货物名称
|
1428
|
-
*/
|
1429
|
-
TransportItemsName?: string
|
1430
|
-
/**
|
1431
|
-
* 建筑服务发生地
|
1432
|
-
*/
|
1433
|
-
ConstructionPlace?: string
|
1435
|
+
export interface OtherInvoiceList {
|
1434
1436
|
/**
|
1435
|
-
*
|
1437
|
+
* 列表
|
1436
1438
|
*/
|
1437
|
-
|
1439
|
+
OtherInvoiceItemList?: Array<OtherInvoiceItem>
|
1438
1440
|
}
|
1439
1441
|
|
1440
1442
|
/**
|
@@ -2567,6 +2569,25 @@ export interface BankSlipInfo {
|
|
2567
2569
|
Rect: Rect
|
2568
2570
|
}
|
2569
2571
|
|
2572
|
+
/**
|
2573
|
+
* SmartStructuralOCR返回参数结构体
|
2574
|
+
*/
|
2575
|
+
export interface SmartStructuralOCRResponse {
|
2576
|
+
/**
|
2577
|
+
* 图片旋转角度(角度制),文本的水平方向
|
2578
|
+
为 0;顺时针为正,逆时针为负
|
2579
|
+
*/
|
2580
|
+
Angle: number
|
2581
|
+
/**
|
2582
|
+
* 识别信息
|
2583
|
+
*/
|
2584
|
+
StructuralItems: Array<StructuralItem>
|
2585
|
+
/**
|
2586
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
2587
|
+
*/
|
2588
|
+
RequestId?: string
|
2589
|
+
}
|
2590
|
+
|
2570
2591
|
/**
|
2571
2592
|
* ArithmeticOCR返回参数结构体
|
2572
2593
|
*/
|
@@ -3044,49 +3065,19 @@ export interface BusInvoice {
|
|
3044
3065
|
}
|
3045
3066
|
|
3046
3067
|
/**
|
3047
|
-
*
|
3068
|
+
* QrcodeOCR请求参数结构体
|
3048
3069
|
*/
|
3049
|
-
export interface
|
3050
|
-
/**
|
3051
|
-
* 发票名称
|
3052
|
-
*/
|
3053
|
-
Title?: string
|
3054
|
-
/**
|
3055
|
-
* 发票代码
|
3056
|
-
*/
|
3057
|
-
Code?: string
|
3058
|
-
/**
|
3059
|
-
* 发票号码
|
3060
|
-
*/
|
3061
|
-
Number?: string
|
3062
|
-
/**
|
3063
|
-
* 价税合计(小写)
|
3064
|
-
*/
|
3065
|
-
Total?: string
|
3066
|
-
/**
|
3067
|
-
* 价税合计(大写)
|
3068
|
-
*/
|
3069
|
-
TotalCn?: string
|
3070
|
-
/**
|
3071
|
-
* 发票消费类型
|
3072
|
-
*/
|
3073
|
-
Kind?: string
|
3074
|
-
/**
|
3075
|
-
* 省
|
3076
|
-
*/
|
3077
|
-
Province?: string
|
3078
|
-
/**
|
3079
|
-
* 市
|
3080
|
-
*/
|
3081
|
-
City?: string
|
3070
|
+
export interface QrcodeOCRRequest {
|
3082
3071
|
/**
|
3083
|
-
*
|
3072
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
3073
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3084
3074
|
*/
|
3085
|
-
|
3075
|
+
ImageBase64?: string
|
3086
3076
|
/**
|
3087
|
-
*
|
3077
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
|
3078
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
3088
3079
|
*/
|
3089
|
-
|
3080
|
+
ImageUrl?: string
|
3090
3081
|
}
|
3091
3082
|
|
3092
3083
|
/**
|
@@ -3330,34 +3321,99 @@ export interface RecognizeMedicalInvoiceOCRResponse {
|
|
3330
3321
|
}
|
3331
3322
|
|
3332
3323
|
/**
|
3333
|
-
*
|
3324
|
+
* RecognizeValidIDCardOCR请求参数结构体
|
3334
3325
|
*/
|
3335
|
-
export interface
|
3326
|
+
export interface RecognizeValidIDCardOCRRequest {
|
3336
3327
|
/**
|
3337
|
-
*
|
3328
|
+
* 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
3329
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
3338
3330
|
*/
|
3339
|
-
|
3331
|
+
ImageBase64?: string
|
3340
3332
|
/**
|
3341
|
-
*
|
3333
|
+
* 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
|
3334
|
+
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
3342
3335
|
*/
|
3343
|
-
|
3344
|
-
}
|
3345
|
-
|
3346
|
-
/**
|
3347
|
-
* ClassifyDetectOCR返回参数结构体
|
3348
|
-
*/
|
3349
|
-
export interface ClassifyDetectOCRResponse {
|
3336
|
+
ImageUrl?: string
|
3350
3337
|
/**
|
3351
|
-
*
|
3338
|
+
* 0 自动,自动判断输入证件的类型
|
3339
|
+
1 身份证人像面,指定输入证件类型为二代身份证人像面
|
3340
|
+
2 身份证国徽面,指定输入证件类型为二代身份证国徽面
|
3341
|
+
3 身份证人像国徽面,指定输入证件类型为二代身份证人像面或者国徽面
|
3342
|
+
4 临时身份证人像面,指定输入证件类型为临时身份证人像面
|
3343
|
+
5 临时身份证国徽面,指定输入证件类型为临时身份证国徽面
|
3344
|
+
6 临时身份证人像国徽面,指定输入证件类型为临时身份证人像面或者国徽面
|
3345
|
+
7 港澳台居住证人像面,指定输入证件类型为港澳台居住证人像面
|
3346
|
+
8 港澳台居住证国徽面,指定输入证件类型为港澳台居住证国徽面
|
3347
|
+
9 港澳台居住证人像国徽面,指定输入证件类型为港澳台居住证人像面或者国徽面
|
3348
|
+
10 外国人永久居留身份证人像面,指定输入证件类型为外国人永久居留证人像面
|
3349
|
+
11 外国人永久居留身份证国徽面,指定输入证件类型为外国人永久居留证国徽面
|
3350
|
+
12 外国人永久居留身份证人像国徽面,指定输入证件类型为外国人永久居留证人像或者国徽面
|
3351
|
+
该参数如果不填,将为您自动判断卡证类型。
|
3352
3352
|
*/
|
3353
|
-
|
3353
|
+
CardType?: number
|
3354
3354
|
/**
|
3355
|
-
*
|
3355
|
+
* 默认值为false,打开返回证件头像切图。
|
3356
3356
|
*/
|
3357
|
-
|
3358
|
-
|
3359
|
-
|
3360
|
-
|
3357
|
+
EnablePortrait?: boolean
|
3358
|
+
/**
|
3359
|
+
* 默认值为false,打开返回证件主体切图。
|
3360
|
+
*/
|
3361
|
+
EnableCropImage?: boolean
|
3362
|
+
/**
|
3363
|
+
* 默认值为false,打开返回边缘完整性判断。
|
3364
|
+
*/
|
3365
|
+
EnableBorderCheck?: boolean
|
3366
|
+
/**
|
3367
|
+
* 默认值为false,打开返回证件是否被遮挡。
|
3368
|
+
*/
|
3369
|
+
EnableOcclusionCheck?: boolean
|
3370
|
+
/**
|
3371
|
+
* 默认值为false,打开返回证件是否存在复印。
|
3372
|
+
*/
|
3373
|
+
EnableCopyCheck?: boolean
|
3374
|
+
/**
|
3375
|
+
* 默认值为false,打开返回证件是否存在屏幕翻拍。
|
3376
|
+
*/
|
3377
|
+
EnableReshootCheck?: boolean
|
3378
|
+
/**
|
3379
|
+
* 默认值为false,打开返回证件是否存在PS。类型为:临时、港澳台居住证、外国人居住证失效
|
3380
|
+
*/
|
3381
|
+
EnablePSCheck?: boolean
|
3382
|
+
/**
|
3383
|
+
* 默认值为false,打开返回字段级反光和字段级完整性告警。类型为:临时、港澳台居住证、外国人居住证失效
|
3384
|
+
*/
|
3385
|
+
EnableWordCheck?: boolean
|
3386
|
+
}
|
3387
|
+
|
3388
|
+
/**
|
3389
|
+
* MixedInvoiceOCR返回参数结构体
|
3390
|
+
*/
|
3391
|
+
export interface MixedInvoiceOCRResponse {
|
3392
|
+
/**
|
3393
|
+
* 混贴票据识别结果,具体内容请点击左侧链接。
|
3394
|
+
*/
|
3395
|
+
MixedInvoiceItems?: Array<MixedInvoiceItem>
|
3396
|
+
/**
|
3397
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3398
|
+
*/
|
3399
|
+
RequestId?: string
|
3400
|
+
}
|
3401
|
+
|
3402
|
+
/**
|
3403
|
+
* ClassifyDetectOCR返回参数结构体
|
3404
|
+
*/
|
3405
|
+
export interface ClassifyDetectOCRResponse {
|
3406
|
+
/**
|
3407
|
+
* 智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"
|
3408
|
+
*/
|
3409
|
+
ClassifyDetectInfos?: Array<ClassifyDetectInfo>
|
3410
|
+
/**
|
3411
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3412
|
+
*/
|
3413
|
+
RequestId?: string
|
3414
|
+
}
|
3415
|
+
|
3416
|
+
/**
|
3361
3417
|
* VatInvoiceVerifyNew请求参数结构体
|
3362
3418
|
*/
|
3363
3419
|
export interface VatInvoiceVerifyNewRequest {
|
@@ -5428,6 +5484,22 @@ export interface ImageEnhancementResponse {
|
|
5428
5484
|
RequestId?: string
|
5429
5485
|
}
|
5430
5486
|
|
5487
|
+
/**
|
5488
|
+
* 头像照片和坐标
|
5489
|
+
*/
|
5490
|
+
export interface PortraitImageInfo {
|
5491
|
+
/**
|
5492
|
+
* 头像
|
5493
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5494
|
+
*/
|
5495
|
+
PortraitImage?: string
|
5496
|
+
/**
|
5497
|
+
* 头像坐标
|
5498
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
5499
|
+
*/
|
5500
|
+
ImageCoordinates?: ImageCoordinates
|
5501
|
+
}
|
5502
|
+
|
5431
5503
|
/**
|
5432
5504
|
* 图片大小
|
5433
5505
|
*/
|
@@ -5506,6 +5578,10 @@ export interface PassportOCRResponse {
|
|
5506
5578
|
* 名
|
5507
5579
|
*/
|
5508
5580
|
FirstName?: string
|
5581
|
+
/**
|
5582
|
+
* 头像和坐标信息
|
5583
|
+
*/
|
5584
|
+
PortraitImageInfo?: PortraitImageInfo
|
5509
5585
|
/**
|
5510
5586
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
5511
5587
|
*/
|
@@ -5558,6 +5634,42 @@ export interface FinancialBillItemDetails {
|
|
5558
5634
|
Remark?: string
|
5559
5635
|
}
|
5560
5636
|
|
5637
|
+
/**
|
5638
|
+
* 卡证告警信息返回
|
5639
|
+
*/
|
5640
|
+
export interface CardWarnInfo {
|
5641
|
+
/**
|
5642
|
+
* 证件边缘是否完整
|
5643
|
+
0:正常
|
5644
|
+
1:边缘不完整
|
5645
|
+
*/
|
5646
|
+
BorderCheck?: number
|
5647
|
+
/**
|
5648
|
+
* 证件是否被遮挡
|
5649
|
+
0:正常
|
5650
|
+
1:有遮挡
|
5651
|
+
*/
|
5652
|
+
OcclusionCheck?: number
|
5653
|
+
/**
|
5654
|
+
* 是否复印
|
5655
|
+
0:正常
|
5656
|
+
1:复印件
|
5657
|
+
*/
|
5658
|
+
CopyCheck?: number
|
5659
|
+
/**
|
5660
|
+
* 是否屏幕翻拍
|
5661
|
+
0:正常
|
5662
|
+
1:翻拍
|
5663
|
+
*/
|
5664
|
+
ReshootCheck?: number
|
5665
|
+
/**
|
5666
|
+
* 证件是否有PS
|
5667
|
+
0:正常
|
5668
|
+
1:有PS
|
5669
|
+
*/
|
5670
|
+
PSCheck?: number
|
5671
|
+
}
|
5672
|
+
|
5561
5673
|
/**
|
5562
5674
|
* VehicleRegCertOCR请求参数结构体
|
5563
5675
|
*/
|
@@ -6460,18 +6572,44 @@ export interface VatElectronicInfo {
|
|
6460
6572
|
}
|
6461
6573
|
|
6462
6574
|
/**
|
6463
|
-
*
|
6575
|
+
* RecognizeValidIDCardOCR返回参数结构体
|
6464
6576
|
*/
|
6465
|
-
export interface
|
6577
|
+
export interface RecognizeValidIDCardOCRResponse {
|
6466
6578
|
/**
|
6467
|
-
*
|
6468
|
-
|
6579
|
+
* 卡证类型
|
6580
|
+
身份证人像面
|
6581
|
+
身份证国徽面
|
6582
|
+
|
6583
|
+
临时身份证人像面
|
6584
|
+
临时身份证人像面
|
6585
|
+
|
6586
|
+
港澳台居住证人像面
|
6587
|
+
港澳台居住证国徽面
|
6588
|
+
|
6589
|
+
外国人永久居留证人像面
|
6590
|
+
外国人永久居留证国徽面
|
6469
6591
|
*/
|
6470
|
-
|
6592
|
+
Type?: string
|
6471
6593
|
/**
|
6472
|
-
*
|
6594
|
+
* 身份证信息
|
6595
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6473
6596
|
*/
|
6474
|
-
|
6597
|
+
IDCardInfo?: IDCardInfo
|
6598
|
+
/**
|
6599
|
+
* 临时身份证信息
|
6600
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6601
|
+
*/
|
6602
|
+
TemporaryIDCardInfo?: TemporaryIDCardInfo
|
6603
|
+
/**
|
6604
|
+
* 港澳台居住证信息
|
6605
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6606
|
+
*/
|
6607
|
+
ResidencePermitInfo?: ResidencePermitInfo
|
6608
|
+
/**
|
6609
|
+
* 外国人永久居留证信息
|
6610
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
6611
|
+
*/
|
6612
|
+
PermanentResidencePermitInfo?: PermanentResidencePermitInfo
|
6475
6613
|
/**
|
6476
6614
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6477
6615
|
*/
|
@@ -6493,13 +6631,53 @@ export interface DetectedWords {
|
|
6493
6631
|
}
|
6494
6632
|
|
6495
6633
|
/**
|
6496
|
-
*
|
6634
|
+
* 身份证信息返回
|
6497
6635
|
*/
|
6498
|
-
export interface
|
6636
|
+
export interface IDCardInfo {
|
6499
6637
|
/**
|
6500
|
-
*
|
6638
|
+
* 姓名(人像面)
|
6501
6639
|
*/
|
6502
|
-
|
6640
|
+
Name?: ContentInfo
|
6641
|
+
/**
|
6642
|
+
* 性别(人像面)
|
6643
|
+
*/
|
6644
|
+
Sex?: ContentInfo
|
6645
|
+
/**
|
6646
|
+
* 民族(人像面)
|
6647
|
+
*/
|
6648
|
+
Nation?: ContentInfo
|
6649
|
+
/**
|
6650
|
+
* 出生日期(人像面)
|
6651
|
+
*/
|
6652
|
+
Birth?: ContentInfo
|
6653
|
+
/**
|
6654
|
+
* 地址(人像面)
|
6655
|
+
*/
|
6656
|
+
Address?: ContentInfo
|
6657
|
+
/**
|
6658
|
+
* 公民身份号码(人像面)
|
6659
|
+
*/
|
6660
|
+
IdNum?: ContentInfo
|
6661
|
+
/**
|
6662
|
+
* 发证机关(国徽面)
|
6663
|
+
*/
|
6664
|
+
Authority?: ContentInfo
|
6665
|
+
/**
|
6666
|
+
* 证件有效期(国徽面)
|
6667
|
+
*/
|
6668
|
+
ValidDate?: ContentInfo
|
6669
|
+
/**
|
6670
|
+
* WarnInfos,告警信息
|
6671
|
+
*/
|
6672
|
+
WarnInfos?: CardWarnInfo
|
6673
|
+
/**
|
6674
|
+
* IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
|
6675
|
+
*/
|
6676
|
+
CardImage?: ContentInfo
|
6677
|
+
/**
|
6678
|
+
* Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
|
6679
|
+
*/
|
6680
|
+
PortraitImage?: ContentInfo
|
6503
6681
|
}
|
6504
6682
|
|
6505
6683
|
/**
|
@@ -7838,6 +8016,10 @@ export interface PassportOCRRequest {
|
|
7838
8016
|
支持中国大陆地区护照。
|
7839
8017
|
*/
|
7840
8018
|
Type?: string
|
8019
|
+
/**
|
8020
|
+
* 是否返回头像和位置坐标
|
8021
|
+
*/
|
8022
|
+
CropPortrait?: boolean
|
7841
8023
|
}
|
7842
8024
|
|
7843
8025
|
/**
|
@@ -8645,6 +8827,32 @@ export interface InsuranceBillInfo {
|
|
8645
8827
|
Value: string
|
8646
8828
|
}
|
8647
8829
|
|
8830
|
+
/**
|
8831
|
+
* 卡证字段信息返回值
|
8832
|
+
*/
|
8833
|
+
export interface ContentInfo {
|
8834
|
+
/**
|
8835
|
+
* 字段内容
|
8836
|
+
*/
|
8837
|
+
Content?: string
|
8838
|
+
/**
|
8839
|
+
* 结果置信度
|
8840
|
+
*/
|
8841
|
+
Confidence?: number
|
8842
|
+
/**
|
8843
|
+
* 字段是否不完整
|
8844
|
+
0 字段正常
|
8845
|
+
1 字段不完整
|
8846
|
+
*/
|
8847
|
+
IsInComplete?: number
|
8848
|
+
/**
|
8849
|
+
* 字段反光
|
8850
|
+
0 字段正常
|
8851
|
+
1 字段有反光
|
8852
|
+
*/
|
8853
|
+
IsReflect?: number
|
8854
|
+
}
|
8855
|
+
|
8648
8856
|
/**
|
8649
8857
|
* GetTaskState请求参数结构体
|
8650
8858
|
*/
|
@@ -9057,6 +9265,10 @@ BACK:无照片的一面(国徽面),
|
|
9057
9265
|
该参数如果不填或填错,将为您自动判断正反面。
|
9058
9266
|
*/
|
9059
9267
|
CardSide?: string
|
9268
|
+
/**
|
9269
|
+
* 是否返回头像和位置坐标
|
9270
|
+
*/
|
9271
|
+
CropPortrait?: boolean
|
9060
9272
|
}
|
9061
9273
|
|
9062
9274
|
/**
|
@@ -9482,6 +9694,32 @@ export interface EnglishOCRResponse {
|
|
9482
9694
|
RequestId?: string
|
9483
9695
|
}
|
9484
9696
|
|
9697
|
+
/**
|
9698
|
+
* 头像位置坐标
|
9699
|
+
*/
|
9700
|
+
export interface ImageCoordinates {
|
9701
|
+
/**
|
9702
|
+
* 头像左上角横坐标
|
9703
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9704
|
+
*/
|
9705
|
+
X?: number
|
9706
|
+
/**
|
9707
|
+
* 头像左上角纵坐标
|
9708
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9709
|
+
*/
|
9710
|
+
Y?: number
|
9711
|
+
/**
|
9712
|
+
* 头像框宽度
|
9713
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9714
|
+
*/
|
9715
|
+
Width?: number
|
9716
|
+
/**
|
9717
|
+
* 头像框高度
|
9718
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
9719
|
+
*/
|
9720
|
+
Height?: number
|
9721
|
+
}
|
9722
|
+
|
9485
9723
|
/**
|
9486
9724
|
* RecognizeForeignPermanentResidentIdCard返回参数结构体
|
9487
9725
|
*/
|
@@ -9522,6 +9760,10 @@ export interface RecognizeForeignPermanentResidentIdCardResponse {
|
|
9522
9760
|
* 签发机关。
|
9523
9761
|
*/
|
9524
9762
|
IssuedAuthority?: string
|
9763
|
+
/**
|
9764
|
+
* 头像和坐标信息。
|
9765
|
+
*/
|
9766
|
+
PortraitImageInfo?: PortraitImageInfo
|
9525
9767
|
/**
|
9526
9768
|
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
9527
9769
|
*/
|
@@ -9583,6 +9825,130 @@ export interface OrgCodeCertOCRResponse {
|
|
9583
9825
|
RequestId?: string
|
9584
9826
|
}
|
9585
9827
|
|
9828
|
+
/**
|
9829
|
+
* 临时身份证信息返回
|
9830
|
+
*/
|
9831
|
+
export interface TemporaryIDCardInfo {
|
9832
|
+
/**
|
9833
|
+
* 姓名(人像面)
|
9834
|
+
*/
|
9835
|
+
Name?: ContentInfo
|
9836
|
+
/**
|
9837
|
+
* 性别(人像面)
|
9838
|
+
*/
|
9839
|
+
Sex?: ContentInfo
|
9840
|
+
/**
|
9841
|
+
* 民族(人像面)
|
9842
|
+
*/
|
9843
|
+
Nation?: ContentInfo
|
9844
|
+
/**
|
9845
|
+
* 出生日期(人像面)
|
9846
|
+
*/
|
9847
|
+
Birth?: ContentInfo
|
9848
|
+
/**
|
9849
|
+
* 地址(人像面)
|
9850
|
+
*/
|
9851
|
+
Address?: ContentInfo
|
9852
|
+
/**
|
9853
|
+
* 公民身份号码(人像面)
|
9854
|
+
*/
|
9855
|
+
IdNum?: ContentInfo
|
9856
|
+
/**
|
9857
|
+
* 发证机关(国徽面)
|
9858
|
+
*/
|
9859
|
+
Authority?: ContentInfo
|
9860
|
+
/**
|
9861
|
+
* 证件有效期(国徽面)
|
9862
|
+
*/
|
9863
|
+
ValidDate?: ContentInfo
|
9864
|
+
/**
|
9865
|
+
* WarnInfos,告警信息
|
9866
|
+
*/
|
9867
|
+
WarnInfos?: CardWarnInfo
|
9868
|
+
/**
|
9869
|
+
* IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
|
9870
|
+
*/
|
9871
|
+
CardImage?: ContentInfo
|
9872
|
+
/**
|
9873
|
+
* Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
|
9874
|
+
*/
|
9875
|
+
PortraitImage?: ContentInfo
|
9876
|
+
}
|
9877
|
+
|
9878
|
+
/**
|
9879
|
+
* 增值税发票项目明细
|
9880
|
+
*/
|
9881
|
+
export interface VatInvoiceItem {
|
9882
|
+
/**
|
9883
|
+
* 行号
|
9884
|
+
*/
|
9885
|
+
LineNo: string
|
9886
|
+
/**
|
9887
|
+
* 名称
|
9888
|
+
*/
|
9889
|
+
Name: string
|
9890
|
+
/**
|
9891
|
+
* 规格
|
9892
|
+
*/
|
9893
|
+
Spec: string
|
9894
|
+
/**
|
9895
|
+
* 单位
|
9896
|
+
*/
|
9897
|
+
Unit: string
|
9898
|
+
/**
|
9899
|
+
* 数量
|
9900
|
+
*/
|
9901
|
+
Quantity: string
|
9902
|
+
/**
|
9903
|
+
* 单价
|
9904
|
+
*/
|
9905
|
+
UnitPrice: string
|
9906
|
+
/**
|
9907
|
+
* 不含税金额
|
9908
|
+
*/
|
9909
|
+
AmountWithoutTax: string
|
9910
|
+
/**
|
9911
|
+
* 税率
|
9912
|
+
*/
|
9913
|
+
TaxRate: string
|
9914
|
+
/**
|
9915
|
+
* 税额
|
9916
|
+
*/
|
9917
|
+
TaxAmount: string
|
9918
|
+
/**
|
9919
|
+
* 税收分类编码
|
9920
|
+
*/
|
9921
|
+
TaxClassifyCode: string
|
9922
|
+
/**
|
9923
|
+
* 运输工具类型
|
9924
|
+
*/
|
9925
|
+
VehicleType?: string
|
9926
|
+
/**
|
9927
|
+
* 运输工具牌号
|
9928
|
+
*/
|
9929
|
+
VehicleBrand?: string
|
9930
|
+
/**
|
9931
|
+
* 起始地
|
9932
|
+
*/
|
9933
|
+
DeparturePlace?: string
|
9934
|
+
/**
|
9935
|
+
* 到达地
|
9936
|
+
*/
|
9937
|
+
ArrivalPlace?: string
|
9938
|
+
/**
|
9939
|
+
* 运输货物名称
|
9940
|
+
*/
|
9941
|
+
TransportItemsName?: string
|
9942
|
+
/**
|
9943
|
+
* 建筑服务发生地
|
9944
|
+
*/
|
9945
|
+
ConstructionPlace?: string
|
9946
|
+
/**
|
9947
|
+
* 建筑项目名称
|
9948
|
+
*/
|
9949
|
+
ConstructionName?: string
|
9950
|
+
}
|
9951
|
+
|
9586
9952
|
/**
|
9587
9953
|
* RideHailingTransportLicenseOCR返回参数结构体
|
9588
9954
|
*/
|
@@ -9770,6 +10136,52 @@ export interface PermitOCRResponse {
|
|
9770
10136
|
RequestId?: string
|
9771
10137
|
}
|
9772
10138
|
|
10139
|
+
/**
|
10140
|
+
* 定额发票
|
10141
|
+
*/
|
10142
|
+
export interface QuotaInvoice {
|
10143
|
+
/**
|
10144
|
+
* 发票名称
|
10145
|
+
*/
|
10146
|
+
Title?: string
|
10147
|
+
/**
|
10148
|
+
* 发票代码
|
10149
|
+
*/
|
10150
|
+
Code?: string
|
10151
|
+
/**
|
10152
|
+
* 发票号码
|
10153
|
+
*/
|
10154
|
+
Number?: string
|
10155
|
+
/**
|
10156
|
+
* 价税合计(小写)
|
10157
|
+
*/
|
10158
|
+
Total?: string
|
10159
|
+
/**
|
10160
|
+
* 价税合计(大写)
|
10161
|
+
*/
|
10162
|
+
TotalCn?: string
|
10163
|
+
/**
|
10164
|
+
* 发票消费类型
|
10165
|
+
*/
|
10166
|
+
Kind?: string
|
10167
|
+
/**
|
10168
|
+
* 省
|
10169
|
+
*/
|
10170
|
+
Province?: string
|
10171
|
+
/**
|
10172
|
+
* 市
|
10173
|
+
*/
|
10174
|
+
City?: string
|
10175
|
+
/**
|
10176
|
+
* 是否存在二维码(1:有,0:无)
|
10177
|
+
*/
|
10178
|
+
QRCodeMark?: number
|
10179
|
+
/**
|
10180
|
+
* 是否有公司印章(0:没有,1:有)
|
10181
|
+
*/
|
10182
|
+
CompanySealMark?: number
|
10183
|
+
}
|
10184
|
+
|
9773
10185
|
/**
|
9774
10186
|
* InsuranceBillOCR请求参数结构体
|
9775
10187
|
*/
|
@@ -9792,19 +10204,21 @@ export interface InsuranceBillOCRRequest {
|
|
9792
10204
|
}
|
9793
10205
|
|
9794
10206
|
/**
|
9795
|
-
*
|
10207
|
+
* GeneralHandwritingOCR返回参数结构体
|
9796
10208
|
*/
|
9797
|
-
export interface
|
10209
|
+
export interface GeneralHandwritingOCRResponse {
|
9798
10210
|
/**
|
9799
|
-
*
|
9800
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
10211
|
+
* 检测到的文本信息,具体内容请点击左侧链接。
|
9801
10212
|
*/
|
9802
|
-
|
10213
|
+
TextDetections: Array<TextGeneralHandwriting>
|
9803
10214
|
/**
|
9804
|
-
*
|
9805
|
-
建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
|
10215
|
+
* 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
|
9806
10216
|
*/
|
9807
|
-
|
10217
|
+
Angel: number
|
10218
|
+
/**
|
10219
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
10220
|
+
*/
|
10221
|
+
RequestId?: string
|
9808
10222
|
}
|
9809
10223
|
|
9810
10224
|
/**
|
@@ -9922,28 +10336,6 @@ export interface QuestionBlockObj {
|
|
9922
10336
|
QuestionBboxCoord: Rect
|
9923
10337
|
}
|
9924
10338
|
|
9925
|
-
/**
|
9926
|
-
* 增值税普通发票(卷票)条目
|
9927
|
-
*/
|
9928
|
-
export interface VatRollItem {
|
9929
|
-
/**
|
9930
|
-
* 项目名称
|
9931
|
-
*/
|
9932
|
-
Name?: string
|
9933
|
-
/**
|
9934
|
-
* 数量
|
9935
|
-
*/
|
9936
|
-
Quantity?: string
|
9937
|
-
/**
|
9938
|
-
* 单价
|
9939
|
-
*/
|
9940
|
-
Price?: string
|
9941
|
-
/**
|
9942
|
-
* 金额
|
9943
|
-
*/
|
9944
|
-
Total?: string
|
9945
|
-
}
|
9946
|
-
|
9947
10339
|
/**
|
9948
10340
|
* AdvertiseOCR返回参数结构体
|
9949
10341
|
*/
|
@@ -10382,6 +10774,64 @@ export interface EstateCertOCRRequest {
|
|
10382
10774
|
ImageUrl?: string
|
10383
10775
|
}
|
10384
10776
|
|
10777
|
+
/**
|
10778
|
+
* 外国人永久居留证信息返回
|
10779
|
+
*/
|
10780
|
+
export interface PermanentResidencePermitInfo {
|
10781
|
+
/**
|
10782
|
+
* 姓名(人像面)
|
10783
|
+
*/
|
10784
|
+
Name?: ContentInfo
|
10785
|
+
/**
|
10786
|
+
* 性别(人像面)
|
10787
|
+
*/
|
10788
|
+
Sex?: ContentInfo
|
10789
|
+
/**
|
10790
|
+
* 民族(人像面)
|
10791
|
+
*/
|
10792
|
+
Nation?: ContentInfo
|
10793
|
+
/**
|
10794
|
+
* 出生日期(人像面)
|
10795
|
+
*/
|
10796
|
+
Birth?: ContentInfo
|
10797
|
+
/**
|
10798
|
+
* 地址(人像面)
|
10799
|
+
*/
|
10800
|
+
Address?: ContentInfo
|
10801
|
+
/**
|
10802
|
+
* 公民身份号码(人像面)
|
10803
|
+
*/
|
10804
|
+
IdNum?: ContentInfo
|
10805
|
+
/**
|
10806
|
+
* 发证机关(国徽面)
|
10807
|
+
*/
|
10808
|
+
Authority?: ContentInfo
|
10809
|
+
/**
|
10810
|
+
* 证件有效期(国徽面)
|
10811
|
+
*/
|
10812
|
+
ValidDate?: ContentInfo
|
10813
|
+
/**
|
10814
|
+
* WarnInfos,告警信息
|
10815
|
+
*/
|
10816
|
+
WarnInfos?: CardWarnInfo
|
10817
|
+
/**
|
10818
|
+
* IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
|
10819
|
+
*/
|
10820
|
+
CardImage?: ContentInfo
|
10821
|
+
/**
|
10822
|
+
* Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
|
10823
|
+
*/
|
10824
|
+
PortraitImage?: ContentInfo
|
10825
|
+
/**
|
10826
|
+
* 持证人持有号码,外国人永久居留证 返回该字段
|
10827
|
+
*/
|
10828
|
+
HolderNum?: ContentInfo
|
10829
|
+
/**
|
10830
|
+
* 国籍,外国人永久居留证 返回该字段
|
10831
|
+
*/
|
10832
|
+
Nationality?: ContentInfo
|
10833
|
+
}
|
10834
|
+
|
10385
10835
|
/**
|
10386
10836
|
* BizLicenseOCR返回参数结构体
|
10387
10837
|
*/
|
@@ -10843,6 +11293,10 @@ export interface RecognizeForeignPermanentResidentIdCardRequest {
|
|
10843
11293
|
示例值:1
|
10844
11294
|
*/
|
10845
11295
|
PdfPageNumber?: number
|
11296
|
+
/**
|
11297
|
+
* 是否返回头像和位置坐标
|
11298
|
+
*/
|
11299
|
+
CropPortrait?: boolean
|
10846
11300
|
}
|
10847
11301
|
|
10848
11302
|
/**
|