tencentcloud-sdk-nodejs-ocr 4.0.971 → 4.0.974

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.
@@ -51,31 +51,31 @@ export interface TextWaybill {
51
51
  /**
52
52
  * 收件人姓名
53
53
  */
54
- RecName: WaybillObj;
54
+ RecName?: WaybillObj;
55
55
  /**
56
56
  * 收件人手机号
57
57
  */
58
- RecNum: WaybillObj;
58
+ RecNum?: WaybillObj;
59
59
  /**
60
60
  * 收件人地址
61
61
  */
62
- RecAddr: WaybillObj;
62
+ RecAddr?: WaybillObj;
63
63
  /**
64
64
  * 寄件人姓名
65
65
  */
66
- SenderName: WaybillObj;
66
+ SenderName?: WaybillObj;
67
67
  /**
68
68
  * 寄件人手机号
69
69
  */
70
- SenderNum: WaybillObj;
70
+ SenderNum?: WaybillObj;
71
71
  /**
72
72
  * 寄件人地址
73
73
  */
74
- SenderAddr: WaybillObj;
74
+ SenderAddr?: WaybillObj;
75
75
  /**
76
76
  * 运单号
77
77
  */
78
- WaybillNum: WaybillObj;
78
+ WaybillNum?: WaybillObj;
79
79
  }
80
80
  /**
81
81
  * RecognizeOnlineTaxiItineraryOCR返回参数结构体
@@ -409,11 +409,11 @@ export interface TextDetectionResult {
409
409
  /**
410
410
  * 识别出的文本行内容
411
411
  */
412
- Value: string;
412
+ Value?: string;
413
413
  /**
414
414
  * 坐标,以四个顶点坐标表示
415
415
  */
416
- Polygon: Array<Coord>;
416
+ Polygon?: Array<Coord>;
417
417
  }
418
418
  /**
419
419
  * 混贴票据单张发票识别信息
@@ -425,7 +425,7 @@ export interface MixedInvoiceItem {
425
425
  FailedOperation.UnKnowError:表示识别失败;
426
426
  其它错误码见各个票据接口的定义。
427
427
  */
428
- Code: string;
428
+ Code?: string;
429
429
  /**
430
430
  * 识别出的图片所属的票据类型。
431
431
  -1:未知类型
@@ -443,19 +443,19 @@ export interface MixedInvoiceItem {
443
443
  15:非税发票
444
444
  16:全电发票
445
445
  */
446
- Type: number;
446
+ Type?: number;
447
447
  /**
448
448
  * 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
449
449
  */
450
- Rect: Rect;
450
+ Rect?: Rect;
451
451
  /**
452
452
  * 识别出的图片在混贴票据图片中的旋转角度。
453
453
  */
454
- Angle: number;
454
+ Angle?: number;
455
455
  /**
456
456
  * 识别到的内容。
457
457
  */
458
- SingleInvoiceInfos: Array<SingleInvoiceInfo>;
458
+ SingleInvoiceInfos?: Array<SingleInvoiceInfo>;
459
459
  /**
460
460
  * 发票处于识别图片或PDF文件中的页教,默认从1开始。
461
461
  */
