tencentcloud-sdk-nodejs-ocr 4.1.92 → 4.1.94

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-ocr",
3
- "version": "4.1.92",
3
+ "version": "4.1.94",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1067,11 +1067,11 @@ export interface Words {
1067
1067
  /**
1068
1068
  * 置信度 0 ~100
1069
1069
  */
1070
- Confidence: number;
1070
+ Confidence?: number;
1071
1071
  /**
1072
1072
  * 候选字Character
1073
1073
  */
1074
- Character: string;
1074
+ Character?: string;
1075
1075
  }
1076
1076
  /**
1077
1077
  * 英文识别结果
@@ -1080,32 +1080,32 @@ export interface TextDetectionEn {
1080
1080
  /**
1081
1081
  * 识别出的文本行内容。
1082
1082
  */
1083
- DetectedText: string;
1083
+ DetectedText?: string;
1084
1084
  /**
1085
1085
  * 置信度 0 ~100。
1086
1086
  */
1087
- Confidence: number;
1087
+ Confidence?: number;
1088
1088
  /**
1089
1089
  * 文本行在原图中的四点坐标。
1090
1090
  注意:此字段可能返回 null,表示取不到有效值。
1091
1091
  */
1092
- Polygon: Array<Coord>;
1092
+ Polygon?: Array<Coord>;
1093
1093
  /**
1094
1094
  * 此字段为扩展字段。目前EnglishOCR接口返回内容为空。
1095
1095
  */
1096
- AdvancedInfo: string;
1096
+ AdvancedInfo?: string;
1097
1097
  /**
1098
1098
  * 英文单词在原图中的四点坐标。
1099
1099
  */
1100
- WordCoordPoint: Array<WordCoordPoint>;
1100
+ WordCoordPoint?: Array<WordCoordPoint>;
1101
1101
  /**
1102
1102
  * 候选字符集(包含候选字Character以及置信度Confidence)。
1103
1103
  */
1104
- CandWord: Array<CandWord>;
1104
+ CandWord?: Array<CandWord>;
1105
1105
  /**
1106
1106
  * 识别出来的单词信息(包括单词Character和单词置信度confidence)
1107
1107
  */
1108
- Words: Array<Words>;
1108
+ Words?: Array<Words>;
1109
1109
  }
1110
1110
  /**
1111
1111
  * 电子发票(机票行程单)
@@ -1337,7 +1337,7 @@ export interface TextFormula {
1337
1337
  /**
1338
1338
  * 识别出的文本行内容
1339
1339
  */
1340
- DetectedText: string;
1340
+ DetectedText?: string;
1341
1341
  }
1342
1342
  /**
1343
1343
  * HmtResidentPermitOCR返回参数结构体
@@ -1420,11 +1420,11 @@ export interface VehicleRegCertInfo {
1420
1420
  【抵押登记页】
1421
1421
  机动车登记证书编号、身份证明名称/号码、抵押权人姓名/名称、抵押登记日期。
1422
1422
  */
1423
- Name: string;
1423
+ Name?: string;
1424
1424
  /**
1425
1425
  * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
1426
1426
  */
1427
- Value: string;
1427
+ Value?: string;
1428
1428
  }
1429
1429
  /**
1430
1430
  * 通用告警详情
@@ -1847,15 +1847,15 @@ export interface TextEduPaper {
1847
1847
  /**
1848
1848
  * 识别出的字段名称(关键字)
1849
1849
  */
1850
- Item: string;
1850
+ Item?: string;
1851
1851
  /**
1852
1852
  * 识别出的字段名称对应的值,也就是字段Item对应的字符串结果
1853
1853
  */
1854
- DetectedText: string;
1854
+ DetectedText?: string;
1855
1855
  /**
1856
1856
  * 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
1857
1857
  */
1858
- Itemcoord: ItemCoord;
1858
+ Itemcoord?: ItemCoord;
1859
1859
  }
1860
1860
  /**
1861
1861
  * QrcodeOCR返回参数结构体
@@ -1894,7 +1894,7 @@ export interface WaybillObj {
1894
1894
  /**
1895
1895
  * 识别出的文本行内容
1896
1896
  */
