tencentcloud-sdk-nodejs-intl-en 3.0.1475 → 3.0.1476
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/package.json +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/es/index.js +1 -1
- package/tencentcloud/monitor/index.js +1 -1
- package/tencentcloud/ocr/v20181119/models.js +495 -151
- package/tencentcloud/ocr/v20181119/ocr_client.js +19 -2
- package/tencentcloud/rce/index.js +1 -1
- package/tencentcloud/tem/index.js +1 -1
- package/tencentcloud/teo/index.js +1 -1
- package/tencentcloud/tke/index.js +1 -1
- package/tencentcloud/vm/index.js +1 -1
- package/tencentcloud/vod/index.js +1 -1
- package/tencentcloud/wedata/index.js +1 -1
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1476";
|
|
2
2
|
module.exports = sdkVersion
|
package/tencentcloud/es/index.js
CHANGED
|
@@ -2630,18 +2630,78 @@ class DetectedWords extends AbstractModel {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
|
|
2632
2632
|
/**
|
|
2633
|
-
*
|
|
2633
|
+
* RecognizePhilippinesVoteIDOCR response structure.
|
|
2634
2634
|
* @class
|
|
2635
2635
|
*/
|
|
2636
|
-
class
|
|
2636
|
+
class RecognizePhilippinesVoteIDOCRResponse extends AbstractModel {
|
|
2637
2637
|
constructor(){
|
|
2638
2638
|
super();
|
|
2639
2639
|
|
|
2640
2640
|
/**
|
|
2641
|
-
*
|
|
2642
|
-
* @type {
|
|
2641
|
+
* Base64 encoded result of portrait photo.
|
|
2642
|
+
* @type {TextDetectionResult || null}
|
|
2643
2643
|
*/
|
|
2644
|
-
this.
|
|
2644
|
+
this.HeadPortrait = null;
|
|
2645
|
+
|
|
2646
|
+
/**
|
|
2647
|
+
* The voter's identification number (VIN).
|
|
2648
|
+
* @type {TextDetectionResult || null}
|
|
2649
|
+
*/
|
|
2650
|
+
this.VIN = null;
|
|
2651
|
+
|
|
2652
|
+
/**
|
|
2653
|
+
* The last name.
|
|
2654
|
+
* @type {TextDetectionResult || null}
|
|
2655
|
+
*/
|
|
2656
|
+
this.LastName = null;
|
|
2657
|
+
|
|
2658
|
+
/**
|
|
2659
|
+
* The first name.
|
|
2660
|
+
* @type {TextDetectionResult || null}
|
|
2661
|
+
*/
|
|
2662
|
+
this.FirstName = null;
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* The middle name.
|
|
2666
|
+
* @type {TextDetectionResult || null}
|
|
2667
|
+
*/
|
|
2668
|
+
this.MiddleName = null;
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* The date of birth.
|
|
2672
|
+
* @type {TextDetectionResult || null}
|
|
2673
|
+
*/
|
|
2674
|
+
this.Birthday = null;
|
|
2675
|
+
|
|
2676
|
+
/**
|
|
2677
|
+
* The civil status.
|
|
2678
|
+
* @type {TextDetectionResult || null}
|
|
2679
|
+
*/
|
|
2680
|
+
this.CivilStatus = null;
|
|
2681
|
+
|
|
2682
|
+
/**
|
|
2683
|
+
* The citizenship.
|
|
2684
|
+
* @type {TextDetectionResult || null}
|
|
2685
|
+
*/
|
|
2686
|
+
this.Citizenship = null;
|
|
2687
|
+
|
|
2688
|
+
/**
|
|
2689
|
+
* The address.
|
|
2690
|
+
* @type {TextDetectionResult || null}
|
|
2691
|
+
*/
|
|
2692
|
+
this.Address = null;
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* The precinct.
|
|
2696
|
+
* @type {TextDetectionResult || null}
|
|
2697
|
+
*/
|
|
2698
|
+
this.PrecinctNo = null;
|
|
2699
|
+
|
|
2700
|
+
/**
|
|
2701
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
2702
|
+
* @type {string || null}
|
|
2703
|
+
*/
|
|
2704
|
+
this.RequestId = null;
|
|
2645
2705
|
|
|
2646
2706
|
}
|
|
2647
2707
|
|
|
@@ -2653,15 +2713,67 @@ class LineInfo extends AbstractModel {
|
|
|
2653
2713
|
return;
|
|
2654
2714
|
}
|
|
2655
2715
|
|
|
2656
|
-
if (params.
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2716
|
+
if (params.HeadPortrait) {
|
|
2717
|
+
let obj = new TextDetectionResult();
|
|
2718
|
+
obj.deserialize(params.HeadPortrait)
|
|
2719
|
+
this.HeadPortrait = obj;
|
|
2720
|
+
}
|
|
2721
|
+
|
|
2722
|
+
if (params.VIN) {
|
|
2723
|
+
let obj = new TextDetectionResult();
|
|
2724
|
+
obj.deserialize(params.VIN)
|
|
2725
|
+
this.VIN = obj;
|
|
2726
|
+
}
|
|
2727
|
+
|
|
2728
|
+
if (params.LastName) {
|
|
2729
|
+
let obj = new TextDetectionResult();
|
|
2730
|
+
obj.deserialize(params.LastName)
|
|
2731
|
+
this.LastName = obj;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
if (params.FirstName) {
|
|
2735
|
+
let obj = new TextDetectionResult();
|
|
2736
|
+
obj.deserialize(params.FirstName)
|
|
2737
|
+
this.FirstName = obj;
|
|
2663
2738
|
}
|
|
2664
2739
|
|
|
2740
|
+
if (params.MiddleName) {
|
|
2741
|
+
let obj = new TextDetectionResult();
|
|
2742
|
+
obj.deserialize(params.MiddleName)
|
|
2743
|
+
this.MiddleName = obj;
|
|
2744
|
+
}
|
|
2745
|
+
|
|
2746
|
+
if (params.Birthday) {
|
|
2747
|
+
let obj = new TextDetectionResult();
|
|
2748
|
+
obj.deserialize(params.Birthday)
|
|
2749
|
+
this.Birthday = obj;
|
|
2750
|
+
}
|
|
2751
|
+
|
|
2752
|
+
if (params.CivilStatus) {
|
|
2753
|
+
let obj = new TextDetectionResult();
|
|
2754
|
+
obj.deserialize(params.CivilStatus)
|
|
2755
|
+
this.CivilStatus = obj;
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
if (params.Citizenship) {
|
|
2759
|
+
let obj = new TextDetectionResult();
|
|
2760
|
+
obj.deserialize(params.Citizenship)
|
|
2761
|
+
this.Citizenship = obj;
|
|
2762
|
+
}
|
|
2763
|
+
|
|
2764
|
+
if (params.Address) {
|
|
2765
|
+
let obj = new TextDetectionResult();
|
|
2766
|
+
obj.deserialize(params.Address)
|
|
2767
|
+
this.Address = obj;
|
|
2768
|
+
}
|
|
2769
|
+
|
|
2770
|
+
if (params.PrecinctNo) {
|
|
2771
|
+
let obj = new TextDetectionResult();
|
|
2772
|
+
obj.deserialize(params.PrecinctNo)
|
|
2773
|
+
this.PrecinctNo = obj;
|
|
2774
|
+
}
|
|
2775
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2776
|
+
|
|
2665
2777
|
}
|
|
2666
2778
|
}
|
|
2667
2779
|
|
|
@@ -3339,6 +3451,62 @@ Note: This field may return null, indicating that no valid values can be obtaine
|
|
|
3339
3451
|
}
|
|
3340
3452
|
}
|
|
3341
3453
|
|
|
3454
|
+
/**
|
|
3455
|
+
* Signature verification conclusion
|
|
3456
|
+
* @class
|
|
3457
|
+
*/
|
|
3458
|
+
class SignResult extends AbstractModel {
|
|
3459
|
+
constructor(){
|
|
3460
|
+
super();
|
|
3461
|
+
|
|
3462
|
+
/**
|
|
3463
|
+
* <p>Signature verification status. 1 indicates that the signature verification is passed.</p>
|
|
3464
|
+
* @type {number || null}
|
|
3465
|
+
*/
|
|
3466
|
+
this.VerifyStatus = null;
|
|
3467
|
+
|
|
3468
|
+
/**
|
|
3469
|
+
* <p>Signer name</p>
|
|
3470
|
+
* @type {string || null}
|
|
3471
|
+
*/
|
|
3472
|
+
this.SignerName = null;
|
|
3473
|
+
|
|
3474
|
+
/**
|
|
3475
|
+
* <p>Signature algorithm, such as SHA256withRSA</p>
|
|
3476
|
+
* @type {string || null}
|
|
3477
|
+
*/
|
|
3478
|
+
this.SignAlgorithm = null;
|
|
3479
|
+
|
|
3480
|
+
/**
|
|
3481
|
+
* <p>Signature time (Unix timestamp in milliseconds)</p>
|
|
3482
|
+
* @type {number || null}
|
|
3483
|
+
*/
|
|
3484
|
+
this.SignTime = null;
|
|
3485
|
+
|
|
3486
|
+
/**
|
|
3487
|
+
* <p>Signature verification information</p>
|
|
3488
|
+
* @type {string || null}
|
|
3489
|
+
*/
|
|
3490
|
+
this.CertSn = null;
|
|
3491
|
+
|
|
3492
|
+
}
|
|
3493
|
+
|
|
3494
|
+
/**
|
|
3495
|
+
* @private
|
|
3496
|
+
*/
|
|
3497
|
+
deserialize(params) {
|
|
3498
|
+
if (!params) {
|
|
3499
|
+
return;
|
|
3500
|
+
}
|
|
3501
|
+
this.VerifyStatus = 'VerifyStatus' in params ? params.VerifyStatus : null;
|
|
3502
|
+
this.SignerName = 'SignerName' in params ? params.SignerName : null;
|
|
3503
|
+
this.SignAlgorithm = 'SignAlgorithm' in params ? params.SignAlgorithm : null;
|
|
3504
|
+
this.SignTime = 'SignTime' in params ? params.SignTime : null;
|
|
3505
|
+
this.CertSn = 'CertSn' in params ? params.CertSn : null;
|
|
3506
|
+
|
|
3507
|
+
}
|
|
3508
|
+
}
|
|
3509
|
+
|
|
3342
3510
|
/**
|
|
3343
3511
|
* Specifies the identity card type in brazil.
|
|
3344
3512
|
* @class
|
|
@@ -3954,6 +4122,69 @@ class RecognizePhilippinesSssIDOCRResponse extends AbstractModel {
|
|
|
3954
4122
|
}
|
|
3955
4123
|
}
|
|
3956
4124
|
|
|
4125
|
+
/**
|
|
4126
|
+
* Single exit-entry record
|
|
4127
|
+
* @class
|
|
4128
|
+
*/
|
|
4129
|
+
class Record extends AbstractModel {
|
|
4130
|
+
constructor(){
|
|
4131
|
+
super();
|
|
4132
|
+
|
|
4133
|
+
/**
|
|
4134
|
+
* Serial number.
|
|
4135
|
+
* @type {string || null}
|
|
4136
|
+
*/
|
|
4137
|
+
this.Index = null;
|
|
4138
|
+
|
|
4139
|
+
/**
|
|
4140
|
+
* Exit/Entry
|
|
4141
|
+
* @type {string || null}
|
|
4142
|
+
*/
|
|
4143
|
+
this.Type = null;
|
|
4144
|
+
|
|
4145
|
+
/**
|
|
4146
|
+
* Date of exit/entry
|
|
4147
|
+
* @type {string || null}
|
|
4148
|
+
*/
|
|
4149
|
+
this.Date = null;
|
|
4150
|
+
|
|
4151
|
+
/**
|
|
4152
|
+
* Document name
|
|
4153
|
+
* @type {string || null}
|
|
4154
|
+
*/
|
|
4155
|
+
this.CertName = null;
|
|
4156
|
+
|
|
4157
|
+
/**
|
|
4158
|
+
* Document number
|
|
4159
|
+
* @type {string || null}
|
|
4160
|
+
*/
|
|
4161
|
+
this.CertId = null;
|
|
4162
|
+
|
|
4163
|
+
/**
|
|
4164
|
+
* Port of exit/entry
|
|
4165
|
+
* @type {string || null}
|
|
4166
|
+
*/
|
|
4167
|
+
this.Port = null;
|
|
4168
|
+
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
/**
|
|
4172
|
+
* @private
|
|
4173
|
+
*/
|
|
4174
|
+
deserialize(params) {
|
|
4175
|
+
if (!params) {
|
|
4176
|
+
return;
|
|
4177
|
+
}
|
|
4178
|
+
this.Index = 'Index' in params ? params.Index : null;
|
|
4179
|
+
this.Type = 'Type' in params ? params.Type : null;
|
|
4180
|
+
this.Date = 'Date' in params ? params.Date : null;
|
|
4181
|
+
this.CertName = 'CertName' in params ? params.CertName : null;
|
|
4182
|
+
this.CertId = 'CertId' in params ? params.CertId : null;
|
|
4183
|
+
this.Port = 'Port' in params ? params.Port : null;
|
|
4184
|
+
|
|
4185
|
+
}
|
|
4186
|
+
}
|
|
4187
|
+
|
|
3957
4188
|
/**
|
|
3958
4189
|
* ApplyOcrToken request structure.
|
|
3959
4190
|
* @class
|
|
@@ -5422,18 +5653,102 @@ We recommend that you store the image in Tencent Cloud for higher download speed
|
|
|
5422
5653
|
*/
|
|
5423
5654
|
this.ImageUrl = null;
|
|
5424
5655
|
|
|
5425
|
-
/**
|
|
5426
|
-
* The URL address of the image on the back of the card. Supported image formats: PNG, JPG, JPEG. GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download takes no more than 3 seconds. Storing images in Tencent Cloud URLs can ensure higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The URL speed and stability of non-Tencent cloud storage may be affected to a certain extent.
|
|
5427
|
-
* @type {string || null}
|
|
5428
|
-
*/
|
|
5429
|
-
this.BackImageUrl = null;
|
|
5656
|
+
/**
|
|
5657
|
+
* The URL address of the image on the back of the card. Supported image formats: PNG, JPG, JPEG. GIF format is not supported yet. Supported image size: The downloaded image does not exceed 7M after Base64 encoding. The image download takes no more than 3 seconds. Storing images in Tencent Cloud URLs can ensure higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The URL speed and stability of non-Tencent cloud storage may be affected to a certain extent.
|
|
5658
|
+
* @type {string || null}
|
|
5659
|
+
*/
|
|
5660
|
+
this.BackImageUrl = null;
|
|
5661
|
+
|
|
5662
|
+
/**
|
|
5663
|
+
* Whether to crop the profile photo. The default value is false, meaning not to return the Base64-encoded value of the profile photo on the Thai identity card.
|
|
5664
|
+
When this parameter is set to true, the Base64-encoded value of the profile photo on the Thai identity card after rotation correction is returned.
|
|
5665
|
+
* @type {boolean || null}
|
|
5666
|
+
*/
|
|
5667
|
+
this.CropPortrait = null;
|
|
5668
|
+
|
|
5669
|
+
}
|
|
5670
|
+
|
|
5671
|
+
/**
|
|
5672
|
+
* @private
|
|
5673
|
+
*/
|
|
5674
|
+
deserialize(params) {
|
|
5675
|
+
if (!params) {
|
|
5676
|
+
return;
|
|
5677
|
+
}
|
|
5678
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
5679
|
+
this.BackImageBase64 = 'BackImageBase64' in params ? params.BackImageBase64 : null;
|
|
5680
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
5681
|
+
this.BackImageUrl = 'BackImageUrl' in params ? params.BackImageUrl : null;
|
|
5682
|
+
this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
|
|
5683
|
+
|
|
5684
|
+
}
|
|
5685
|
+
}
|
|
5686
|
+
|
|
5687
|
+
/**
|
|
5688
|
+
* VerifyPdfOcr response structure.
|
|
5689
|
+
* @class
|
|
5690
|
+
*/
|
|
5691
|
+
class VerifyPdfOcrResponse extends AbstractModel {
|
|
5692
|
+
constructor(){
|
|
5693
|
+
super();
|
|
5694
|
+
|
|
5695
|
+
/**
|
|
5696
|
+
* <p>Flattened extraction result of exit-entry records (recommended)</p>
|
|
5697
|
+
* @type {ExtractedFields || null}
|
|
5698
|
+
*/
|
|
5699
|
+
this.ExtractedFields = null;
|
|
5700
|
+
|
|
5701
|
+
/**
|
|
5702
|
+
* <p>Signature verification conclusion (recommended)</p>
|
|
5703
|
+
* @type {SignResult || null}
|
|
5704
|
+
*/
|
|
5705
|
+
this.SignResult = null;
|
|
5706
|
+
|
|
5707
|
+
/**
|
|
5708
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
5709
|
+
* @type {string || null}
|
|
5710
|
+
*/
|
|
5711
|
+
this.RequestId = null;
|
|
5712
|
+
|
|
5713
|
+
}
|
|
5714
|
+
|
|
5715
|
+
/**
|
|
5716
|
+
* @private
|
|
5717
|
+
*/
|
|
5718
|
+
deserialize(params) {
|
|
5719
|
+
if (!params) {
|
|
5720
|
+
return;
|
|
5721
|
+
}
|
|
5722
|
+
|
|
5723
|
+
if (params.ExtractedFields) {
|
|
5724
|
+
let obj = new ExtractedFields();
|
|
5725
|
+
obj.deserialize(params.ExtractedFields)
|
|
5726
|
+
this.ExtractedFields = obj;
|
|
5727
|
+
}
|
|
5728
|
+
|
|
5729
|
+
if (params.SignResult) {
|
|
5730
|
+
let obj = new SignResult();
|
|
5731
|
+
obj.deserialize(params.SignResult)
|
|
5732
|
+
this.SignResult = obj;
|
|
5733
|
+
}
|
|
5734
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
5735
|
+
|
|
5736
|
+
}
|
|
5737
|
+
}
|
|
5738
|
+
|
|
5739
|
+
/**
|
|
5740
|
+
* VerifyPdfOcr request structure.
|
|
5741
|
+
* @class
|
|
5742
|
+
*/
|
|
5743
|
+
class VerifyPdfOcrRequest extends AbstractModel {
|
|
5744
|
+
constructor(){
|
|
5745
|
+
super();
|
|
5430
5746
|
|
|
5431
5747
|
/**
|
|
5432
|
-
*
|
|
5433
|
-
|
|
5434
|
-
* @type {boolean || null}
|
|
5748
|
+
* <p>Base64-encoded content of the PDF file. The data:application/pdf;base64, prefix is supported (the server automatically strips it).</p>
|
|
5749
|
+
* @type {string || null}
|
|
5435
5750
|
*/
|
|
5436
|
-
this.
|
|
5751
|
+
this.ImageBase64 = null;
|
|
5437
5752
|
|
|
5438
5753
|
}
|
|
5439
5754
|
|
|
@@ -5445,10 +5760,6 @@ When this parameter is set to true, the Base64-encoded value of the profile phot
|
|
|
5445
5760
|
return;
|
|
5446
5761
|
}
|
|
5447
5762
|
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
5448
|
-
this.BackImageBase64 = 'BackImageBase64' in params ? params.BackImageBase64 : null;
|
|
5449
|
-
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
5450
|
-
this.BackImageUrl = 'BackImageUrl' in params ? params.BackImageUrl : null;
|
|
5451
|
-
this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
|
|
5452
5763
|
|
|
5453
5764
|
}
|
|
5454
5765
|
}
|
|
@@ -5481,6 +5792,55 @@ class GetCardVerificationExternalResultRequest extends AbstractModel {
|
|
|
5481
5792
|
}
|
|
5482
5793
|
}
|
|
5483
5794
|
|
|
5795
|
+
/**
|
|
5796
|
+
* Information of the inquirer
|
|
5797
|
+
* @class
|
|
5798
|
+
*/
|
|
5799
|
+
class PersonInfo extends AbstractModel {
|
|
5800
|
+
constructor(){
|
|
5801
|
+
super();
|
|
5802
|
+
|
|
5803
|
+
/**
|
|
5804
|
+
* Name of the inquirer
|
|
5805
|
+
* @type {string || null}
|
|
5806
|
+
*/
|
|
5807
|
+
this.Name = null;
|
|
5808
|
+
|
|
5809
|
+
/**
|
|
5810
|
+
* Gender
|
|
5811
|
+
* @type {string || null}
|
|
5812
|
+
*/
|
|
5813
|
+
this.Gender = null;
|
|
5814
|
+
|
|
5815
|
+
/**
|
|
5816
|
+
* Date of birth
|
|
5817
|
+
* @type {string || null}
|
|
5818
|
+
*/
|
|
5819
|
+
this.BirthDate = null;
|
|
5820
|
+
|
|
5821
|
+
/**
|
|
5822
|
+
* Citizen ID number
|
|
5823
|
+
* @type {string || null}
|
|
5824
|
+
*/
|
|
5825
|
+
this.IdCardNo = null;
|
|
5826
|
+
|
|
5827
|
+
}
|
|
5828
|
+
|
|
5829
|
+
/**
|
|
5830
|
+
* @private
|
|
5831
|
+
*/
|
|
5832
|
+
deserialize(params) {
|
|
5833
|
+
if (!params) {
|
|
5834
|
+
return;
|
|
5835
|
+
}
|
|
5836
|
+
this.Name = 'Name' in params ? params.Name : null;
|
|
5837
|
+
this.Gender = 'Gender' in params ? params.Gender : null;
|
|
5838
|
+
this.BirthDate = 'BirthDate' in params ? params.BirthDate : null;
|
|
5839
|
+
this.IdCardNo = 'IdCardNo' in params ? params.IdCardNo : null;
|
|
5840
|
+
|
|
5841
|
+
}
|
|
5842
|
+
}
|
|
5843
|
+
|
|
5484
5844
|
/**
|
|
5485
5845
|
* Coordinates
|
|
5486
5846
|
* @class
|
|
@@ -5884,78 +6244,18 @@ class ConfigAdvanced extends AbstractModel {
|
|
|
5884
6244
|
}
|
|
5885
6245
|
|
|
5886
6246
|
/**
|
|
5887
|
-
*
|
|
6247
|
+
* Line number
|
|
5888
6248
|
* @class
|
|
5889
6249
|
*/
|
|
5890
|
-
class
|
|
6250
|
+
class LineInfo extends AbstractModel {
|
|
5891
6251
|
constructor(){
|
|
5892
6252
|
super();
|
|
5893
6253
|
|
|
5894
6254
|
/**
|
|
5895
|
-
*
|
|
5896
|
-
* @type {
|
|
5897
|
-
*/
|
|
5898
|
-
this.HeadPortrait = null;
|
|
5899
|
-
|
|
5900
|
-
/**
|
|
5901
|
-
* The voter's identification number (VIN).
|
|
5902
|
-
* @type {TextDetectionResult || null}
|
|
5903
|
-
*/
|
|
5904
|
-
this.VIN = null;
|
|
5905
|
-
|
|
5906
|
-
/**
|
|
5907
|
-
* The last name.
|
|
5908
|
-
* @type {TextDetectionResult || null}
|
|
5909
|
-
*/
|
|
5910
|
-
this.LastName = null;
|
|
5911
|
-
|
|
5912
|
-
/**
|
|
5913
|
-
* The first name.
|
|
5914
|
-
* @type {TextDetectionResult || null}
|
|
5915
|
-
*/
|
|
5916
|
-
this.FirstName = null;
|
|
5917
|
-
|
|
5918
|
-
/**
|
|
5919
|
-
* The middle name.
|
|
5920
|
-
* @type {TextDetectionResult || null}
|
|
5921
|
-
*/
|
|
5922
|
-
this.MiddleName = null;
|
|
5923
|
-
|
|
5924
|
-
/**
|
|
5925
|
-
* The date of birth.
|
|
5926
|
-
* @type {TextDetectionResult || null}
|
|
5927
|
-
*/
|
|
5928
|
-
this.Birthday = null;
|
|
5929
|
-
|
|
5930
|
-
/**
|
|
5931
|
-
* The civil status.
|
|
5932
|
-
* @type {TextDetectionResult || null}
|
|
5933
|
-
*/
|
|
5934
|
-
this.CivilStatus = null;
|
|
5935
|
-
|
|
5936
|
-
/**
|
|
5937
|
-
* The citizenship.
|
|
5938
|
-
* @type {TextDetectionResult || null}
|
|
5939
|
-
*/
|
|
5940
|
-
this.Citizenship = null;
|
|
5941
|
-
|
|
5942
|
-
/**
|
|
5943
|
-
* The address.
|
|
5944
|
-
* @type {TextDetectionResult || null}
|
|
5945
|
-
*/
|
|
5946
|
-
this.Address = null;
|
|
5947
|
-
|
|
5948
|
-
/**
|
|
5949
|
-
* The precinct.
|
|
5950
|
-
* @type {TextDetectionResult || null}
|
|
5951
|
-
*/
|
|
5952
|
-
this.PrecinctNo = null;
|
|
5953
|
-
|
|
5954
|
-
/**
|
|
5955
|
-
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
5956
|
-
* @type {string || null}
|
|
6255
|
+
* The elements in a line
|
|
6256
|
+
* @type {Array.<ItemInfo> || null}
|
|
5957
6257
|
*/
|
|
5958
|
-
this.
|
|
6258
|
+
this.Lines = null;
|
|
5959
6259
|
|
|
5960
6260
|
}
|
|
5961
6261
|
|
|
@@ -5967,66 +6267,14 @@ class RecognizePhilippinesVoteIDOCRResponse extends AbstractModel {
|
|
|
5967
6267
|
return;
|
|
5968
6268
|
}
|
|
5969
6269
|
|
|
5970
|
-
if (params.
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
let obj = new TextDetectionResult();
|
|
5978
|
-
obj.deserialize(params.VIN)
|
|
5979
|
-
this.VIN = obj;
|
|
5980
|
-
}
|
|
5981
|
-
|
|
5982
|
-
if (params.LastName) {
|
|
5983
|
-
let obj = new TextDetectionResult();
|
|
5984
|
-
obj.deserialize(params.LastName)
|
|
5985
|
-
this.LastName = obj;
|
|
5986
|
-
}
|
|
5987
|
-
|
|
5988
|
-
if (params.FirstName) {
|
|
5989
|
-
let obj = new TextDetectionResult();
|
|
5990
|
-
obj.deserialize(params.FirstName)
|
|
5991
|
-
this.FirstName = obj;
|
|
5992
|
-
}
|
|
5993
|
-
|
|
5994
|
-
if (params.MiddleName) {
|
|
5995
|
-
let obj = new TextDetectionResult();
|
|
5996
|
-
obj.deserialize(params.MiddleName)
|
|
5997
|
-
this.MiddleName = obj;
|
|
5998
|
-
}
|
|
5999
|
-
|
|
6000
|
-
if (params.Birthday) {
|
|
6001
|
-
let obj = new TextDetectionResult();
|
|
6002
|
-
obj.deserialize(params.Birthday)
|
|
6003
|
-
this.Birthday = obj;
|
|
6004
|
-
}
|
|
6005
|
-
|
|
6006
|
-
if (params.CivilStatus) {
|
|
6007
|
-
let obj = new TextDetectionResult();
|
|
6008
|
-
obj.deserialize(params.CivilStatus)
|
|
6009
|
-
this.CivilStatus = obj;
|
|
6010
|
-
}
|
|
6011
|
-
|
|
6012
|
-
if (params.Citizenship) {
|
|
6013
|
-
let obj = new TextDetectionResult();
|
|
6014
|
-
obj.deserialize(params.Citizenship)
|
|
6015
|
-
this.Citizenship = obj;
|
|
6016
|
-
}
|
|
6017
|
-
|
|
6018
|
-
if (params.Address) {
|
|
6019
|
-
let obj = new TextDetectionResult();
|
|
6020
|
-
obj.deserialize(params.Address)
|
|
6021
|
-
this.Address = obj;
|
|
6022
|
-
}
|
|
6023
|
-
|
|
6024
|
-
if (params.PrecinctNo) {
|
|
6025
|
-
let obj = new TextDetectionResult();
|
|
6026
|
-
obj.deserialize(params.PrecinctNo)
|
|
6027
|
-
this.PrecinctNo = obj;
|
|
6270
|
+
if (params.Lines) {
|
|
6271
|
+
this.Lines = new Array();
|
|
6272
|
+
for (let z in params.Lines) {
|
|
6273
|
+
let obj = new ItemInfo();
|
|
6274
|
+
obj.deserialize(params.Lines[z]);
|
|
6275
|
+
this.Lines.push(obj);
|
|
6276
|
+
}
|
|
6028
6277
|
}
|
|
6029
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
6030
6278
|
|
|
6031
6279
|
}
|
|
6032
6280
|
}
|
|
@@ -6677,6 +6925,96 @@ Note: Only supported for the back side of the Mainland Travel Permit for Hong Ko
|
|
|
6677
6925
|
}
|
|
6678
6926
|
}
|
|
6679
6927
|
|
|
6928
|
+
/**
|
|
6929
|
+
* Flattened extraction result of entry and exit records (recommended, with 2–3 levels directly reaching business fields)
|
|
6930
|
+
* @class
|
|
6931
|
+
*/
|
|
6932
|
+
class ExtractedFields extends AbstractModel {
|
|
6933
|
+
constructor(){
|
|
6934
|
+
super();
|
|
6935
|
+
|
|
6936
|
+
/**
|
|
6937
|
+
* <p>Title, such as "Exit and Entry Record Query Result of the National Immigration Administration (Electronic Document)"</p>
|
|
6938
|
+
* @type {string || null}
|
|
6939
|
+
*/
|
|
6940
|
+
this.Title = null;
|
|
6941
|
+
|
|
6942
|
+
/**
|
|
6943
|
+
* <p>Query number</p>
|
|
6944
|
+
* @type {string || null}
|
|
6945
|
+
*/
|
|
6946
|
+
this.QueryNo = null;
|
|
6947
|
+
|
|
6948
|
+
/**
|
|
6949
|
+
* <p>Query date</p>
|
|
6950
|
+
* @type {string || null}
|
|
6951
|
+
*/
|
|
6952
|
+
this.QueryDate = null;
|
|
6953
|
+
|
|
6954
|
+
/**
|
|
6955
|
+
* <p>Date of issue</p>
|
|
6956
|
+
* @type {string || null}
|
|
6957
|
+
*/
|
|
6958
|
+
this.GenerateDate = null;
|
|
6959
|
+
|
|
6960
|
+
/**
|
|
6961
|
+
* <p>Information of the inquirer</p>
|
|
6962
|
+
* @type {PersonInfo || null}
|
|
6963
|
+
*/
|
|
6964
|
+
this.PersonInfo = null;
|
|
6965
|
+
|
|
6966
|
+
/**
|
|
6967
|
+
* <p>List of entry and exit records</p>
|
|
6968
|
+
* @type {Array.<Record> || null}
|
|
6969
|
+
*/
|
|
6970
|
+
this.Records = null;
|
|
6971
|
+
|
|
6972
|
+
/**
|
|
6973
|
+
* <p>Start time of the query range</p>
|
|
6974
|
+
* @type {string || null}
|
|
6975
|
+
*/
|
|
6976
|
+
this.QueryPeriodStart = null;
|
|
6977
|
+
|
|
6978
|
+
/**
|
|
6979
|
+
* <p>End time of the query range</p>
|
|
6980
|
+
* @type {string || null}
|
|
6981
|
+
*/
|
|
6982
|
+
this.QueryPeriodEnd = null;
|
|
6983
|
+
|
|
6984
|
+
}
|
|
6985
|
+
|
|
6986
|
+
/**
|
|
6987
|
+
* @private
|
|
6988
|
+
*/
|
|
6989
|
+
deserialize(params) {
|
|
6990
|
+
if (!params) {
|
|
6991
|
+
return;
|
|
6992
|
+
}
|
|
6993
|
+
this.Title = 'Title' in params ? params.Title : null;
|
|
6994
|
+
this.QueryNo = 'QueryNo' in params ? params.QueryNo : null;
|
|
6995
|
+
this.QueryDate = 'QueryDate' in params ? params.QueryDate : null;
|
|
6996
|
+
this.GenerateDate = 'GenerateDate' in params ? params.GenerateDate : null;
|
|
6997
|
+
|
|
6998
|
+
if (params.PersonInfo) {
|
|
6999
|
+
let obj = new PersonInfo();
|
|
7000
|
+
obj.deserialize(params.PersonInfo)
|
|
7001
|
+
this.PersonInfo = obj;
|
|
7002
|
+
}
|
|
7003
|
+
|
|
7004
|
+
if (params.Records) {
|
|
7005
|
+
this.Records = new Array();
|
|
7006
|
+
for (let z in params.Records) {
|
|
7007
|
+
let obj = new Record();
|
|
7008
|
+
obj.deserialize(params.Records[z]);
|
|
7009
|
+
this.Records.push(obj);
|
|
7010
|
+
}
|
|
7011
|
+
}
|
|
7012
|
+
this.QueryPeriodStart = 'QueryPeriodStart' in params ? params.QueryPeriodStart : null;
|
|
7013
|
+
this.QueryPeriodEnd = 'QueryPeriodEnd' in params ? params.QueryPeriodEnd : null;
|
|
7014
|
+
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
|
|
6680
7018
|
/**
|
|
6681
7019
|
* MLIDCardOCR request structure.
|
|
6682
7020
|
* @class
|
|
@@ -8418,7 +8756,7 @@ module.exports = {
|
|
|
8418
8756
|
RecognizeBrazilCommonOCRRequest: RecognizeBrazilCommonOCRRequest,
|
|
8419
8757
|
RecognizePhilippinesTinIDOCRResponse: RecognizePhilippinesTinIDOCRResponse,
|
|
8420
8758
|
DetectedWords: DetectedWords,
|
|
8421
|
-
|
|
8759
|
+
RecognizePhilippinesVoteIDOCRResponse: RecognizePhilippinesVoteIDOCRResponse,
|
|
8422
8760
|
BrazilDriverLicenseInfo: BrazilDriverLicenseInfo,
|
|
8423
8761
|
GeneralAccurateOCRResponse: GeneralAccurateOCRResponse,
|
|
8424
8762
|
HmtResidentPermitOCRRequest: HmtResidentPermitOCRRequest,
|
|
@@ -8430,6 +8768,7 @@ module.exports = {
|
|
|
8430
8768
|
RecognizePhilippinesUMIDOCRRequest: RecognizePhilippinesUMIDOCRRequest,
|
|
8431
8769
|
RecognizePhilippinesSssIDOCRRequest: RecognizePhilippinesSssIDOCRRequest,
|
|
8432
8770
|
Key: Key,
|
|
8771
|
+
SignResult: SignResult,
|
|
8433
8772
|
BrazilIDCardInfo: BrazilIDCardInfo,
|
|
8434
8773
|
HKIDCardOCRResponse: HKIDCardOCRResponse,
|
|
8435
8774
|
GroupInfo: GroupInfo,
|
|
@@ -8437,6 +8776,7 @@ module.exports = {
|
|
|
8437
8776
|
CardVerificationConfig: CardVerificationConfig,
|
|
8438
8777
|
ExtractDocMultiResponse: ExtractDocMultiResponse,
|
|
8439
8778
|
RecognizePhilippinesSssIDOCRResponse: RecognizePhilippinesSssIDOCRResponse,
|
|
8779
|
+
Record: Record,
|
|
8440
8780
|
ApplyOcrTokenRequest: ApplyOcrTokenRequest,
|
|
8441
8781
|
RecognizePhilippinesUMIDOCRResponse: RecognizePhilippinesUMIDOCRResponse,
|
|
8442
8782
|
ApplyCardVerificationExternalRequest: ApplyCardVerificationExternalRequest,
|
|
@@ -8453,13 +8793,16 @@ module.exports = {
|
|
|
8453
8793
|
CoordsItem: CoordsItem,
|
|
8454
8794
|
MLIDPassportOCRResponse: MLIDPassportOCRResponse,
|
|
8455
8795
|
RecognizeThaiIDCardOCRRequest: RecognizeThaiIDCardOCRRequest,
|
|
8796
|
+
VerifyPdfOcrResponse: VerifyPdfOcrResponse,
|
|
8797
|
+
VerifyPdfOcrRequest: VerifyPdfOcrRequest,
|
|
8456
8798
|
GetCardVerificationExternalResultRequest: GetCardVerificationExternalResultRequest,
|
|
8799
|
+
PersonInfo: PersonInfo,
|
|
8457
8800
|
Coord: Coord,
|
|
8458
8801
|
RecognizeBrazilRNEOCRResponse: RecognizeBrazilRNEOCRResponse,
|
|
8459
8802
|
RecognizeIndonesiaIDCardOCRResponse: RecognizeIndonesiaIDCardOCRResponse,
|
|
8460
8803
|
VinOCRResponse: VinOCRResponse,
|
|
8461
8804
|
ConfigAdvanced: ConfigAdvanced,
|
|
8462
|
-
|
|
8805
|
+
LineInfo: LineInfo,
|
|
8463
8806
|
ItemCoord: ItemCoord,
|
|
8464
8807
|
ApplyCardVerificationExternalResponse: ApplyCardVerificationExternalResponse,
|
|
8465
8808
|
Polygon: Polygon,
|
|
@@ -8468,6 +8811,7 @@ module.exports = {
|
|
|
8468
8811
|
SmartStructuralOCRV2Response: SmartStructuralOCRV2Response,
|
|
8469
8812
|
RecognizeMainlandIDCardOCRResponse: RecognizeMainlandIDCardOCRResponse,
|
|
8470
8813
|
MainlandPermitOCRResponse: MainlandPermitOCRResponse,
|
|
8814
|
+
ExtractedFields: ExtractedFields,
|
|
8471
8815
|
MLIDCardOCRRequest: MLIDCardOCRRequest,
|
|
8472
8816
|
ImageCoordinates: ImageCoordinates,
|
|
8473
8817
|
RecognizeMexicoVTIDRequest: RecognizeMexicoVTIDRequest,
|
|
@@ -47,7 +47,7 @@ const MainlandPermitOCRRequest = models.MainlandPermitOCRRequest;
|
|
|
47
47
|
const RecognizeBrazilCommonOCRRequest = models.RecognizeBrazilCommonOCRRequest;
|
|
48
48
|
const RecognizePhilippinesTinIDOCRResponse = models.RecognizePhilippinesTinIDOCRResponse;
|
|
49
49
|
const DetectedWords = models.DetectedWords;
|
|
50
|
-
const
|
|
50
|
+
const RecognizePhilippinesVoteIDOCRResponse = models.RecognizePhilippinesVoteIDOCRResponse;
|
|
51
51
|
const BrazilDriverLicenseInfo = models.BrazilDriverLicenseInfo;
|
|
52
52
|
const GeneralAccurateOCRResponse = models.GeneralAccurateOCRResponse;
|
|
53
53
|
const HmtResidentPermitOCRRequest = models.HmtResidentPermitOCRRequest;
|
|
@@ -59,6 +59,7 @@ const ItemNames = models.ItemNames;
|
|
|
59
59
|
const RecognizePhilippinesUMIDOCRRequest = models.RecognizePhilippinesUMIDOCRRequest;
|
|
60
60
|
const RecognizePhilippinesSssIDOCRRequest = models.RecognizePhilippinesSssIDOCRRequest;
|
|
61
61
|
const Key = models.Key;
|
|
62
|
+
const SignResult = models.SignResult;
|
|
62
63
|
const BrazilIDCardInfo = models.BrazilIDCardInfo;
|
|
63
64
|
const HKIDCardOCRResponse = models.HKIDCardOCRResponse;
|
|
64
65
|
const GroupInfo = models.GroupInfo;
|
|
@@ -66,6 +67,7 @@ const PermitOCRRequest = models.PermitOCRRequest;
|
|
|
66
67
|
const CardVerificationConfig = models.CardVerificationConfig;
|
|
67
68
|
const ExtractDocMultiResponse = models.ExtractDocMultiResponse;
|
|
68
69
|
const RecognizePhilippinesSssIDOCRResponse = models.RecognizePhilippinesSssIDOCRResponse;
|
|
70
|
+
const Record = models.Record;
|
|
69
71
|
const ApplyOcrTokenRequest = models.ApplyOcrTokenRequest;
|
|
70
72
|
const RecognizePhilippinesUMIDOCRResponse = models.RecognizePhilippinesUMIDOCRResponse;
|
|
71
73
|
const ApplyCardVerificationExternalRequest = models.ApplyCardVerificationExternalRequest;
|
|
@@ -82,13 +84,16 @@ const RecognizeMacaoIDCardOCRRequest = models.RecognizeMacaoIDCardOCRRequest;
|
|
|
82
84
|
const CoordsItem = models.CoordsItem;
|
|
83
85
|
const MLIDPassportOCRResponse = models.MLIDPassportOCRResponse;
|
|
84
86
|
const RecognizeThaiIDCardOCRRequest = models.RecognizeThaiIDCardOCRRequest;
|
|
87
|
+
const VerifyPdfOcrResponse = models.VerifyPdfOcrResponse;
|
|
88
|
+
const VerifyPdfOcrRequest = models.VerifyPdfOcrRequest;
|
|
85
89
|
const GetCardVerificationExternalResultRequest = models.GetCardVerificationExternalResultRequest;
|
|
90
|
+
const PersonInfo = models.PersonInfo;
|
|
86
91
|
const Coord = models.Coord;
|
|
87
92
|
const RecognizeBrazilRNEOCRResponse = models.RecognizeBrazilRNEOCRResponse;
|
|
88
93
|
const RecognizeIndonesiaIDCardOCRResponse = models.RecognizeIndonesiaIDCardOCRResponse;
|
|
89
94
|
const VinOCRResponse = models.VinOCRResponse;
|
|
90
95
|
const ConfigAdvanced = models.ConfigAdvanced;
|
|
91
|
-
const
|
|
96
|
+
const LineInfo = models.LineInfo;
|
|
92
97
|
const ItemCoord = models.ItemCoord;
|
|
93
98
|
const ApplyCardVerificationExternalResponse = models.ApplyCardVerificationExternalResponse;
|
|
94
99
|
const Polygon = models.Polygon;
|
|
@@ -97,6 +102,7 @@ const RecognizeSingaporeIDCardOCRResponse = models.RecognizeSingaporeIDCardOCRRe
|
|
|
97
102
|
const SmartStructuralOCRV2Response = models.SmartStructuralOCRV2Response;
|
|
98
103
|
const RecognizeMainlandIDCardOCRResponse = models.RecognizeMainlandIDCardOCRResponse;
|
|
99
104
|
const MainlandPermitOCRResponse = models.MainlandPermitOCRResponse;
|
|
105
|
+
const ExtractedFields = models.ExtractedFields;
|
|
100
106
|
const MLIDCardOCRRequest = models.MLIDCardOCRRequest;
|
|
101
107
|
const ImageCoordinates = models.ImageCoordinates;
|
|
102
108
|
const RecognizeMexicoVTIDRequest = models.RecognizeMexicoVTIDRequest;
|
|
@@ -143,6 +149,17 @@ A maximum of 5 requests can be initiated per second for this API.
|
|
|
143
149
|
this.request("RecognizeThaiPinkCard", req, resp, cb);
|
|
144
150
|
}
|
|
145
151
|
|
|
152
|
+
/**
|
|
153
|
+
* This API is used to recognize entry and exit record PDFs and verify electronic signatures, returning structured entry and exit records and signature verification conclusions.
|
|
154
|
+
* @param {VerifyPdfOcrRequest} req
|
|
155
|
+
* @param {function(string, VerifyPdfOcrResponse):void} cb
|
|
156
|
+
* @public
|
|
157
|
+
*/
|
|
158
|
+
VerifyPdfOcr(req, cb) {
|
|
159
|
+
let resp = new VerifyPdfOcrResponse();
|
|
160
|
+
this.request("VerifyPdfOcr", req, resp, cb);
|
|
161
|
+
}
|
|
162
|
+
|
|
146
163
|
/**
|
|
147
164
|
* 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.
|
|
148
165
|
* @param {RecognizeBrazilDriverLicenseOCRRequest} req
|
package/tencentcloud/vm/index.js
CHANGED