@@ -516,51 +516,51 @@ export interface EstateCertOCRResponse {
516
516
  /**
517
517
  * 权利人
518
518
  */
519
- Obligee: string;
519
+ Obligee?: string;
520
520
  /**
521
521
  * 共有情况
522
522
  */
523
- Ownership: string;
523
+ Ownership?: string;
524
524
  /**
525
525
  * 坐落
526
526
  */
527
- Location: string;
527
+ Location?: string;
528
528
  /**
529
529
  * 不动产单元号
530
530
  */
531
- Unit: string;
531
+ Unit?: string;
532
532
  /**
533
533
  * 权利类型
534
534
  */
535
- Type: string;
535
+ Type?: string;
536
536
  /**
537
537
  * 权利性质
538
538
  */
539
- Property: string;
539
+ Property?: string;
540
540
  /**
541
541
  * 用途
542
542
  */
543
- Usage: string;
543
+ Usage?: string;
544
544
  /**
545
545
  * 面积
546
546
  */
547
- Area: string;
547
+ Area?: string;
548
548
  /**
549
549
  * 使用期限
550
550
  */
551
- Term: string;
551
+ Term?: string;
552
552
  /**
553
553
  * 权利其他状况,多行会用换行符\n连接。
554
554
  */
555
- Other: string;
555
+ Other?: string;
556
556
  /**
557
557
  * 图片旋转角度
558
558
  */
559
- Angle: number;
559
+ Angle?: number;
560
560
  /**
561
561
  * 不动产权号
562
562
  */
563
- Number: string;
563
+ Number?: string;
564
564
  /**
565
565
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
566
566
  */
@@ -1236,19 +1236,19 @@ export interface Rect {
1236
1236
  /**
1237
1237
  * 左上角x
1238
1238
  */
1239
- X: number;
1239
+ X?: number;
1240
1240
  /**
1241
1241
  * 左上角y
1242
1242
  */
1243
- Y: number;
1243
+ Y?: number;
1244
1244
  /**
1245
1245
  * 宽度
1246
1246
  */
1247
- Width: number;
1247
+ Width?: number;
1248
1248
  /**
1249
1249
  * 高度
1250
1250
  */
1251
- Height: number;
1251
+ Height?: number;
1252
1252
  }
1253
1253
  /**
1254
1254
  * 全部车牌信息
@@ -1503,30 +1503,57 @@ export interface EnterpriseLicenseOCRResponse {
1503
1503
  RequestId?: string;
1504
1504
  }
1505
1505
  /**
1506
- * 印章信息
1506
+ * RecognizeKoreanDrivingLicenseOCR返回参数结构体
1507
1507
  */
1508
- export interface SealInfo {
1508
+ export interface RecognizeKoreanDrivingLicenseOCRResponse {
1509
1509
  /**
1510
- * 印章主体内容
1510
+ * 身份证号码
1511
1511
  */
1512
- SealBody: string;
1512
+ ID?: string;
1513
1513
  /**
1514
- * 印章坐标
1514
+ * 驾照号码
1515
1515
  */
1516
- Location: Rect;
1516
+ LicenseNumber?: string;
1517
1517
  /**
1518
- * 印章其它文本内容
1518
+ * 居民登记号码
1519
1519
  */
1520
- OtherTexts: Array<string>;
1520
+ Number?: string;
1521
1521
  /**
1522
- * 印章类型,表示为:
1523
- 圆形印章:0
1524
- 椭圆形印章:1
1525
- 方形印章:2
1526
- 菱形印章:3
1527
- 三角形印章:4
1522
+ * 驾照类型
1528
1523
  */
1529
- SealShape: string;
1524
+ Type?: string;
1525
+ /**
1526
+ * 地址
1527
+ */
1528
+ Address?: string;
1529
+ /**
1530
+ * 姓名
1531
+ */
1532
+ Name?: string;
1533
+ /**
1534
+ * 换证时间
1535
+ */
1536
+ AptitudeTesDate?: string;
1537
+ /**
1538
+ * 发证日期
1539
+ */
1540
+ DateOfIssue?: string;
1541
+ /**
1542
+ * 人像截图Base64后的结果
1543
+ */
1544
+ Photo?: string;
1545
+ /**
1546
+ * 性别
1547
+ */
1548
+ Sex?: string;
1549
+ /**
1550
+ * 生日,格式为dd/mm/yyyy
1551
+ */
1552
+ Birthday?: string;
1553
+ /**
1554
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1555
+ */
1556
+ RequestId?: string;
1530
1557
  }
1531
1558
  /**
1532
1559
  * RecognizeIndonesiaIDCardOCR请求参数结构体
@@ -1559,6 +1586,30 @@ export interface RecognizeIndonesiaIDCardOCRRequest {
1559
1586
  */
1560
1587
  Scene?: string;
1561
1588
  }
1589
+ /**
1590
+ * RecognizeKoreanDrivingLicenseOCR请求参数结构体
1591
+ */
1592
+ export interface RecognizeKoreanDrivingLicenseOCRRequest {
1593
+ /**
1594
+ * 图片的 Base64 值。
1595
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1596
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
1597
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
1598
+ */
1599
+ ImageBase64?: string;
1600
+ /**
1601
+ * 图片的 Url 地址。
1602
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
1603
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
1604
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
1605
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
1606
+ */
1607
+ ImageUrl?: string;
1608
+ /**
1609
+ * 是否返回人像照片。
1610
+ */
1611
+ ReturnHeadImage?: boolean;
1612
+ }
1562
1613
  /**
1563
1614
  * 通用机打发票信息
1564
1615
  */
@@ -1567,15 +1618,15 @@ export interface InvoiceGeneralInfo {
1567
1618
  * 识别出的字段名称(关键字),支持以下字段识别(注:下划线表示一个字段):
1568
1619
  发票代码、发票号码、日期、合计金额(小写)、合计金额(大写)、购买方识别号、销售方识别号、校验码、购买方名称、销售方名称、时间、种类、发票消费类型、省、市、是否有公司印章、发票名称、<span style="text-decoration:underline">购买方地址、电话</span>、<span style="text-decoration:underline">销售方地址、电话</span>、购买方开户行及账号、销售方开户行及账号、经办人取票用户、经办人支付信息、经办人商户号、经办人订单号、<span style="text-decoration:underline">货物或应税劳务、服务名称</span>、数量、单价、税率、税额、金额、单位、规格型号、合计税额、合计金额、备注、收款人、复核、开票人、密码区、行业分类
1569
1620
  */
1570
- Name: string;
1621
+ Name?: string;
1571
1622
  /**
1572
1623
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1573
1624
  */
1574
- Value: string;
1625
+ Value?: string;
1575
1626
  /**
1576
1627
  * 文本行在旋转纠正之后的图像中的像素坐标。
1577
1628
  */
1578
- Rect: Rect;
1629
+ Rect?: Rect;
1579
1630
  }
1580
1631
  /**
1581
1632
  * 增值税发票识别结果
@@ -1585,17 +1636,17 @@ export interface TextVatInvoice {
1585
1636
  * 识别出的字段名称(关键字)。支持以下字段的识别:
1586
1637
  发票代码、 发票号码、 打印发票代码、 打印发票号码、 开票日期、 购买方识别号、 小写金额、 价税合计(大写)、 销售方识别号、 校验码、 购买方名称、 销售方名称、 税额、 复核、 联次名称、 备注、 联次、 密码区、 开票人、 收款人、 (货物或应税劳务、服务名称)、省、 市、 服务类型、 通行费标志、 是否代开、 是否收购、 合计金额、 是否有公司印章、 发票消费类型、 车船税、 机器编号、 成品油标志、 税率、 合计税额、 (购买方地址、电话)、 (销售方地址、电话)、 单价、 金额、 销售方开户行及账号、 购买方开户行及账号、 规格型号、 发票名称、 单位、 数量、 校验码备选、 校验码后六位备选、发票号码备选、车牌号、类型、通行日期起、通行日期止、发票类型。
1587
1638
  */
1588
- Name: string;
1639
+ Name?: string;
1589
1640
  /**
1590
1641
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
1591
1642
  */
1592
- Value: string;
1643
+ Value?: string;
1593
1644
  /**
1594
1645
  * 字段在原图中的中的四点坐标。
1595
1646
  注意:此字段可能返回 null,表示取不到有效值。
1596
1647
  注意:此字段可能返回 null,表示取不到有效值。
1597
1648
  */
1598
- Polygon: Polygon;
1649
+ Polygon?: Polygon;
1599
1650
  }
