tencentcloud-sdk-nodejs-ocr 4.0.652 → 4.0.654

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.
@@ -53,16 +53,6 @@ class Client extends TencentCloudCommon.AbstractClient {
53
53
  async ImageEnhancement(req, cb) {
54
54
  return this.request("ImageEnhancement", req, cb);
55
55
  }
56
- /**
57
- * 库源服务调整,该接口在2023年6月1日将正式下线。
58
-
59
- 本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
60
-
61
- 产品优势:直联中国物品编码中心,查询结果更加准确、可靠。
62
- */
63
- async QueryBarCode(req, cb) {
64
- return this.request("QueryBarCode", req, cb);
65
- }
66
56
  /**
67
57
  * 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
68
58
 
@@ -532,14 +522,6 @@ class Client extends TencentCloudCommon.AbstractClient {
532
522
  async FinanBillSliceOCR(req, cb) {
533
523
  return this.request("FinanBillSliceOCR", req, cb);
534
524
  }
535
- /**
536
- * 库源服务调整,该接口在2023年6月1日将正式下线。
537
-
538
- 此接口基于企业四要素授权“姓名、证件号码、企业标识、企业全称”,验证企业信息是否一致。
539
- */
540
- async VerifyEnterpriseFourFactors(req, cb) {
541
- return this.request("VerifyEnterpriseFourFactors", req, cb);
542
- }
543
525
  /**
544
526
  * 本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
545
527
 
@@ -1754,15 +1754,6 @@ export interface WaybillObj {
1754
1754
  */
1755
1755
  Text: string;
1756
1756
  }
1757
- /**
1758
- * 英文OCR识别出的单词在原图中的四点坐标数组
1759
- */
1760
- export interface WordCoordPoint {
1761
- /**
1762
- * 英文OCR识别出的每个单词在原图中的四点坐标。
1763
- */
1764
- WordCoordinate: Array<Coord>;
1765
- }
1766
1757
  /**
1767
1758
  * 票据检测结果
1768
1759
  */
@@ -4840,88 +4831,13 @@ export interface RecognizeTravelCardOCRResponse {
4840
4831
  RequestId?: string;
4841
4832
  }
4842
4833
  /**
4843
- * 商品码信息
4834
+ * 英文OCR识别出的单词在原图中的四点坐标数组
4844
4835
  */