1897
- Text: string;
1897
+ Text?: string;
1898
1898
  }
1899
1899
  /**
1900
1900
  * 英文OCR识别出的单词在原图中的四点坐标数组
@@ -1973,7 +1973,7 @@ export interface HKIDCardOCRResponse {
1973
1973
  SmallHeadImage?: string;
1974
1974
  /**
1975
1975
  * 该字段已废弃, 将固定返回空数组,不建议使用。
1976
- This field is deprecated and will always return an empty array. Usage is not recommended.
1976
+
1977
1977
  * @deprecated
1978
1978
  */
1979
1979
  WarningCode?: Array<number | bigint>;
@@ -3373,12 +3373,12 @@ export interface CellContent {
3373
3373
  * 段落编号
3374
3374
  注意:此字段可能返回 null,表示取不到有效值。
3375
3375
  */
3376
- ParagNo: number;
3376
+ ParagNo?: number;
3377
3377
  /**
3378
3378
  * 字体大小
3379
3379
  注意:此字段可能返回 null,表示取不到有效值。
3380
3380
  */
3381
- WordSize: number;
3381
+ WordSize?: number;
3382
3382
  }
3383
3383
  /**
3384
3384
  * RecognizeMedicalInvoiceOCR返回参数结构体
@@ -4760,15 +4760,15 @@ export interface BusinessCardInfo {
4760
4760
  * 识别出的字段名称(关键字,可能重复,比如多个手机),能识别的字段名为:
4761
4761
  姓名、英文姓名、英文地址、公司、英文公司、职位、英文职位、部门、英文部门、手机、电话、传真、社交帐号、QQ、MSN、微信、微博、邮箱、邮编、网址、公司账号、其他。
4762
4762
  */
4763
- Name: string;
4763
+ Name?: string;
4764
4764
  /**
4765
4765
  * 识别出的字段名称对应的值,也就是字段name对应的字符串结果。
4766
4766
  */
4767
- Value: string;
4767
+ Value?: string;
4768
4768
  /**
4769
4769
  * 文本行在旋转纠正之后的图像中的像素坐标,表示为(左上角x, 左上角y,宽width,高height)
4770
4770
  */
4771
- ItemCoord: ItemCoord;
4771
+ ItemCoord?: ItemCoord;
4772
4772
  }
4773
4773
  /**
4774
4774
  * 机动车销售统一发票
@@ -5298,11 +5298,11 @@ export interface QrcodeImgSize {
5298
5298
  /**
5299
5299
  * 宽
5300
5300
  */
5301
- Wide: number;
5301
+ Wide?: number;
5302
5302
  /**
5303
5303
  * 高
5304
5304
  */
5305
- High: number;
5305
+ High?: number;
5306
5306
  }
5307
5307
  /**
5308
5308
  * PassportOCR返回参数结构体
@@ -6855,20 +6855,20 @@ export interface AdvertiseTextDetection {
6855
6855
  /**
6856
6856
  * 识别出的文本行内容
6857
6857
  */
6858
- DetectedText: string;
6858
+ DetectedText?: string;
6859
6859
  /**
6860
6860
  * 置信度 0 ~100
6861
6861
  */
6862
- Confidence: number;
6862
+ Confidence?: number;
6863
6863
  /**
6864
6864
  * 文本行坐标,以四个顶点坐标表示
6865
6865
  */
6866
- Polygon: Array<Coord>;
6866
+ Polygon?: Array<Coord>;
6867
6867
  /**
6868
6868
  * 此字段为扩展字段。
6869
6869
  GeneralBasicOcr接口返回段落信息Parag,包含ParagNo。
6870
6870
  */
6871
- AdvancedInfo: string;
6871
+ AdvancedInfo?: string;
6872
6872
  }
6873
6873
  /**
6874
6874
  * 表格识别结果
@@ -6877,39 +6877,39 @@ export interface TextTable {
6877
6877
  /**
6878
6878
  * 单元格左上角的列索引
6879
6879
  */