1600
1651
  /**
1601
1652
  * InstitutionOCR返回参数结构体
@@ -1912,7 +1963,7 @@ export interface InvoiceDetectInfo {
1912
1963
  /**
1913
1964
  * 识别出的图片在混贴票据图片中的旋转角度。
1914
1965
  */
1915
- Angle: number;
1966
+ Angle?: number;
1916
1967
  /**
1917
1968
  * 识别出的图片所属的票据类型。
1918
1969
  -1:未知类型
@@ -1932,16 +1983,16 @@ export interface InvoiceDetectInfo {
1932
1983
  13:过路过桥费发票
1933
1984
  14:购物小票
1934
1985
  */
1935
- Type: number;
1986
+ Type?: number;
1936
1987
  /**
1937
1988
  * 识别出的图片在混贴票据图片中的位置信息。与Angel结合可以得出原图位置,组成RotatedRect((X+0.5\*Width,Y+0.5\*Height), (Width, Height), Angle),详情可参考OpenCV文档。
1938
1989
  */
1939
- Rect: Rect;
1990
+ Rect?: Rect;
1940
1991
  /**
1941
1992
  * 入参 ReturnImage 为 True 时返回 Base64 编码后的图片。
1942
1993
  注意:此字段可能返回 null,表示取不到有效值。
1943
1994
  */
1944
- Image: string;
1995
+ Image?: string;
1945
1996
  }
1946
1997
  /**
1947
1998
  * MainlandPermitOCR请求参数结构体
@@ -2176,15 +2227,15 @@ export interface OnlineTaxiItineraryInfo {
2176
2227
  * 识别出的字段名称(关键字),支持以下字段:
2177
2228
  发票代码、 机打代码、 发票号码、 发动机号码、 合格证号、 机打号码、 价税合计(小写)、 销货单位名称、 身份证号码/组织机构代码、 购买方名称、 销售方纳税人识别号、 购买方纳税人识别号、主管税务机关、 主管税务机关代码、 开票日期、 不含税价(小写)、 吨位、增值税税率或征收率、 车辆识别代号/车架号码、 增值税税额、 厂牌型号、 省、 市、 发票消费类型、 销售方电话、 销售方账号、 产地、 进口证明书号、 车辆类型、 机器编号、备注、开票人、限乘人数、商检单号、销售方地址、销售方开户银行、价税合计、发票类型。
2178
2229
  */
2179
- Name: string;
2230
+ Name?: string;
2180
2231
  /**
2181
2232
  * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
2182
2233
  */
2183
- Value: string;
2234
+ Value?: string;
2184
2235
  /**
2185
2236
  * 字段所在行,下标从0开始,非行字段或未能识别行号的返回-1
2186
2237
  */
