tencentcloud-sdk-nodejs-ocr 4.0.967 → 4.0.970

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.
@@ -278,6 +278,63 @@ export interface TextArithmetic {
278
278
  */
279
279
  Answer?: string;
280
280
  }
281
+ /**
282
+ * 港澳台居住证信息返回
283
+ */
284
+ export interface ResidencePermitInfo {
285
+ /**
286
+ * 姓名(人像面)
287
+ */
288
+ Name?: ContentInfo;
289
+ /**
290
+ * 性别(人像面)
291
+ */
292
+ Sex?: ContentInfo;
293
+ /**
294
+ * 民族(人像面)
295
+ */
296
+ Nation?: ContentInfo;
297
+ /**
298
+ * 出生日期(人像面)
299
+ */
300
+ Birth?: ContentInfo;
301
+ /**
302
+ * 地址(人像面)
303
+ */
304
+ Address?: ContentInfo;
305
+ /**
306
+ * 公民身份号码(人像面)
307
+ */
308
+ IdNum?: ContentInfo;
309
+ /**
310
+ * 发证机关(国徽面)
311
+ */
312
+ Authority?: ContentInfo;
313
+ /**
314
+ * 证件有效期(国徽面)
315
+ */
316
+ ValidDate?: ContentInfo;
317
+ /**
318
+ * WarnInfos,告警信息
319
+ */
320
+ WarnInfos?: CardWarnInfo;
321
+ /**
322
+ * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
323
+ */
324
+ CardImage?: ContentInfo;
325
+ /**
326
+ * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
327
+ */
328
+ PortraitImage?: ContentInfo;
329
+ /**
330
+ * 通行证号码,港澳台居住证国徽面 返回该字段
331
+ */
332
+ PassNum?: ContentInfo;
333
+ /**
334
+ * 签发次数,港澳台居住证国徽面 返回该字段
335
+ */
336
+ IssueNum?: ContentInfo;
337
+ }
281
338
  /**
282
339
  * BankCardOCR请求参数结构体
283
340
  */
@@ -510,21 +567,32 @@ export interface EstateCertOCRResponse {
510
567
  RequestId?: string;
511
568
  }
512
569
  /**
513
- * GeneralHandwritingOCR返回参数结构体
570
+ * FlightInvoiceOCR请求参数结构体
514
571
  */