6880
- ColTl: number;
6880
+ ColTl?: number;
6881
6881
  /**
6882
6882
  * 单元格左上角的行索引
6883
6883
  */
6884
- RowTl: number;
6884
+ RowTl?: number;
6885
6885
  /**
6886
6886
  * 单元格右下角的列索引
6887
6887
  */
6888
- ColBr: number;
6888
+ ColBr?: number;
6889
6889
  /**
6890
6890
  * 单元格右下角的行索引
6891
6891
  */
6892
- RowBr: number;
6892
+ RowBr?: number;
6893
6893
  /**
6894
6894
  * 单元格文字
6895
6895
  */
6896
- Text: string;
6896
+ Text?: string;
6897
6897
  /**
6898
6898
  * 单元格类型,包含body(表格主体)、header(表头)、footer(表尾)三种
6899
6899
  */
6900
- Type: string;
6900
+ Type?: string;
6901
6901
  /**
6902
6902
  * 置信度 0 ~100
6903
6903
  */
6904
- Confidence: number;
6904
+ Confidence?: number;
6905
6905
  /**
6906
6906
  * 文本行坐标,以四个顶点坐标表示
6907
6907
  */
6908
- Polygon: Array<Coord>;
6908
+ Polygon?: Array<Coord>;
6909
6909
  /**
6910
6910
  * 此字段为扩展字段
6911
6911
  */
6912
- AdvancedInfo: string;
6912
+ AdvancedInfo?: string;
6913
6913
  }
6914
6914
  /**
6915
6915
  * 金融票据切片识别单个字段的内容
@@ -7429,7 +7429,7 @@ export interface TableTitle {
7429
7429
  * 表格名称
7430
7430
  注意:此字段可能返回 null,表示取不到有效值。
7431
7431
  */
7432
- Text: string;
7432
+ Text?: string;
7433
7433
  }
7434
7434
  /**
7435
7435
  * RecognizeTableAccurateOCR请求参数结构体
@@ -7752,26 +7752,26 @@ export interface TextGeneralHandwriting {
7752
7752
  /**
7753
7753
  * 识别出的文本行内容
7754
7754
  */
7755
- DetectedText: string;
7755
+ DetectedText?: string;
7756
7756
  /**
7757
7757
  * 置信度 0 - 100
7758
7758
  */
7759
- Confidence: number;
7759
+ Confidence?: number;
7760
7760
  /**
7761
7761
  * 文本行坐标,以四个顶点坐标表示
7762
7762
  */
7763
- Polygon: Array<Coord>;
7763
+ Polygon?: Array<Coord>;
7764
7764
  /**
7765
7765
  * 此字段为扩展字段。
7766
7766
  能返回文本行的段落信息,例如:{\"Parag\":{\"ParagNo\":2}},
7767
7767
  其中ParagNo为段落行,从1开始。
7768
7768
  */
7769
- AdvancedInfo: string;
7769
+ AdvancedInfo?: string;
7770
7770
  /**
7771
7771
  * 字的坐标数组,以四个顶点坐标表示
7772
7772
  注意:此字段可能返回 null,表示取不到有效值。
7773
7773
  */
7774
- WordPolygon: Array<Polygon>;
7774
+ WordPolygon?: Array<Polygon>;
7775
7775
  }
7776
7776
  /**
7777
7777
  * PassportOCR请求参数结构体
@@ -8106,25 +8106,25 @@ export interface TableDetectInfo {
8106
8106
  * 单元格内容
8107
8107
  注意:此字段可能返回 null,表示取不到有效值。
8108
8108
  */
8109
- Cells: Array<TableCell>;
8109
+ Cells?: Array<TableCell>;
8110
8110
  /**
8111
8111
  * 表格标题
8112
8112
  注意:此字段可能返回 null,表示取不到有效值。
8113
8113
  */
8114
- Titles: Array<TableTitle>;
8114
+ Titles?: Array<TableTitle>;
8115
8115
  /**
8116
8116
  * 图像中的文本块类型,0 为非表格文本,
8117
8117
  1 为有线表格,2 为无线表格
8118
8118
  (接口暂不支持日文无线表格识别,若传入日文无线表格,返回0)
8119
8119
  注意:此字段可能返回 null,表示取不到有效值。
8120
8120
  */
