tencentcloud-sdk-nodejs-intl-en 3.0.1452 → 3.0.1453

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,6 +16,7 @@
16
16
  */
17
17
  const models = require("./models");
18
18
  const AbstractClient = require('../../common/abstract_client')
19
+ const GetOcrVerificationResultRequest = models.GetOcrVerificationResultRequest;
19
20
  const RecognizeMexicoVTIDResponse = models.RecognizeMexicoVTIDResponse;
20
21
  const HKIDCardOCRRequest = models.HKIDCardOCRRequest;
21
22
  const ExtractDocMultiRequest = models.ExtractDocMultiRequest;
@@ -49,6 +50,7 @@ const BrazilDriverLicenseInfo = models.BrazilDriverLicenseInfo;
49
50
  const GeneralAccurateOCRResponse = models.GeneralAccurateOCRResponse;
50
51
  const HmtResidentPermitOCRRequest = models.HmtResidentPermitOCRRequest;
51
52
  const PortraitImageInfo = models.PortraitImageInfo;
53
+ const ApplyOcrTokenResponse = models.ApplyOcrTokenResponse;
52
54
  const GeneralBasicOCRResponse = models.GeneralBasicOCRResponse;
53
55
  const PermitOCRRequest = models.PermitOCRRequest;
54
56
  const RecognizePhilippinesUMIDOCRRequest = models.RecognizePhilippinesUMIDOCRRequest;
@@ -60,6 +62,7 @@ const GroupInfo = models.GroupInfo;
60
62
  const RecognizeThaiIDCardOCRResponse = models.RecognizeThaiIDCardOCRResponse;
61
63
  const ExtractDocMultiResponse = models.ExtractDocMultiResponse;
62
64
  const RecognizePhilippinesSssIDOCRResponse = models.RecognizePhilippinesSssIDOCRResponse;
65
+ const ApplyOcrTokenRequest = models.ApplyOcrTokenRequest;
63
66
  const RecognizePhilippinesUMIDOCRResponse = models.RecognizePhilippinesUMIDOCRResponse;
64
67
  const RecognizeThaiIDCardOCRRequest = models.RecognizeThaiIDCardOCRRequest;
65
68
  const PassportRecognizeInfos = models.PassportRecognizeInfos;
@@ -94,6 +97,7 @@ const HmtResidentPermitOCRResponse = models.HmtResidentPermitOCRResponse;
94
97
  const ImageCoordinates = models.ImageCoordinates;
95
98
  const RecognizeMexicoVTIDRequest = models.RecognizeMexicoVTIDRequest;
96
99
  const PODAuditAIResponse = models.PODAuditAIResponse;
100
+ const GetOcrVerificationResultResponse = models.GetOcrVerificationResultResponse;
97
101
  const MainlandTravelPermitBackInfos = models.MainlandTravelPermitBackInfos;
98
102
  const DetectedWordCoordPoint = models.DetectedWordCoordPoint;
99
103
  const RecognizeBrazilDriverLicenseOCRResponse = models.RecognizeBrazilDriverLicenseOCRResponse;
@@ -256,6 +260,17 @@ This interface supports regional scope: countries with machine-readable passport
256
260
  this.request("HKIDCardOCR", req, resp, cb);
257
261
  }
258
262
 