4845
- export interface ProductDataRecord {
4846
- /**
4847
- * 产品名称
4848
- */
4849
- ProductName: string;
4850
- /**
4851
- * 产品名称(英文)
4852
- */
4853
- EnName: string;
4854
- /**
4855
- * 品牌名称
4856
- */
4857
- BrandName: string;
4858
- /**
4859
- * 规格型号
4860
- */
4861
- Type: string;
4862
- /**
4863
- * 宽度,单位毫米
4864
- */
4865
- Width: string;
4866
- /**
4867
- * 高度,单位毫米
4868
- */
4869
- Height: string;
4870
- /**
4871
- * 深度,单位毫米
4872
- */
4873
- Depth: string;
4874
- /**
4875
- * 关键字
4876
- */
4877
- KeyWord: string;
4878
- /**
4879
- * 简短描述
4880
- */
4881
- Description: string;
4882
- /**
4883
- * 图片链接
4884
- */
4885
- ImageLink: Array<string>;
4886
- /**
4887
- * 厂家名称
4888
- */
4889
- ManufacturerName: string;
4890
- /**
4891
- * 厂家地址
4892
- */
4893
- ManufacturerAddress: string;
4894
- /**
4895
- * 企业社会信用代码
4896
- */
4897
- FirmCode: string;
4898
- /**
4899
- * 表示数据查询状态
4900
- checkResult 状态说明
4901
- 1 经查,该商品条码已在中国物品编码中心注册
4902
- 2 经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报。
4903
- 3 经查,该厂商识别代码已于xxxxx注销,请关注产品生产日期。
4904
- 4 经查,该企业以及条码未经条码中心注册,属于违法使用
4905
- -1 经查,该商品条码被冒用
4906
- -2 经查,该厂商识别代码已在中国物品编码中心注册,但该产品已经下市
4907
- S001 未找到该厂商识别代码的注册信息。
4908
- S002 该厂商识别代码已经在GS1注册,但编码信息未通报
4909
- S003 该商品条码已在GS1通报
4910
- S004 该商品条码已注销
4911
- S005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
4912
- E001 完整性失败:此GTIN的长度无效。
4913
- E002 完整性失败:校验位不正确。
4914
- E003 完整性失败:字符串包含字母数字字符。
4915
- E004 数字不正确。GS1前缀(3位国家/地区代码)不存在。
4916
- E005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
4917
- E006 数字不正确。尚未分配该GS1公司前缀。
4918
- E008 经查,该企业厂商识别代码以及条码尚未通报
4919
- */
4920
- CheckResult: string;
4836
+ export interface WordCoordPoint {
4921
4837
  /**
4922
- * UNSPSC分类码
4838
+ * 英文OCR识别出的每个单词在原图中的四点坐标。
4923
4839
  */
4924
- CategoryCode: string;
4840
+ WordCoordinate: Array<Coord>;
4925
4841
  }
4926
4842
  /**
4927
4843
  * LicensePlateOCR请求参数结构体
@@ -5251,17 +5167,47 @@ export interface RideHailingDriverLicenseOCRResponse {
5251
5167
  RequestId?: string;
5252
5168
  }
5253
5169
  /**
5254
- * 企业四要素核验结果
5170
+ * ImageEnhancement请求参数结构体
5255
5171
  */
5256
- export interface Detail {
5172
+ export interface ImageEnhancementRequest {
5173
+ /**
5174
+ * 图片的 Base64 值。
5175
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5176
+ 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
5177
+ 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
5178
+ */
5179
+ ImageBase64?: string;
5180
+ /**
5181
+ * 图片的 Url 地址。
5182
+ 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
5183
+ 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
5184
+ 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
5185
+ 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
5186
+ */
5187
+ ImageUrl?: string;
5257
5188
  /**
5258
- * 企业四要素核验结果状态码
5189
+ * 默认为空,ReturnImage的取值以及含义如下:
5190
+ “preprocess”: 返回预处理后的图片数据
5191
+ “origin”:返回原图片数据
5192
+ " ":不返回图片数据
5259
5193
  */
5260
- Result: number;
5194
+ ReturnImage?: string;
5261
5195
  /**
5262
- * 企业四要素核验结果描述
5196
+ * 默认值为1,指定图像增强方法:
5197
+ 1:切边增强
5198
+ 2:弯曲矫正
5199
+ 202:黑白模式
5200
+ 204:提亮模式
5201
+ 205:灰度模式
5202
+ 207:省墨模式
5203
+ 208:文字锐化(适合非彩色图片)
5204
+ 300:自动增强(自动从301~304选择任务类型)
5205
+ 301:去摩尔纹
5206
+ 302:去除阴影
5207
+ 303:去除模糊
5208
+ 304:去除过曝
5263
5209
  */
5264
- Desc: string;
5210
+ TaskType?: number;
5265
5211
  }
5266
5212
  /**
5267
5213
  * EnglishOCR请求参数结构体
@@ -5751,23 +5697,6 @@ export interface RideHailingDriverLicenseOCRRequest {
5751
5697
  */
5752
5698
  ImageUrl?: string;
5753
5699
  }
5754
- /**
5755
- * QueryBarCode返回参数结构体
5756
- */
5757
- export interface QueryBarCodeResponse {
5758
- /**
5759
- * 条码
5760
- */
5761
- BarCode?: string;
5762
- /**
5763
- * 条码信息数组
5764
- */
5765
- ProductDataRecords?: Array<ProductDataRecord>;
5766
- /**
5767
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5768
- */
5769
- RequestId?: string;
5770
- }
5771
5700
  /**
5772
5701
  * ArithmeticOCR请求参数结构体
5773
5702
  */
@@ -6158,27 +6087,6 @@ export interface AirTransport {
6158
6087
  */
6159
6088
  FlightItems?: Array<FlightItem>;
6160
6089
  }
6161
- /**
6162
- * VerifyEnterpriseFourFactors请求参数结构体
6163
- */
6164
- export interface VerifyEnterpriseFourFactorsRequest {
6165
- /**
6166
- * 姓名
6167
- */
6168
- RealName: string;
6169
- /**
6170
- * 证件号码(公司注册证件号)
6171
- */
6172
- IdCard: string;
6173
- /**
6174
- * 企业全称
6175
- */
6176
- EnterpriseName: string;
6177
- /**
6178
- * 企业标识(注册号,统一社会信用代码)
6179
- */
6180
- EnterpriseMark: string;
6181
- }
6182
6090
  /**
6183
6091
  * 表格标题
6184
6092
  */
@@ -6597,15 +6505,6 @@ export interface LineInfo {
6597
6505
  */
6598
6506
  Lines?: Array<ItemInfo>;
6599
6507
  }
6600
- /**
6601
- * QueryBarCode请求参数结构体
6602
- */
6603
- export interface QueryBarCodeRequest {
6604
- /**
6605
- * 条形码
6606
- */
6607
- BarCode: string;
6608
- }
6609
6508
  /**
6610
6509
  * 过路过桥费发票
6611
6510
  */
@@ -8119,49 +8018,6 @@ export interface InsuranceBillOCRRequest {
8119
8018
  */
8120
8019
  ImageUrl?: string;
8121
8020
  }
8122
- /**
8123
- * ImageEnhancement请求参数结构体
8124
- */
8125
- export interface ImageEnhancementRequest {
8126
- /**
8127
- * 图片的 Base64 值。
8128
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
8129
- 支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
8130
- 图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
8131
- */
8132
- ImageBase64?: string;
8133
- /**
8134
- * 图片的 Url 地址。
8135
- 支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
8136
- 支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
8137
- 图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
8138
- 非腾讯云存储的 Url 速度和稳定性可能受一定影响。
8139
- */
8140
- ImageUrl?: string;
8141
- /**
8142
- * 默认为空,ReturnImage的取值以及含义如下:
8143
- “preprocess”: 返回预处理后的图片数据
8144
- “origin”:返回原图片数据
8145
- " ":不返回图片数据
8146
- */
8147
- ReturnImage?: string;
8148
- /**
8149
- * 默认值为1,指定图像增强方法:
8150
- 1:切边增强
8151
- 2:弯曲矫正
8152
- 202:黑白模式
8153
- 204:提亮模式
8154
- 205:灰度模式
8155
- 207:省墨模式
8156
- 208:文字锐化(适合非彩色图片)
8157
- 300:自动增强(自动从301~304选择任务类型)
8158
- 301:去摩尔纹
8159
- 302:去除阴影
8160
- 303:去除模糊
8161
- 304:去除过曝
8162
- */
8163
- TaskType?: number;
8164
- }
8165
8021
  /**
8166
8022
  * GeneralHandwritingOCR返回参数结构体
8167
8023
  */
@@ -9124,25 +8980,6 @@ export interface UsedCarPurchaseInvoice {
9124
8980
  */
9125
8981
  CompanySealMark?: number;
9126
8982
  }
9127
- /**
9128
- * VerifyEnterpriseFourFactors返回参数结构体
9129
- */
9130
- export interface VerifyEnterpriseFourFactorsResponse {
9131
- /**
9132
- * 核验一致性(1:一致,2:不一致,3:查询无记录)
9133
- */
9134
- State?: number;
9135
- /**
9136
- * 核验结果明细,7:企业法人/负责人,6:企业股东,5:企
9137
- 业管理人员,-21:企业名称与企业标识不符,-22:姓名不一致,-23:证件号码不一致,-24:企业名称不一致,-25:企业标识不一致
9138
- 注意:此字段可能返回 null,表示取不到有效值。
9139
- */
9140
- Detail?: Detail;
9141
- /**
9142
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9143
- */
9144
- RequestId?: string;
9145
- }
9146
8983
  /**
9147
8984
  * GeneralFastOCR返回参数结构体
9148
8985
  */