tencentcloud-sdk-nodejs-ocr 4.0.715 → 4.0.717

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.
@@ -120,11 +120,11 @@ export interface InvoiceItem {
120
120
  */
121
121
  Page?: number;
122
122
  /**
123
- * 发票详细类型,详见上方 SubType 返回值说明
123
+ * 发票详细类型,详见票据识别(高级版)接口文档说明中 SubType 返回值说明
124
124
  */
125
125
  SubType?: string;
126
126
  /**
127
- * 发票类型描述,详见上方 TypeDescription 返回值说明
127
+ * 发票类型描述,详见票据识别(高级版)接口文档说明中 TypeDescription 返回值说明
128
128
  */
129
129
  TypeDescription?: string;
130
130
  /**
@@ -135,6 +135,10 @@ export interface InvoiceItem {
135
135
  * 发票详细类型描述,详见上方 SubType 返回值说明
136
136
  */
137
137
  SubTypeDescription?: string;
138
+ /**
139
+ * 该发票中所有字段坐标信息。包括字段英文名称、字段值所在位置四点坐标、字段所属行号,具体内容请点击左侧链接。
140
+ */
141
+ ItemPolygon?: Array<ItemPolygonInfo>;
138
142
  }
139
143
  /**
140
144
  * BankSlipOCR请求参数结构体
@@ -627,7 +631,7 @@ export interface FinanBillSliceOCRResponse {
627
631
  */
