tencentcloud-sdk-nodejs-intl-en 3.0.1364 → 3.0.1365

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.
@@ -16,144 +16,8 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
- const InvoiceItem = models.InvoiceItem;
20
- const RecognizeMexicoVTIDResponse = models.RecognizeMexicoVTIDResponse;
21
- const HKIDCardOCRRequest = models.HKIDCardOCRRequest;
22
- const ExtractDocMultiRequest = models.ExtractDocMultiRequest;
23
- const RecognizeBrazilIDCardOCRRequest = models.RecognizeBrazilIDCardOCRRequest;
24
- const RecognizePhilippinesDrivingLicenseOCRRequest = models.RecognizePhilippinesDrivingLicenseOCRRequest;
25
- const WordItem = models.WordItem;
26
- const MLIDPassportOCRRequest = models.MLIDPassportOCRRequest;
27
- const ItemInfo = models.ItemInfo;
28
- const SmartStructuralOCRV2Request = models.SmartStructuralOCRV2Request;
29
- const OtherInvoiceList = models.OtherInvoiceList;
30
- const RecognizeBrazilCommonOCRResponse = models.RecognizeBrazilCommonOCRResponse;
31
- const RecognizeMacaoIDCardOCRResponse = models.RecognizeMacaoIDCardOCRResponse;
32
- const GetCardVerificationExternalResultResponse = models.GetCardVerificationExternalResultResponse;
33
19
  const PermitOCRResponse = models.PermitOCRResponse;
34
- const RecognizeBrazilDriverLicenseOCRRequest = models.RecognizeBrazilDriverLicenseOCRRequest;
35
- const Rect = models.Rect;
36
- const RecognizeMainlandIDCardOCRRequest = models.RecognizeMainlandIDCardOCRRequest;
37
- const VatRollItem = models.VatRollItem;
38
- const HmtResidentPermitOCRResponse = models.HmtResidentPermitOCRResponse;
39
- const WordPolygon = models.WordPolygon;
40
- const FlightItem = models.FlightItem;
41
- const Value = models.Value;
42
- const RecognizeDetectCardCoordsResponse = models.RecognizeDetectCardCoordsResponse;
43
- const SealInfo = models.SealInfo;
44
- const RecognizePhilippinesVoteIDOCRRequest = models.RecognizePhilippinesVoteIDOCRRequest;
45
- const RecognizeKoreanDrivingLicenseOCRRequest = models.RecognizeKoreanDrivingLicenseOCRRequest;
46
- const BrazilRNMInfo = models.BrazilRNMInfo;
47
- const OtherInvoiceItem = models.OtherInvoiceItem;
48
- const SmartStructuralProRequest = models.SmartStructuralProRequest;
49
- const LicensePlateOCRResponse = models.LicensePlateOCRResponse;
50
- const RecognizeDetectCardCoordsRequest = models.RecognizeDetectCardCoordsRequest;
51
- const VatInvoiceItemInfo = models.VatInvoiceItemInfo;
52
- const GeneralCard = models.GeneralCard;
53
- const MainlandPermitOCRRequest = models.MainlandPermitOCRRequest;
54
- const RecognizeBrazilCommonOCRRequest = models.RecognizeBrazilCommonOCRRequest;
55
- const TextDetection = models.TextDetection;
56
- const RecognizePhilippinesTinIDOCRResponse = models.RecognizePhilippinesTinIDOCRResponse;
57
- const DetectedWords = models.DetectedWords;
58
- const TableCellInfo = models.TableCellInfo;
59
- const ShippingInvoice = models.ShippingInvoice;
60
- const RecognizePhilippinesVoteIDOCRResponse = models.RecognizePhilippinesVoteIDOCRResponse;
61
- const BrazilDriverLicenseInfo = models.BrazilDriverLicenseInfo;
62
- const GeneralMachineItem = models.GeneralMachineItem;
63
- const GeneralAccurateOCRResponse = models.GeneralAccurateOCRResponse;
64
- const HmtResidentPermitOCRRequest = models.HmtResidentPermitOCRRequest;
65
- const BusInvoice = models.BusInvoice;
66
- const RecognizeGeneralInvoiceRequest = models.RecognizeGeneralInvoiceRequest;
67
- const GeneralBasicOCRResponse = models.GeneralBasicOCRResponse;
68
- const RecognizeThaiIDCardOCRResponse = models.RecognizeThaiIDCardOCRResponse;
69
- const OtherInvoice = models.OtherInvoice;
70
- const RecognizePhilippinesDrivingLicenseOCRResponse = models.RecognizePhilippinesDrivingLicenseOCRResponse;
71
- const BankCardOCRRequest = models.BankCardOCRRequest;
72
- const RecognizePhilippinesSssIDOCRRequest = models.RecognizePhilippinesSssIDOCRRequest;
73
- const Key = models.Key;
74
- const IDCardOCRResponse = models.IDCardOCRResponse;
75
- const MLIDCardOCRRequest = models.MLIDCardOCRRequest;
76
- const BrazilIDCardInfo = models.BrazilIDCardInfo;
77
- const HKIDCardOCRResponse = models.HKIDCardOCRResponse;
78
- const GroupInfo = models.GroupInfo;
79
- const QuotaInvoice = models.QuotaInvoice;
80
20
  const PermitOCRRequest = models.PermitOCRRequest;
