tencentcloud-sdk-nodejs-ocr 4.0.1052 → 4.1.7
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/README.md +27 -5
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/ocr/index.js +4 -0
- package/es/services/ocr/v20181119/index.js +6 -0
- package/es/services/ocr/v20181119/ocr_client.js +264 -0
- package/es/services/ocr/v20181119/ocr_models.js +0 -0
- package/package.json +26 -8
- package/tencentcloud/services/ocr/v20181119/index.js +2 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +72 -89
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +75 -97
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +68 -194
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/ocr/index.ts +0 -5
- package/src/services/ocr/v20181119/index.ts +0 -6
- package/src/services/ocr/v20181119/ocr_client.ts +0 -1860
- package/src/services/ocr/v20181119/ocr_models.ts +0 -11892
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
@@ -44,18 +44,40 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
44
44
|
|
45
45
|
### 安装全产品 SDK
|
46
46
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
48
|
+
|
47
49
|
```
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
49
51
|
```
|
50
52
|
|
51
|
-
全产品 SDK
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
54
|
+
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
56
|
+
|
57
|
+
```
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
59
|
+
```
|
52
60
|
|
53
61
|
## 通过源码包安装
|
54
62
|
|
55
|
-
1.
|
56
|
-
|
57
|
-
|
58
|
-
|
63
|
+
1. clone 代码到本地:
|
64
|
+
```
|
65
|
+
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
66
|
+
# 或者
|
67
|
+
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
68
|
+
```
|
69
|
+
2. 在项目根目录执行以下命令完成构建:
|
70
|
+
```
|
71
|
+
npm install && npm run build
|
72
|
+
```
|
73
|
+
3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
|
74
|
+
```
|
75
|
+
npm pack
|
76
|
+
```
|
77
|
+
4. 安装包到你的项目里:
|
78
|
+
```
|
79
|
+
npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
|
80
|
+
```
|
59
81
|
|
60
82
|
# 示例
|
61
83
|
|
package/es/index.js
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./services";
|
@@ -0,0 +1 @@
|
|
1
|
+
export { ocr } from "./ocr";
|
@@ -0,0 +1,264 @@
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
3
|
+
constructor(clientConfig) {
|
4
|
+
super("ocr.tencentcloudapi.com", "2018-11-19", clientConfig);
|
5
|
+
}
|
6
|
+
async QuestionOCR(req, cb) {
|
7
|
+
return this.request("QuestionOCR", req, cb);
|
8
|
+
}
|
9
|
+
async TextDetect(req, cb) {
|
10
|
+
return this.request("TextDetect", req, cb);
|
11
|
+
}
|
12
|
+
async QrcodeOCR(req, cb) {
|
13
|
+
return this.request("QrcodeOCR", req, cb);
|
14
|
+
}
|
15
|
+
async GeneralAccurateOCR(req, cb) {
|
16
|
+
return this.request("GeneralAccurateOCR", req, cb);
|
17
|
+
}
|
18
|
+
async RecognizeContainerOCR(req, cb) {
|
19
|
+
return this.request("RecognizeContainerOCR", req, cb);
|
20
|
+
}
|
21
|
+
async RecognizeEncryptedIDCardOCR(req, cb) {
|
22
|
+
return this.request("RecognizeEncryptedIDCardOCR", req, cb);
|
23
|
+
}
|
24
|
+
async RecognizeStoreName(req, cb) {
|
25
|
+
return this.request("RecognizeStoreName", req, cb);
|
26
|
+
}
|
27
|
+
async MLIDPassportOCR(req, cb) {
|
28
|
+
return this.request("MLIDPassportOCR", req, cb);
|
29
|
+
}
|
30
|
+
async TrainTicketOCR(req, cb) {
|
31
|
+
return this.request("TrainTicketOCR", req, cb);
|
32
|
+
}
|
33
|
+
async PropOwnerCertOCR(req, cb) {
|
34
|
+
return this.request("PropOwnerCertOCR", req, cb);
|
35
|
+
}
|
36
|
+
async InvoiceGeneralOCR(req, cb) {
|
37
|
+
return this.request("InvoiceGeneralOCR", req, cb);
|
38
|
+
}
|
39
|
+
async ReconstructDocument(req, cb) {
|
40
|
+
return this.request("ReconstructDocument", req, cb);
|
41
|
+
}
|
42
|
+
async HKIDCardOCR(req, cb) {
|
43
|
+
return this.request("HKIDCardOCR", req, cb);
|
44
|
+
}
|
45
|
+
async PermitOCR(req, cb) {
|
46
|
+
return this.request("PermitOCR", req, cb);
|
47
|
+
}
|
48
|
+
async BusInvoiceOCR(req, cb) {
|
49
|
+
return this.request("BusInvoiceOCR", req, cb);
|
50
|
+
}
|
51
|
+
async EnglishOCR(req, cb) {
|
52
|
+
return this.request("EnglishOCR", req, cb);
|
53
|
+
}
|
54
|
+
async SmartStructuralOCR(req, cb) {
|
55
|
+
return this.request("SmartStructuralOCR", req, cb);
|
56
|
+
}
|
57
|
+
async ClassifyStoreName(req, cb) {
|
58
|
+
return this.request("ClassifyStoreName", req, cb);
|
59
|
+
}
|
60
|
+
async TaxiInvoiceOCR(req, cb) {
|
61
|
+
return this.request("TaxiInvoiceOCR", req, cb);
|
62
|
+
}
|
63
|
+
async RideHailingDriverLicenseOCR(req, cb) {
|
64
|
+
return this.request("RideHailingDriverLicenseOCR", req, cb);
|
65
|
+
}
|
66
|
+
async RecognizeForeignPermanentResidentIdCard(req, cb) {
|
67
|
+
return this.request("RecognizeForeignPermanentResidentIdCard", req, cb);
|
68
|
+
}
|
69
|
+
async MainlandPermitOCR(req, cb) {
|
70
|
+
return this.request("MainlandPermitOCR", req, cb);
|
71
|
+
}
|
72
|
+
async GeneralBasicOCR(req, cb) {
|
73
|
+
return this.request("GeneralBasicOCR", req, cb);
|
74
|
+
}
|
75
|
+
async RecognizeThaiIDCardOCR(req, cb) {
|
76
|
+
return this.request("RecognizeThaiIDCardOCR", req, cb);
|
77
|
+
}
|
78
|
+
async RecognizeGeneralInvoice(req, cb) {
|
79
|
+
return this.request("RecognizeGeneralInvoice", req, cb);
|
80
|
+
}
|
81
|
+
async InsuranceBillOCR(req, cb) {
|
82
|
+
return this.request("InsuranceBillOCR", req, cb);
|
83
|
+
}
|
84
|
+
async VatInvoiceVerifyNew(req, cb) {
|
85
|
+
return this.request("VatInvoiceVerifyNew", req, cb);
|
86
|
+
}
|
87
|
+
async VinOCR(req, cb) {
|
88
|
+
return this.request("VinOCR", req, cb);
|
89
|
+
}
|
90
|
+
async VehicleLicenseOCR(req, cb) {
|
91
|
+
return this.request("VehicleLicenseOCR", req, cb);
|
92
|
+
}
|
93
|
+
async BizLicenseOCR(req, cb) {
|
94
|
+
return this.request("BizLicenseOCR", req, cb);
|
95
|
+
}
|
96
|
+
async RecognizeGeneralCardWarn(req, cb) {
|
97
|
+
return this.request("RecognizeGeneralCardWarn", req, cb);
|
98
|
+
}
|
99
|
+
async FlightInvoiceOCR(req, cb) {
|
100
|
+
return this.request("FlightInvoiceOCR", req, cb);
|
101
|
+
}
|
102
|
+
async MixedInvoiceOCR(req, cb) {
|
103
|
+
return this.request("MixedInvoiceOCR", req, cb);
|
104
|
+
}
|
105
|
+
async TableOCR(req, cb) {
|
106
|
+
return this.request("TableOCR", req, cb);
|
107
|
+
}
|
108
|
+
async ArithmeticOCR(req, cb) {
|
109
|
+
return this.request("ArithmeticOCR", req, cb);
|
110
|
+
}
|
111
|
+
async EstateCertOCR(req, cb) {
|
112
|
+
return this.request("EstateCertOCR", req, cb);
|
113
|
+
}
|
114
|
+
async RecognizeValidIDCardOCR(req, cb) {
|
115
|
+
return this.request("RecognizeValidIDCardOCR", req, cb);
|
116
|
+
}
|
117
|
+
async BankCardOCR(req, cb) {
|
118
|
+
return this.request("BankCardOCR", req, cb);
|
119
|
+
}
|
120
|
+
async GetOCRToken(req, cb) {
|
121
|
+
return this.request("GetOCRToken", req, cb);
|
122
|
+
}
|
123
|
+
async EduPaperOCR(req, cb) {
|
124
|
+
return this.request("EduPaperOCR", req, cb);
|
125
|
+
}
|
126
|
+
async EnterpriseLicenseOCR(req, cb) {
|
127
|
+
return this.request("EnterpriseLicenseOCR", req, cb);
|
128
|
+
}
|
129
|
+
async BusinessCardOCR(req, cb) {
|
130
|
+
return this.request("BusinessCardOCR", req, cb);
|
131
|
+
}
|
132
|
+
async IDCardOCR(req, cb) {
|
133
|
+
return this.request("IDCardOCR", req, cb);
|
134
|
+
}
|
135
|
+
async RecognizeGeneralTextImageWarn(req, cb) {
|
136
|
+
return this.request("RecognizeGeneralTextImageWarn", req, cb);
|
137
|
+
}
|
138
|
+
async InstitutionOCR(req, cb) {
|
139
|
+
return this.request("InstitutionOCR", req, cb);
|
140
|
+
}
|
141
|
+
async SmartStructuralOCRV2(req, cb) {
|
142
|
+
return this.request("SmartStructuralOCRV2", req, cb);
|
143
|
+
}
|
144
|
+
async RecognizeTableAccurateOCR(req, cb) {
|
145
|
+
return this.request("RecognizeTableAccurateOCR", req, cb);
|
146
|
+
}
|
147
|
+
async MixedInvoiceDetect(req, cb) {
|
148
|
+
return this.request("MixedInvoiceDetect", req, cb);
|
149
|
+
}
|
150
|
+
async VatRollInvoiceOCR(req, cb) {
|
151
|
+
return this.request("VatRollInvoiceOCR", req, cb);
|
152
|
+
}
|
153
|
+
async QuotaInvoiceOCR(req, cb) {
|
154
|
+
return this.request("QuotaInvoiceOCR", req, cb);
|
155
|
+
}
|
156
|
+
async GeneralHandwritingOCR(req, cb) {
|
157
|
+
return this.request("GeneralHandwritingOCR", req, cb);
|
158
|
+
}
|
159
|
+
async RecognizeOnlineTaxiItineraryOCR(req, cb) {
|
160
|
+
return this.request("RecognizeOnlineTaxiItineraryOCR", req, cb);
|
161
|
+
}
|
162
|
+
async RecognizeTableOCR(req, cb) {
|
163
|
+
return this.request("RecognizeTableOCR", req, cb);
|
164
|
+
}
|
165
|
+
async WaybillOCR(req, cb) {
|
166
|
+
return this.request("WaybillOCR", req, cb);
|
167
|
+
}
|
168
|
+
async HmtResidentPermitOCR(req, cb) {
|
169
|
+
return this.request("HmtResidentPermitOCR", req, cb);
|
170
|
+
}
|
171
|
+
async TollInvoiceOCR(req, cb) {
|
172
|
+
return this.request("TollInvoiceOCR", req, cb);
|
173
|
+
}
|
174
|
+
async ClassifyDetectOCR(req, cb) {
|
175
|
+
return this.request("ClassifyDetectOCR", req, cb);
|
176
|
+
}
|
177
|
+
async RecognizeFormulaOCR(req, cb) {
|
178
|
+
return this.request("RecognizeFormulaOCR", req, cb);
|
179
|
+
}
|
180
|
+
async SealOCR(req, cb) {
|
181
|
+
return this.request("SealOCR", req, cb);
|
182
|
+
}
|
183
|
+
async BankSlipOCR(req, cb) {
|
184
|
+
return this.request("BankSlipOCR", req, cb);
|
185
|
+
}
|
186
|
+
async ResidenceBookletOCR(req, cb) {
|
187
|
+
return this.request("ResidenceBookletOCR", req, cb);
|
188
|
+
}
|
189
|
+
async RecognizeTravelCardOCR(req, cb) {
|
190
|
+
return this.request("RecognizeTravelCardOCR", req, cb);
|
191
|
+
}
|
192
|
+
async VerifyOfdVatInvoiceOCR(req, cb) {
|
193
|
+
return this.request("VerifyOfdVatInvoiceOCR", req, cb);
|
194
|
+
}
|
195
|
+
async DriverLicenseOCR(req, cb) {
|
196
|
+
return this.request("DriverLicenseOCR", req, cb);
|
197
|
+
}
|
198
|
+
async FinanBillOCR(req, cb) {
|
199
|
+
return this.request("FinanBillOCR", req, cb);
|
200
|
+
}
|
201
|
+
async SmartStructuralPro(req, cb) {
|
202
|
+
return this.request("SmartStructuralPro", req, cb);
|
203
|
+
}
|
204
|
+
async RecognizeHealthCodeOCR(req, cb) {
|
205
|
+
return this.request("RecognizeHealthCodeOCR", req, cb);
|
206
|
+
}
|
207
|
+
async ImageEnhancement(req, cb) {
|
208
|
+
return this.request("ImageEnhancement", req, cb);
|
209
|
+
}
|
210
|
+
async QuestionSplitOCR(req, cb) {
|
211
|
+
return this.request("QuestionSplitOCR", req, cb);
|
212
|
+
}
|
213
|
+
async MLIDCardOCR(req, cb) {
|
214
|
+
return this.request("MLIDCardOCR", req, cb);
|
215
|
+
}
|
216
|
+
async RecognizeMedicalInvoiceOCR(req, cb) {
|
217
|
+
return this.request("RecognizeMedicalInvoiceOCR", req, cb);
|
218
|
+
}
|
219
|
+
async GeneralFastOCR(req, cb) {
|
220
|
+
return this.request("GeneralFastOCR", req, cb);
|
221
|
+
}
|
222
|
+
async VatInvoiceOCR(req, cb) {
|
223
|
+
return this.request("VatInvoiceOCR", req, cb);
|
224
|
+
}
|
225
|
+
async DutyPaidProofOCR(req, cb) {
|
226
|
+
return this.request("DutyPaidProofOCR", req, cb);
|
227
|
+
}
|
228
|
+
async OrgCodeCertOCR(req, cb) {
|
229
|
+
return this.request("OrgCodeCertOCR", req, cb);
|
230
|
+
}
|
231
|
+
async FinanBillSliceOCR(req, cb) {
|
232
|
+
return this.request("FinanBillSliceOCR", req, cb);
|
233
|
+
}
|
234
|
+
async LicensePlateOCR(req, cb) {
|
235
|
+
return this.request("LicensePlateOCR", req, cb);
|
236
|
+
}
|
237
|
+
async GeneralEfficientOCR(req, cb) {
|
238
|
+
return this.request("GeneralEfficientOCR", req, cb);
|
239
|
+
}
|
240
|
+
async AdvertiseOCR(req, cb) {
|
241
|
+
return this.request("AdvertiseOCR", req, cb);
|
242
|
+
}
|
243
|
+
async VehicleRegCertOCR(req, cb) {
|
244
|
+
return this.request("VehicleRegCertOCR", req, cb);
|
245
|
+
}
|
246
|
+
async CarInvoiceOCR(req, cb) {
|
247
|
+
return this.request("CarInvoiceOCR", req, cb);
|
248
|
+
}
|
249
|
+
async GetOCRResult(req, cb) {
|
250
|
+
return this.request("GetOCRResult", req, cb);
|
251
|
+
}
|
252
|
+
async FormulaOCR(req, cb) {
|
253
|
+
return this.request("FormulaOCR", req, cb);
|
254
|
+
}
|
255
|
+
async PassportOCR(req, cb) {
|
256
|
+
return this.request("PassportOCR", req, cb);
|
257
|
+
}
|
258
|
+
async ShipInvoiceOCR(req, cb) {
|
259
|
+
return this.request("ShipInvoiceOCR", req, cb);
|
260
|
+
}
|
261
|
+
async RideHailingTransportLicenseOCR(req, cb) {
|
262
|
+
return this.request("RideHailingTransportLicenseOCR", req, cb);
|
263
|
+
}
|
264
|
+
}
|
File without changes
|
package/package.json
CHANGED
@@ -1,16 +1,26 @@
|
|
1
1
|
{
|
2
2
|
"name": "tencentcloud-sdk-nodejs-ocr",
|
3
|
-
"version": "4.
|
4
|
-
"description": "
|
5
|
-
"main": "tencentcloud/index.js",
|
3
|
+
"version": "4.1.7",
|
4
|
+
"description": "腾讯云 API NODEJS SDK",
|
5
|
+
"main": "./tencentcloud/index.js",
|
6
|
+
"module": "./es/index.js",
|
7
|
+
"types": "./tencentcloud/index.d.ts",
|
6
8
|
"scripts": {
|
7
9
|
"test": "mocha -t 10000",
|
8
|
-
"build": "
|
9
|
-
"
|
10
|
+
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
11
|
+
"build:cjs": "tsc -p tsconfig.json",
|
12
|
+
"build:es": "tsc -p tsconfig.es.json",
|
13
|
+
"build:slim": "node ./scripts/build_slim.js",
|
14
|
+
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
15
|
+
"clean": "rimraf tencentcloud es"
|
10
16
|
},
|
11
17
|
"engines": {
|
12
18
|
"node": ">=10"
|
13
19
|
},
|
20
|
+
"files": [
|
21
|
+
"tencentcloud",
|
22
|
+
"es"
|
23
|
+
],
|
14
24
|
"keywords": [
|
15
25
|
"tencentcloudapi",
|
16
26
|
"tencentcloud",
|
@@ -22,7 +32,7 @@
|
|
22
32
|
"author": "tencentcloudapi",
|
23
33
|
"license": "Apache-2.0",
|
24
34
|
"dependencies": {
|
25
|
-
"tencentcloud-sdk-nodejs-common": "
|
35
|
+
"tencentcloud-sdk-nodejs-common": "*",
|
26
36
|
"tslib": "1.13.0"
|
27
37
|
},
|
28
38
|
"directories": {
|
@@ -35,14 +45,22 @@
|
|
35
45
|
},
|
36
46
|
"devDependencies": {
|
37
47
|
"@types/form-data": "^2.5.0",
|
48
|
+
"@types/json-bigint": "^1.0.1",
|
38
49
|
"@types/node": "^14.0.26",
|
39
50
|
"@types/node-fetch": "^2.5.7",
|
51
|
+
"@types/uuid": "^9.0.8",
|
40
52
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
41
53
|
"@typescript-eslint/parser": "^2.34.0",
|
54
|
+
"babel-eslint": "^10.0.2",
|
42
55
|
"chai": "^4.2.0",
|
56
|
+
"concurrently": "^6.5.1",
|
57
|
+
"esbuild": "^0.25.0",
|
43
58
|
"eslint": "^6.8.0",
|
44
|
-
"
|
59
|
+
"eslint-plugin-react": "^7.17.0",
|
60
|
+
"mocha": "^8.4.0",
|
61
|
+
"prettier": "^2.3.0",
|
62
|
+
"rimraf": "^5.0.10",
|
45
63
|
"ts-node": "^8.10.2",
|
46
64
|
"typescript": "^3.9.7"
|
47
65
|
}
|
48
|
-
}
|
66
|
+
}
|
@@ -1,7 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.v20181119 = void 0;
|
4
|
-
const
|
4
|
+
const tslib_1 = require("tslib");
|
5
|
+
const Models = tslib_1.__importStar(require("./ocr_models"));
|
5
6
|
const ocr_client_1 = require("./ocr_client");
|
6
7
|
exports.v20181119 = {
|
7
8
|
Client: ocr_client_1.Client,
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
2
|
-
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse,
|
2
|
+
import { RecognizeOnlineTaxiItineraryOCRResponse, HKIDCardOCRRequest, BankSlipOCRRequest, BusinessCardOCRResponse, BankCardOCRRequest, SmartStructuralOCRResponse, CarInvoiceOCRRequest, RecognizeTravelCardOCRRequest, TrainTicketOCRRequest, EstateCertOCRResponse, FlightInvoiceOCRRequest, MLIDPassportOCRRequest, RecognizeGeneralTextImageWarnResponse, SmartStructuralOCRV2Request, TextDetectResponse, TollInvoiceOCRResponse, GetOCRTokenResponse, FinanBillSliceOCRResponse, DriverLicenseOCRResponse, WaybillOCRResponse, ClassifyStoreNameRequest, InvoiceGeneralOCRRequest, QuestionSplitOCRRequest, HmtResidentPermitOCRResponse, EnterpriseLicenseOCRResponse, QuestionOCRResponse, InstitutionOCRResponse, DriverLicenseOCRRequest, SmartStructuralProRequest, RecognizeTableOCRResponse, QrcodeOCRResponse, MainlandPermitOCRRequest, SmartStructuralOCRV2Response, EnterpriseLicenseOCRRequest, QuestionSplitOCRResponse, TableOCRResponse, RecognizeStoreNameRequest, PropOwnerCertOCRResponse, TrainTicketOCRResponse, RecognizeFormulaOCRResponse, ArithmeticOCRResponse, FormulaOCRResponse, RecognizeGeneralCardWarnRequest, RecognizeEncryptedIDCardOCRRequest, SmartStructuralOCRRequest, GeneralHandwritingOCRRequest, BizLicenseOCRRequest, MixedInvoiceDetectResponse, RideHailingDriverLicenseOCRRequest, GeneralAccurateOCRResponse, QrcodeOCRRequest, TaxiInvoiceOCRResponse, RecognizeGeneralInvoiceRequest, GeneralBasicOCRResponse, RecognizeMedicalInvoiceOCRResponse, RecognizeValidIDCardOCRRequest, MixedInvoiceOCRResponse, ClassifyDetectOCRResponse, VinOCRRequest, VehicleLicenseOCRResponse, VatInvoiceOCRRequest, ClassifyDetectOCRRequest, DutyPaidProofOCRResponse, TollInvoiceOCRRequest, LicensePlateOCRResponse, HKIDCardOCRResponse, RecognizeThaiIDCardOCRResponse, OrgCodeCertOCRResponse, PermitOCRRequest, InvoiceGeneralOCRResponse, VatInvoiceVerifyNewResponse, TaxiInvoiceOCRRequest, RecognizeContainerOCRRequest, TextDetectRequest, VatRollInvoiceOCRResponse, EduPaperOCRResponse, RecognizeThaiIDCardOCRRequest, PropOwnerCertOCRRequest, ImageEnhancementResponse, PassportOCRResponse, VehicleRegCertOCRRequest, RecognizeTravelCardOCRResponse, LicensePlateOCRRequest, GeneralBasicOCRRequest, ReconstructDocumentResponse, GeneralEfficientOCRRequest, AdvertiseOCRRequest, RideHailingDriverLicenseOCRResponse, ImageEnhancementRequest, EnglishOCRRequest, RecognizeValidIDCardOCRResponse, IDCardOCRResponse, GeneralAccurateOCRRequest, OrgCodeCertOCRRequest, RecognizeFormulaOCRRequest, FlightInvoiceOCRResponse, ShipInvoiceOCRResponse, ReconstructDocumentRequest, VatInvoiceVerifyNewRequest, InstitutionOCRRequest, ArithmeticOCRRequest, VerifyOfdVatInvoiceOCRRequest, FinanBillSliceOCRRequest, RecognizeGeneralCardWarnResponse, ClassifyStoreNameResponse, VatRollInvoiceOCRRequest, RecognizeTableAccurateOCRRequest, SealOCRResponse, FinanBillOCRResponse, RecognizeHealthCodeOCRRequest, BankSlipOCRResponse, RecognizeEncryptedIDCardOCRResponse, VinOCRResponse, EduPaperOCRRequest, FormulaOCRRequest, PassportOCRRequest, DutyPaidProofOCRRequest, RecognizeHealthCodeOCRResponse, MixedInvoiceOCRRequest, ResidenceBookletOCRResponse, CarInvoiceOCRResponse, VehicleRegCertOCRResponse, GeneralFastOCRRequest, RecognizeGeneralInvoiceResponse, QuestionOCRRequest, RecognizeMedicalInvoiceOCRRequest, InsuranceBillOCRResponse, GeneralEfficientOCRResponse, ShipInvoiceOCRRequest, MLIDPassportOCRResponse, SealOCRRequest, VerifyOfdVatInvoiceOCRResponse, HmtResidentPermitOCRRequest, RecognizeTableAccurateOCRResponse, ResidenceBookletOCRRequest, GetOCRResultRequest, BusInvoiceOCRResponse, GetOCRResultResponse, MainlandPermitOCRResponse, MLIDCardOCRRequest, EnglishOCRResponse, RecognizeForeignPermanentResidentIdCardResponse, BusInvoiceOCRRequest, QuotaInvoiceOCRResponse, RideHailingTransportLicenseOCRResponse, RecognizeContainerOCRResponse, SmartStructuralProResponse, PermitOCRResponse, InsuranceBillOCRRequest, GeneralHandwritingOCRResponse, AdvertiseOCRResponse, VehicleLicenseOCRRequest, RecognizeOnlineTaxiItineraryOCRRequest, IDCardOCRRequest, MixedInvoiceDetectRequest, WaybillOCRRequest, RecognizeStoreNameResponse, GetOCRTokenRequest, RideHailingTransportLicenseOCRRequest, MLIDCardOCRResponse, RecognizeTableOCRRequest, EstateCertOCRRequest, BizLicenseOCRResponse, VatInvoiceOCRResponse, QuotaInvoiceOCRRequest, BankCardOCRResponse, TableOCRRequest, BusinessCardOCRRequest, FinanBillOCRRequest, RecognizeGeneralTextImageWarnRequest, RecognizeForeignPermanentResidentIdCardRequest, GeneralFastOCRResponse } from "./ocr_models";
|
3
3
|
/**
|
4
4
|
* ocr client
|
5
5
|
* @class
|
@@ -243,11 +243,71 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
243
243
|
*/
|
244
244
|
MainlandPermitOCR(req: MainlandPermitOCRRequest, cb?: (error: string, rep: MainlandPermitOCRResponse) => void): Promise<MainlandPermitOCRResponse>;
|
245
245
|
/**
|
246
|
-
*
|
246
|
+
* 本接口支持图像整体文字的检测和识别。可以识别中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语,阿拉伯语20种语言,且各种语言均支持与英文混合的文字识别。
|
247
247
|
|
248
|
-
|
248
|
+
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
249
|
+
|
250
|
+
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
251
|
+
|
252
|
+
通用印刷体识别不同版本的差异如下:
|
253
|
+
<table style="width:715px">
|
254
|
+
<thead>
|
255
|
+
<tr>
|
256
|
+
<th style="width:150px"></th>
|
257
|
+
<th style="width:200px">【荐】通用印刷体识别</th>
|
258
|
+
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
259
|
+
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
260
|
+
</tr>
|
261
|
+
</thead>
|
262
|
+
<tbody>
|
263
|
+
<tr>
|
264
|
+
<td> 适用场景</td>
|
265
|
+
<td>适用于所有通用场景的印刷体识别</td>
|
266
|
+
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
267
|
+
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
268
|
+
</tr>
|
269
|
+
<tr>
|
270
|
+
<td>识别准确率</td>
|
271
|
+
<td>96%</td>
|
272
|
+
<td>99%</td>
|
273
|
+
<td>91%</td>
|
274
|
+
</tr>
|
275
|
+
<tr>
|
276
|
+
<td>价格</td>
|
277
|
+
<td>中</td>
|
278
|
+
<td>高</td>
|
279
|
+
<td>低</td>
|
280
|
+
</tr>
|
281
|
+
<tr>
|
282
|
+
<td>支持的语言</td>
|
283
|
+
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
284
|
+
<td>中文、英文、中英文</td>
|
285
|
+
<td>中文、英文、中英文</td>
|
286
|
+
</tr>
|
287
|
+
<tr>
|
288
|
+
<td>自动语言检测</td>
|
289
|
+
<td>支持</td>
|
290
|
+
<td>支持</td>
|
291
|
+
<td>支持</td>
|
292
|
+
</tr>
|
293
|
+
<tr>
|
294
|
+
<td>返回文本行坐标</td>
|
295
|
+
<td>支持</td>
|
296
|
+
<td>支持</td>
|
297
|
+
<td>支持</td>
|
298
|
+
</tr>
|
299
|
+
<tr>
|
300
|
+
<td>自动旋转纠正</td>
|
301
|
+
<td>支持旋转识别,返回角度信息</td>
|
302
|
+
<td>支持旋转识别,返回角度信息</td>
|
303
|
+
<td>支持旋转识别,返回角度信息</td>
|
304
|
+
</tr>
|
305
|
+
</tbody>
|
306
|
+
</table>
|
307
|
+
|
308
|
+
默认接口请求频率限制:20次/秒。
|
249
309
|
*/
|
250
|
-
|
310
|
+
GeneralBasicOCR(req: GeneralBasicOCRRequest, cb?: (error: string, rep: GeneralBasicOCRResponse) => void): Promise<GeneralBasicOCRResponse>;
|
251
311
|
/**
|
252
312
|
* 本接口支持泰国身份证识别,识别字段包括泰文姓名、英文姓名、地址、出生日期、身份证号码、首次领用日期、签发日期等字段。
|
253
313
|
本接口暂未完全对外开放,如需咨询,请[联系商务](https://cloud.tencent.com/about/connect)
|
@@ -411,6 +471,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
411
471
|
<td> 海关缴款 </td>
|
412
472
|
<td> 19 </td>
|
413
473
|
</tr>
|
474
|
+
<tr>
|
475
|
+
<td> BankSlip </td>
|
476
|
+
<td> 银行回单 </td>
|
477
|
+
<td> 20 </td>
|
478
|
+
</tr>
|
414
479
|
<tr>
|
415
480
|
<td> OtherInvoice </td>
|
416
481
|
<td> 其他发票 </td>
|
@@ -455,12 +520,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
455
520
|
默认接口请求频率限制:10次/秒。
|
456
521
|
*/
|
457
522
|
BizLicenseOCR(req: BizLicenseOCRRequest, cb?: (error: string, rep: BizLicenseOCRResponse) => void): Promise<BizLicenseOCRResponse>;
|
458
|
-
/**
|
459
|
-
* 智慧表单产品已下线,需要下线相关API
|
460
|
-
|
461
|
-
支持查询智能表单录入任务的状态。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
462
|
-
*/
|
463
|
-
GetTaskState(req: GetTaskStateRequest, cb?: (error: string, rep: GetTaskStateResponse) => void): Promise<GetTaskStateResponse>;
|
464
523
|
/**
|
465
524
|
* 支持通用证照的有效性检测告警,包括卡证复印件告警、卡证翻拍告警等功能,支持通用证照的ps伪造检测,可以应用于各种证件信息有效性校验场景。
|
466
525
|
|
@@ -468,71 +527,11 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
468
527
|
*/
|
469
528
|
RecognizeGeneralCardWarn(req: RecognizeGeneralCardWarnRequest, cb?: (error: string, rep: RecognizeGeneralCardWarnResponse) => void): Promise<RecognizeGeneralCardWarnResponse>;
|
470
529
|
/**
|
471
|
-
*
|
472
|
-
|
473
|
-
适用于印刷文档识别、网络图片识别、广告图文字识别、街景店招牌识别、菜单识别、视频标题识别、头像文字识别等场景。
|
474
|
-
|
475
|
-
产品优势:支持自动识别语言类型,可返回文本框坐标信息,对于倾斜文本支持自动旋转纠正。
|
476
|
-
|
477
|
-
通用印刷体识别不同版本的差异如下:
|
478
|
-
<table style="width:715px">
|
479
|
-
<thead>
|
480
|
-
<tr>
|
481
|
-
<th style="width:150px"></th>
|
482
|
-
<th style="width:200px">【荐】通用印刷体识别</th>
|
483
|
-
<th ><a href="https://cloud.tencent.com/document/product/866/34937">【荐】通用印刷体识别(高精度版)</a></th>
|
484
|
-
<th><a href="https://cloud.tencent.com/document/product/866/37831">通用印刷体识别(精简版)</a></th>
|
485
|
-
</tr>
|
486
|
-
</thead>
|
487
|
-
<tbody>
|
488
|
-
<tr>
|
489
|
-
<td> 适用场景</td>
|
490
|
-
<td>适用于所有通用场景的印刷体识别</td>
|
491
|
-
<td>适用于文字较多、长串数字、小字、模糊字、倾斜文本等困难场景</td>
|
492
|
-
<td>适用于快速文本识别场景,准召率有一定损失,价格更优惠</td>
|
493
|
-
</tr>
|
494
|
-
<tr>
|
495
|
-
<td>识别准确率</td>
|
496
|
-
<td>96%</td>
|
497
|
-
<td>99%</td>
|
498
|
-
<td>91%</td>
|
499
|
-
</tr>
|
500
|
-
<tr>
|
501
|
-
<td>价格</td>
|
502
|
-
<td>中</td>
|
503
|
-
<td>高</td>
|
504
|
-
<td>低</td>
|
505
|
-
</tr>
|
506
|
-
<tr>
|
507
|
-
<td>支持的语言</td>
|
508
|
-
<td>中文、英文、中英文、日语、韩语、西班牙语、法语、德语、葡萄牙语、越南语、马来语、俄语、意大利语、荷兰语、瑞典语、芬兰语、丹麦语、挪威语、匈牙利语、泰语</td>
|
509
|
-
<td>中文、英文、中英文</td>
|
510
|
-
<td>中文、英文、中英文</td>
|
511
|
-
</tr>
|
512
|
-
<tr>
|
513
|
-
<td>自动语言检测</td>
|
514
|
-
<td>支持</td>
|
515
|
-
<td>支持</td>
|
516
|
-
<td>支持</td>
|
517
|
-
</tr>
|
518
|
-
<tr>
|
519
|
-
<td>返回文本行坐标</td>
|
520
|
-
<td>支持</td>
|
521
|
-
<td>支持</td>
|
522
|
-
<td>支持</td>
|
523
|
-
</tr>
|
524
|
-
<tr>
|
525
|
-
<td>自动旋转纠正</td>
|
526
|
-
<td>支持旋转识别,返回角度信息</td>
|
527
|
-
<td>支持旋转识别,返回角度信息</td>
|
528
|
-
<td>支持旋转识别,返回角度信息</td>
|
529
|
-
</tr>
|
530
|
-
</tbody>
|
531
|
-
</table>
|
530
|
+
* 本接口支持机票行程单关键字段的识别,包括旅客姓名、有效身份证件号码、电子客票号码、验证码、填开单位、其他税费、燃油附加费、民航发展基金、保险费、销售单位代号、始发地、目的地、航班号、时间、日期、座位等级、承运人、发票消费类型、票价、合计金额、填开日期、国内国际标签、印刷序号、客票级别/类别、客票生效日期、有效期截止日期、免费行李等字段,支持航班信息多行明细输出。
|
532
531
|
|
533
|
-
默认接口请求频率限制:
|
532
|
+
默认接口请求频率限制:5次/秒。
|
534
533
|
*/
|
535
|
-
|
534
|
+
FlightInvoiceOCR(req: FlightInvoiceOCRRequest, cb?: (error: string, rep: FlightInvoiceOCRResponse) => void): Promise<FlightInvoiceOCRResponse>;
|
536
535
|
/**
|
537
536
|
* 本接口支持 单张、多张、多类型 票据的混合识别,同时支持自选需要识别的票据类型,已支持票种包括:增值税发票(专票、普票、卷票)、全电发票、非税发票、定额发票、通用机打发票、购车发票、火车票、出租车发票、机票行程单、汽车票、轮船票、过路过桥费发票共14种标准报销发票,并支持其他类发票的识别。
|
538
537
|
|
@@ -571,14 +570,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
571
570
|
默认接口请求频率限制:10次/秒。
|
572
571
|
*/
|
573
572
|
BankCardOCR(req: BankCardOCRRequest, cb?: (error: string, rep: BankCardOCRResponse) => void): Promise<BankCardOCRResponse>;
|
574
|
-
/**
|
575
|
-
* 已上线VatInvoiceVerifyNew,VatInvoiceVerify需要下线,产品在官网已发通告
|
576
|
-
|
577
|
-
本接口支持增值税发票的准确性核验,您可以通过输入增值税发票的关键字段提供所需的验证信息,接口返回真实的票面相关信息,包括发票代码、发票号码、开票日期、金额、消费类型、购方名称、购方税号、销方名称、销方税号等多个常用字段。支持多种发票类型核验,包括增值税专用发票、增值税普通发票(含电子普通发票、卷式发票、通行费发票)、全电发票、机动车销售统一发票、货物运输业增值税专用发票、二手车销售统一发票。
|
578
|
-
|
579
|
-
默认接口请求频率限制:20次/秒。
|
580
|
-
*/
|
581
|
-
VatInvoiceVerify(req: VatInvoiceVerifyRequest, cb?: (error: string, rep: VatInvoiceVerifyResponse) => void): Promise<VatInvoiceVerifyResponse>;
|
582
573
|
/**
|
583
574
|
* 获取ocr的token值
|
584
575
|
*/
|
@@ -711,14 +702,6 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
711
702
|
默认接口请求频率限制:10次/秒。
|
712
703
|
*/
|
713
704
|
RecognizeTableOCR(req: RecognizeTableOCRRequest, cb?: (error: string, rep: RecognizeTableOCRResponse) => void): Promise<RecognizeTableOCRResponse>;
|
714
|
-
/**
|
715
|
-
* 智慧表单产品已下线,需要下线相关API
|
716
|
-
|
717
|
-
本接口可创建智能表单录入任务,支持多个识别图片和PDF的URL上传,返回含有识别内容的操作页面URL。
|
718
|
-
|
719
|
-
智能表单录入产品提供高准确率的表单识别技术和人工核对工具,支持自定义字段,将识别结果自动填入到自定义条目中,并提供人工操作工具,完成整个表单识别过程。适用性强,可对票据、合同、货单等文件的识别,适用于金融、货代、保险、档案等领域。本产品免费公测中,您可以点击demo(超链接:https://ocr.smartform.cloud.tencent.com/)试用,如需购买请与商务团队联系。
|
720
|
-
*/
|
721
|
-
CreateAIFormTask(req: CreateAIFormTaskRequest, cb?: (error: string, rep: CreateAIFormTaskResponse) => void): Promise<CreateAIFormTaskResponse>;
|
722
705
|
/**
|
723
706
|
* 本接口支持市面上主流版式电子运单的识别,包括收件人和寄件人的姓名、电话、地址以及运单号等字段。
|
724
707
|
|