2187
- Row: number;
2238
+ Row?: number;
2188
2239
  }
2189
2240
  /**
2190
2241
  * 机票详细信息元组
@@ -2308,11 +2359,11 @@ export interface FinanBillInfo {
2308
2359
  【银行承兑汇票】或【商业承兑汇票】
2309
2360
  出票日期、行号1、行号2、出票人全称、出票人账号、付款行全称、收款人全称、收款人账号、收款人开户行、出票金额大写、出票金额小写、汇票到期日、付款行行号、付款行地址。
2310
2361
  */
2311
- Name: string;
2362
+ Name?: string;
2312
2363
  /**
2313
2364
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2314
2365
  */
2315
- Value: string;
2366
+ Value?: string;
2316
2367
  }
2317
2368
  /**
2318
2369
  * TrainTicketOCR返回参数结构体
@@ -2410,27 +2461,27 @@ export interface RecognizePhilippinesTinIDOCRResponse {
2410
2461
  /**
2411
2462
  * 人像照片Base64后的结果
2412
2463
  */
2413
- HeadPortrait: TextDetectionResult;
2464
+ HeadPortrait?: TextDetectionResult;
2414
2465
  /**
2415
2466
  * 编码
2416
2467
  */
2417
- LicenseNumber: TextDetectionResult;
2468
+ LicenseNumber?: TextDetectionResult;
2418
2469
  /**
2419
2470
  * 姓名
2420
2471
  */
2421
- FullName: TextDetectionResult;
2472
+ FullName?: TextDetectionResult;
2422
2473
  /**
2423
2474
  * 地址
2424
2475
  */
2425
- Address: TextDetectionResult;
2476
+ Address?: TextDetectionResult;
2426
2477
  /**
2427
2478
  * 生日
2428
2479
  */
2429
- Birthday: TextDetectionResult;
2480
+ Birthday?: TextDetectionResult;
2430
2481
  /**
2431
2482
  * 发证日期
2432
2483
  */
2433
- IssueDate: TextDetectionResult;
2484
+ IssueDate?: TextDetectionResult;
2434
2485
  /**
2435
2486
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2436
2487
  */
@@ -2444,15 +2495,15 @@ export interface TollInvoiceInfo {
2444
2495
  * 识别出的字段名称(关键字)。支持以下字段的识别:
2445
2496
  发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志。
2446
2497
  */
2447
- Name: string;
2498
+ Name?: string;
2448
2499
  /**
2449
2500
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2450
2501
  */
2451
- Value: string;
2502
+ Value?: string;
2452
2503
  /**
2453
2504
  * 文本行在旋转纠正之后的图像中的像素坐标。
2454
2505
  */
2455
- Rect: Rect;
2506
+ Rect?: Rect;
2456
2507
  }
2457
2508
  /**
2458
2509
  * 银行回单识别出的字段
@@ -2462,15 +2513,15 @@ export interface BankSlipInfo {
2462
2513
  * 识别出的字段名称(关键字),支持以下字段:
2463
2514
  付款开户行、收款开户行、付款账号、收款账号、回单类型、回单编号、币种、流水号、凭证号码、交易机构、交易金额、手续费、日期等字段信息。
2464
2515
  */
2465
- Name: string;
2516
+ Name?: string;
2466
2517
  /**
2467
2518
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2468
2519
  */
2469
- Value: string;
2520
+ Value?: string;
2470
2521
  /**
2471
2522
  * 文本行在旋转纠正之后的图像中的像素坐标。
2472
2523
  */
2473
- Rect: Rect;
2524
+ Rect?: Rect;
2474
2525
  }
2475
2526
  /**
2476
2527
  * SmartStructuralOCR返回参数结构体
@@ -2480,11 +2531,11 @@ export interface SmartStructuralOCRResponse {
2480
2531
  * 图片旋转角度(角度制),文本的水平方向
2481
2532
  为 0;顺时针为正,逆时针为负
2482
2533
  */
2483
- Angle: number;
2534
+ Angle?: number;
2484
2535
  /**
2485
2536
  * 识别信息
2486
2537
  */
2487
- StructuralItems: Array<StructuralItem>;
2538
+ StructuralItems?: Array<StructuralItem>;
2488
2539
  /**
2489
2540
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2490
2541
  */
@@ -2532,15 +2583,15 @@ export interface BusInvoiceInfo {
2532
2583
  * 识别出的字段名称(关键字),支持以下字段:
2533
2584
  发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次。
2534
2585
  */
2535
- Name: string;
2586
+ Name?: string;
2536
2587
  /**
2537
2588
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
2538
2589
  */
2539
- Value: string;
2590
+ Value?: string;
2540
2591
  /**
2541
2592
  * 文本行在旋转纠正之后的图像中的像素坐标。
2542
2593
  */
2543
- Rect: Rect;
2594
+ Rect?: Rect;
2544
2595
  }
