tencentcloud-sdk-nodejs-ocr 4.1.9 → 4.1.10

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.
@@ -5871,54 +5871,6 @@ export interface FinancialBill {
5871
5871
  */
5872
5872
  FinancialBillItemDetails?: Array<FinancialBillItemDetails>;
5873
5873
  }
5874
- /**
5875
- * 单页文档识别的内容
5876
- */
5877
- export interface DocumentRecognizeInfo {
5878
- /**
5879
- * 输入PDF文件的页码,从1开始。输入图片的话值始终为1
5880
- 注意:此字段可能返回 null,表示取不到有效值。
5881
- */
5882
- PageNumber?: number;
5883
- /**
5884
- * 旋转角度
5885
-
5886
- 注意:此字段可能返回 null,表示取不到有效值。
5887
- * @deprecated
5888
- */
5889
- Angle?: number;
5890
- /**
5891
- * AI算法识别处理后的图片高度
5892
- 注意:此字段可能返回 null,表示取不到有效值。
5893
- */
5894
- Height?: number;
5895
- /**
5896
- * AI算法识别处理后的图片宽度
5897
- 注意:此字段可能返回 null,表示取不到有效值。
5898
- */
5899
- Width?: number;
5900
- /**
5901
- * 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
5902
- 注意:此字段可能返回 null,表示取不到有效值。
5903
- */
5904
- OriginHeight?: number;
5905
- /**
5906
- * 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
5907
- 注意:此字段可能返回 null,表示取不到有效值。
5908
- */
5909
- OriginWidth?: number;
5910
- /**
5911
- * 文档元素信息
5912
- 注意:此字段可能返回 null,表示取不到有效值。
5913
- */
5914
- Elements?: Array<DocumentElement>;
5915
- /**
5916
- * 旋转角度
5917
-
5918
- 注意:此字段可能返回 null,表示取不到有效值。
5919
- */
5920
- RotatedAngle?: number;
5921
- }
5922
5874
  /**
5923
5875
  * LicensePlateOCR请求参数结构体
5924
5876
  */
@@ -6071,30 +6023,6 @@ export interface TextVehicleBack {
6071
6023
  */
6072
6024
  IssueAuthorityElectronic?: string;
6073
6025
  }
6074
- /**
6075
- * ReconstructDocument返回参数结构体
6076
- */
6077
- export interface ReconstructDocumentResponse {
6078
- /**
6079
- * 识别生成的Markdown文件base64编码的字符串
6080
- 注意:此字段可能返回 null,表示取不到有效值。
6081
- */
6082
- MarkdownBase64?: string;
6083
- /**
6084
- * 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
6085
- 注意:此字段可能返回 null,表示取不到有效值。
6086
- */
6087
- InsetImagePackage?: string;
6088
- /**
6089
- * 输入文件中嵌入的图片中文字内容的识别结果
6090
- 注意:此字段可能返回 null,表示取不到有效值。
6091
- */
6092
- DocumentRecognizeInfo?: Array<DocumentRecognizeInfo>;
6093
- /**
6094
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6095
- */
6096
- RequestId?: string;
6097
- }
6098
6026
  /**
6099
6027
  * GeneralEfficientOCR请求参数结构体
6100
6028
  */
@@ -6741,51 +6669,53 @@ export interface FlightInvoiceOCRResponse {
6741
6669
  RequestId?: string;
6742
6670
  }
6743
6671
  /**
6744
- * ShipInvoiceOCR返回参数结构体
6672
+ * 临时身份证信息返回
6745
6673
  */
