tencentcloud-sdk-nodejs-ocr 4.0.652 → 4.0.653
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/CHANGELOG.md +200 -0
- package/SERVICE_CHANGELOG.md +233 -146
- package/package.json +1 -1
- package/products.md +14 -14
- package/src/services/ocr/v20181119/ocr_client.ts +2 -34
- package/src/services/ocr/v20181119/ocr_models.ts +40 -209
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +1 -15
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +0 -18
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +40 -203
package/products.md
CHANGED
@@ -41,9 +41,9 @@
|
|
41
41
|
| cat | [云拨测](https://cloud.tencent.com/document/product/280) | 2023-05-18 01:07:39 |
|
42
42
|
| cbs | [云硬盘](https://cloud.tencent.com/document/product/362) | 2023-07-24 01:12:51 |
|
43
43
|
| ccc | [云呼叫中心](https://cloud.tencent.com/document/product/679) | 2023-07-28 01:10:59 |
|
44
|
-
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2023-07-
|
44
|
+
| cdb | [云数据库 MySQL](https://cloud.tencent.com/document/product/236) | 2023-07-31 01:10:35 |
|
45
45
|
| cdc | [本地专用集群](https://cloud.tencent.com/document/product/1346) | 2023-07-28 01:11:59 |
|
46
|
-
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2023-07-
|
46
|
+
| cdn | [内容分发网络 CDN](https://cloud.tencent.com/document/product/228) | 2023-07-31 01:11:31 |
|
47
47
|
| cds | [T-Sec-数据安全审计(DSA)](https://cloud.tencent.com/document/product/856) | 2023-05-18 01:10:41 |
|
48
48
|
| cdwch | [云数据仓库 ClickHouse](https://cloud.tencent.com/document/product/1299) | 2023-07-20 01:14:55 |
|
49
49
|
| cfg | [混沌演练平台](https://cloud.tencent.com/document/product/1500) | 2023-07-25 10:44:01 |
|
@@ -54,16 +54,16 @@
|
|
54
54
|
| cii | [智能保险助手](https://cloud.tencent.com/document/product/1368) | 2023-05-18 01:12:07 |
|
55
55
|
| cim | [](https://cloud.tencent.com/document/product) | 2019-05-16 17:21:18 |
|
56
56
|
| cis | [](https://cloud.tencent.com/document/product) | 2018-06-07 15:01:42 |
|
57
|
-
| ckafka | [消息队列 CKafka](https://cloud.tencent.com/document/product/597) | 2023-07-
|
58
|
-
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2023-07-
|
57
|
+
| ckafka | [消息队列 CKafka](https://cloud.tencent.com/document/product/597) | 2023-07-31 01:13:15 |
|
58
|
+
| clb | [负载均衡](https://cloud.tencent.com/document/product/214) | 2023-07-31 01:13:45 |
|
59
59
|
| cloudaudit | [云审计](https://cloud.tencent.com/document/product/629) | 2023-05-18 01:13:28 |
|
60
60
|
| cloudhsm | [云加密机](https://cloud.tencent.com/document/product/639) | 2023-05-18 01:13:36 |
|
61
61
|
| cloudstudio | [Cloud Studio(云端 IDE)](https://cloud.tencent.com/document/product/1039) | 2023-07-24 01:17:40 |
|
62
|
-
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-07-
|
62
|
+
| cls | [日志服务](https://cloud.tencent.com/document/product/614) | 2023-07-31 01:14:37 |
|
63
63
|
| cme | [多媒体创作引擎](https://cloud.tencent.com/document/product/1156) | 2023-07-26 01:11:19 |
|
64
64
|
| cmq | [消息队列 CMQ](https://cloud.tencent.com/document/product/406) | 2023-05-18 01:14:51 |
|
65
65
|
| cms | [内容安全](https://cloud.tencent.com/document/product/669) | 2023-07-11 01:11:56 |
|
66
|
-
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-07-
|
66
|
+
| cpdp | [企业收付平台](https://cloud.tencent.com/document/product/1122) | 2023-07-31 01:15:43 |
|
67
67
|
| cr | [金融联络机器人](https://cloud.tencent.com/document/product/656) | 2021-02-24 08:03:24 |
|
68
68
|
| csip | [云安全一体化平台](https://cloud.tencent.com/document/product/664) | 2023-07-18 01:21:16 |
|
69
69
|
| csxg | [5G入云服务](https://cloud.tencent.com/document/product/1687) | 2023-05-19 11:26:14 |
|
@@ -93,8 +93,8 @@
|
|
93
93
|
| eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-05-18 01:25:58 |
|
94
94
|
| emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2023-07-25 10:56:12 |
|
95
95
|
| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2023-07-12 01:24:00 |
|
96
|
-
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-07-
|
97
|
-
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-07-
|
96
|
+
| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2023-07-31 01:23:57 |
|
97
|
+
| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2023-07-28 17:50:48 |
|
98
98
|
| facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2023-07-27 01:13:31 |
|
99
99
|
| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2023-07-25 10:59:09 |
|
100
100
|
| fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2023-07-14 14:55:45 |
|
@@ -125,7 +125,7 @@
|
|
125
125
|
| ivld | [媒体智能标签](https://cloud.tencent.com/document/product/1509) | 2023-05-18 01:35:21 |
|
126
126
|
| keewidb | [云数据库 KeeWiDB](https://cloud.tencent.com/document/product/1520) | 2023-07-19 01:29:34 |
|
127
127
|
| kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2023-05-18 01:35:58 |
|
128
|
-
| lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2023-07-
|
128
|
+
| lcic | [低代码互动课堂](https://cloud.tencent.com/document/product/1639) | 2023-07-31 01:30:04 |
|
129
129
|
| lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2023-07-25 11:04:43 |
|
130
130
|
| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2023-07-28 01:33:15 |
|
131
131
|
| lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 |
|
@@ -144,10 +144,10 @@
|
|
144
144
|
| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2023-07-27 01:16:41 |
|
145
145
|
| msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2023-05-18 01:42:21 |
|
146
146
|
| mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 |
|
147
|
-
| nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2023-07-
|
147
|
+
| nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2023-07-31 01:34:03 |
|
148
148
|
| npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 |
|
149
149
|
| oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2023-07-17 01:29:44 |
|
150
|
-
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-07-
|
150
|
+
| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2023-07-31 01:34:27 |
|
151
151
|
| omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2023-07-20 01:37:20 |
|
152
152
|
| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2023-07-27 01:17:15 |
|
153
153
|
| partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2023-07-20 18:40:49 |
|
@@ -197,7 +197,7 @@
|
|
197
197
|
| tdmq | [消息队列 TDMQ](https://cloud.tencent.com/document/product/1179) | 2023-07-26 01:38:18 |
|
198
198
|
| tds | [设备安全](https://cloud.tencent.com/document/product/1628) | 2023-05-18 01:55:50 |
|
199
199
|
| tem | [弹性微服务](https://cloud.tencent.com/document/product/1371) | 2023-05-22 02:01:01 |
|
200
|
-
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-07-
|
200
|
+
| teo | [边缘安全加速平台](https://cloud.tencent.com/document/product/1552) | 2023-07-31 01:43:23 |
|
201
201
|
| thpc | [高性能计算平台](https://cloud.tencent.com/document/product/1527) | 2023-07-07 01:53:45 |
|
202
202
|
| tia | [智能钛机器学习](https://cloud.tencent.com/document/product/851) | 2021-10-21 11:12:52 |
|
203
203
|
| tic | [资源编排 TIC](https://cloud.tencent.com/document/product/1213) | 2023-05-18 01:58:19 |
|
@@ -205,7 +205,7 @@
|
|
205
205
|
| tics | [威胁情报云查服务](https://cloud.tencent.com/document/product/1013) | 2023-05-18 01:58:24 |
|
206
206
|
| tiems | [腾讯云 TI 平台 TI-EMS ](https://cloud.tencent.com/document/product/1120) | 2022-07-19 06:19:39 |
|
207
207
|
| tiia | [图像分析](https://cloud.tencent.com/document/product/865) | 2023-07-10 01:48:50 |
|
208
|
-
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2023-07-
|
208
|
+
| tione | [TI-ONE 训练平台](https://cloud.tencent.com/document/product/851) | 2023-07-28 15:36:37 |
|
209
209
|
| tiw | [互动白板](https://cloud.tencent.com/document/product/1137) | 2023-07-24 01:52:09 |
|
210
210
|
| tke | [容器服务](https://cloud.tencent.com/document/product/457) | 2023-07-21 01:45:01 |
|
211
211
|
| tkgdq | [腾讯知识图谱数据查询](https://cloud.tencent.com/document/product) | 2020-03-10 00:51:44 |
|
@@ -226,7 +226,7 @@
|
|
226
226
|
| vod | [云点播](https://cloud.tencent.com/document/product/266) | 2023-07-26 01:43:57 |
|
227
227
|
| vpc | [私有网络](https://cloud.tencent.com/document/product/215) | 2023-07-28 01:57:59 |
|
228
228
|
| vrs | [声音复刻](https://cloud.tencent.com/document/product/1283) | 2023-07-18 01:58:58 |
|
229
|
-
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-07-
|
229
|
+
| waf | [Web 应用防火墙](https://cloud.tencent.com/document/product/627) | 2023-07-31 01:50:43 |
|
230
230
|
| wav | [企业微信汽车行业版](https://cloud.tencent.com/document/product/1318) | 2023-07-18 01:59:28 |
|
231
231
|
| wedata | [数据开发治理平台 WeData](https://cloud.tencent.com/document/product/1267) | 2023-07-25 11:28:02 |
|
232
232
|
| wss | [SSL证书管理服务](https://cloud.tencent.com/document/product) | 2020-04-01 08:53:44 |
|
@@ -73,7 +73,6 @@ import {
|
|
73
73
|
VatInvoiceItemInfo,
|
74
74
|
QrcodeOCRResponse,
|
75
75
|
WaybillObj,
|
76
|
-
WordCoordPoint,
|
77
76
|
InvoiceDetectInfo,
|
78
77
|
MainlandPermitOCRRequest,
|
79
78
|
VatElectronicItemInfo,
|
@@ -155,7 +154,7 @@ import {
|
|
155
154
|
VerifyBasicBizLicenseResponse,
|
156
155
|
TextDetectRequest,
|
157
156
|
RecognizeTravelCardOCRResponse,
|
158
|
-
|
157
|
+
WordCoordPoint,
|
159
158
|
LicensePlateOCRRequest,
|
160
159
|
GeneralBasicOCRRequest,
|
161
160
|
TextVehicleBack,
|
@@ -164,7 +163,7 @@ import {
|
|
164
163
|
RecognizePhilippinesUMIDOCRResponse,
|
165
164
|
AdvertiseOCRRequest,
|
166
165
|
RideHailingDriverLicenseOCRResponse,
|
167
|
-
|
166
|
+
ImageEnhancementRequest,
|
168
167
|
EnglishOCRRequest,
|
169
168
|
VatInvoiceVerifyResponse,
|
170
169
|
VatElectronicInfo,
|
@@ -185,7 +184,6 @@ import {
|
|
185
184
|
AdvertiseTextDetection,
|
186
185
|
FinanBillSliceInfo,
|
187
186
|
RideHailingDriverLicenseOCRRequest,
|
188
|
-
QueryBarCodeResponse,
|
189
187
|
ArithmeticOCRRequest,
|
190
188
|
NonTaxIncomeBill,
|
191
189
|
VerifyOfdVatInvoiceOCRRequest,
|
@@ -193,7 +191,6 @@ import {
|
|
193
191
|
MLIDPassportOCRResponse,
|
194
192
|
VatRollInvoiceOCRRequest,
|
195
193
|
AirTransport,
|
196
|
-
VerifyEnterpriseFourFactorsRequest,
|
197
194
|
TableTitle,
|
198
195
|
RecognizeTableAccurateOCRRequest,
|
199
196
|
Coord,
|
@@ -213,7 +210,6 @@ import {
|
|
213
210
|
DutyPaidProofOCRRequest,
|
214
211
|
RecognizeHealthCodeOCRResponse,
|
215
212
|
LineInfo,
|
216
|
-
QueryBarCodeRequest,
|
217
213
|
TollInvoice,
|
218
214
|
ItemCoord,
|
219
215
|
CreateAIFormTaskResponse,
|
@@ -257,7 +253,6 @@ import {
|
|
257
253
|
EnterpriseLicenseInfo,
|
258
254
|
QuotaInvoice,
|
259
255
|
InsuranceBillOCRRequest,
|
260
|
-
ImageEnhancementRequest,
|
261
256
|
GeneralHandwritingOCRResponse,
|
262
257
|
TableCell,
|
263
258
|
TableOCRResponse,
|
@@ -286,7 +281,6 @@ import {
|
|
286
281
|
RecognizePhilippinesDrivingLicenseOCRResponse,
|
287
282
|
FinanBillOCRRequest,
|
288
283
|
UsedCarPurchaseInvoice,
|
289
|
-
VerifyEnterpriseFourFactorsResponse,
|
290
284
|
GeneralFastOCRResponse,
|
291
285
|
QrcodePositionObj,
|
292
286
|
} from "./ocr_models"
|
@@ -338,20 +332,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
338
332
|
return this.request("ImageEnhancement", req, cb)
|
339
333
|
}
|
340
334
|
|
341
|
-
/**
|
342
|
-
* 库源服务调整,该接口在2023年6月1日将正式下线。
|
343
|
-
|
344
|
-
本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
|
345
|
-
|
346
|
-
产品优势:直联中国物品编码中心,查询结果更加准确、可靠。
|
347
|
-
*/
|
348
|
-
async QueryBarCode(
|
349
|
-
req: QueryBarCodeRequest,
|
350
|
-
cb?: (error: string, rep: QueryBarCodeResponse) => void
|
351
|
-
): Promise<QueryBarCodeResponse> {
|
352
|
-
return this.request("QueryBarCode", req, cb)
|
353
|
-
}
|
354
|
-
|
355
335
|
/**
|
356
336
|
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
|
357
337
|
|
@@ -977,18 +957,6 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
977
957
|
return this.request("FinanBillSliceOCR", req, cb)
|
978
958
|
}
|
979
959
|
|
980
|
-
/**
|
981
|
-
* 库源服务调整,该接口在2023年6月1日将正式下线。
|
982
|
-
|
983
|
-
此接口基于企业四要素授权“姓名、证件号码、企业标识、企业全称”,验证企业信息是否一致。
|
984
|
-
*/
|
985
|
-
async VerifyEnterpriseFourFactors(
|
986
|
-
req: VerifyEnterpriseFourFactorsRequest,
|
987
|
-
cb?: (error: string, rep: VerifyEnterpriseFourFactorsResponse) => void
|
988
|
-
): Promise<VerifyEnterpriseFourFactorsResponse> {
|
989
|
-
return this.request("VerifyEnterpriseFourFactors", req, cb)
|
990
|
-
}
|
991
|
-
|
992
960
|
/**
|
993
961
|
* 本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
|
994
962
|
|
@@ -1827,16 +1827,6 @@ export interface WaybillObj {
|
|
1827
1827
|
Text: string
|
1828
1828
|
}
|
1829
1829
|
|
1830
|
-
/**
|
1831
|
-
* 英文OCR识别出的单词在原图中的四点坐标数组
|
1832
|
-
*/
|
1833
|
-
export interface WordCoordPoint {
|
1834
|
-
/**
|
1835
|
-
* 英文OCR识别出的每个单词在原图中的四点坐标。
|
1836
|
-
*/
|
1837
|
-
WordCoordinate: Array<Coord>
|
1838
|
-
}
|
1839
|
-
|
1840
1830
|
/**
|
1841
1831
|
* 票据检测结果
|
1842
1832
|
*/
|
@@ -4995,88 +4985,13 @@ export interface RecognizeTravelCardOCRResponse {
|
|
4995
4985
|
}
|
4996
4986
|
|
4997
4987
|
/**
|
4998
|
-
*
|
4988
|
+
* 英文OCR识别出的单词在原图中的四点坐标数组
|
4999
4989
|
*/
|
5000
|
-
export interface
|
5001
|
-
/**
|
5002
|
-
* 产品名称
|
5003
|
-
*/
|
5004
|
-
ProductName: string
|
5005
|
-
/**
|
5006
|
-
* 产品名称(英文)
|
5007
|
-
*/
|
5008
|
-
EnName: string
|
5009
|
-
/**
|
5010
|
-
* 品牌名称
|
5011
|
-
*/
|
5012
|
-
BrandName: string
|
5013
|
-
/**
|
5014
|
-
* 规格型号
|
5015
|
-
*/
|
5016
|
-
Type: string
|
5017
|
-
/**
|
5018
|
-
* 宽度,单位毫米
|
5019
|
-
*/
|
5020
|
-
Width: string
|
5021
|
-
/**
|
5022
|
-
* 高度,单位毫米
|
5023
|
-
*/
|
5024
|
-
Height: string
|
5025
|
-
/**
|
5026
|
-
* 深度,单位毫米
|
5027
|
-
*/
|
5028
|
-
Depth: string
|
5029
|
-
/**
|
5030
|
-
* 关键字
|
5031
|
-
*/
|
5032
|
-
KeyWord: string
|
5033
|
-
/**
|
5034
|
-
* 简短描述
|
5035
|
-
*/
|
5036
|
-
Description: string
|
5037
|
-
/**
|
5038
|
-
* 图片链接
|
5039
|
-
*/
|
5040
|
-
ImageLink: Array<string>
|
5041
|
-
/**
|
5042
|
-
* 厂家名称
|
5043
|
-
*/
|
5044
|
-
ManufacturerName: string
|
5045
|
-
/**
|
5046
|
-
* 厂家地址
|
5047
|
-
*/
|
5048
|
-
ManufacturerAddress: string
|
5049
|
-
/**
|
5050
|
-
* 企业社会信用代码
|
5051
|
-
*/
|
5052
|
-
FirmCode: string
|
5053
|
-
/**
|
5054
|
-
* 表示数据查询状态
|
5055
|
-
checkResult 状态说明
|
5056
|
-
1 经查,该商品条码已在中国物品编码中心注册
|
5057
|
-
2 经查,该厂商识别代码已在中国物品编码中心注册,但编码信息未按规定通报。
|
5058
|
-
3 经查,该厂商识别代码已于xxxxx注销,请关注产品生产日期。
|
5059
|
-
4 经查,该企业以及条码未经条码中心注册,属于违法使用
|
5060
|
-
-1 经查,该商品条码被冒用
|
5061
|
-
-2 经查,该厂商识别代码已在中国物品编码中心注册,但该产品已经下市
|
5062
|
-
S001 未找到该厂商识别代码的注册信息。
|
5063
|
-
S002 该厂商识别代码已经在GS1注册,但编码信息未通报
|
5064
|
-
S003 该商品条码已在GS1通报
|
5065
|
-
S004 该商品条码已注销
|
5066
|
-
S005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
|
5067
|
-
E001 完整性失败:此GTIN的长度无效。
|
5068
|
-
E002 完整性失败:校验位不正确。
|
5069
|
-
E003 完整性失败:字符串包含字母数字字符。
|
5070
|
-
E004 数字不正确。GS1前缀(3位国家/地区代码)不存在。
|
5071
|
-
E005 数字不正确。GS1前缀(3位国家/地区代码)用于特殊用途。
|
5072
|
-
E006 数字不正确。尚未分配该GS1公司前缀。
|
5073
|
-
E008 经查,该企业厂商识别代码以及条码尚未通报
|
5074
|
-
*/
|
5075
|
-
CheckResult: string
|
4990
|
+
export interface WordCoordPoint {
|
5076
4991
|
/**
|
5077
|
-
*
|
4992
|
+
* 英文OCR识别出的每个单词在原图中的四点坐标。
|
5078
4993
|
*/
|
5079
|
-
|
4994
|
+
WordCoordinate: Array<Coord>
|
5080
4995
|
}
|
5081
4996
|
|
5082
4997
|
/**
|
@@ -5415,17 +5330,47 @@ export interface RideHailingDriverLicenseOCRResponse {
|
|
5415
5330
|
}
|
5416
5331
|
|
5417
5332
|
/**
|
5418
|
-
*
|
5333
|
+
* ImageEnhancement请求参数结构体
|
5419
5334
|
*/
|
5420
|
-
export interface
|
5335
|
+
export interface ImageEnhancementRequest {
|
5336
|
+
/**
|
5337
|
+
* 图片的 Base64 值。
|
5338
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5339
|
+
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
5340
|
+
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
5341
|
+
*/
|
5342
|
+
ImageBase64?: string
|
5421
5343
|
/**
|
5422
|
-
*
|
5344
|
+
* 图片的 Url 地址。
|
5345
|
+
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
5346
|
+
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
5347
|
+
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
5348
|
+
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
5349
|
+
*/
|
5350
|
+
ImageUrl?: string
|
5351
|
+
/**
|
5352
|
+
* 默认为空,ReturnImage的取值以及含义如下:
|
5353
|
+
“preprocess”: 返回预处理后的图片数据
|
5354
|
+
“origin”:返回原图片数据
|
5355
|
+
" ":不返回图片数据
|
5423
5356
|
*/
|
5424
|
-
|
5357
|
+
ReturnImage?: string
|
5425
5358
|
/**
|
5426
|
-
*
|
5359
|
+
* 默认值为1,指定图像增强方法:
|
5360
|
+
1:切边增强
|
5361
|
+
2:弯曲矫正
|
5362
|
+
202:黑白模式
|
5363
|
+
204:提亮模式
|
5364
|
+
205:灰度模式
|
5365
|
+
207:省墨模式
|
5366
|
+
208:文字锐化(适合非彩色图片)
|
5367
|
+
300:自动增强(自动从301~304选择任务类型)
|
5368
|
+
301:去摩尔纹
|
5369
|
+
302:去除阴影
|
5370
|
+
303:去除模糊
|
5371
|
+
304:去除过曝
|
5427
5372
|
*/
|
5428
|
-
|
5373
|
+
TaskType?: number
|
5429
5374
|
}
|
5430
5375
|
|
5431
5376
|
/**
|
@@ -5936,24 +5881,6 @@ export interface RideHailingDriverLicenseOCRRequest {
|
|
5936
5881
|
ImageUrl?: string
|
5937
5882
|
}
|
5938
5883
|
|
5939
|
-
/**
|
5940
|
-
* QueryBarCode返回参数结构体
|
5941
|
-
*/
|
5942
|
-
export interface QueryBarCodeResponse {
|
5943
|
-
/**
|
5944
|
-
* 条码
|
5945
|
-
*/
|
5946
|
-
BarCode?: string
|
5947
|
-
/**
|
5948
|
-
* 条码信息数组
|
5949
|
-
*/
|
5950
|
-
ProductDataRecords?: Array<ProductDataRecord>
|
5951
|
-
/**
|
5952
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5953
|
-
*/
|
5954
|
-
RequestId?: string
|
5955
|
-
}
|
5956
|
-
|
5957
5884
|
/**
|
5958
5885
|
* ArithmeticOCR请求参数结构体
|
5959
5886
|
*/
|
@@ -6351,28 +6278,6 @@ export interface AirTransport {
|
|
6351
6278
|
FlightItems?: Array<FlightItem>
|
6352
6279
|
}
|
6353
6280
|
|
6354
|
-
/**
|
6355
|
-
* VerifyEnterpriseFourFactors请求参数结构体
|
6356
|
-
*/
|
6357
|
-
export interface VerifyEnterpriseFourFactorsRequest {
|
6358
|
-
/**
|
6359
|
-
* 姓名
|
6360
|
-
*/
|
6361
|
-
RealName: string
|
6362
|
-
/**
|
6363
|
-
* 证件号码(公司注册证件号)
|
6364
|
-
*/
|
6365
|
-
IdCard: string
|
6366
|
-
/**
|
6367
|
-
* 企业全称
|
6368
|
-
*/
|
6369
|
-
EnterpriseName: string
|
6370
|
-
/**
|
6371
|
-
* 企业标识(注册号,统一社会信用代码)
|
6372
|
-
*/
|
6373
|
-
EnterpriseMark: string
|
6374
|
-
}
|
6375
|
-
|
6376
6281
|
/**
|
6377
6282
|
* 表格标题
|
6378
6283
|
*/
|
@@ -6810,16 +6715,6 @@ export interface LineInfo {
|
|
6810
6715
|
Lines?: Array<ItemInfo>
|
6811
6716
|
}
|
6812
6717
|
|
6813
|
-
/**
|
6814
|
-
* QueryBarCode请求参数结构体
|
6815
|
-
*/
|
6816
|
-
export interface QueryBarCodeRequest {
|
6817
|
-
/**
|
6818
|
-
* 条形码
|
6819
|
-
*/
|
6820
|
-
BarCode: string
|
6821
|
-
}
|
6822
|
-
|
6823
6718
|
/**
|
6824
6719
|
* 过路过桥费发票
|
6825
6720
|
*/
|
@@ -8376,50 +8271,6 @@ export interface InsuranceBillOCRRequest {
|
|
8376
8271
|
ImageUrl?: string
|
8377
8272
|
}
|
8378
8273
|
|
8379
|
-
/**
|
8380
|
-
* ImageEnhancement请求参数结构体
|
8381
|
-
*/
|
8382
|
-
export interface ImageEnhancementRequest {
|
8383
|
-
/**
|
8384
|
-
* 图片的 Base64 值。
|
8385
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8386
|
-
支持的图片大小:所下载图片经Base64编码后不超过 7M。图片下载时间不超过 3 秒。
|
8387
|
-
图片的 ImageUrl、ImageBase64 必须提供一个,如果都提供,只使用 ImageUrl。
|
8388
|
-
*/
|
8389
|
-
ImageBase64?: string
|
8390
|
-
/**
|
8391
|
-
* 图片的 Url 地址。
|
8392
|
-
支持的图片格式:PNG、JPG、JPEG,暂不支持 GIF 格式。
|
8393
|
-
支持的图片大小:所下载图片经 Base64 编码后不超过 7M。图片下载时间不超过 3 秒。
|
8394
|
-
图片存储于腾讯云的 Url 可保障更高的下载速度和稳定性,建议图片存储于腾讯云。
|
8395
|
-
非腾讯云存储的 Url 速度和稳定性可能受一定影响。
|
8396
|
-
*/
|
8397
|
-
ImageUrl?: string
|
8398
|
-
/**
|
8399
|
-
* 默认为空,ReturnImage的取值以及含义如下:
|
8400
|
-
“preprocess”: 返回预处理后的图片数据
|
8401
|
-
“origin”:返回原图片数据
|
8402
|
-
" ":不返回图片数据
|
8403
|
-
*/
|
8404
|
-
ReturnImage?: string
|
8405
|
-
/**
|
8406
|
-
* 默认值为1,指定图像增强方法:
|
8407
|
-
1:切边增强
|
8408
|
-
2:弯曲矫正
|
8409
|
-
202:黑白模式
|
8410
|
-
204:提亮模式
|
8411
|
-
205:灰度模式
|
8412
|
-
207:省墨模式
|
8413
|
-
208:文字锐化(适合非彩色图片)
|
8414
|
-
300:自动增强(自动从301~304选择任务类型)
|
8415
|
-
301:去摩尔纹
|
8416
|
-
302:去除阴影
|
8417
|
-
303:去除模糊
|
8418
|
-
304:去除过曝
|
8419
|
-
*/
|
8420
|
-
TaskType?: number
|
8421
|
-
}
|
8422
|
-
|
8423
8274
|
/**
|
8424
8275
|
* GeneralHandwritingOCR返回参数结构体
|
8425
8276
|
*/
|
@@ -9410,26 +9261,6 @@ export interface UsedCarPurchaseInvoice {
|
|
9410
9261
|
CompanySealMark?: number
|
9411
9262
|
}
|
9412
9263
|
|
9413
|
-
/**
|
9414
|
-
* VerifyEnterpriseFourFactors返回参数结构体
|
9415
|
-
*/
|
9416
|
-
export interface VerifyEnterpriseFourFactorsResponse {
|
9417
|
-
/**
|
9418
|
-
* 核验一致性(1:一致,2:不一致,3:查询无记录)
|
9419
|
-
*/
|
9420
|
-
State?: number
|
9421
|
-
/**
|
9422
|
-
* 核验结果明细,7:企业法人/负责人,6:企业股东,5:企
|
9423
|
-
业管理人员,-21:企业名称与企业标识不符,-22:姓名不一致,-23:证件号码不一致,-24:企业名称不一致,-25:企业标识不一致
|
9424
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
9425
|
-
*/
|
9426
|
-
Detail?: Detail
|
9427
|
-
/**
|
9428
|
-
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
9429
|
-
*/
|
9430
|
-
RequestId?: string
|
9431
|
-
}
|
9432
|
-
|
9433
9264
|
/**
|
9434
9265
|
* GeneralFastOCR返回参数结构体
|
9435
9266
|
*/
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, BankSlipOCRRequest, BusinessCardOCRResponse, HKIDCardOCRRequest, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, RecognizePhilippinesDrivingLicenseOCRRequest, MLIDPassportOCRRequest, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, VerifyBizLicenseResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, CreateAIFormTaskRequest, VerifyBizLicenseRequest, PermitOCRResponse, InvoiceGeneralOCRRequest, RideHailingTransportLicenseOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, RecognizePhilippinesVoteIDOCRRequest, InstitutionOCRResponse, DriverLicenseOCRRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, BankCardOCRRequest, VehicleRegCertOCRRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizePhilippinesTinIDOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RecognizePhilippinesVoteIDOCRResponse, GeneralAccurateOCRResponse, HmtResidentPermitOCRRequest, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeThaiIDCardOCRResponse, RecognizeMedicalInvoiceOCRResponse, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VatInvoiceVerifyNewRequest, VehicleLicenseOCRResponse, RecognizePhilippinesSssIDOCRRequest, IDCardOCRResponse, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, RecognizePhilippinesSssIDOCRResponse, TaxiInvoiceOCRRequest, PropOwnerCertOCRRequest, RecognizeContainerOCRRequest, EduPaperOCRRequest, VatRollInvoiceOCRResponse, VatInvoiceVerifyRequest, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, TableOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VerifyBasicBizLicenseResponse, TextDetectRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, RecognizeIndonesiaIDCardOCRResponse, GeneralEfficientOCRRequest, RecognizePhilippinesUMIDOCRResponse, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, VatInvoiceVerifyResponse, SmartStructuralOCRResponse, RecognizeIndonesiaIDCardOCRRequest, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, FlightInvoiceOCRResponse, InstitutionOCRRequest, RideHailingDriverLicenseOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, MLIDPassportOCRResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, VinOCRResponse, GetTaskStateResponse, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, CreateAIFormTaskResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, ShipInvoiceOCRResponse, RecognizeGeneralInvoiceResponse, GetTaskStateRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, BusInvoiceOCRResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, TableOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, VinOCRRequest, VatInvoiceOCRRequest, RecognizePhilippinesUMIDOCRRequest, MLIDCardOCRResponse, RecognizePhilippinesTinIDOCRRequest, RecognizeTableOCRRequest, EstateCertOCRRequest, VerifyBasicBizLicenseRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, BusinessCardOCRRequest, RecognizePhilippinesDrivingLicenseOCRResponse, FinanBillOCRRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -26,14 +26,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
26
26
|
默认接口请求频率限制:10次/秒。
|
27
27
|
*/
|
28
28
|
ImageEnhancement(req: ImageEnhancementRequest, cb?: (error: string, rep: ImageEnhancementResponse) => void): Promise<ImageEnhancementResponse>;
|
29
|
-
/**
|
30
|
-
* 库源服务调整,该接口在2023年6月1日将正式下线。
|
31
|
-
|
32
|
-
本接口支持条形码备案信息查询,返回条形码查询结果的相关信息,包括产品名称、产品英文名称、品牌名称、规格型号、宽度、高度、深度、关键字、产品描述、厂家名称、厂家地址、企业社会信用代码13个字段信息。
|
33
|
-
|
34
|
-
产品优势:直联中国物品编码中心,查询结果更加准确、可靠。
|
35
|
-
*/
|
36
|
-
QueryBarCode(req: QueryBarCodeRequest, cb?: (error: string, rep: QueryBarCodeResponse) => void): Promise<QueryBarCodeResponse>;
|
37
29
|
/**
|
38
30
|
* 本接口支持智能提取各类证照、票据、表单、合同等结构化场景的key:value字段信息,并支持提取表格信息的key:value组的结构化,灵活高效,适用于各类非标准材料的信息录入场景,点击[立即体验](https://cloud.tencent.com/product/smart-ocr)。
|
39
31
|
|
@@ -425,12 +417,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
425
417
|
默认接口请求频率限制:5次/秒。
|
426
418
|
*/
|
427
419
|
FinanBillSliceOCR(req: FinanBillSliceOCRRequest, cb?: (error: string, rep: FinanBillSliceOCRResponse) => void): Promise<FinanBillSliceOCRResponse>;
|
428
|
-
/**
|
429
|
-
* 库源服务调整,该接口在2023年6月1日将正式下线。
|
430
|
-
|
431
|
-
此接口基于企业四要素授权“姓名、证件号码、企业标识、企业全称”,验证企业信息是否一致。
|
432
|
-
*/
|
433
|
-
VerifyEnterpriseFourFactors(req: VerifyEnterpriseFourFactorsRequest, cb?: (error: string, rep: VerifyEnterpriseFourFactorsResponse) => void): Promise<VerifyEnterpriseFourFactorsResponse>;
|
434
420
|
/**
|
435
421
|
* 本接口支持识别公路汽车客票关键字段的识别,包括发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、身份证号、省、市、开票日期、乘车地点、检票口、客票类型、车型、座位号、车次等。
|
436
422
|
|
@@ -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
|
|