2545
2596
  /**
2546
2597
  * 单元格数据
@@ -4540,15 +4591,15 @@ export interface SingleInvoiceInfo {
4540
4591
  /**
4541
4592
  * 识别出的字段名称
4542
4593
  */
4543
- Name: string;
4594
+ Name?: string;
4544
4595
  /**
4545
4596
  * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
4546
4597
  */
4547
- Value: string;
4598
+ Value?: string;
4548
4599
  /**
4549
4600
  * 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
4550
4601
  */
4551
- Row: number;
4602
+ Row?: number;
4552
4603
  }
4553
4604
  /**
4554
4605
  * RecognizeContainerOCR请求参数结构体
@@ -4756,15 +4807,15 @@ export interface EduPaperOCRResponse {
4756
4807
  /**
4757
4808
  * 检测到的文本信息,具体内容请点击左侧链接。
4758
4809
  */
4759
- EduPaperInfos: Array<TextEduPaper>;
4810
+ EduPaperInfos?: Array<TextEduPaper>;
4760
4811
  /**
4761
4812
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。
4762
4813
  */
4763
- Angle: number;
4814
+ Angle?: number;
4764
4815
  /**
4765
4816
  * 结构化方式输出,具体内容请点击左侧链接。
4766
4817
  */
4767
- QuestionBlockInfos: Array<QuestionBlockObj>;
4818
+ QuestionBlockInfos?: Array<QuestionBlockObj>;
4768
4819
  /**
4769
4820
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4770
4821
  */
@@ -5503,24 +5554,41 @@ export interface CardWarnInfo {
5503
5554
  PSCheck?: number;
5504
5555
  }
5505
5556
  /**
5506
- * VehicleRegCertOCR请求参数结构体
5557
+ * RecognizeKoreanIDCardOCR返回参数结构体
5507
5558
  */
5508
- export interface VehicleRegCertOCRRequest {
5559
+ export interface RecognizeKoreanIDCardOCRResponse {
5509
5560
  /**
5510
- * 图片的 Base64 值。
5511
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5512
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5513
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5561
+ * 身份证号码
5514
5562
  */
5515
- ImageBase64?: string;
5563
+ ID?: string;
5516
5564
  /**
5517
- * 图片的 Url 地址。
5518
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5519
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5520
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5521
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5565
+ * 地址
5522
5566
  */
5523
- ImageUrl?: string;
5567
+ Address?: string;
5568
+ /**
5569
+ * 姓名
5570
+ */
5571
+ Name?: string;
5572
+ /**
5573
+ * 发证日期
5574
+ */
5575
+ DateOfIssue?: string;
5576
+ /**
5577
+ * 人像截图Base64后的结果
5578
+ */
5579
+ Photo?: string;
5580
+ /**
5581
+ * 性别
5582
+ */
5583
+ Sex?: string;
5584
+ /**
5585
+ * 生日,格式为dd/mm/yyyy
5586
+ */
5587
+ Birthday?: string;
5588
+ /**
5589
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5590
+ */
5591
+ RequestId?: string;
5524
5592
  }
5525
5593
  /**
5526
5594
  * RecognizeTravelCardOCR返回参数结构体
@@ -5773,7 +5841,7 @@ export interface GeneralBasicOCRRequest {
5773
5841
  */
5774
5842
  ImageBase64?: string;
5775
5843
  /**
5776
- * 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5844
+ * 图片/PDF的 Url 地址。要求图片/PDF经Base64编码后不超过 10M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP、PDF格式。图片下载时间不超过 3 秒。图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5777
5845
  */
5778
5846
  ImageUrl?: string;
5779
5847
  /**
@@ -6565,15 +6633,15 @@ export interface ShipInvoiceInfo {
6565
6633
  * 识别出的字段名称(关键字),支持以下字段:
6566
6634
  发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
6567
6635
  */
6568
- Name: string;
6636
+ Name?: string;
6569
6637
  /**
6570
6638
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
6571
6639
  */
6572
- Value: string;
6640
+ Value?: string;
6573
6641
  /**
6574
6642
  * 文本行在旋转纠正之后的图像中的像素坐标。
6575
6643
  */
6576
- Rect: Rect;
6644
+ Rect?: Rect;
6577
6645
  }
6578
6646
  /**
6579
6647
  * 医疗发票识别结果
@@ -6611,7 +6679,7 @@ export interface GeneralAccurateOCRRequest {
6611
6679
  ImageBase64?: string;
6612
6680
  /**
6613
6681
  * 图片的 Url 地址。
6614
- 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。
6682
+ 要求图片经Base64编码后不超过 7M,分辨率建议600*800以上,支持PNG、JPG、JPEG、BMP格式。图片下载时间不超过 3 秒。
6615
6683
  图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6616
6684
  */
6617
6685
  ImageUrl?: string;