6746
- export interface ShipInvoiceOCRResponse {
6674
+ export interface TemporaryIDCardInfo {
6747
6675
  /**
6748
- * 轮船票识别结果,具体内容请点击左侧链接。
6676
+ * 姓名(人像面)
6749
6677
  */
6750
- ShipInvoiceInfos?: Array<ShipInvoiceInfo>;
6678
+ Name?: ContentInfo;
6751
6679
  /**
6752
- * 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
6680
+ * 性别(人像面)
6753
6681
  */
6754
- Angle?: number;
6682
+ Sex?: ContentInfo;
6755
6683
  /**
6756
- * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
6684
+ * 民族(人像面)
6757
6685
  */
6758
- RequestId?: string;
6759
- }
6760
- /**
6761
- * ReconstructDocument请求参数结构体
6762
- */
6763
- export interface ReconstructDocumentRequest {
6686
+ Nation?: ContentInfo;
6764
6687
  /**
6765
- * PDF,Image
6688
+ * 出生日期(人像面)
6766
6689
  */
6767
- FileType: string;
6690
+ Birth?: ContentInfo;
6768
6691
  /**
6769
- * 图片的 Base64 值。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经Base64编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片的 FileUrl、FileBase64 必须提供一个,如果都提供,只使用 FileUrl。
6692
+ * 地址(人像面)
6770
6693
  */
6771
- FileBase64?: string;
6694
+ Address?: ContentInfo;
6772
6695
  /**
6773
- * 图片的 Url 地址。 支持的图片格式:PNG、JPG、JPEG、PDF,暂不支持 GIF 格式。 支持的图片大小:所下载图片经 Base64 编码后不超过 8M。图片下载时间不超过 3 秒。 支持的图片像素:单边介于20-10000px之间。 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
6696
+ * 公民身份号码(人像面)
6774
6697
  */
6775
- FileUrl?: string;
6698
+ IdNum?: ContentInfo;
6776
6699
  /**
6777
- * 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的起始页码,识别的页码包含当前值。
6700
+ * 发证机关(国徽面)
6778
6701
  */
6779
- FileStartPageNumber?: number;
6702
+ Authority?: ContentInfo;
6703
+ /**
6704
+ * 证件有效期(国徽面)
6705
+ */
6706
+ ValidDate?: ContentInfo;
6780
6707
  /**
6781
- * 当传入文件是PDF类型(IsPdf=true)时,用来指定pdf识别的结束页码,识别的页码包含当前值。
6782
- 单次调用,最多支持10页pdf的智能识别。
6708
+ * WarnInfos,告警信息
6709
+ */
6710
+ WarnInfos?: CardWarnInfo;
6711
+ /**
6712
+ * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
6783
6713
  */
6784
- FileEndPageNumber?: number;
6714
+ CardImage?: ContentInfo;
6785
6715
  /**
6786
- * 配置选项,支持配置是否在生成的Markdown中是否嵌入图片
6716
+ * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
6787
6717
  */
6788
- Config?: ReconstructDocumentConfig;
6718
+ PortraitImage?: ContentInfo;
6789
6719
  }
6790
6720
  /**
6791
6721
  * VatInvoiceVerifyNew请求参数结构体
@@ -8621,47 +8551,21 @@ export interface ImageSize {
8621
8551
  Height?: number;
8622
8552
  }
8623
8553
  /**
8624
- * 文档元素字段
8554
+ * ShipInvoiceOCR返回参数结构体
8625
8555
  */
8626
- export interface DocumentElement {
8627
- /**
8628
- * 文档元素索引
8629
- 注意:此字段可能返回 null,表示取不到有效值。
8630
- */
8631
- Index?: number;
8632
- /**
8633
- * 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
8634
-
8635
- 注意:此字段可能返回 null,表示取不到有效值。
8636
- */
8637
- Type?: string;
8638
- /**
8639
- * 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
8640
-
8641
- 注意:此字段可能返回 null,表示取不到有效值。
8642
- */
8643
- Text?: string;
8644
- /**
8645
- * 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
8646
-
8647
- 注意:此字段可能返回 null,表示取不到有效值。
8648
- */
8649
- Polygon?: Polygon;
8556
+ export interface ShipInvoiceOCRResponse {
8650
8557
  /**
8651
- * 元素层级
8652
- 注意:此字段可能返回 null,表示取不到有效值。
8558
+ * 轮船票识别结果,具体内容请点击左侧链接。
8653
8559
  */
8654
- Level?: number;
8560
+ ShipInvoiceInfos?: Array<ShipInvoiceInfo>;
8655
8561
  /**
8656
- * 入参开启EnableInsetImage后返回,表示在InsetImagePackage中的内嵌图片名称
8657
- 注意:此字段可能返回 null,表示取不到有效值。
8562
+ * 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
8658
8563
  */
8659
- InsetImageName?: string;
8564
+ Angle?: number;
8660
8565
  /**
8661
- * 嵌套的文档元素信息,一般包含的是文档内嵌入图片的文字识别结果
8662
- 注意:此字段可能返回 null,表示取不到有效值。
8566
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8663
8567
  */
8664
- Elements?: Array<DocumentElement>;
8568
+ RequestId?: string;
8665
8569
  }
8666
8570
  /**
8667
8571
  * RecognizeGeneralInvoice返回参数结构体
@@ -9866,55 +9770,6 @@ export interface QuotaInvoiceOCRResponse {
9866
9770
  */
9867
9771
  RequestId?: string;
9868
9772
  }
9869
- /**
9870
- * 临时身份证信息返回
9871
- */
9872
- export interface TemporaryIDCardInfo {
9873
- /**
9874
- * 姓名(人像面)
9875
- */
9876
- Name?: ContentInfo;
9877
- /**
9878
- * 性别(人像面)
9879
- */
9880
- Sex?: ContentInfo;
9881
- /**
9882
- * 民族(人像面)
9883
- */
9884
- Nation?: ContentInfo;
9885
- /**
9886
- * 出生日期(人像面)
9887
- */
9888
- Birth?: ContentInfo;
9889
- /**
9890
- * 地址(人像面)
9891
- */
9892
- Address?: ContentInfo;
9893
- /**
9894
- * 公民身份号码(人像面)
9895
- */
9896
- IdNum?: ContentInfo;
9897
- /**
9898
- * 发证机关(国徽面)
9899
- */
9900
- Authority?: ContentInfo;
9901
- /**
9902
- * 证件有效期(国徽面)
9903
- */
9904
- ValidDate?: ContentInfo;
9905
- /**
9906
- * WarnInfos,告警信息
9907
- */
9908
- WarnInfos?: CardWarnInfo;
9909
- /**
9910
- * IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
9911
- */
9912
- CardImage?: ContentInfo;
9913
- /**
9914
- * Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
9915
- */
9916
- PortraitImage?: ContentInfo;
9917
- }
9918
9773
  /**
9919
9774
  * 增值税发票项目明细
9920
9775
  */
@@ -11158,15 +11013,6 @@ export interface FinanBillOCRRequest {
11158
11013
  */
11159
11014
  ImageUrl?: string;
11160
11015
  }
11161
- /**
11162
- * ReconstructDocument配置选项
11163
- */
11164
- export interface ReconstructDocumentConfig {
11165
- /**
11166
- * 生成的Markdown中是否嵌入图片
11167
- */
11168
- EnableInsetImage?: boolean;
11169
- }
11170
11016
  /**
11171
11017
  * RecognizeGeneralTextImageWarn请求参数结构体
11172
11018
  */