tencentcloud-sdk-nodejs-ocr 4.1.8 → 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.
@@ -614,6 +614,14 @@ export interface WordItem {
|
|
614
614
|
* 四点坐标
|
615
615
|
*/
|
616
616
|
Coord?: Polygon;
|
617
|
+
/**
|
618
|
+
* 描述性信息
|
619
|
+
*/
|
620
|
+
AdvancedInfo?: string;
|
621
|
+
/**
|
622
|
+
* 单词的四点坐标
|
623
|
+
*/
|
624
|
+
WordCoord?: Array<WordPolygon>;
|
617
625
|
}
|
618
626
|
/**
|
619
627
|
* MLIDPassportOCR请求参数结构体
|
@@ -1836,6 +1844,7 @@ export interface SmartStructuralProRequest {
|
|
1836
1844
|
AirWayBill -- 航空运单识别模板
|
1837
1845
|
DispatchWeightNote -- 磅单发货单识别模板
|
1838
1846
|
ReceiptWeightNote -- 磅单收货单识别模板
|
1847
|
+
ArticalRecognize -- 手写作文模版
|
1839
1848
|
*/
|
1840
1849
|
ConfigId?: string;
|
1841
1850
|
/**
|
@@ -1846,6 +1855,10 @@ export interface SmartStructuralProRequest {
|
|
1846
1855
|
* 是否开启父子key识别,默认是
|
1847
1856
|
*/
|
1848
1857
|
OutputParentKey?: boolean;
|
1858
|
+
/**
|
1859
|
+
* 模版的单个属性配置
|
1860
|
+
*/
|
1861
|
+
ConfigAdvanced?: ConfigAdvanced;
|
1849
1862
|
}
|
1850
1863
|
/**
|
1851
1864
|
* RecognizeTableOCR返回参数结构体
|
@@ -5858,54 +5871,6 @@ export interface FinancialBill {
|
|
5858
5871
|
*/
|
5859
5872
|
FinancialBillItemDetails?: Array<FinancialBillItemDetails>;
|
5860
5873
|
}
|
5861
|
-
/**
|
5862
|
-
* 单页文档识别的内容
|
5863
|
-
*/
|
5864
|
-
export interface DocumentRecognizeInfo {
|
5865
|
-
/**
|
5866
|
-
* 输入PDF文件的页码,从1开始。输入图片的话值始终为1
|
5867
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5868
|
-
*/
|
5869
|
-
PageNumber?: number;
|
5870
|
-
/**
|
5871
|
-
* 旋转角度
|
5872
|
-
|
5873
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5874
|
-
* @deprecated
|
5875
|
-
*/
|
5876
|
-
Angle?: number;
|
5877
|
-
/**
|
5878
|
-
* AI算法识别处理后的图片高度
|
5879
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5880
|
-
*/
|
5881
|
-
Height?: number;
|
5882
|
-
/**
|
5883
|
-
* AI算法识别处理后的图片宽度
|
5884
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5885
|
-
*/
|
5886
|
-
Width?: number;
|
5887
|
-
/**
|
5888
|
-
* 图片的原始高度,输入PDF文件则表示单页PDF转图片之后的图片高度
|
5889
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5890
|
-
*/
|
5891
|
-
OriginHeight?: number;
|
5892
|
-
/**
|
5893
|
-
* 图片的原始宽度,输入PDF文件则表示单页PDF转图片之后的图片宽度
|
5894
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5895
|
-
*/
|
5896
|
-
OriginWidth?: number;
|
5897
|
-
/**
|
5898
|
-
* 文档元素信息
|
5899
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5900
|
-
*/
|
5901
|
-
Elements?: Array<DocumentElement>;
|
5902
|
-
/**
|
5903
|
-
* 旋转角度
|
5904
|
-
|
5905
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
5906
|
-
*/
|
5907
|
-
RotatedAngle?: number;
|
5908
|
-
}
|
5909
5874
|
/**
|
5910
5875
|
* LicensePlateOCR请求参数结构体
|
5911
5876
|
*/
|
@@ -6058,30 +6023,6 @@ export interface TextVehicleBack {
|
|
6058
6023
|
*/
|
6059
6024
|
IssueAuthorityElectronic?: string;
|
6060
6025
|
}
|
6061
|
-
/**
|
6062
|
-
* ReconstructDocument返回参数结构体
|
6063
|
-
*/
|
6064
|
-
export interface ReconstructDocumentResponse {
|
6065
|
-
/**
|
6066
|
-
* 识别生成的Markdown文件base64编码的字符串
|
6067
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6068
|
-
*/
|
6069
|
-
MarkdownBase64?: string;
|
6070
|
-
/**
|
6071
|
-
* 输入文件中嵌入的图片放在一个文件夹中打包为.zip压缩文件,识别生成的Markdown文件通过路径关联插入本文件夹中的图片。
|
6072
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6073
|
-
*/
|
6074
|
-
InsetImagePackage?: string;
|
6075
|
-
/**
|
6076
|
-
* 输入文件中嵌入的图片中文字内容的识别结果
|
6077
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
6078
|
-
*/
|
6079
|
-
DocumentRecognizeInfo?: Array<DocumentRecognizeInfo>;
|
6080
|
-
/**
|
6081
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
6082
|
-
*/
|
6083
|
-
RequestId?: string;
|
6084
|
-
}
|
6085
6026
|
/**
|
6086
6027
|
* GeneralEfficientOCR请求参数结构体
|
6087
6028
|
*/
|
@@ -6728,51 +6669,53 @@ export interface FlightInvoiceOCRResponse {
|
|
6728
6669
|
RequestId?: string;
|
6729
6670
|
}
|
6730
6671
|
/**
|
6731
|
-
*
|
6672
|
+
* 临时身份证信息返回
|
6732
6673
|
*/
|
6733
|
-
export interface
|
6674
|
+
export interface TemporaryIDCardInfo {
|
6734
6675
|
/**
|
6735
|
-
*
|
6676
|
+
* 姓名(人像面)
|
6736
6677
|
*/
|
6737
|
-
|
6678
|
+
Name?: ContentInfo;
|
6738
6679
|
/**
|
6739
|
-
*
|
6680
|
+
* 性别(人像面)
|
6740
6681
|
*/
|
6741
|
-
|
6682
|
+
Sex?: ContentInfo;
|
6742
6683
|
/**
|
6743
|
-
*
|
6684
|
+
* 民族(人像面)
|
6744
6685
|
*/
|
6745
|
-
|
6746
|
-
|
6747
|
-
|
6748
|
-
|
6749
|
-
|
6750
|
-
export interface ReconstructDocumentRequest {
|
6686
|
+
Nation?: ContentInfo;
|
6687
|
+
/**
|
6688
|
+
* 出生日期(人像面)
|
6689
|
+
*/
|
6690
|
+
Birth?: ContentInfo;
|
6751
6691
|
/**
|
6752
|
-
*
|
6692
|
+
* 地址(人像面)
|
6693
|
+
*/
|
6694
|
+
Address?: ContentInfo;
|
6695
|
+
/**
|
6696
|
+
* 公民身份号码(人像面)
|
6753
6697
|
*/
|
6754
|
-
|
6698
|
+
IdNum?: ContentInfo;
|
6755
6699
|
/**
|
6756
|
-
*
|
6700
|
+
* 发证机关(国徽面)
|
6757
6701
|
*/
|
6758
|
-
|
6702
|
+
Authority?: ContentInfo;
|
6759
6703
|
/**
|
6760
|
-
*
|
6704
|
+
* 证件有效期(国徽面)
|
6761
6705
|
*/
|
6762
|
-
|
6706
|
+
ValidDate?: ContentInfo;
|
6763
6707
|
/**
|
6764
|
-
*
|
6708
|
+
* WarnInfos,告警信息
|
6765
6709
|
*/
|
6766
|
-
|
6710
|
+
WarnInfos?: CardWarnInfo;
|
6767
6711
|
/**
|
6768
|
-
*
|
6769
|
-
单次调用,最多支持10页pdf的智能识别。
|
6712
|
+
* IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
|
6770
6713
|
*/
|
6771
|
-
|
6714
|
+
CardImage?: ContentInfo;
|
6772
6715
|
/**
|
6773
|
-
*
|
6716
|
+
* Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
|
6774
6717
|
*/
|
6775
|
-
|
6718
|
+
PortraitImage?: ContentInfo;
|
6776
6719
|
}
|
6777
6720
|
/**
|
6778
6721
|
* VatInvoiceVerifyNew请求参数结构体
|
@@ -7970,6 +7913,15 @@ export interface DutyPaidProofOCRRequest {
|
|
7970
7913
|
*/
|
7971
7914
|
PdfPageNumber?: number;
|
7972
7915
|
}
|
7916
|
+
/**
|
7917
|
+
* 支持模版的单个属性配置
|
7918
|
+
*/
|
7919
|
+
export interface ConfigAdvanced {
|
7920
|
+
/**
|
7921
|
+
* 模版的单个属性配置
|
7922
|
+
*/
|
7923
|
+
Scene?: string;
|
7924
|
+
}
|
7973
7925
|
/**
|
7974
7926
|
* RecognizeHealthCodeOCR返回参数结构体
|
7975
7927
|
*/
|
@@ -8599,47 +8551,21 @@ export interface ImageSize {
|
|
8599
8551
|
Height?: number;
|
8600
8552
|
}
|
8601
8553
|
/**
|
8602
|
-
*
|
8554
|
+
* ShipInvoiceOCR返回参数结构体
|
8603
8555
|
*/
|
8604
|
-
export interface
|
8605
|
-
/**
|
8606
|
-
* 文档元素索引
|
8607
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8608
|
-
*/
|
8609
|
-
Index?: number;
|
8610
|
-
/**
|
8611
|
-
* 元素类型,包括paragraph、table、formula、figure、title、header、footer、figure_text
|
8612
|
-
|
8613
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8614
|
-
*/
|
8615
|
-
Type?: string;
|
8616
|
-
/**
|
8617
|
-
* 元素内容,当type为figure或formula(公式识别关闭)时该字段内容为图片的位置
|
8618
|
-
|
8619
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8620
|
-
*/
|
8621
|
-
Text?: string;
|
8622
|
-
/**
|
8623
|
-
* 元素坐标,左上角(x1, y1),右上角(x2, y2),右下角(x3, y3),左下角(x4, y4)
|
8624
|
-
|
8625
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8626
|
-
*/
|
8627
|
-
Polygon?: Polygon;
|
8556
|
+
export interface ShipInvoiceOCRResponse {
|
8628
8557
|
/**
|
8629
|
-
*
|
8630
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8558
|
+
* 轮船票识别结果,具体内容请点击左侧链接。
|
8631
8559
|
*/
|
8632
|
-
|
8560
|
+
ShipInvoiceInfos?: Array<ShipInvoiceInfo>;
|
8633
8561
|
/**
|
8634
|
-
*
|
8635
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8562
|
+
* 图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。
|
8636
8563
|
*/
|
8637
|
-
|
8564
|
+
Angle?: number;
|
8638
8565
|
/**
|
8639
|
-
*
|
8640
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
8566
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
8641
8567
|
*/
|
8642
|
-
|
8568
|
+
RequestId?: string;
|
8643
8569
|
}
|
8644
8570
|
/**
|
8645
8571
|
* RecognizeGeneralInvoice返回参数结构体
|
@@ -9844,55 +9770,6 @@ export interface QuotaInvoiceOCRResponse {
|
|
9844
9770
|
*/
|
9845
9771
|
RequestId?: string;
|
9846
9772
|
}
|
9847
|
-
/**
|
9848
|
-
* 临时身份证信息返回
|
9849
|
-
*/
|
9850
|
-
export interface TemporaryIDCardInfo {
|
9851
|
-
/**
|
9852
|
-
* 姓名(人像面)
|
9853
|
-
*/
|
9854
|
-
Name?: ContentInfo;
|
9855
|
-
/**
|
9856
|
-
* 性别(人像面)
|
9857
|
-
*/
|
9858
|
-
Sex?: ContentInfo;
|
9859
|
-
/**
|
9860
|
-
* 民族(人像面)
|
9861
|
-
*/
|
9862
|
-
Nation?: ContentInfo;
|
9863
|
-
/**
|
9864
|
-
* 出生日期(人像面)
|
9865
|
-
*/
|
9866
|
-
Birth?: ContentInfo;
|
9867
|
-
/**
|
9868
|
-
* 地址(人像面)
|
9869
|
-
*/
|
9870
|
-
Address?: ContentInfo;
|
9871
|
-
/**
|
9872
|
-
* 公民身份号码(人像面)
|
9873
|
-
*/
|
9874
|
-
IdNum?: ContentInfo;
|
9875
|
-
/**
|
9876
|
-
* 发证机关(国徽面)
|
9877
|
-
*/
|
9878
|
-
Authority?: ContentInfo;
|
9879
|
-
/**
|
9880
|
-
* 证件有效期(国徽面)
|
9881
|
-
*/
|
9882
|
-
ValidDate?: ContentInfo;
|
9883
|
-
/**
|
9884
|
-
* WarnInfos,告警信息
|
9885
|
-
*/
|
9886
|
-
WarnInfos?: CardWarnInfo;
|
9887
|
-
/**
|
9888
|
-
* IdCard,裁剪后身份证照片的base64编码,请求 EnableCropImage 时返回;
|
9889
|
-
*/
|
9890
|
-
CardImage?: ContentInfo;
|
9891
|
-
/**
|
9892
|
-
* Portrait,身份证头像照片的base64编码,请求 EnablePortrait 时返回;
|
9893
|
-
*/
|
9894
|
-
PortraitImage?: ContentInfo;
|
9895
|
-
}
|
9896
9773
|
/**
|
9897
9774
|
* 增值税发票项目明细
|
9898
9775
|
*/
|
@@ -10316,6 +10193,19 @@ export interface LicensePlateInfo {
|
|
10316
10193
|
*/
|
10317
10194
|
Color?: string;
|
10318
10195
|
}
|
10196
|
+
/**
|
10197
|
+
* 单词坐标信息
|
10198
|
+
*/
|
10199
|
+
export interface WordPolygon {
|
10200
|
+
/**
|
10201
|
+
* 文本块内容
|
10202
|
+
*/
|
10203
|
+
DetectedText?: string;
|
10204
|
+
/**
|
10205
|
+
* 四点坐标
|
10206
|
+
*/
|
10207
|
+
Coord?: Polygon;
|
10208
|
+
}
|
10319
10209
|
/**
|
10320
10210
|
* 单字在原图中的坐标,以四个顶点坐标表示,以左上角为起点,顺时针返回。
|
10321
10211
|
*/
|
@@ -11123,15 +11013,6 @@ export interface FinanBillOCRRequest {
|
|
11123
11013
|
*/
|
11124
11014
|
ImageUrl?: string;
|
11125
11015
|
}
|
11126
|
-
/**
|
11127
|
-
* ReconstructDocument配置选项
|
11128
|
-
*/
|
11129
|
-
export interface ReconstructDocumentConfig {
|
11130
|
-
/**
|
11131
|
-
* 生成的Markdown中是否嵌入图片
|
11132
|
-
*/
|
11133
|
-
EnableInsetImage?: boolean;
|
11134
|
-
}
|
11135
11016
|
/**
|
11136
11017
|
* RecognizeGeneralTextImageWarn请求参数结构体
|
11137
11018
|
*/
|