8121
- Type: number;
8121
+ Type?: number;
8122
8122
  /**
8123
8123
  * 表格主体四个顶点坐标(依次为左上角,
8124
8124
  右上角,右下角,左下角)
8125
8125
  注意:此字段可能返回 null,表示取不到有效值。
8126
8126
  */
8127
- TableCoordPoint: Array<Coord>;
8127
+ TableCoordPoint?: Array<Coord>;
8128
8128
  }
8129
8129
  /**
8130
8130
  * 身份证配置信息
@@ -8512,11 +8512,11 @@ export interface InsuranceBillInfo {
8512
8512
  【医疗发票】
8513
8513
  姓名、性别、住院时间、收费项目、金额、合计等。
8514
8514
  */
8515
- Name: string;
8515
+ Name?: string;
8516
8516
  /**
8517
8517
  * 识别出的字段名称对应的值,也就是字段Name对应的字符串结果。
8518
8518
  */
8519
- Value: string;
8519
+ Value?: string;
8520
8520
  }
8521
8521
  /**
8522
8522
  * 卡证字段信息返回值
@@ -8679,16 +8679,16 @@ export interface ClassifyDetectInfo {
8679
8679
  /**
8680
8680
  * 分类名称,包括:身份证、护照、名片、银行卡、行驶证、驾驶证、港澳台通行证、户口本、港澳台来往内地通行证、港澳台居住证、不动产证、营业执照
8681
8681
  */
8682
- Name: string;
8682
+ Name?: string;
8683
8683
  /**
8684
8684
  * 分类类型
8685
8685
  注意:此字段可能返回 null,表示取不到有效值。
8686
8686
  */
8687
- Type: string;
8687
+ Type?: string;
8688
8688
  /**
8689
8689
  * 位置坐标
8690
8690
  */
8691
- Rect: Rect;
8691
+ Rect?: Rect;
8692
8692
  }
8693
8693
  /**
8694
8694
  * GeneralEfficientOCR返回参数结构体
@@ -10246,44 +10246,44 @@ export interface TableCell {
10246
10246
  /**
10247
10247
  * 单元格左上角的列索引
10248
10248
  */
10249
- ColTl: number;
10249
+ ColTl?: number;
10250
10250
  /**
10251
10251
  * 单元格左上角的行索引
10252
10252
  */
10253
- RowTl: number;
10253
+ RowTl?: number;
10254
10254
  /**
10255
10255
  * 单元格右下角的列索引
10256
10256
  */
10257
- ColBr: number;
10257
+ ColBr?: number;
10258
10258
  /**
10259
10259
  * 单元格右下角的行索引
10260
10260
  */
10261
- RowBr: number;
10261
+ RowBr?: number;
10262
10262
  /**
10263
10263
  * 单元格内识别出的字符串文本,若文本存在多行,以换行符"\n"隔开
10264
10264
  */
10265
- Text: string;
10265
+ Text?: string;
10266
10266
  /**
10267
10267
  * 单元格类型
10268
10268
  */
10269
- Type: string;
10269
+ Type?: string;
10270
10270
  /**
10271
10271
  * 单元格置信度
10272
10272
  */
10273
- Confidence: number;
10273
+ Confidence?: number;
10274
10274
  /**
10275
10275
  * 单元格在图像中的四点坐标
10276
10276
  */
10277
- Polygon: Array<Coord>;
10277
+ Polygon?: Array<Coord>;
10278
10278
  /**
10279
10279
  * 此字段为扩展字段
10280
10280
  注意:此字段可能返回 null,表示取不到有效值。
10281
10281
  */
10282
- AdvancedInfo: string;
10282
+ AdvancedInfo?: string;
10283
10283
  /**
10284
10284
  * 单元格文本属性
10285
10285
  */
10286
- Contents: Array<CellContent>;
10286
+ Contents?: Array<CellContent>;
10287
10287
  }
10288
10288
  /**
10289
10289
  * 全部车牌信息