@@ -6695,7 +6763,7 @@ export interface ReconstructDocumentRequest {
6695
6763
  */
6696
6764
  FileType: string;
6697
6765
  /**
6698
- * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 ImageUrlImageBase64 必须提供一个,如果都提供,只使用 ImageUrl
6766
+ * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrlFileBase64 必须提供一个,如果都提供,只使用 FileUrl
6699
6767
  */
6700
6768
  FileBase64?: string;
6701
6769
  /**
@@ -6962,11 +7030,11 @@ export interface FinanBillSliceInfo {
6962
7030
  * 识别出的字段名称(关键字),支持以下字段:
6963
7031
  大写金额、小写金额、账号、票号1、票号2、收款人、大写日期、同城交换号、地址-省份、地址-城市、付款行全称、支票密码、支票用途。
6964
7032
  */
6965
- Name: string;
7033
+ Name?: string;
6966
7034
  /**
6967
7035
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
6968
7036
  */
6969
- Value: string;
7037
+ Value?: string;
6970
7038
  }
6971
7039
  /**
6972
7040
  * RideHailingDriverLicenseOCR请求参数结构体
@@ -6988,12 +7056,12 @@ export interface RideHailingDriverLicenseOCRRequest {
6988
7056
  */
6989
7057
  export interface Encryption {
6990
7058
  /**
6991
- * 有加密需求的用户,接入传入kms的CiphertextBlob,关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
7059
+ * 有加密需求的用户,接入传入kms的CiphertextBlob(Base64编码),关于数据加密可查阅[敏感数据加密指引](https://cloud.tencent.com/document/product/866/106048)文档。
6992
7060
  注意:此字段可能返回 null,表示取不到有效值。
6993
7061
  */
6994
7062
  CiphertextBlob: string;
6995
7063
  /**
6996
- * 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符)。
7064
+ * 有加密需求的用户,传入CBC加密的初始向量(客户自定义字符串,长度16字符,Base64编码)。
6997
7065
  注意:此字段可能返回 null,表示取不到有效值。
6998
7066
  */
6999
7067
  Iv: string;
@@ -7383,11 +7451,11 @@ export interface Coord {
7383
7451
  /**
7384
7452
  * 横坐标
7385
7453
  */
7386
- X: number;
7454
+ X?: number;
7387
7455
  /**
7388
7456
  * 纵坐标
7389
7457
  */
7390
- Y: number;
7458
+ Y?: number;
7391
7459
  }
7392
7460
  /**
7393
7461
  * SealOCR返回参数结构体
@@ -7431,15 +7499,15 @@ export interface DutyPaidProofInfo {
7431
7499
  * 识别出的字段名称(关键字),支持以下字段:
7432
7500
  税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。
7433
7501
  */
7434
- Name: string;
7502
+ Name?: string;
7435
7503
  /**
7436
7504
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
7437
7505
  */
7438
- Value: string;
7506
+ Value?: string;
7439
7507
  /**
7440
7508
  * 文本行在旋转纠正之后的图像中的像素坐标。
7441
7509
  */
7442
- Rect: Rect;
7510
+ Rect?: Rect;
7443
7511
  }
7444
7512
  /**
7445
7513
  * FinanBillOCR返回参数结构体
@@ -7559,7 +7627,7 @@ export interface RecognizeEncryptedIDCardOCRResponse {
7559
7627
  */
7560
7628
  ReflectDetailInfos?: Array<ReflectDetailInfo>;
7561
7629
  /**
7562
- * 加密后的数据
7630
+ * 加密后的数据(Base64编码)
7563
7631
  */
7564
7632
  EncryptedBody?: string;
7565
7633
  /**
@@ -7880,7 +7948,7 @@ export interface LineInfo {
7880
7948
  */
7881
7949
  export interface RecognizeEncryptedIDCardOCRRequest {
7882
7950
  /**
7883
- * 请求体被加密后的密文,本接口只支持加密传输
7951
+ * 请求体被加密后的密文(Base64编码),本接口只支持加密传输
7884
7952
  */
7885
7953
  EncryptedBody: string;
7886
7954
  /**
@@ -8520,19 +8588,19 @@ export interface Polygon {
8520
8588
  /**
8521
8589
  * 左上顶点坐标
8522
8590
  */
8523
- LeftTop: Coord;
8591
+ LeftTop?: Coord;
8524
8592
  /**
8525
8593
  * 右上顶点坐标
8526
8594
  */
8527
- RightTop: Coord;
8595
+ RightTop?: Coord;
8528
8596
  /**
8529
8597
  * 右下顶点坐标
8530
8598
  */
8531
- RightBottom: Coord;
8599
+ RightBottom?: Coord;
8532
8600
  /**
8533
8601
  * 左下顶点坐标
8534
8602
  */
8535
- LeftBottom: Coord;
8603
+ LeftBottom?: Coord;
8536
8604
  }
