tencentcloud-sdk-nodejs-ocr 4.0.212 → 4.0.219

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.
@@ -31,6 +31,19 @@ export interface TextWaybill {
31
31
  */
32
32
  WaybillNum: WaybillObj;
33
33
  }
34
+ /**
35
+ * RecognizeOnlineTaxiItineraryOCR返回参数结构体
36
+ */
37
+ export interface RecognizeOnlineTaxiItineraryOCRResponse {
38
+ /**
39
+ * 网约车行程单识别结果,具体内容请点击左侧链接。
40
+ */
41
+ OnlineTaxiItineraryInfos: Array<OnlineTaxiItineraryInfo>;
42
+ /**
43
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
44
+ */
45
+ RequestId?: string;
46
+ }
34
47
  /**
35
48
  * BankSlipOCR请求参数结构体
36
49
  */
@@ -1321,6 +1334,20 @@ export interface StructuralItem {
1321
1334
  */
1322
1335
  ItemCoord: ItemCoord;
1323
1336
  }
1337
+ /**
1338
+ * 网约车行程单识别结果
1339
+ */
1340
+ export interface OnlineTaxiItineraryInfo {
1341
+ /**
1342
+ * 识别出的字段名称(关键字),支持以下字段:
1343
+ 发票代码、 机打代码、 发票号码、 发动机号码、 合格证号、 机打号码、 价税合计(小写)、 销货单位名称、 身份证号码/组织机构代码、 购买方名称、 销售方纳税人识别号、 购买方纳税人识别号、主管税务机关、 主管税务机关代码、 开票日期、 不含税价(小写)、 吨位、增值税税率或征收率、 车辆识别代号/车架号码、 增值税税额、 厂牌型号、 省、 市、 发票消费类型、 销售方电话、 销售方账号、 产地、 进口证明书号、 车辆类型、 机器编号、备注、开票人、限乘人数、商检单号、销售方地址、销售方开户银行、价税合计、发票类型。
1344
+ */
1345
+ Name: string;
1346
+ /**
1347
+ * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
1348
+ */
1349
+ Value: string;
1350
+ }
1324
1351
  /**
1325
1352
  * PropOwnerCertOCR返回参数结构体
1326
1353
  */
@@ -3203,6 +3230,24 @@ export interface VerifyEnterpriseFourFactorsRequest {
3203
3230
  */
3204
3231
  EnterpriseMark: string;
3205
3232
  }
3233
+ /**
3234
+ * 轮船票字段信息
3235
+ */
3236
+ export interface ShipInvoiceInfo {
3237
+ /**
3238
+ * 识别出的字段名称(关键字),支持以下字段:
3239
+ 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
3240
+ */
3241
+ Name: string;
3242
+ /**
3243
+ * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
3244
+ */
3245
+ Value: string;
3246
+ /**
3247
+ * 文本行在旋转纠正之后的图像中的像素坐标。
3248
+ */
3249
+ Rect: Rect;
3250
+ }
3206
3251
  /**
3207
3252
  * GeneralAccurateOCR请求参数结构体
3208
3253
  */
@@ -4624,38 +4669,38 @@ export interface QuotaInvoiceOCRResponse {
4624
4669
  /**
4625
4670
  * 发票号码
4626
4671
  */
4627
- InvoiceNum?: string;
4672
+ InvoiceNum: string;
4628
4673
  /**
4629
4674
  * 发票代码
4630
4675
  */
4631
- InvoiceCode?: string;
4676
+ InvoiceCode: string;
4632
4677
  /**
4633
4678
  * 大写金额
4634
4679
  */
4635
- Rate?: string;
4680
+ Rate: string;
4636
4681
  /**
4637
4682
  * 小写金额
4638
4683
  */
4639
- RateNum?: string;
4684
+ RateNum: string;
4640
4685
  /**
4641
4686
  * 发票消费类型
4642
4687
  */
4643
- InvoiceType?: string;
4688
+ InvoiceType: string;
4644
4689
  /**
4645
4690
  * 省
4646
4691
  注意:此字段可能返回 null,表示取不到有效值。
4647
4692
  */
4648
- Province?: string;
4693
+ Province: string;
4649
4694
  /**
4650
4695
  * 市
4651
4696
  注意:此字段可能返回 null,表示取不到有效值。
4652
4697
  */
4653
- City?: string;
4698
+ City: string;
4654
4699
  /**
4655
4700
  * 是否有公司印章(1有 0无 空为识别不出)
4656
4701
  注意:此字段可能返回 null,表示取不到有效值。
4657
4702
  */
4658
- HasStamp?: string;
4703
+ HasStamp: string;
4659
4704
  /**
4660
4705
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4661
4706
  */
@@ -4871,22 +4916,32 @@ export interface VatRollInvoiceInfo {
4871
4916
  Rect: Rect;
4872
4917
  }
4873
4918
  /**
4874
- * 轮船票字段信息
4919
+ * RecognizeOnlineTaxiItineraryOCR请求参数结构体
4875
4920
  */
4876
- export interface ShipInvoiceInfo {
4921
+ export interface RecognizeOnlineTaxiItineraryOCRRequest {
4877
4922
  /**
4878
- * 识别出的字段名称(关键字),支持以下字段:
4879
- 发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。
4923
+ * 图片的 Base64 值。
4924
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4925
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
4926
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
4880
4927
  */
4881
- Name: string;
4928
+ ImageBase64?: string;
4882
4929
  /**
4883
- * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
4930
+ * 图片的 Url 地址。
4931
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
4932
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
4933
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
4934
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
4935
+ */
4936
+ ImageUrl?: string;
4937
+ /**
4938
+ * 是否开启PDF识别,默认值为false,开启后可同时支持图片和PDF的识别。
4884
4939
  */
4885
- Value: string;
4940
+ IsPdf?: boolean;
4886
4941
  /**
4887
- * 文本行在旋转纠正之后的图像中的像素坐标。
4942
+ * 需要识别的PDF页面的对应页码,仅支持PDF单页识别,当上传文件为PDF且IsPdf参数值为true时有效,默认值为1。
4888
4943
  */
4889
- Rect: Rect;
4944
+ PdfPageNumber?: number;
4890
4945
  }
4891
4946
  /**
4892
4947
  * IDCardOCR请求参数结构体