81
- const SingleInvoiceItem = models.SingleInvoiceItem;
82
- const VatInvoiceInfo = models.VatInvoiceInfo;
83
- const ExtractDocMultiResponse = models.ExtractDocMultiResponse;
84
- const RecognizePhilippinesSssIDOCRResponse = models.RecognizePhilippinesSssIDOCRResponse;
85
- const MachinePrintedInvoice = models.MachinePrintedInvoice;
86
- const RecognizeKoreanIDCardOCRResponse = models.RecognizeKoreanIDCardOCRResponse;
87
- const RecognizePhilippinesUMIDOCRResponse = models.RecognizePhilippinesUMIDOCRResponse;
88
- const TrainTicket = models.TrainTicket;
89
- const ApplyCardVerificationExternalRequest = models.ApplyCardVerificationExternalRequest;
90
- const MotorVehicleSaleInvoice = models.MotorVehicleSaleInvoice;
91
- const RecognizeKoreanIDCardOCRRequest = models.RecognizeKoreanIDCardOCRRequest;
92
- const TableOCRRequest = models.TableOCRRequest;
93
- const PassportRecognizeInfos = models.PassportRecognizeInfos;
94
- const RecognizeSingaporeIDCardOCRRequest = models.RecognizeSingaporeIDCardOCRRequest;
95
- const TaxiTicket = models.TaxiTicket;
96
- const RecognizeBrazilRNMOCRResponse = models.RecognizeBrazilRNMOCRResponse;
97
- const RecognizeThaiIDCardOCRRequest = models.RecognizeThaiIDCardOCRRequest;
98
- const LicensePlateOCRRequest = models.LicensePlateOCRRequest;
99
- const GeneralBasicOCRRequest = models.GeneralBasicOCRRequest;
100
- const RecognizeBrazilRNMOCRRequest = models.RecognizeBrazilRNMOCRRequest;
101
- const RecognizeBrazilIDCardOCRResponse = models.RecognizeBrazilIDCardOCRResponse;
102
- const RecognizeBrazilRNEOCRRequest = models.RecognizeBrazilRNEOCRRequest;
103
- const VatElectronicInfo = models.VatElectronicInfo;
104
- const IDCardOCRRequest = models.IDCardOCRRequest;
105
- const GeneralAccurateOCRRequest = models.GeneralAccurateOCRRequest;
106
- const UsedCarPurchaseInvoice = models.UsedCarPurchaseInvoice;
107
- const RecognizeMacaoIDCardOCRRequest = models.RecognizeMacaoIDCardOCRRequest;
108
- const NonTaxIncomeBill = models.NonTaxIncomeBill;
109
- const MLIDPassportOCRResponse = models.MLIDPassportOCRResponse;
110
- const AirTransport = models.AirTransport;
111
- const GetCardVerificationExternalResultRequest = models.GetCardVerificationExternalResultRequest;
112
- const RecognizeTableAccurateOCRRequest = models.RecognizeTableAccurateOCRRequest;
113
- const Coord = models.Coord;
114
- const SealOCRResponse = models.SealOCRResponse;
115
- const RecognizeBrazilRNEOCRResponse = models.RecognizeBrazilRNEOCRResponse;
116
- const RecognizeIndonesiaIDCardOCRResponse = models.RecognizeIndonesiaIDCardOCRResponse;
117
- const TableInfo = models.TableInfo;
118
- const VinOCRResponse = models.VinOCRResponse;
119
- const RecognizeKoreanDrivingLicenseOCRResponse = models.RecognizeKoreanDrivingLicenseOCRResponse;
120
- const VatElectronicItemInfo = models.VatElectronicItemInfo;
121
- const ConfigAdvanced = models.ConfigAdvanced;
122
- const LineInfo = models.LineInfo;
123
- const ItemCoord = models.ItemCoord;
124
- const LicensePlateInfo = models.LicensePlateInfo;
125
- const VatInvoiceRoll = models.VatInvoiceRoll;
126
- const ApplyCardVerificationExternalResponse = models.ApplyCardVerificationExternalResponse;
127
- const Polygon = models.Polygon;
128
- const TextDetectionResult = models.TextDetectionResult;
129
- const RecognizeGeneralInvoiceResponse = models.RecognizeGeneralInvoiceResponse;
130
- const RecognizeSingaporeIDCardOCRResponse = models.RecognizeSingaporeIDCardOCRResponse;
131
- const SealOCRRequest = models.SealOCRRequest;
132
- const MedicalInvoice = models.MedicalInvoice;
133
- const TextTable = models.TextTable;
134
- const RecognizeTableAccurateOCRResponse = models.RecognizeTableAccurateOCRResponse;
135
- const SmartStructuralOCRV2Response = models.SmartStructuralOCRV2Response;
136
- const RecognizeMainlandIDCardOCRResponse = models.RecognizeMainlandIDCardOCRResponse;
137
- const MainlandPermitOCRResponse = models.MainlandPermitOCRResponse;
138
- const NonTaxItem = models.NonTaxItem;
139
- const RecognizeMexicoVTIDRequest = models.RecognizeMexicoVTIDRequest;
140
- const TollInvoice = models.TollInvoice;
141
- const SmartStructuralProResponse = models.SmartStructuralProResponse;
142
- const TableOCRResponse = models.TableOCRResponse;
143
- const DetectedWordCoordPoint = models.DetectedWordCoordPoint;
144
- const RecognizeBrazilDriverLicenseOCRResponse = models.RecognizeBrazilDriverLicenseOCRResponse;
145
- const BrazilCardInfo = models.BrazilCardInfo;
146
- const RecognizeIndonesiaIDCardOCRRequest = models.RecognizeIndonesiaIDCardOCRRequest;
147
- const CoordsItem = models.CoordsItem;
148
- const VinOCRRequest = models.VinOCRRequest;
149
- const BrazilRNEInfo = models.BrazilRNEInfo;
150
- const MLIDCardOCRResponse = models.MLIDCardOCRResponse;
151
- const RecognizePhilippinesTinIDOCRRequest = models.RecognizePhilippinesTinIDOCRRequest;
152
- const RecognizeThaiPinkCardRequest = models.RecognizeThaiPinkCardRequest;
153
- const BankCardOCRResponse = models.BankCardOCRResponse;
154
- const RecognizeThaiPinkCardResponse = models.RecognizeThaiPinkCardResponse;
155
- const RecognizePhilippinesUMIDOCRRequest = models.RecognizePhilippinesUMIDOCRRequest;
156
- const AddressInfo = models.AddressInfo;
157
21
 
158
22
 