628
632
  export interface DriverLicenseOCRResponse {
629
633
  /**
630
- * 姓名
634
+ * 驾驶证正页姓名
631
635
  */
632
636
  Name?: string;
633
637
  /**
@@ -664,7 +668,7 @@ export interface DriverLicenseOCRResponse {
664
668
  */
665
669
  EndDate?: string;
666
670
  /**
667
- * 证号
671
+ * 驾驶证正页证号
668
672
  */
669
673
  CardCode?: string;
670
674
  /**
@@ -709,6 +713,14 @@ export interface DriverLicenseOCRResponse {
709
713
  * 生成时间(仅电子驾驶证支持返回该字段)
710
714
  */
711
715
  GenerateTime?: string;
716
+ /**
717
+ * 驾驶证副页姓名
718
+ */
719
+ BackPageName?: string;
720
+ /**
721
+ * 驾驶证副页证号
722
+ */
723
+ BackPageCardCode?: string;
712
724
  /**
713
725
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
714
726
  */
@@ -1393,6 +1405,7 @@ export interface DriverLicenseOCRRequest {
1393
1405
  /**
1394
1406
  * FRONT 为驾驶证主页正面(有红色印章的一面),
1395
1407
  BACK 为驾驶证副页正面(有档案编号的一面)。
1408
+ DOUBLE 支持自动识别驾驶证正副页单面,和正副双面同框识别
1396
1409
  默认值为:FRONT。
1397
1410
  */
1398
1411
  CardSide?: string;
@@ -2609,6 +2622,10 @@ export interface RecognizeGeneralInvoiceRequest {
2609
2622
  * 是否返回切割图片base64,默认值为false。
2610
2623
  */
2611
2624
  EnableCutImage?: boolean;
2625
+ /**
2626
+ * 是否打开字段坐标返回。默认为false。
2627
+ */
2628
+ EnableItemPolygon?: boolean;
2612
2629
  }
2613
2630
  /**
2614
2631
  * GeneralBasicOCR返回参数结构体
@@ -3185,29 +3202,21 @@ export interface GroupInfo {
3185
3202
  Groups?: Array<LineInfo>;
3186
3203
  }
3187
3204
  /**
3188
- * OrgCodeCertOCR返回参数结构体
3205
+ * 发票字段坐标信息。包括字段英文名称、字段值所在位置的四点坐标、字段所属行号,具体内容请点击左侧链接。
3189
3206
  */
3190
- export interface OrgCodeCertOCRResponse {
3191
- /**
3192
- * 代码
3193
- */
3194
- OrgCode?: string;
3207
+ export interface ItemPolygonInfo {
3195
3208
  /**
3196
- * 机构名称
3197
- */
3198
- Name?: string;
3199
- /**
3200
- * 地址
3209
+ * 发票的英文字段名称(如Title)
3201
3210
  */
3202
- Address?: string;
3211
+ Key?: string;
3203
3212
  /**
3204
- * 有效期
3213
+ * 字段值所在位置的四点坐标
3205
3214
  */
3206
- ValidDate?: string;
3215
+ Polygon?: Polygon;
3207
3216
  /**
3208
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3217
+ * 字段属于第几行,用于相同字段的排版,如发票明细表格项目,普通字段使用默认值为-1,表示无列排版。
3209
3218
  */
3210
- RequestId?: string;
3219
+ Row?: number;
3211
3220
  }
3212
3221
  /**
3213
3222
  * PermitOCR请求参数结构体
@@ -7534,44 +7543,25 @@ export interface BusInvoiceOCRRequest {
7534
7543
  PdfPageNumber?: number;
7535
7544
  }
7536
7545
  /**
7537
- * QuotaInvoiceOCR返回参数结构体
7546
+ * OrgCodeCertOCR返回参数结构体
7538
7547
  */
7539
- export interface QuotaInvoiceOCRResponse {
7540
- /**
7541
- * 发票号码
7542
- */
7543
- InvoiceNum?: string;
7544
- /**
7545
- * 发票代码
7546
- */
7547
- InvoiceCode?: string;
7548
- /**
7549
- * 大写金额
7550
- */
7551
- Rate?: string;
7552
- /**
7553
- * 小写金额
7554
- */
7555
- RateNum?: string;
7548
+ export interface OrgCodeCertOCRResponse {
7556
7549
  /**
7557
- * 发票消费类型
7550
+ * 代码
7558
7551
  */
7559
- InvoiceType?: string;
7552
+ OrgCode?: string;
7560
7553
  /**
7561
- *
7562
- 注意:此字段可能返回 null,表示取不到有效值。
7554
+ * 机构名称
7563
7555
  */
7564
- Province?: string;
7556
+ Name?: string;
7565
7557
  /**
7566
- *
7567
- 注意:此字段可能返回 null,表示取不到有效值。
7558
+ * 地址
7568
7559
  */
7569
- City?: string;
7560
+ Address?: string;
7570
7561
  /**
7571
- * 是否有公司印章(1有 0无 空为识别不出)
7572
- 注意:此字段可能返回 null,表示取不到有效值。
7562
+ * 有效期
7573
7563
  */
7574
- HasStamp?: string;
7564
+ ValidDate?: string;
7575
7565
  /**
7576
7566
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
7577
7567
  */
@@ -8533,6 +8523,50 @@ export interface FinanBillOCRRequest {
8533
8523
  */
8534
8524
  ImageUrl?: string;
8535
8525
  }
8526
+ /**
8527
+ * QuotaInvoiceOCR返回参数结构体
8528
+ */
8529
+ export interface QuotaInvoiceOCRResponse {
8530
+ /**
8531
+ * 发票号码
8532
+ */
8533
+ InvoiceNum?: string;
8534
+ /**
8535
+ * 发票代码
8536
+ */
8537
+ InvoiceCode?: string;
8538
+ /**
8539
+ * 大写金额
8540
+ */
8541
+ Rate?: string;
8542
+ /**
8543
+ * 小写金额
8544
+ */
8545
+ RateNum?: string;
8546
+ /**
8547
+ * 发票消费类型
8548
+ */
8549
+ InvoiceType?: string;
8550
+ /**
8551
+ * 省
8552
+ 注意:此字段可能返回 null,表示取不到有效值。
8553
+ */
8554
+ Province?: string;
8555
+ /**
8556
+ * 市
8557
+ 注意:此字段可能返回 null,表示取不到有效值。
8558
+ */
8559
+ City?: string;
8560
+ /**
8561
+ * 是否有公司印章(1有 0无 空为识别不出)
8562
+ 注意:此字段可能返回 null,表示取不到有效值。
8563
+ */
8564
+ HasStamp?: string;
8565
+ /**
8566
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8567
+ */
8568
+ RequestId?: string;
8569
+ }
8536
8570
  /**
8537
8571
  * 二手车销售统一发票
8538
8572
  */