8537
8605
  /**
8538
8606
  * GetTaskState返回参数结构体
@@ -8650,7 +8718,7 @@ export interface InsuranceBillOCRResponse {
8650
8718
  /**
8651
8719
  * 保险单据识别结果,具体内容请点击左侧链接。
8652
8720
  */
8653
- InsuranceBillInfos: Array<InsuranceBillInfo>;
8721
+ InsuranceBillInfos?: Array<InsuranceBillInfo>;
8654
8722
  /**
8655
8723
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8656
8724
  */
@@ -9921,11 +9989,16 @@ export interface GeneralHandwritingOCRResponse {
9921
9989
  /**
9922
9990
  * 检测到的文本信息,具体内容请点击左侧链接。
9923
9991
  */
9924
- TextDetections: Array<TextGeneralHandwriting>;
9992
+ TextDetections?: Array<TextGeneralHandwriting>;
9925
9993
  /**
9926
9994
  * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
9995
+ * @deprecated
9927
9996
  */
9928
- Angel: number;
9997
+ Angel?: number;
9998
+ /**
9999
+ * 图片旋转角度(角度制),文本的水平方向为0°;顺时针为正,逆时针为负。点击查看<a href="https://cloud.tencent.com/document/product/866/45139">如何纠正倾斜文本</a>
10000
+ */
10001
+ Angle?: number;
9929
10002
  /**
9930
10003
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
9931
10004
  */
@@ -10019,6 +10092,26 @@ export interface TableOCRResponse {
10019
10092
  */
10020
10093
  RequestId?: string;
10021
10094
  }
10095
+ /**
10096
+ * VehicleRegCertOCR请求参数结构体
10097
+ */
10098
+ export interface VehicleRegCertOCRRequest {
10099
+ /**
10100
+ * 图片的 Base64 值。
10101
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10102
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10103
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10104
+ */
10105
+ ImageBase64?: string;
10106
+ /**
10107
+ * 图片的 Url 地址。
10108
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10109
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10110
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10111
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10112
+ */
10113
+ ImageUrl?: string;
10114
+ }
10022
10115
  /**
10023
10116
  * 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
10024
10117
  */
@@ -10041,6 +10134,30 @@ export interface QuestionBlockObj {
10041
10134
  */
10042
10135
  QuestionBboxCoord: Rect;
10043
10136
  }
10137
+ /**
10138
+ * RecognizeKoreanIDCardOCR请求参数结构体
10139
+ */
10140
+ export interface RecognizeKoreanIDCardOCRRequest {
10141
+ /**
10142
+ * 图片的 Base64 值。
10143
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10144
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
10145
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
10146
+ */
10147
+ ImageBase64?: string;
10148
+ /**
10149
+ * 图片的 Url 地址。
10150
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
10151
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
10152
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
10153
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
10154
+ */
10155
+ ImageUrl?: string;
10156
+ /**
10157
+ * 是否返回人像照片。
10158
+ */
10159
+ ReturnHeadImage?: boolean;
10160
+ }
10044
10161
  /**
10045
10162
  * AdvertiseOCR返回参数结构体
10046
10163
  */
@@ -10088,15 +10205,15 @@ export interface VatRollInvoiceInfo {
10088
10205
  * 识别出的字段名称(关键字),支持以下字段:
10089
10206
  发票代码、合计金额(小写)、合计金额(大写)、开票日期、发票号码、购买方识别号、销售方识别号、校验码、销售方名称、购买方名称、发票消费类型、省、市、是否有公司印章、单价、金额、数量、服务类型、品名、种类。
10090
10207
  */
10091
- Name: string;
10208
+ Name?: string;
10092
10209
  /**
10093
10210
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
10094
10211
  */
10095
- Value: string;
10212
+ Value?: string;
10096
10213
  /**
10097
10214
  * 文本行在旋转纠正之后的图像中的像素坐标。
10098
10215
  */
10099
- Rect: Rect;
10216
+ Rect?: Rect;
10100
10217
  }
10101
10218
  /**
10102
10219
  * RecognizeOnlineTaxiItineraryOCR请求参数结构体
@@ -10704,33 +10821,33 @@ export interface BankCardOCRResponse {
10704
10821
  /**
10705
10822
  * 卡号
10706
10823
  */
10707
- CardNo: string;
10824
+ CardNo?: string;
10708
10825
  /**
10709
10826
  * 银行信息
10710
10827
  */
10711
- BankInfo: string;
10828
+ BankInfo?: string;
10712
10829
  /**
10713
10830
  * 有效期,格式如:07/2023
10714
10831
  */
10715
- ValidDate: string;
10832
+ ValidDate?: string;
10716
10833
  /**
10717
10834
  * 卡类型
10718
10835
  */
10719
- CardType: string;
10836
+ CardType?: string;
10720
10837
  /**
10721
10838
  * 卡名字
10722
10839
  */
10723
- CardName: string;
10840
+ CardName?: string;
10724
10841
  /**
10725
10842
  * 切片图片数据
10726
10843
  注意:此字段可能返回 null,表示取不到有效值。
10727
10844
  */
10728
- BorderCutImage: string;
10845
+ BorderCutImage?: string;
10729
10846
  /**
10730
10847
  * 卡号图片数据
10731
10848
  注意:此字段可能返回 null,表示取不到有效值。
10732
10849
  */
10733
- CardNoImage: string;
10850
+ CardNoImage?: string;
10734
10851
  /**
10735
10852
  * WarningCode 告警码列表和释义:
10736
10853
  -9110:银行卡日期无效;
@@ -10741,17 +10858,43 @@ export interface BankCardOCRResponse {
10741
10858
  (告警码可以同时存在多个)
10742
10859
  注意:此字段可能返回 null,表示取不到有效值。
10743
10860
  */
10744
- WarningCode: Array<number | bigint>;
10861
+ WarningCode?: Array<number | bigint>;
10745
10862
  /**
10746
10863
  * 图片质量分数,请求EnableQualityValue时返回(取值范围:0-100,分数越低越模糊,建议阈值≥50)。
10747
10864
  注意:此字段可能返回 null,表示取不到有效值。
10748
10865
  */
10749
- QualityValue: number;
10866
+ QualityValue?: number;
10750
10867
  /**
10751
10868
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10752
10869
  */
10753
10870
  RequestId?: string;
10754
10871
  }