515
- export interface GeneralHandwritingOCRResponse {
572
+ export interface FlightInvoiceOCRRequest {
516
573
  /**
517
- * 检测到的文本信息,具体内容请点击左侧链接。
574
+ * 图片的 Base64 值。
575
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
576
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
577
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
518
578
  */
519
- TextDetections: Array<TextGeneralHandwriting>;
579
+ ImageBase64?: string;
520
580
  /**
521
- * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
581
+ * 图片的 Url 地址。
582
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
583
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
584
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
585
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
522
586
  */
523
- Angel: number;
587
+ ImageUrl?: string;
524
588
  /**
525
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
589
+ * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
526
590
  */
527
- RequestId?: string;
591
+ IsPdf?: boolean;
592
+ /**
593
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
594
+ */
595
+ PdfPageNumber?: number;
528
596
  }
529
597
  /**
530
598
  * RecognizePhilippinesDrivingLicenseOCR请求参数结构体
@@ -1219,32 +1287,25 @@ export interface RideHailingTransportLicenseOCRRequest {
1219
1287
  ImageUrl?: string;
1220
1288
  }
1221
1289
  /**
1222
- * FlightInvoiceOCR请求参数结构体
1290
+ * 增值税普通发票(卷票)条目
1223
1291
  */
1224
- export interface FlightInvoiceOCRRequest {
1292
+ export interface VatRollItem {
1225
1293
  /**
1226
- * 图片的 Base64 值。
1227
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1228
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1229
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1294
+ * 项目名称
1230
1295
  */
1231
- ImageBase64?: string;
1296
+ Name?: string;
1232
1297
  /**
1233
- * 图片的 Url 地址。
1234
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1235
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1236
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1237
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1298
+ * 数量
1238
1299
  */
1239
- ImageUrl?: string;
1300
+ Quantity?: string;
1240
1301
  /**
1241
- * 是否开启PDF识别,默认值为true,开启后可同时支持图片和PDF的识别。
1302
+ * 单价
1242
1303
  */
1243
- IsPdf?: boolean;
1304
+ Price?: string;
1244
1305
  /**
1245
- * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
1306
+ * 金额
1246
1307
  */
1247
- PdfPageNumber?: number;
1308
+ Total?: string;
1248
1309
  }
1249
1310
  /**
1250
1311
  * 数学公式识别结果
@@ -1300,83 +1361,23 @@ export interface HmtResidentPermitOCRResponse {
1300
1361
  * 通行证号码
1301
1362
  */
1302
1363
  PassNo?: string;
1364
+ /**
1365
+ * 头像和坐标信息
1366
+ */
1367
+ PortraitImageInfo?: PortraitImageInfo;
1303
1368
  /**
1304
1369
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1305
1370
  */
1306
1371
  RequestId?: string;
1307
1372
  }
1308
1373
  /**
1309
- * 增值税发票项目明细
1374
+ * 其他票Table
1310
1375
  */
1311
- export interface VatInvoiceItem {
1312
- /**
1313
- * 行号
1314
- */
1315
- LineNo: string;
1316
- /**
1317
- * 名称
1318
- */
1319
- Name: string;
1320
- /**
1321
- * 规格
1322
- */
1323
- Spec: string;
1324
- /**
1325
- * 单位
1326
- */
1327
- Unit: string;
1328
- /**
1329
- * 数量
1330
- */
1331
- Quantity: string;
1332
- /**
1333
- * 单价
1334
- */
1335
- UnitPrice: string;
1336
- /**
1337
- * 不含税金额
1338
- */
1339
- AmountWithoutTax: string;
1340
- /**
1341
- * 税率
1342
- */
1343
- TaxRate: string;
1344
- /**
1345
- * 税额
1346
- */
1347
- TaxAmount: string;
1348
- /**
1349
- * 税收分类编码
1350
- */
1351
- TaxClassifyCode: string;
1352
- /**
1353
- * 运输工具类型
1354
- */
1355
- VehicleType?: string;
1356
- /**
1357
- * 运输工具牌号
1358
- */
1359
- VehicleBrand?: string;
1360
- /**
1361
- * 起始地
1362
- */
1363
- DeparturePlace?: string;
1364
- /**
1365
- * 到达地
1366
- */
1367
- ArrivalPlace?: string;
1368
- /**
1369
- * 运输货物名称
1370
- */
1371
- TransportItemsName?: string;
1372
- /**
1373
- * 建筑服务发生地
1374
- */
1375
- ConstructionPlace?: string;
1376
+ export interface OtherInvoiceList {
1376
1377
  /**
1377
- * 建筑项目名称
1378
+ * 列表
1378
1379
  */
1379
- ConstructionName?: string;
1380
+ OtherInvoiceItemList?: Array<OtherInvoiceItem>;
1380
1381
  }
1381
1382
  /**
1382
1383
  * 机动车登记证书识别结果
@@ -2471,6 +2472,24 @@ export interface BankSlipInfo {
2471
2472
  */
2472
2473
  Rect: Rect;
2473
2474
  }
2475
+ /**
2476
+ * SmartStructuralOCR返回参数结构体
2477
+ */
2478
+ export interface SmartStructuralOCRResponse {
2479
+ /**
2480
+ * 图片旋转角度(角度制),文本的水平方向
2481
+ 为 0;顺时针为正,逆时针为负
2482
+ */
2483
+ Angle: number;
2484
+ /**
2485
+ * 识别信息
2486
+ */
2487
+ StructuralItems: Array<StructuralItem>;
2488
+ /**
2489
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2490
+ */
2491
+ RequestId?: string;
2492
+ }
2474
2493
  /**
2475
2494
  * ArithmeticOCR返回参数结构体
2476
2495
  */
@@ -2935,49 +2954,19 @@ export interface BusInvoice {
2935
2954
  TrainNumber?: string;
2936
2955
  }
2937
2956
  /**
2938
- * 定额发票
2957
+ * QrcodeOCR请求参数结构体
2939
2958
  */
2940
- export interface QuotaInvoice {
2941
- /**
2942
- * 发票名称
2943
- */
2944
- Title?: string;
2945
- /**
2946
- * 发票代码
2947
- */
2948
- Code?: string;
2949
- /**
2950
- * 发票号码
2951
- */
2952
- Number?: string;
2953
- /**
2954
- * 价税合计(小写)
2955
- */
2956
- Total?: string;
2957
- /**
2958
- * 价税合计(大写)
2959
- */
2960
- TotalCn?: string;
2961
- /**
2962
- * 发票消费类型
2963
- */
2964
- Kind?: string;
2965
- /**
2966
- * 省
2967
- */
2968
- Province?: string;
2969
- /**
2970
- * 市
2971
- */
2972
- City?: string;
2959
+ export interface QrcodeOCRRequest {
2973
2960
  /**
2974
- * 是否存在二维码(1:有,0:无)
2961
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
2962
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
2975
2963
  */
2976
- QRCodeMark?: number;
2964
+ ImageBase64?: string;
2977
2965
  /**
2978
- * 是否有公司印章(0:没有,1:有)
2966
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
2967
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
2979
2968
  */
2980
- CompanySealMark?: number;
2969
+ ImageUrl?: string;
2981
2970
  }
2982
2971
  /**
2983
2972
  * TaxiInvoiceOCR返回参数结构体
@@ -3213,37 +3202,101 @@ export interface RecognizeMedicalInvoiceOCRResponse {
3213
3202
  RequestId?: string;
3214
3203
  }
3215
3204
  /**
3216
- * MixedInvoiceOCR返回参数结构体
3205
+ * RecognizeValidIDCardOCR请求参数结构体
3217
3206
  */
3218
- export interface MixedInvoiceOCRResponse {
3207
+ export interface RecognizeValidIDCardOCRRequest {
3219
3208
  /**
3220
- * 混贴票据识别结果,具体内容请点击左侧链接。
3209
+ * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
3210
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
3221
3211
  */
3222
- MixedInvoiceItems?: Array<MixedInvoiceItem>;
3212
+ ImageBase64?: string;
3223
3213
  /**
3224
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3214
+ * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,分辨率建议500*800以上,支持PNG、JPG、JPEG、BMP格式。建议卡片部分占据图片2/3以上。
3215
+ 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
3225
3216
  */
3226
- RequestId?: string;
3227
- }
3228
- /**
3229
- * ClassifyDetectOCR返回参数结构体
3230
- */
3231
- export interface ClassifyDetectOCRResponse {
3217
+ ImageUrl?: string;
3232
3218
  /**
3233
- * 智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"
3219
+ * 0 自动,自动判断输入证件的类型
3220
+ 1 身份证人像面,指定输入证件类型为二代身份证人像面
3221
+ 2 身份证国徽面,指定输入证件类型为二代身份证国徽面
3222
+ 3 身份证人像国徽面,指定输入证件类型为二代身份证人像面或者国徽面
3223
+ 4 临时身份证人像面,指定输入证件类型为临时身份证人像面
3224
+ 5 临时身份证国徽面,指定输入证件类型为临时身份证国徽面
3225
+ 6 临时身份证人像国徽面,指定输入证件类型为临时身份证人像面或者国徽面
3226
+ 7 港澳台居住证人像面,指定输入证件类型为港澳台居住证人像面
3227
+ 8 港澳台居住证国徽面,指定输入证件类型为港澳台居住证国徽面
3228
+ 9 港澳台居住证人像国徽面,指定输入证件类型为港澳台居住证人像面或者国徽面
3229
+ 10 外国人永久居留身份证人像面,指定输入证件类型为外国人永久居留证人像面
3230
+ 11 外国人永久居留身份证国徽面,指定输入证件类型为外国人永久居留证国徽面
3231
+ 12 外国人永久居留身份证人像国徽面,指定输入证件类型为外国人永久居留证人像或者国徽面
3232
+ 该参数如果不填,将为您自动判断卡证类型。
3234
3233
  */
3235
- ClassifyDetectInfos?: Array<ClassifyDetectInfo>;
3234
+ CardType?: number;
3236
3235
  /**
3237
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3236
+ * 默认值为false,打开返回证件头像切图。
3238
3237
  */
3239
- RequestId?: string;
3240
- }
3241
- /**
3242
- * VatInvoiceVerifyNew请求参数结构体
3243
- */
3244
- export interface VatInvoiceVerifyNewRequest {
3238
+ EnablePortrait?: boolean;
3245
3239
  /**
3246
- * 发票号码,8位、20位(全电票)
3240
+ * 默认值为false,打开返回证件主体切图。
3241
+ */
3242
+ EnableCropImage?: boolean;
3243
+ /**
3244
+ * 默认值为false,打开返回边缘完整性判断。
3245
+ */
3246
+ EnableBorderCheck?: boolean;
3247
+ /**
3248
+ * 默认值为false,打开返回证件是否被遮挡。
3249
+ */
3250
+ EnableOcclusionCheck?: boolean;
3251
+ /**
3252
+ * 默认值为false,打开返回证件是否存在复印。
3253
+ */
3254
+ EnableCopyCheck?: boolean;
3255
+ /**
3256
+ * 默认值为false,打开返回证件是否存在屏幕翻拍。
3257
+ */
3258
+ EnableReshootCheck?: boolean;
3259
+ /**
3260
+ * 默认值为false,打开返回证件是否存在PS。类型为:临时、港澳台居住证、外国人居住证失效
3261
+ */
3262
+ EnablePSCheck?: boolean;
3263
+ /**
3264
+ * 默认值为false,打开返回字段级反光和字段级完整性告警。类型为:临时、港澳台居住证、外国人居住证失效
3265
+ */
3266
+ EnableWordCheck?: boolean;
3267
+ }
3268
+ /**
3269
+ * MixedInvoiceOCR返回参数结构体
3270
+ */
3271
+ export interface MixedInvoiceOCRResponse {
3272
+ /**
3273
+ * 混贴票据识别结果,具体内容请点击左侧链接。
3274
+ */
3275
+ MixedInvoiceItems?: Array<MixedInvoiceItem>;
3276
+ /**
3277
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3278
+ */
3279
+ RequestId?: string;
3280
+ }
3281
+ /**
3282
+ * ClassifyDetectOCR返回参数结构体
3283
+ */
3284
+ export interface ClassifyDetectOCRResponse {
3285
+ /**
3286
+ * 智能卡证分类结果。当图片类型不支持分类识别或者识别出的类型不在请求参数DiscernType指定的范围内时,返回结果中的Type字段将为空字符串,Name字段将返回"其它"
3287
+ */
3288
+ ClassifyDetectInfos?: Array<ClassifyDetectInfo>;
3289
+ /**
3290
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3291
+ */
3292
+ RequestId?: string;
3293
+ }
3294
+ /**
3295
+ * VatInvoiceVerifyNew请求参数结构体
3296
+ */
3297
+ export interface VatInvoiceVerifyNewRequest {
3298
+ /**
3299
+ * 发票号码,8位、20位(全电票)
3247
3300
  */
3248
3301
  InvoiceNo: string;
3249
3302
  /**
@@ -5268,6 +5321,21 @@ export interface ImageEnhancementResponse {
5268
5321
  */
5269
5322
  RequestId?: string;
5270
5323
  }
5324
+ /**
5325
+ * 头像照片和坐标
5326
+ */
5327
+ export interface PortraitImageInfo {
5328
+ /**
5329
+ * 头像
5330
+ 注意:此字段可能返回 null,表示取不到有效值。
5331
+ */
5332
+ PortraitImage?: string;
5333
+ /**
5334
+ * 头像坐标
5335
+ 注意:此字段可能返回 null,表示取不到有效值。
5336
+ */
5337
+ ImageCoordinates?: ImageCoordinates;
5338
+ }
5271
5339
  /**
5272
5340
  * 图片大小
5273
5341
  */
@@ -5345,6 +5413,10 @@ export interface PassportOCRResponse {
5345
5413
  * 名
5346
5414
  */
5347
5415
  FirstName?: string;
5416
+ /**
5417
+ * 头像和坐标信息
5418
+ */
5419
+ PortraitImageInfo?: PortraitImageInfo;
5348
5420
  /**
5349
5421
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5350
5422
  */
@@ -5395,6 +5467,41 @@ export interface FinancialBillItemDetails {
5395
5467
  */
5396
5468
  Remark?: string;
5397
5469
  }
5470
+ /**
5471
+ * 卡证告警信息返回
5472
+ */
5473
+ export interface CardWarnInfo {
5474
+ /**
5475
+ * 证件边缘是否完整
5476
+ 0:正常
5477
+ 1:边缘不完整
5478
+ */
5479
+ BorderCheck?: number;
5480
+ /**
5481
+ * 证件是否被遮挡
5482
+ 0:正常
5483
+ 1:有遮挡
5484
+ */
5485
+ OcclusionCheck?: number;
5486
+ /**
5487
+ * 是否复印
5488
+ 0:正常
5489
+ 1:复印件
5490
+ */
5491
+ CopyCheck?: number;
5492
+ /**
5493
+ * 是否屏幕翻拍
5494
+ 0:正常
5495
+ 1:翻拍
5496
+ */
5497
+ ReshootCheck?: number;
5498
+ /**
5499
+ * 证件是否有PS
5500
+ 0:正常
5501
+ 1:有PS
5502
+ */
5503
+ PSCheck?: number;
5504
+ }
5398
5505
  /**
5399
5506
  * VehicleRegCertOCR请求参数结构体
5400
5507
  */
@@ -6278,18 +6385,44 @@ export interface VatElectronicInfo {
6278
6385
  ServiceTypeLabel?: string;
6279
6386
  }
6280
6387
  /**
6281
- * SmartStructuralOCR返回参数结构体
6388
+ * RecognizeValidIDCardOCR返回参数结构体
6282
6389
  */
6283
- export interface SmartStructuralOCRResponse {
6390
+ export interface RecognizeValidIDCardOCRResponse {
6284
6391
  /**
6285
- * 图片旋转角度(角度制),文本的水平方向
6286
- 为 0;顺时针为正,逆时针为负
6392
+ * 卡证类型
6393
+ 身份证人像面
6394
+ 身份证国徽面
6395
+
6396
+ 临时身份证人像面
6397
+ 临时身份证人像面
6398
+
6399
+ 港澳台居住证人像面
6400
+ 港澳台居住证国徽面
6401
+
6402
+ 外国人永久居留证人像面
6403
+ 外国人永久居留证国徽面
6287
6404
  */
6288
- Angle: number;
6405
+ Type?: string;
6289
6406
  /**
6290
- * 识别信息
6407
+ * 身份证信息
6408
+ 注意:此字段可能返回 null,表示取不到有效值。
6291
6409
  */
6292
- StructuralItems: Array<StructuralItem>;
6410
+ IDCardInfo?: IDCardInfo;
6411
+ /**
6412
+ * 临时身份证信息
6413
+ 注意:此字段可能返回 null,表示取不到有效值。
6414
+ */
6415
+ TemporaryIDCardInfo?: TemporaryIDCardInfo;
6416
+ /**
6417
+ * 港澳台居住证信息
6418
+ 注意:此字段可能返回 null,表示取不到有效值。
6419
+ */
6420
+ ResidencePermitInfo?: ResidencePermitInfo;
6421
+ /**
6422
+ * 外国人永久居留证信息
6423
+ 注意:此字段可能返回 null,表示取不到有效值。
6424
+ */
6425
+ PermanentResidencePermitInfo?: PermanentResidencePermitInfo;
6293
6426
  /**
6294
6427
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6295
6428
  */
@@ -6309,13 +6442,53 @@ export interface DetectedWords {
6309
6442
  Character: string;
6310
6443
  }
6311
6444
  /**
6312
- * 其他票Table
6445
+ * 身份证信息返回
6313
6446
  */
6314
- export interface OtherInvoiceList {
6447
+ export interface IDCardInfo {
6315
6448
  /**
6316
- * 列表
6449
+ * 姓名(人像面)
6317
6450
  */
6318
- OtherInvoiceItemList?: Array<OtherInvoiceItem>;
6451
+ Name?: ContentInfo;
6452
+ /**
6453
+ * 性别(人像面)
6454
+ */
6455
+ Sex?: ContentInfo;
6456
+ /**
6457
+ * 民族(人像面)
6458
+ */
6459
+ Nation?: ContentInfo;
6460
+ /**
6461
+ * 出生日期(人像面)
6462
+ */
6463
+ Birth?: ContentInfo;
6464
+ /**
6465
+ * 地址(人像面)
6466
+ */
6467
+ Address?: ContentInfo;
6468
+ /**
6469
+ * 公民身份号码(人像面)
6470
+ */
6471
+ IdNum?: ContentInfo;
6472
+ /**
6473
+ * 发证机关(国徽面)
6474
+ */
6475
+ Authority?: ContentInfo;
6476
+ /**
6477
+ * 证件有效期(国徽面)
6478
+ */
6479
+ ValidDate?: ContentInfo;
6480
+ /**
6481
+ * WarnInfos,告警信息
6482
+ */
6483
+ WarnInfos?: CardWarnInfo;
6484
+ /**
6485
+ * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
6486
+ */
6487
+ CardImage?: ContentInfo;
6488
+ /**
6489
+ * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
6490
+ */
6491
+ PortraitImage?: ContentInfo;
6319
6492
  }
6320
6493
  /**
6321
6494
  * IDCardOCR返回参数结构体
@@ -7611,6 +7784,10 @@ export interface PassportOCRRequest {
7611
7784
  支持中国大陆地区护照。
7612
7785
  */
7613
7786
  Type?: string;
7787
+ /**
7788
+ * 是否返回头像和位置坐标
7789
+ */
7790
+ CropPortrait?: boolean;
7614
7791
  }
7615
7792
  /**
7616
7793
  * DutyPaidProofOCR请求参数结构体
@@ -8396,6 +8573,31 @@ export interface InsuranceBillInfo {
8396
8573
  */
8397
8574
  Value: string;
8398
8575
  }
8576
+ /**
8577
+ * 卡证字段信息返回值
8578
+ */
8579
+ export interface ContentInfo {
8580
+ /**
8581
+ * 字段内容
8582
+ */
8583
+ Content?: string;
8584
+ /**
8585
+ * 结果置信度
8586
+ */
8587
+ Confidence?: number;
8588
+ /**
8589
+ * 字段是否不完整
8590
+ 0 字段正常
8591
+ 1 字段不完整
8592
+ */
8593
+ IsInComplete?: number;
8594
+ /**
8595
+ * 字段反光
8596
+ 0 字段正常
8597
+ 1 字段有反光
8598
+ */
8599
+ IsReflect?: number;
8600
+ }
8399
8601
  /**
8400
8602
  * GetTaskState请求参数结构体
8401
8603
  */
@@ -8798,6 +9000,10 @@ export interface HmtResidentPermitOCRRequest {
8798
9000
  该参数如果不填或填错,将为您自动判断正反面。
8799
9001
  */
8800
9002
  CardSide?: string;
9003
+ /**
9004
+ * 是否返回头像和位置坐标
9005
+ */
9006
+ CropPortrait?: boolean;
8801
9007
  }
8802
9008
  /**
8803
9009
  * RecognizeTableAccurateOCR返回参数结构体
@@ -9213,6 +9419,31 @@ export interface EnglishOCRResponse {
9213
9419
  */
9214
9420
  RequestId?: string;
9215
9421
  }
9422
+ /**
9423
+ * 头像位置坐标
9424
+ */
9425
+ export interface ImageCoordinates {
9426
+ /**
9427
+ * 头像左上角横坐标
9428
+ 注意:此字段可能返回 null,表示取不到有效值。
9429
+ */
9430
+ X?: number;
9431
+ /**
9432
+ * 头像左上角纵坐标
9433
+ 注意:此字段可能返回 null,表示取不到有效值。
9434
+ */
9435
+ Y?: number;
9436
+ /**
9437
+ * 头像框宽度
9438
+ 注意:此字段可能返回 null,表示取不到有效值。
9439
+ */
9440
+ Width?: number;
9441
+ /**
9442
+ * 头像框高度
9443
+ 注意:此字段可能返回 null,表示取不到有效值。
9444
+ */
9445
+ Height?: number;
9446
+ }
9216
9447
  /**
9217
9448
  * RecognizeForeignPermanentResidentIdCard返回参数结构体
9218
9449
  */
@@ -9253,6 +9484,10 @@ export interface RecognizeForeignPermanentResidentIdCardResponse {
9253
9484
  * 签发机关。
9254
9485
  */
9255
9486
  IssuedAuthority?: string;
9487
+ /**
9488
+ * 头像和坐标信息。
9489
+ */
9490
+ PortraitImageInfo?: PortraitImageInfo;
9256
9491
  /**
9257
9492
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9258
9493
  */
@@ -9311,6 +9546,128 @@ export interface OrgCodeCertOCRResponse {
9311
9546
  */
9312
9547
  RequestId?: string;
9313
9548
  }
9549
+ /**
9550
+ * 临时身份证信息返回
9551
+ */
9552
+ export interface TemporaryIDCardInfo {
9553
+ /**
9554
+ * 姓名(人像面)
9555
+ */
9556
+ Name?: ContentInfo;
9557
+ /**
9558
+ * 性别(人像面)
9559
+ */
9560
+ Sex?: ContentInfo;
9561
+ /**
9562
+ * 民族(人像面)
9563
+ */
9564
+ Nation?: ContentInfo;
9565
+ /**
9566
+ * 出生日期(人像面)
9567
+ */
9568
+ Birth?: ContentInfo;
9569
+ /**
9570
+ * 地址(人像面)
9571
+ */
9572
+ Address?: ContentInfo;
9573
+ /**
9574
+ * 公民身份号码(人像面)
9575
+ */
9576
+ IdNum?: ContentInfo;
9577
+ /**
9578
+ * 发证机关(国徽面)
9579
+ */
9580
+ Authority?: ContentInfo;
9581
+ /**
9582
+ * 证件有效期(国徽面)
9583
+ */
9584
+ ValidDate?: ContentInfo;
9585
+ /**
9586
+ * WarnInfos,告警信息
9587
+ */
9588
+ WarnInfos?: CardWarnInfo;
9589
+ /**
9590
+ * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
9591
+ */
9592
+ CardImage?: ContentInfo;
9593
+ /**
9594
+ * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
9595
+ */
9596
+ PortraitImage?: ContentInfo;
9597
+ }
9598
+ /**
9599
+ * 增值税发票项目明细
9600
+ */
9601
+ export interface VatInvoiceItem {
9602
+ /**
9603
+ * 行号
9604
+ */
9605
+ LineNo: string;
9606
+ /**
9607
+ * 名称
9608
+ */
9609
+ Name: string;
9610
+ /**
9611
+ * 规格
9612
+ */
9613
+ Spec: string;
9614
+ /**
9615
+ * 单位
9616
+ */
9617
+ Unit: string;
9618
+ /**
9619
+ * 数量
9620
+ */
9621
+ Quantity: string;
9622
+ /**
9623
+ * 单价
9624
+ */
9625
+ UnitPrice: string;
9626
+ /**
9627
+ * 不含税金额
9628
+ */
9629
+ AmountWithoutTax: string;
9630
+ /**
9631
+ * 税率
9632
+ */
9633
+ TaxRate: string;
9634
+ /**
9635
+ * 税额
9636
+ */
9637
+ TaxAmount: string;
9638
+ /**
9639
+ * 税收分类编码
9640
+ */
9641
+ TaxClassifyCode: string;
9642
+ /**
9643
+ * 运输工具类型
9644
+ */
9645
+ VehicleType?: string;
9646
+ /**
9647
+ * 运输工具牌号
9648
+ */
9649
+ VehicleBrand?: string;
9650
+ /**
9651
+ * 起始地
9652
+ */
9653
+ DeparturePlace?: string;
9654
+ /**
9655
+ * 到达地
9656
+ */
9657
+ ArrivalPlace?: string;
9658
+ /**
9659
+ * 运输货物名称
9660
+ */
9661
+ TransportItemsName?: string;
9662
+ /**
9663
+ * 建筑服务发生地
9664
+ */
9665
+ ConstructionPlace?: string;
9666
+ /**
9667
+ * 建筑项目名称
9668
+ */
9669
+ ConstructionName?: string;
9670
+ }
9314
9671
  /**
9315
9672
  * RideHailingTransportLicenseOCR返回参数结构体
9316
9673
  */
@@ -9492,6 +9849,51 @@ export interface PermitOCRResponse {
9492
9849
  */
9493
9850
  RequestId?: string;
9494
9851
  }
9852
+ /**
9853
+ * 定额发票
9854
+ */
9855
+ export interface QuotaInvoice {
9856
+ /**
9857
+ * 发票名称
9858
+ */
9859
+ Title?: string;
9860
+ /**
9861
+ * 发票代码
9862
+ */
9863
+ Code?: string;
9864
+ /**
9865
+ * 发票号码
9866
+ */
9867
+ Number?: string;
9868
+ /**
9869
+ * 价税合计(小写)
9870
+ */
9871
+ Total?: string;
9872
+ /**
9873
+ * 价税合计(大写)
9874
+ */
9875
+ TotalCn?: string;
9876
+ /**
9877
+ * 发票消费类型
9878
+ */
9879
+ Kind?: string;
9880
+ /**
9881
+ * 省
9882
+ */
9883
+ Province?: string;
9884
+ /**
9885
+ * 市
9886
+ */
9887
+ City?: string;
9888
+ /**
9889
+ * 是否存在二维码(1:有,0:无)
9890
+ */
9891
+ QRCodeMark?: number;
9892
+ /**
9893
+ * 是否有公司印章(0:没有,1:有)
9894
+ */
9895
+ CompanySealMark?: number;
9896
+ }
9495
9897
  /**
9496
9898
  * InsuranceBillOCR请求参数结构体
9497
9899
  */
@@ -9513,19 +9915,21 @@ export interface InsuranceBillOCRRequest {
9513
9915
  ImageUrl?: string;
9514
9916
  }
9515
9917
  /**
9516
- * QrcodeOCR请求参数结构体
9918
+ * GeneralHandwritingOCR返回参数结构体
9517
9919
  */
9518
- export interface QrcodeOCRRequest {
9920
+ export interface GeneralHandwritingOCRResponse {
9519
9921
  /**
9520
- * 图片的 Base64 值。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
9521
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
9922
+ * 检测到的文本信息,具体内容请点击左侧链接。
9522
9923
  */
9523
- ImageBase64?: string;
9924
+ TextDetections: Array<TextGeneralHandwriting>;
9524
9925
  /**
9525
- * 图片的 Url 地址。要求图片经Base64编码后不超过 7M,支持PNG、JPG、JPEG格式。
9526
- 建议图片存储于腾讯云,可保障更高的下载速度和稳定性。
9926
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
9527
9927
  */
9528
- ImageUrl?: string;
9928
+ Angel: number;
9929
+ /**
9930
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9931
+ */
9932
+ RequestId?: string;
9529
9933
  }
9530
9934
  /**
9531
9935
  * 港澳台来往内地通行证背面字段信息
@@ -9637,27 +10041,6 @@ export interface QuestionBlockObj {
9637
10041
  */
9638
10042
  QuestionBboxCoord: Rect;
9639
10043
  }
9640
- /**
9641
- * 增值税普通发票(卷票)条目
9642
- */
9643
- export interface VatRollItem {
9644
- /**
9645
- * 项目名称
9646
- */
9647
- Name?: string;
9648
- /**
9649
- * 数量
9650
- */
9651
- Quantity?: string;
9652
- /**
9653
- * 单价
9654
- */
9655
- Price?: string;
9656
- /**
9657
- * 金额
9658
- */
9659
- Total?: string;
9660
- }
9661
10044
  /**
9662
10045
  * AdvertiseOCR返回参数结构体
9663
10046
  */
@@ -10081,6 +10464,63 @@ export interface EstateCertOCRRequest {
10081
10464
  */
10082
10465
  ImageUrl?: string;
10083
10466
  }
10467
+ /**
10468
+ * 外国人永久居留证信息返回
10469
+ */
10470
+ export interface PermanentResidencePermitInfo {
10471
+ /**
10472
+ * 姓名(人像面)
10473
+ */
10474
+ Name?: ContentInfo;
10475
+ /**
10476
+ * 性别(人像面)
10477
+ */
10478
+ Sex?: ContentInfo;
10479
+ /**
10480
+ * 民族(人像面)
10481
+ */
10482
+ Nation?: ContentInfo;
10483
+ /**
10484
+ * 出生日期(人像面)
10485
+ */
10486
+ Birth?: ContentInfo;
10487
+ /**
10488
+ * 地址(人像面)
10489
+ */
10490
+ Address?: ContentInfo;
10491
+ /**
10492
+ * 公民身份号码(人像面)
10493
+ */
10494
+ IdNum?: ContentInfo;
10495
+ /**
10496
+ * 发证机关(国徽面)
10497
+ */
10498
+ Authority?: ContentInfo;
10499
+ /**
10500
+ * 证件有效期(国徽面)
10501
+ */
10502
+ ValidDate?: ContentInfo;
10503
+ /**
10504
+ * WarnInfos,告警信息
10505
+ */
10506
+ WarnInfos?: CardWarnInfo;
10507
+ /**
10508
+ * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
10509
+ */
10510
+ CardImage?: ContentInfo;
10511
+ /**
10512
+ * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
10513
+ */
10514
+ PortraitImage?: ContentInfo;
10515
+ /**
10516
+ * 持证人持有号码,外国人永久居留证 返回该字段
10517
+ */
10518
+ HolderNum?: ContentInfo;
10519
+ /**
10520
+ * 国籍,外国人永久居留证 返回该字段
10521
+ */
10522
+ Nationality?: ContentInfo;
10523
+ }
10084
10524
  /**
10085
10525
  * BizLicenseOCR返回参数结构体
10086
10526
  */
@@ -10532,6 +10972,10 @@ export interface RecognizeForeignPermanentResidentIdCardRequest {
10532
10972
  示例值:1
10533
10973
  */
10534
10974
  PdfPageNumber?: number;
10975
+ /**
10976
+ * 是否返回头像和位置坐标
10977
+ */
10978
+ CropPortrait?: boolean;
10535
10979
  }
10536
10980
  /**
10537
10981
  * GeneralFastOCR返回参数结构体