263
+ /**
264
+ * This API retrieves the SDK verification result.
265
+ * @param {GetOcrVerificationResultRequest} req
266
+ * @param {function(string, GetOcrVerificationResultResponse):void} cb
267
+ * @public
268
+ */
269
+ GetOcrVerificationResult(req, cb) {
270
+ let resp = new GetOcrVerificationResultResponse();
271
+ this.request("GetOcrVerificationResult", req, resp, cb);
272
+ }
273
+
259
274
  /**
260
275
  * 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.
261
276
 
@@ -287,7 +302,9 @@ A maximum of 10 requests can be initiated per second for this API.
287
302
  }
288
303
 
289
304
  /**
290
- * 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.
305
+ * Domain name for API request: ocr.intl.tencentcloudapi.com.
306
+
307
+ 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.
291
308
 
292
309
  A maximum of 10 requests can be initiated per second for this API.
293
310
  * @param {RecognizeThaiIDCardOCRRequest} req
@@ -359,16 +376,17 @@ Default API request rate limit: 20 requests/second.
359
376
  }
360
377
 
361
378
  /**
362
- * This interface recognizes all fields on both sides of the Mainland China Resident Identity Card (second-generation), including name, gender, ethnicity, date of birth, address, ID number, issuing authority, and validity period, with an accuracy of over 99%.
379
+ * 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/).
380
+ This API is used to set the alias SmartStructuralPro.
363
381
 
364
- In addition, the interface provides additional features for various scenarios, such as ID card and portrait photo cropping, along with five alarm detections (see 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 rate limit: 20 requests/second.
365
- * @param {RecognizeMainlandIDCardOCRRequest} req
366
- * @param {function(string, RecognizeMainlandIDCardOCRResponse):void} cb
382
+ The default API request rate limit is 5 requests per second.
383
+ * @param {ExtractDocMultiRequest} req
384
+ * @param {function(string, ExtractDocMultiResponse):void} cb
367
385
  * @public
368
386
  */
369
- RecognizeMainlandIDCardOCR(req, cb) {
370
- let resp = new RecognizeMainlandIDCardOCRResponse();
371
- this.request("RecognizeMainlandIDCardOCR", req, resp, cb);
387
+ ExtractDocMulti(req, cb) {
388
+ let resp = new ExtractDocMultiResponse();
389
+ this.request("ExtractDocMulti", req, resp, cb);
372
390
  }
373
391
 
374
392
  /**
@@ -406,6 +424,17 @@ The API request rate is limited to 20 requests/sec by default.
406
424
  this.request("RecognizePhilippinesUMIDOCR", req, resp, cb);
407
425
  }
408
426
 
427
+ /**
428
+ * This API retrieves a token before each call to the OCR SDK verification service. Save the token to initiate the verification process and retrieve the verification result after the process completes.
429
+ * @param {ApplyOcrTokenRequest} req
430
+ * @param {function(string, ApplyOcrTokenResponse):void} cb
431
+ * @public
432
+ */
433
+ ApplyOcrToken(req, cb) {
434
+ let resp = new ApplyOcrTokenResponse();
435
+ this.request("ApplyOcrToken", req, resp, cb);
436
+ }
437
+
409
438
  /**
410
439
  * This interface supports identification of the front and back of Brazilian RNM license. The default interface request frequency limit is 5 times per second.
411
440
  * @param {RecognizeBrazilRNMOCRRequest} req
@@ -500,17 +529,16 @@ Default API request rate limit: 5 requests/second.
500
529
  }
501
530
 
502
531
  /**
503
- * 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/).
504
- This API is used to set the alias SmartStructuralPro.
532
+ * This interface recognizes all fields on both sides of the Mainland China Resident Identity Card (second-generation), including name, gender, ethnicity, date of birth, address, ID number, issuing authority, and validity period, with an accuracy of over 99%.
505
533
 
506
- The default API request rate limit is 5 requests per second.
507
- * @param {ExtractDocMultiRequest} req
508
- * @param {function(string, ExtractDocMultiResponse):void} cb
534
+ In addition, the interface provides additional features for various scenarios, such as ID card and portrait photo cropping, along with five alarm detections (see 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 rate limit: 20 requests/second.
535
+ * @param {RecognizeMainlandIDCardOCRRequest} req
536
+ * @param {function(string, RecognizeMainlandIDCardOCRResponse):void} cb
509
537
  * @public
510
538
  */
511
- ExtractDocMulti(req, cb) {
512
- let resp = new ExtractDocMultiResponse();
513
- this.request("ExtractDocMulti", req, resp, cb);
539
+ RecognizeMainlandIDCardOCR(req, cb) {
540
+ let resp = new RecognizeMainlandIDCardOCRResponse();
541
+ this.request("RecognizeMainlandIDCardOCR", req, resp, cb);
514
542
  }
515
543
 
516
544