10872
+ /**
10873
+ * 印章信息
10874
+ */
10875
+ export interface SealInfo {
10876
+ /**
10877
+ * 印章主体内容
10878
+ */
10879
+ SealBody: string;
10880
+ /**
10881
+ * 印章坐标
10882
+ */
10883
+ Location: Rect;
10884
+ /**
10885
+ * 印章其它文本内容
10886
+ */
10887
+ OtherTexts: Array<string>;
10888
+ /**
10889
+ * 印章类型,表示为:
10890
+ 圆形印章:0
10891
+ 椭圆形印章:1
10892
+ 方形印章:2
10893
+ 菱形印章:3
10894
+ 三角形印章:4
10895
+ */
10896
+ SealShape: string;
10897
+ }
10755
10898
  /**
10756
10899
  * BusinessCardOCR请求参数结构体
10757
10900
  */
@@ -10791,51 +10934,51 @@ export interface RecognizePhilippinesDrivingLicenseOCRResponse {
10791
10934
  /**
10792
10935
  * 人像照片Base64后的结果
10793
10936
  */
10794
- HeadPortrait: TextDetectionResult;
10937
+ HeadPortrait?: TextDetectionResult;
10795
10938
  /**
10796
10939
  * 姓名
10797
10940
  */
10798
- Name: TextDetectionResult;
10941
+ Name?: TextDetectionResult;
10799
10942
  /**
10800
10943
  * 姓氏
10801
10944
  */
10802
- LastName: TextDetectionResult;
10945
+ LastName?: TextDetectionResult;
10803
10946
  /**
10804
10947
  * 首姓名
10805
10948
  */
10806
- FirstName: TextDetectionResult;
10949
+ FirstName?: TextDetectionResult;
10807
10950
  /**
10808
10951
  * 中间姓名
10809
10952
  */
10810
- MiddleName: TextDetectionResult;
10953
+ MiddleName?: TextDetectionResult;
10811
10954
  /**
10812
10955
  * 国籍
10813
10956
  */
10814
- Nationality: TextDetectionResult;
10957
+ Nationality?: TextDetectionResult;
10815
10958
  /**
10816
10959
  * 性别
10817
10960
  */
10818
- Sex: TextDetectionResult;
10961
+ Sex?: TextDetectionResult;
10819
10962
  /**
10820
10963
  * 地址
10821
10964
  */
10822
- Address: TextDetectionResult;
10965
+ Address?: TextDetectionResult;
10823
10966
  /**
10824
10967
  * 证号
10825
10968
  */
10826
- LicenseNo: TextDetectionResult;
10969
+ LicenseNo?: TextDetectionResult;
10827
10970
  /**
10828
10971
  * 有效期
10829
10972
  */
10830
- ExpiresDate: TextDetectionResult;
10973
+ ExpiresDate?: TextDetectionResult;
10831
10974
  /**
10832
10975
  * 机构代码
10833
10976
  */
10834
- AgencyCode: TextDetectionResult;
10977
+ AgencyCode?: TextDetectionResult;
10835
10978
  /**
10836
10979
  * 出生日期
10837
10980
  */
10838
- Birthday: TextDetectionResult;
10981
+ Birthday?: TextDetectionResult;
10839
10982
  /**
10840
10983
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
10841
10984
  */