159
23
  /**
@@ -166,596 +30,6 @@ class OcrClient extends AbstractClient {
166
30
  super("ocr.intl.tencentcloudapi.com", "2018-11-19", credential, region, profile);
167
31
  }
168
32
 
169
- /**
170
- * This API is used to recognize the fields on a Thai identity card, including name in Thai, name in English, address, date of birth, identification number, date of issue, and date of expiry.
171
- Currently, this API is not generally available. For more information, please [contact your sales rep](https://intl.cloud.tencent.com/zh/contact-us).
172
-
173
- A maximum of 5 requests can be initiated per second for this API.
174
- * @param {RecognizeThaiPinkCardRequest} req
175
- * @param {function(string, RecognizeThaiPinkCardResponse):void} cb
176
- * @public
177
- */
178
- RecognizeThaiPinkCard(req, cb) {
179
- let resp = new RecognizeThaiPinkCardResponse();
180
- this.request("RecognizeThaiPinkCard", req, resp, cb);
181
- }
182
-
183
- /**
184
- * This API is used to recognize a Philippine SSSID/UMID card.
185
- * @param {RecognizePhilippinesSssIDOCRRequest} req
186
- * @param {function(string, RecognizePhilippinesSssIDOCRResponse):void} cb
187
- * @public
188
- */
189
- RecognizePhilippinesSssIDOCR(req, cb) {
190
- let resp = new RecognizePhilippinesSssIDOCRResponse();
191
- this.request("RecognizePhilippinesSssIDOCR", req, resp, cb);
192
- }
193
-
194
- /**
195
- * This API is used to recognize all fields on the front and back sides of a second-generation resident identity card for the Chinese mainland: name, gender, ethnicity, date of birth, domicile, identification number, issuing authority, and validity period, with a recognition accuracy of over 99%.
196
-
197
- In addition, this API supports multiple value-added capabilities to meet the needs of different scenarios. It can crop ID card photos and profile photos, and provide warnings for nine cases, as detailed below.
198
-
199
- <table style="width:650px">
200
- <thead>
201
- <tr>
202
- <th width="150">Capability</th>
203
- <th width="500">Description</th>
204
- </tr>
205
- </thead>
206
- <tbody>
207
- <tr>
208
- <td rowspan="2">Cropping</td>
209
- <td>Crops the ID card photo (by removing extra edges outside the ID card and automatically correcting the shooting angle).</td>
210
- </tr>
211
- <tr>
212
- <td>Crops the profile photo (by automatically cutting out the face area in the ID card).</td>
213
- </tr>
214
- <tr>
215
- <td rowspan="9">Warning</td>
216
- <td>Warns about invalid ID card validity periods.</td>
217
- </tr>
218
- <tr>
219
- <td>Warns about incomplete ID card borders.</td>
220
- </tr>
221
- <tr>
222
- <td>Warns about photocopied images.</td>
223
- </tr>
224
- <tr>
225
- <td>Warns about spoofed images.</td>
226
- </tr>
227
- <tr>
228
- <td>Warns about border and frame occlusions.</td>
229
- </tr>
230
- <tr>
231
- <td>Warns about temporary ID cards.</td>
232
- </tr>
233
- <tr>
234
- <td>Warns about photoshopped images.</td>
235
- </tr>
236
- <tr>
237
- <td>Warns about blurry ID card images (blurriness can be determined based on the image quality score).</td>
238
- </tr>
239
- </tbody>
240
- </table>
241
-
242
- A maximum of 20 requests can be initiated per second for this API.
243
- * @param {IDCardOCRRequest} req
244
- * @param {function(string, IDCardOCRResponse):void} cb
245
- * @public
246
- */
247
- IDCardOCR(req, cb) {
248
- let resp = new IDCardOCRResponse();
249
- this.request("IDCardOCR", req, resp, cb);
250
- }
251
-
252
- /**
253
- * This interface supports identification of the front and back of Brazilian driver's license. The identification fields include name, driver's license category, number, validity period, etc.
254
- * @param {RecognizeBrazilDriverLicenseOCRRequest} req
255
- * @param {function(string, RecognizeBrazilDriverLicenseOCRResponse):void} cb
256
- * @public
257
- */
258
- RecognizeBrazilDriverLicenseOCR(req, cb) {
259
- let resp = new RecognizeBrazilDriverLicenseOCRResponse();
260
- this.request("RecognizeBrazilDriverLicenseOCR", req, resp, cb);
261
- }
262
-
263
- /**
264
- * This API is used to recognize a Malaysian identity card, including identity card number, name, gender, and address. It is also used to crop identity photos and give alarms for photographed or photocopied certificates.
265
-
266
- This API is not fully available for the time being. For more information, contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
267
- * @param {MLIDCardOCRRequest} req
268
- * @param {function(string, MLIDCardOCRResponse):void} cb
269
- * @public
270
- */
271
- MLIDCardOCR(req, cb) {
272
- let resp = new MLIDCardOCRResponse();
273
- this.request("MLIDCardOCR", req, resp, cb);
274
- }
275
-
276
- /**
277
- * This API is used to detect and recognize characters in an image. It can recognize Chinese, English, Chinese-English, digits, and special symbols and return the text box positions and characters.
278
-
279
- It is suitable for scenarios with a lot of characters in complex layouts and requiring high recognition accuracy, such as examination papers, online images, signboards, and legal documents.
280
-
281
- Strengths: compared with general print recognition, it provides higher-precision character recognition services. Its accuracy and recall rate are higher in difficult scenarios such as a large number of characters, long strings of digits, small characters, blurry characters, and tilted text.
282
-
283
- This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
284
- * @param {GeneralAccurateOCRRequest} req
285
- * @param {function(string, GeneralAccurateOCRResponse):void} cb
286
- * @public
287
- */
288
- GeneralAccurateOCR(req, cb) {
289
- let resp = new GeneralAccurateOCRResponse();
290
- this.request("GeneralAccurateOCR", req, resp, cb);
291
- }
292
-
293
- /**
294
- * This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information. It is flexible and efficient to use, without any configuration required. This API is suitable for recognizing structured information.
295
-
296
- A maximum of 10 requests can be initiated per second for this API.
297
- * @param {SmartStructuralOCRV2Request} req
298
- * @param {function(string, SmartStructuralOCRV2Response):void} cb
299
- * @public
300
- */
301
- SmartStructuralOCRV2(req, cb) {
302
- let resp = new SmartStructuralOCRV2Response();
303
- this.request("SmartStructuralOCRV2", req, resp, cb);
304
- }
305
-
306
- /**
307
- * This API is used to recognize regular tables, borderless tables, or multi-tables in images or PDF files containing Chinese and English texts. It returns the text content of each cell, supports recognition of rotated table images, and can save the recognition results into an Excel document. It delivers higher recognition accuracy than that of table OCR v2 and applies to more scenarios. The recognition accuracy in difficult table scenarios, such as irregular tables and nested tables (borderless tables contained in bordered tables), is better than that of table OCR v2. To try it, click [here](https://intl.cloud.tencent.com/product/smart?from_cn_redirect=1-ocr).
308
-
309
- A maximum of 2 requests can be initiated per second for this API.
310
- * @param {RecognizeTableAccurateOCRRequest} req
311
- * @param {function(string, RecognizeTableAccurateOCRResponse):void} cb
312
- * @public
313
- */
314
- RecognizeTableAccurateOCR(req, cb) {
315
- let resp = new RecognizeTableAccurateOCRResponse();
316
- this.request("RecognizeTableAccurateOCR", req, resp, cb);
317
- }
318
-
319
- /**
320
- * This API is used to recognize the coordinates of four corners of cards.
321
- * @param {RecognizeDetectCardCoordsRequest} req
322
- * @param {function(string, RecognizeDetectCardCoordsResponse):void} cb
323
- * @public
324
- */
325
- RecognizeDetectCardCoords(req, cb) {
326
- let resp = new RecognizeDetectCardCoordsResponse();
327
- this.request("RecognizeDetectCardCoords", req, resp, cb);
328
- }
329
-
330
- /**
331
- * This API is used to recognize the vehicle identification number (VIN) in an image.
332
- * @param {VinOCRRequest} req
333
- * @param {function(string, VinOCRResponse):void} cb
334
- * @public
335
- */
336
- VinOCR(req, cb) {
337
- let resp = new VinOCRResponse();
338
- this.request("VinOCR", req, resp, cb);
339
- }
340
-
341
- /**
342
- * This API is used to recognize a passport issued in Hong Kong/Macao/Taiwan (China) or other countries/regions. Recognizable fields include passport ID, name, date of birth, gender, expiration date, issuing country/region, and nationality. It has the features of cropping identity photos and alarming for photographed or photocopied documents.
343
- This interface supports regional scope: countries with machine-readable passports
344
- * @param {MLIDPassportOCRRequest} req
345
- * @param {function(string, MLIDPassportOCRResponse):void} cb
346
- * @public
347
- */
348
- MLIDPassportOCR(req, cb) {
349
- let resp = new MLIDPassportOCRResponse();
350
- this.request("MLIDPassportOCR", req, resp, cb);
351
- }
352
-
353
- /**
354
- * Brazil RNE document recognition Default interface request frequency limit: 5 times/second
355
- * @param {RecognizeBrazilRNEOCRRequest} req
356
- * @param {function(string, RecognizeBrazilRNEOCRResponse):void} cb
357
- * @public
358
- */
359
- RecognizeBrazilRNEOCR(req, cb) {
360
- let resp = new RecognizeBrazilRNEOCRResponse();
361
- this.request("RecognizeBrazilRNEOCR", req, resp, cb);
362
- }
363
-
364
- /**
365
- * This API is used for general recognition of overseas cards.
366
-
367
- The following list details the countries or regions, document types supported by the overseas document recognition API and whether the back side of the document is required:
368
-
369
- <table>
370
- <thead>
371
- <tr>
372
- <td style="width:200px">Nationality</td>
373
- <td style="width:200px">CardType</td>
374
- <td style="width:200px">Whether the Back Side is Required</td>
375
- </tr>
376
- </thead>
377
- <tbody>
378
- <tr>
379
- <td>Argentina</td>
380
- <td>Driver's License</td>
381
- <td>Yes</td>
382
- </tr>
383
- <tr>
384
- <td>Argentina</td>
385
- <td>National ID Card</td>
386
- <td>Yes</td>
387
- </tr>
388
- <tr>
389
- <td>Argentina</td>
390
- <td>Passport</td>
391
- <td>No</td>
392
- </tr>
393
- <tr>
394
- <td>Australia</td>
395
- <td>Driver's License</td>
396
- <td>Yes</td>
397
- </tr>
398
- <tr>
399
- <td>Australia</td>
400
- <td>National ID Card</td>
401
- <td>Yes</td>
402
- </tr>
403
- <tr>
404
- <td>Australia</td>
405
- <td>Passport</td>
406
- <td>No</td>
407
- </tr>
408
- <tr>
409
- <td>Australia</td>
410
- <td>Residence Permit</td>
411
- <td>Yes</td>
412
- </tr>
413
- <tr>
414
- <td>Bangladesh</td>
415
- <td>Driver's License</td>
416
- <td>Yes</td>
417
- </tr>
418
- <tr>
419
- <td>Bangladesh</td>
420
- <td>National ID Card</td>
421
- <td>Yes</td>
422
- </tr>
423
- <tr>
424
- <td>Bangladesh</td>
425
- <td>Passport</td>
426
- <td>No</td>
427
- </tr>
428
- <tr>
429
- <td>Cambodia</td>
430
- <td>Driver's License</td>
431
- <td>Yes</td>
432
- </tr>
433
- <tr>
434
- <td>Cambodia</td>
435
- <td>National ID Card</td>
436
- <td>Yes</td>
437
- </tr>
438
- <tr>
439
- <td>Cambodia</td>
440
- <td>Passport</td>
441
- <td>No</td>
442
- </tr>
443
- <tr>
444
- <td>Canada</td>
445
- <td>Driver's License</td>
446
- <td>No</td>
447
- </tr>
448
- <tr>
449
- <td>Canada</td>
450
- <td>National ID Card</td>
451
- <td>Yes</td>
452
- </tr>
453
- <tr>
454
- <td>Canada</td>
455
- <td>Passport</td>
456
- <td>Yes</td>
457
- </tr>
458
- <tr>
459
- <td>Canada</td>
460
- <td>Residence Permit</td>
461
- <td>Yes</td>
462
- </tr>
463
- <tr>
464
- <td>Chile</td>
465
- <td>Driver's License</td>
466
- <td>Yes</td>
467
- </tr>
468
- <tr>
469
- <td>Chile</td>
470
- <td>National ID Card</td>
471
- <td>Yes</td>
472
- </tr>
473
- <tr>
474
- <td>Chile</td>
475
- <td>Passport</td>
476
- <td>No</td>
477
- </tr>
478
- <tr>
479
- <td>Germany</td>
480
- <td>Driver's License</td>
481
- <td>Yes</td>
482
- </tr>
483
- <tr>
484
- <td>Germany</td>
485
- <td>National ID Card</td>
486
- <td>Yes</td>
487
- </tr>
488
- <tr>
489
- <td>Germany</td>
490
- <td>Passport</td>
491
- <td>No</td>
492
- </tr>
493
- <tr>
494
- <td>Germany</td>
495
- <td>Residence Permit</td>
496
- <td>Yes</td>
497
- </tr>
498
- <tr>
499
- <td>Mexico</td>
500
- <td>Driver's License</td>
501
- <td>No</td>
502
- </tr>
503
- <tr>
504
- <td>Mexico</td>
505
- <td>National ID Card</td>
506
- <td>Yes</td>
507
- </tr>
508
- <tr>
509
- <td>Mexico</td>
510
- <td>Passport</td>
511
- <td>No</td>
512
- </tr>
513
- <tr>
514
- <td>Myanmar</td>
515
- <td>Driver's License</td>
516
- <td>No</td>
517
- </tr>
518
- <tr>
519
- <td>Myanmar</td>
520
- <td>National ID Card</td>
521
- <td>Yes</td>
522
- </tr>
523
- <tr>
524
- <td>Myanmar</td>
525
- <td>Passport</td>
526
- <td>No</td>
527
- </tr>
528
- <tr>
529
- <td>New Zealand</td>
530
- <td>Driver's License</td>
531
- <td>Yes</td>
532
- </tr>
533
- <tr>
534
- <td>New Zealand</td>
535
- <td>National ID Card</td>
536
- <td>No</td>
537
- </tr>
538
- <tr>
539
- <td>New Zealand</td>
540
- <td>Passport</td>
541
- <td>No</td>
542
- </tr>
543
- <tr>
544
- <td>New Zealand</td>
545
- <td>Residence Permit</td>
546
- <td>No</td>
547
- </tr>
548
- <tr>
549
- <td>Nigeria</td>
550
- <td>Driver's License</td>
551
- <td>Yes</td>
552
- </tr>
553
- <tr>
554
- <td>Nigeria</td>
555
- <td>National ID Card</td>
556
- <td>Yes</td>
557
- </tr>
558
- <tr>
559
- <td>Nigeria</td>
560
- <td>Passport</td>
561
- <td>No</td>
562
- </tr>
563
- <tr>
564
- <td>Nigeria</td>
565
- <td>Residence Permit</td>
566
- <td>Yes</td>
567
- </tr>
568
- <tr>
569
- <td>Pakistan</td>
570
- <td>Driver's License</td>
571
- <td>Yes</td>
572
- </tr>
573
- <tr>
574
- <td>Pakistan</td>
575
- <td>National ID Card</td>
576
- <td>Yes</td>
577
- </tr>
578
- <tr>
579
- <td>Pakistan</td>
580
- <td>Passport</td>
581
- <td>No</td>
582
- </tr>
583
- <tr>
584
- <td>Russia</td>
585
- <td>Driver's License</td>
586
- <td>Yes</td>
587
- </tr>
588
- <tr>
589
- <td>Russia</td>
590
- <td>National ID Card</td>
591
- <td>No</td>
592
- </tr>
593
- <tr>
594
- <td>Russia</td>
595
- <td>Passport</td>
596
- <td>No</td>
597
- </tr>
598
- <tr>
599
- <td>Singapore</td>
600
- <td>Driver's License</td>
601
- <td>Yes</td>
602
- </tr>
603
- <tr>
604
- <td>Singapore</td>
605
- <td>National ID Card</td>
606
- <td>Yes</td>
607
- </tr>
608
- <tr>
609
- <td>Singapore</td>
610
- <td>Passport</td>
611
- <td>No</td>
612
- </tr>
613
- <tr>
614
- <td>Singapore</td>
615
- <td>Residence Permit</td>
616
- <td>Yes</td>
617
- </tr>
618
- <tr>
619
- <td>Indonesia</td>
620
- <td>National ID Card</td>
621
- <td>No</td>
622
- </tr>
623
- <tr>
624
- <td>Indonesia</td>
625
- <td>Driver's License</td>
626
- <td>No</td>
627
- </tr>
628
- <tr>
629
- <td>Hong Kong, China</td>
630
- <td>Identity Card</td>
631
- <td>Yes</td>
632
- </tr>
633
- <tr>
634
- <td>Thailand</td>
635
- <td>National ID Card</td>
636
- <td>No</td>
637
- </tr>
638
- <tr>
639
- <td>Thailand</td>
640
- <td>Driver's License</td>
641
- <td>Yes</td>
642
- </tr>
643
- <tr>
644
- <td>Malaysia</td>
645
- <td>National ID Card</td>
646
- <td>Yes</td>
647
- </tr>
648
- <tr>
649
- <td>Malaysia</td>
650
- <td>Driver's License</td>
651
- <td>Yes</td>
652
- </tr>
653
- <tr>
654
- <td>Singapore</td>
655
- <td>National ID Card</td>
656
- <td>Yes</td>
657
- </tr>
658
- <tr>
659
- <td>Singapore</td>
660
- <td>Driver's License</td>
661
- <td>Yes</td>
662
- </tr>
663
- <tr>
664
- <td>Philippines</td>
665
- <td>National ID Card</td>
666
- <td>Yes</td>
667
- </tr>
668
- <tr>
669
- <td>Philippines</td>
670
- <td>Driver's License</td>
671
- <td>No</td>
672
- </tr>
673
- <tr>
674
- <td>Japan</td>
675
- <td>National ID Card</td>
676
- <td>Yes</td>
677
- </tr>
678
- <tr>
679
- <td>Japan</td>
680
- <td>Driver's License</td>
681
- <td>No</td>
682
- </tr>
683
- <tr>
684
- <td>Macau, China</td>
685
- <td>Identity Card</td>
686
- <td>Yes</td>
687
- </tr>
688
- <tr>
689
- <td>Taiwan, China</td>
690
- <td>Identity Card</td>
691
- <td>Yes</td>
692
- </tr>
693
- <tr>
694
- <td>Bangladesh</td>
695
- <td>National ID Card</td>
696
- <td>Yes</td>
697
- </tr>
698
- <tr>
699
- <td>Nigeria</td>
700
- <td>National ID Card</td>
701
- <td>Yes</td>
702
- </tr>
703
- <tr>
704
- <td>Nigeria</td>
705
- <td>Driver's License</td>
706
- <td>Yes</td>
707
- </tr>
708
- <tr>
709
- <td>Pakistan</td>
710
- <td>National ID Card</td>
711
- <td>Yes</td>
712
- </tr>
713
- <tr>
714
- <td>Pakistan</td>
715
- <td>Driver's License</td>
716
- <td>Yes</td>
717
- </tr>
718
- </tbody>
719
- </table>
720
- * @param {ApplyCardVerificationExternalRequest} req
721
- * @param {function(string, ApplyCardVerificationExternalResponse):void} cb
722
- * @public
723
- */
724
- ApplyCardVerificationExternal(req, cb) {
725
- let resp = new ApplyCardVerificationExternalResponse();
726
- this.request("ApplyCardVerificationExternal", req, resp, cb);
727
- }
728
-
729
- /**
730
- * This API is used to recognize key fields on the photo side of a Hong Kong (China) identity card, including name in Chinese, name in English, telecode for name, date of birth, gender, document symbol, date of the first issue, date of the last receipt, identity card number, and permanent residency attribute.
731
-
732
- This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
733
- * @param {HKIDCardOCRRequest} req
734
- * @param {function(string, HKIDCardOCRResponse):void} cb
735
- * @public
736
- */
737
- HKIDCardOCR(req, cb) {
738
- let resp = new HKIDCardOCRResponse();
739
- this.request("HKIDCardOCR", req, resp, cb);
740
- }
741
-
742
- /**
743
- * This API is used to detect and recognize characters in an image in the following 20 languages: Chinese, English, Japanese, Korean, Spanish, French, German, Portuguese, Vietnamese, Malay, Russian, Italian, Dutch, Swedish, Finnish, Danish, Norwegian, Hungarian, Thai, and Arabic. Mixed characters in English and each supported language can be recognized together.
744
-
745
- It can recognize printed text in paper documents, online images, ads, signboards, menus, video titles, profile photos, etc.
746
-
747
- Strengths: it can automatically recognize the text language, return the text box coordinate information, and automatically rotate tilted text to the upright direction.
748
-
749
- This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
750
- * @param {GeneralBasicOCRRequest} req
751
- * @param {function(string, GeneralBasicOCRResponse):void} cb
752
- * @public
753
- */
754
- GeneralBasicOCR(req, cb) {
755
- let resp = new GeneralBasicOCRResponse();
756
- this.request("GeneralBasicOCR", req, resp, cb);
757
- }
758
-
759
33
  /**
760
34
  * This API is used to recognize the fields on an exit/entry permit (card) for traveling to and from Hong Kong, Macao, or Taiwan, including place of issuance, issuing authority, validity period, gender, date of birth, name in English, name in Chinese, and document number.
761
35
 
@@ -769,437 +43,6 @@ A maximum of 10 requests can be initiated per second for this API.
769
43
  this.request("PermitOCR", req, resp, cb);
770
44
  }
771
45
 
772
- /**
773
- * This API is used to recognize the fields on a Thai identity card, including name in Thai, name in English, address, date of birth, identification number, date of issue, and date of expiry.
774
-
775
- A maximum of 10 requests can be initiated per second for this API.
776
- * @param {RecognizeThaiIDCardOCRRequest} req
777
- * @param {function(string, RecognizeThaiIDCardOCRResponse):void} cb
778
- * @public
779
- */
780
- RecognizeThaiIDCardOCR(req, cb) {
781
- let resp = new RecognizeThaiIDCardOCRResponse();
782
- this.request("RecognizeThaiIDCardOCR", req, resp, cb);
783
- }
784
-
785
- /**
786
- * This API is used to obtain document recognition results.
787
- * @param {GetCardVerificationExternalResultRequest} req
788
- * @param {function(string, GetCardVerificationExternalResultResponse):void} cb
789
- * @public
790
- */
791
- GetCardVerificationExternalResult(req, cb) {
792
- let resp = new GetCardVerificationExternalResultResponse();
793
- this.request("GetCardVerificationExternalResult", req, resp, cb);
794
- }
795
-
796
- /**
797
- * This API is used to recognize key fields on the photo side of a Macao (China) identity card, including name in Chinese, name in English, telecode for name, date of birth, gender, document symbol, date of the first issue, date of the last receipt, identity card number, and permanent residency attribute.
798
-
799
- This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
800
- * @param {RecognizeMacaoIDCardOCRRequest} req
801
- * @param {function(string, RecognizeMacaoIDCardOCRResponse):void} cb
802
- * @public
803
- */
804
- RecognizeMacaoIDCardOCR(req, cb) {
805
- let resp = new RecognizeMacaoIDCardOCRResponse();
806
- this.request("RecognizeMacaoIDCardOCR", req, resp, cb);
807
- }
808
-
809
- /**
810
- * This API is used to identify Brazil common documents.
811
-
812
- This API is used to set the default request rate limit to 5 requests/second.
813
- * @param {RecognizeBrazilCommonOCRRequest} req
814
- * @param {function(string, RecognizeBrazilCommonOCRResponse):void} cb
815
- * @public
816
- */
817
- RecognizeBrazilCommonOCR(req, cb) {
818
- let resp = new RecognizeBrazilCommonOCRResponse();
819
- this.request("RecognizeBrazilCommonOCR", req, resp, cb);
820
- }
821
-
822
- /**
823
- * This API is used to detect and recognize Chinese and English forms in images. It can return the text content of each cell and save the recognition result as Excel.
824
-
825
- This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
826
- * @param {TableOCRRequest} req
827
- * @param {function(string, TableOCRResponse):void} cb
828
- * @public
829
- */
830
- TableOCR(req, cb) {
831
- let resp = new TableOCRResponse();
832
- this.request("TableOCR", req, resp, cb);
833
- }
834
-
835
- /**
836
- * This API is used to recognize key fields on the front and back sides of a residence permit for Hong Kong, Macao, or Taiwan residents, including name, gender, date of birth, address, ID number, issuing authority, validity period, number of issues, and permit number. It can be used for residence permit OCR in scenarios such as bank account opening and user registration.
837
-
838
- A maximum of 20 requests can be initiated per second for this API.
839
- * @param {HmtResidentPermitOCRRequest} req
840
- * @param {function(string, HmtResidentPermitOCRResponse):void} cb
841
- * @public
842
- */
843
- HmtResidentPermitOCR(req, cb) {
844
- let resp = new HmtResidentPermitOCRResponse();
845
- this.request("HmtResidentPermitOCR", req, resp, cb);
846
- }
847
-
848
- /**
849
- * This interface supports identification of the front and back of Mexican Voter ID Card. The default interface request frequency limit is 5 times per second.
850
- * @param {RecognizeMexicoVTIDRequest} req
851
- * @param {function(string, RecognizeMexicoVTIDResponse):void} cb
852
- * @public
853
- */
854
- RecognizeMexicoVTID(req, cb) {
855
- let resp = new RecognizeMexicoVTIDResponse();
856
- this.request("RecognizeMexicoVTID", req, resp, cb);
857
- }
858
-
859
- /**
860
- * This API is used to recognize a license plate attached to a motor vehicle in the Chinese mainland and return the regional code, license plate number, and license plate color.
861
-
862
- A maximum of 10 requests can be initiated per second for this API.
863
- * @param {LicensePlateOCRRequest} req
864
- * @param {function(string, LicensePlateOCRResponse):void} cb
865
- * @public
866
- */
867
- LicensePlateOCR(req, cb) {
868
- let resp = new LicensePlateOCRResponse();
869
- this.request("LicensePlateOCR", req, resp, cb);
870
- }
871
-
872
- /**
873
- * This API supports identifying and extracting field information in structured scenarios such as complex scenarios and multiple formats. Key scenarios include: finance, health care, transportation, travel, insurance. Click [experience now](https://ocrdemo.cloud.tencent.com/).
874
-
875
- This API is used to set the alias SmartStructuralPro.
876
-
877
- The default API request rate limit is 5 requests per second.
878
- * @param {ExtractDocMultiRequest} req
879
- * @param {function(string, ExtractDocMultiResponse):void} cb
880
- * @public
881
- */
882
- ExtractDocMulti(req, cb) {
883
- let resp = new ExtractDocMultiResponse();
884
- this.request("ExtractDocMulti", req, resp, cb);
885
- }
886
-
887
- /**
888
- * This API is used to recognize various types of seals, including invoice seals and finance seals. It is suitable for scenarios such as official document and invoice/ticket OCR.
889
-
890
- A maximum of 5 requests can be initiated per second for this API.
891
- * @param {SealOCRRequest} req
892
- * @param {function(string, SealOCRResponse):void} cb
893
- * @public
894
- */
895
- SealOCR(req, cb) {
896
- let resp = new SealOCRResponse();
897
- this.request("SealOCR", req, resp, cb);
898
- }
899
-
900
- /**
901
- * This API is used to recognize a Philippine voters ID card. It can recognize fields such as first name, family name, date of birth, civil status, citizenship, address, precinct, and voter's identification number (VIN).
902
-
903
- The API request rate is limited to 20 requests/sec by default.
904
- * @param {RecognizePhilippinesVoteIDOCRRequest} req
905
- * @param {function(string, RecognizePhilippinesVoteIDOCRResponse):void} cb
906
- * @public
907
- */
908
- RecognizePhilippinesVoteIDOCR(req, cb) {
909
- let resp = new RecognizePhilippinesVoteIDOCRResponse();
910
- this.request("RecognizePhilippinesVoteIDOCR", req, resp, cb);
911
- }
912
-
913
- /**
914
- * This interface supports identification of the front and back of Brazilian ID license. The identification fields include name, driver's license category, number, validity period, etc.
915
- * @param {RecognizeBrazilIDCardOCRRequest} req
916
- * @param {function(string, RecognizeBrazilIDCardOCRResponse):void} cb
917
- * @public
918
- */
919
- RecognizeBrazilIDCardOCR(req, cb) {
920
- let resp = new RecognizeBrazilIDCardOCRResponse();
921
- this.request("RecognizeBrazilIDCardOCR", req, resp, cb);
922
- }
923
-
924
- /**
925
- * This API is used to recognize a Philippine Unified Multi-Purpose ID (UMID) card.
926
- * @param {RecognizePhilippinesUMIDOCRRequest} req
927
- * @param {function(string, RecognizePhilippinesUMIDOCRResponse):void} cb
928
- * @public
929
- */
930
- RecognizePhilippinesUMIDOCR(req, cb) {
931
- let resp = new RecognizePhilippinesUMIDOCRResponse();
932
- this.request("RecognizePhilippinesUMIDOCR", req, resp, cb);
933
- }
934
-
935
- /**
936
- * This interface supports identification of the front and back of Brazilian RNM license. The default interface request frequency limit is 5 times per second.
937
- * @param {RecognizeBrazilRNMOCRRequest} req
938
- * @param {function(string, RecognizeBrazilRNMOCRResponse):void} cb
939
- * @public
940
- */
941
- RecognizeBrazilRNMOCR(req, cb) {
942
- let resp = new RecognizeBrazilRNMOCRResponse();
943
- this.request("RecognizeBrazilRNMOCR", req, resp, cb);
944
- }
945
-
946
- /**
947
- * This interface supports the identification of all fields on the front side of ID card for Singapore residents.The identification accuracy reaches more than 99%.In addition, this interface also supports a variety of value-added capabilities to meet the needs of different scenarios. Such as the cropping function of ID card photos and portrait photos, and also has 5 alarm functions.
948
- As shown in the table below. <table style="width:650px"> <thead> <tr> <th width="150">Value-added ability</th> <th width="500">Ability items</th> </tr> </thead> <tbody> <tr> <td rowspan="9">Alarm function</td> </tr> <tr> <td>ID card copy warning</td> </tr> <tr> <td>ID card copy warning</td> </tr> <tr> <td>Alarm for occlusion in the ID card frame</td> </tr> <tr> <td>ID card reflective warning</td> </tr> <tr> <td>Blurry picture warning</td> </tr> </tbody> </table> Default interface request frequency limit: 20 times/second
949
- * @param {RecognizeSingaporeIDCardOCRRequest} req
950
- * @param {function(string, RecognizeSingaporeIDCardOCRResponse):void} cb
951
- * @public
952
- */
953
- RecognizeSingaporeIDCardOCR(req, cb) {
954
- let resp = new RecognizeSingaporeIDCardOCRResponse();
955
- this.request("RecognizeSingaporeIDCardOCR", req, resp, cb);
956
- }
957
-
958
- /**
959
- * This API is used to detect and recognize key fields such as the card number, bank information, and expiration date on mainstream bank cards in Mainland China.
960
-
961
- This API is not fully available for the time being. For more information, please contact your [Tencent Cloud sales rep](https://intl.cloud.tencent.com/contact-sales).
962
- * @param {BankCardOCRRequest} req
963
- * @param {function(string, BankCardOCRResponse):void} cb
964
- * @public
965
- */
966
- BankCardOCR(req, cb) {
967
- let resp = new BankCardOCRResponse();
968
- this.request("BankCardOCR", req, resp, cb);
969
- }
970
-
971
- /**
972
- * This API is used to recognize all fields on the front of a mainland travel permit for Hong Kong, Macao, or Taiwan residents: name in Chinese, name in English, gender, date of birth, issuing authority, validity period, document number, place of issuance, number of issues, and document type.
973
-
974
- A maximum of 20 requests can be initiated per second for this API.
975
- * @param {MainlandPermitOCRRequest} req
976
- * @param {function(string, MainlandPermitOCRResponse):void} cb
977
- * @public
978
- */
979
- MainlandPermitOCR(req, cb) {
980
- let resp = new MainlandPermitOCRResponse();
981
- this.request("MainlandPermitOCR", req, resp, cb);
982
- }
983
-
984
- /**
985
- * This API is used to recognize a South Korean ID card.
986
- * @param {RecognizeKoreanIDCardOCRRequest} req
987
- * @param {function(string, RecognizeKoreanIDCardOCRResponse):void} cb
988
- * @public
989
- */
990
- RecognizeKoreanIDCardOCR(req, cb) {
991
- let resp = new RecognizeKoreanIDCardOCRResponse();
992
- this.request("RecognizeKoreanIDCardOCR", req, resp, cb);
993
- }
994
-
995
- /**
996
- * This API is used to recognize a Philippine driver's license.
997
- * @param {RecognizePhilippinesDrivingLicenseOCRRequest} req
998
- * @param {function(string, RecognizePhilippinesDrivingLicenseOCRResponse):void} cb
999
- * @public
1000
- */
1001
- RecognizePhilippinesDrivingLicenseOCR(req, cb) {
1002
- let resp = new RecognizePhilippinesDrivingLicenseOCRResponse();
1003
- this.request("RecognizePhilippinesDrivingLicenseOCR", req, resp, cb);
1004
- }
1005
-
1006
- /**
1007
- * This API is used to recognize fields from cards, documents, bills, forms, contracts, and other structured information. It is flexible and efficient to use, without any configuration required. This API is suitable for recognizing structured information.
1008
-
1009
- A maximum of 10 requests can be initiated per second for this API.
1010
- * @param {SmartStructuralProRequest} req
1011
- * @param {function(string, SmartStructuralProResponse):void} cb
1012
- * @public
1013
- */
1014
- SmartStructuralPro(req, cb) {
1015
- let resp = new SmartStructuralProResponse();
1016
- this.request("SmartStructuralPro", req, resp, cb);
1017
- }
1018
-
1019
- /**
1020
- * This API is used to recognize an Indonesian identity card.
1021
-
1022
- The API request rate is limited to 20 requests/sec by default.
1023
- * @param {RecognizeIndonesiaIDCardOCRRequest} req
1024
- * @param {function(string, RecognizeIndonesiaIDCardOCRResponse):void} cb
1025
- * @public
1026
- */
1027
- RecognizeIndonesiaIDCardOCR(req, cb) {
1028
- let resp = new RecognizeIndonesiaIDCardOCRResponse();
1029
- this.request("RecognizeIndonesiaIDCardOCR", req, resp, cb);
1030
- }
1031
-
1032
- /**
1033
- * This API is used to recognize a Philippine TIN ID card.
1034
- * @param {RecognizePhilippinesTinIDOCRRequest} req
1035
- * @param {function(string, RecognizePhilippinesTinIDOCRResponse):void} cb
1036
- * @public
1037
- */
1038
- RecognizePhilippinesTinIDOCR(req, cb) {
1039
- let resp = new RecognizePhilippinesTinIDOCRResponse();
1040
- this.request("RecognizePhilippinesTinIDOCR", req, resp, cb);
1041
- }
1042
-
1043
- /**
1044
- * This API is used to recognize a South Korean driver's license.
1045
- * @param {RecognizeKoreanDrivingLicenseOCRRequest} req
1046
- * @param {function(string, RecognizeKoreanDrivingLicenseOCRResponse):void} cb
1047
- * @public
1048
- */
1049
- RecognizeKoreanDrivingLicenseOCR(req, cb) {
1050
- let resp = new RecognizeKoreanDrivingLicenseOCRResponse();
1051
- this.request("RecognizeKoreanDrivingLicenseOCR", req, resp, cb);
1052
- }
1053
-
1054
- /**
1055
- * This API is used to recognize various types of invoices or tickets in an image or PDF file. You can also specify a type. 14 types of standard expense reimbursement invoices are supported, including value-added tax (VAT) invoice (special, general, roll, blockchain, and toll), fully digitalized electronic invoice (special and general), non-tax revenue invoice (general receipt and general payment voucher), quota invoice, general machine-printed invoice, car sales invoice (motor vehicle sales invoice and used car invoice), train ticket, taxi receipt, itinerary/receipt of e-ticket for air transportation, bus ticket, ship ticket, toll receipt, and medical invoice (inpatient and outpatient). This API can also be used for intelligent recognition of other types of invoices. To try now, click [here](https://intl.cloud.tencent.com/product/ocr?from_cn_redirect=1).
1056
-
1057
- A maximum of 5 requests can be initiated per second for this API.
1058
-
1059
-
1060
- The invoice/ticket subtype (SubType), subtype description (TypeDescription), and parent type (Type) can be returned, as described below:
1061
- <table style="width:715px">
1062
- <thead>
1063
- <tr>
1064
- <th style="width:200px">SubType</th>
1065
- <th style="width:200px">TypeDescription</th>
1066
- <th >Type</th>
1067
- </tr>
1068
- </thead>
1069
- <tbody>
1070
- <tr>
1071
- <td> VatSpecialInvoice</td>
1072
- <td> Special VAT invoice </td>
1073
- <td> 3 </td>
1074
- </tr>
1075
- <tr>
1076
- <td> VatCommonInvoice</td>
1077
- <td> General VAT invoice </td>
1078
- <td> 3 </td>
1079
- </tr>
1080
- <tr>
1081
- <td> VatElectronicCommonInvoice </td>
1082
- <td> Electronic general VAT invoice </td>
1083
- <td> 3 </td>
1084
- </tr>
1085
- <tr>
1086
- <td> VatElectronicSpecialInvoice </td>
1087
- <td> Electronic special VAT invoice </td>
1088
- <td> 3 </td>
1089
- </tr>
1090
- <tr>
1091
- <td> VatElectronicInvoiceBlockchain</td>
1092
- <td> Blockchain electronic invoice </td>
1093
- <td> 3 </td>
1094
- </tr>
1095
- <tr>
1096
- <td> VatElectronicInvoiceToll</td>
1097
- <td> Electronic general VAT invoice (toll)</td>
1098
- <td> 3 </td>
1099
- </tr>
1100
- <tr>
1101
- <td> VatElectronicSpecialInvoiceFull</td>
1102
- <td> Electronic invoice (special)</td>
1103
- <td> 16 </td>
1104
- </tr>
1105
- <tr>
1106
- <td> VatElectronicInvoiceFull</td>
1107
- <td> Electronic invoice (general) </td>
1108
- <td> 16 </td>
1109
- </tr>
1110
- <tr>
1111
- <td> MotorVehicleSaleInvoice </td>
1112
- <td> Motor vehicle sales invoice </td>
1113
- <td> 12 </td>
1114
- </tr>
1115
- <tr>
1116
- <td> UsedCarPurchaseInvoice </td>
1117
- <td> Used car invoice </td>
1118
- <td> 12 </td>
1119
- </tr>
1120
- <tr>
1121
- <td> VatInvoiceRoll </td>
1122
- <td> General VAT invoice (roll) </td>
1123
- <td> 11 </td>
1124
- </tr>
1125
- <tr>
1126
- <td> TaxiTicket </td>
1127
- <td> Taxi receipt </td>
1128
- <td> 0 </td>
1129
- </tr>
1130
- <tr>
1131
- <td> QuotaInvoice </td>
1132
- <td> Quota invoice </td>
1133
- <td> 1 </td>
1134
- </tr>
1135
- <tr>
1136
- <td> TrainTicket </td>
1137
- <td> Train ticket </td>
1138
- <td> 2 </td>
1139
- </tr>
1140
- <tr>
1141
- <td> AirTransport </td>
1142
- <td> Itinerary/Receipt of e-ticket for air transportation </td>
1143
- <td> 5 </td>
1144
- </tr>
1145
- <tr>
1146
- <td> MachinePrintedInvoice </td>
1147
- <td> General machine-printed invoice </td>
1148
- <td> 8 </td>
1149
- </tr>
1150
- <tr>
1151
- <td> BusInvoice </td>
1152
- <td> Bus ticket </td>
1153
- <td> 9 </td>
1154
- </tr>
1155
- <tr>
1156
- <td> ShippingInvoice </td>
1157
- <td> Ship ticket </td>
1158
- <td> 10 </td>
1159
- </tr>
1160
- <tr>
1161
- <td> NonTaxIncomeGeneralBill </td>
1162
- <td> General receipt for non-tax revenue </td>
1163
- <td> 15 </td>
1164
- </tr>
1165
- <tr>
1166
- <td> NonTaxIncomeElectronicBill </td>
1167
- <td> General payment voucher for non-tax revenue (electronic) </td>
1168
- <td> 15 </td>
1169
- </tr>
1170
- <tr>
1171
- <td> TollInvoice </td>
1172
- <td> Toll receipt </td>
1173
- <td> 13 </td>
1174
- </tr>
1175
- <tr>
1176
- <td> OtherInvoice </td>
1177
- <td> Other </td>
1178
- <td> -1 </td>
1179
- </tr>
1180
- </tbody>
1181
- </table>
1182
- * @param {RecognizeGeneralInvoiceRequest} req
1183
- * @param {function(string, RecognizeGeneralInvoiceResponse):void} cb
1184
- * @public
1185
- */
1186
- RecognizeGeneralInvoice(req, cb) {
1187
- let resp = new RecognizeGeneralInvoiceResponse();
1188
- this.request("RecognizeGeneralInvoice", req, resp, cb);
1189
- }
1190
-
1191
- /**
1192
- * This interface supports the identification of all fields on the front and back of the second-generation ID card for mainland Chinese residents.Including name, gender, ethnicity, date of birth, address, citizen ID number, issuing authority, and validity period, the identification accuracy reaches more than 99%.In addition, this interface also supports a variety of value-added capabilities to meet the needs of different scenarios. Such as the cropping function of ID card photos and portrait photos, and also has 5 alarm functions.
1193
- As shown in the table below. <table style="width:650px"> <thead> <tr> <th width="150">Value-added ability</th> <th width="500">Ability items</th> </tr> </thead> <tbody> <tr> <td rowspan="9">Alarm function</td> </tr> <tr> <td>ID card photocopy warning</td> </tr> <tr> <td>ID card on-screen display warning</td> </tr> <tr> <td>Alarm for occlusion in the ID card frame</td> </tr> <tr> <td>ID card reflective warning</td> </tr> <tr> <td>Blurry picture warning</td> </tr> </tbody> </table> Default interface request frequency limit: 20 times/second
1194
- * @param {RecognizeMainlandIDCardOCRRequest} req
1195
- * @param {function(string, RecognizeMainlandIDCardOCRResponse):void} cb
1196
- * @public
1197
- */
1198
- RecognizeMainlandIDCardOCR(req, cb) {
1199
- let resp = new RecognizeMainlandIDCardOCRResponse();
1200
- this.request("RecognizeMainlandIDCardOCR", req, resp, cb);
1201
- }
1202
-
1203
46
 
1204
47
  }
1205
48
  module.exports = OcrClient;