tencentcloud-sdk-nodejs-intl-en 3.0.1099 → 3.0.1100
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
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1100";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -3579,6 +3579,12 @@ The default value is blink. The different action types passed in this parameter
|
|
|
3579
3579
|
*/
|
|
3580
3580
|
this.ActionList = null;
|
|
3581
3581
|
|
|
3582
|
+
/**
|
|
3583
|
+
* Control liveness retry number.The value range is 1-99.
|
|
3584
|
+
* @type {number || null}
|
|
3585
|
+
*/
|
|
3586
|
+
this.LivenessRetryLimit = null;
|
|
3587
|
+
|
|
3582
3588
|
}
|
|
3583
3589
|
|
|
3584
3590
|
/**
|
|
@@ -3600,6 +3606,7 @@ The default value is blink. The different action types passed in this parameter
|
|
|
3600
3606
|
this.Language = 'Language' in params ? params.Language : null;
|
|
3601
3607
|
this.AutoDowngrade = 'AutoDowngrade' in params ? params.AutoDowngrade : null;
|
|
3602
3608
|
this.ActionList = 'ActionList' in params ? params.ActionList : null;
|
|
3609
|
+
this.LivenessRetryLimit = 'LivenessRetryLimit' in params ? params.LivenessRetryLimit : null;
|
|
3603
3610
|
|
|
3604
3611
|
}
|
|
3605
3612
|
}
|
|
@@ -9685,6 +9685,51 @@ For a non-Tencent Cloud URL, the download speed and stability may be affected.
|
|
|
9685
9685
|
}
|
|
9686
9686
|
}
|
|
9687
9687
|
|
|
9688
|
+
/**
|
|
9689
|
+
* RecognizeThaiPinkCard request structure.
|
|
9690
|
+
* @class
|
|
9691
|
+
*/
|
|
9692
|
+
class RecognizeThaiPinkCardRequest extends AbstractModel {
|
|
9693
|
+
constructor(){
|
|
9694
|
+
super();
|
|
9695
|
+
|
|
9696
|
+
/**
|
|
9697
|
+
* The Base64-encoded value of an image. The image cannot exceed 7 MB after being Base64-encoded. A resolution above 500 x 800 is recommended. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupy more than 2/3 area of the image.
|
|
9698
|
+
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, `ImageUrl` is used.
|
|
9699
|
+
* @type {string || null}
|
|
9700
|
+
*/
|
|
9701
|
+
this.ImageBase64 = null;
|
|
9702
|
+
|
|
9703
|
+
/**
|
|
9704
|
+
* The URL of the image. The image cannot exceed 7 MB after being Base64-encoded. A resolution above 500 x 800 is recommended. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupy more than 2/3 area of the image.
|
|
9705
|
+
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
9706
|
+
* @type {string || null}
|
|
9707
|
+
*/
|
|
9708
|
+
this.ImageUrl = null;
|
|
9709
|
+
|
|
9710
|
+
/**
|
|
9711
|
+
* 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.
|
|
9712
|
+
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.
|
|
9713
|
+
* @type {boolean || null}
|
|
9714
|
+
*/
|
|
9715
|
+
this.CropPortrait = null;
|
|
9716
|
+
|
|
9717
|
+
}
|
|
9718
|
+
|
|
9719
|
+
/**
|
|
9720
|
+
* @private
|
|
9721
|
+
*/
|
|
9722
|
+
deserialize(params) {
|
|
9723
|
+
if (!params) {
|
|
9724
|
+
return;
|
|
9725
|
+
}
|
|
9726
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
9727
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
9728
|
+
this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
|
|
9729
|
+
|
|
9730
|
+
}
|
|
9731
|
+
}
|
|
9732
|
+
|
|
9688
9733
|
/**
|
|
9689
9734
|
* BankCardOCR response structure.
|
|
9690
9735
|
* @class
|
|
@@ -9786,6 +9831,147 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
9786
9831
|
}
|
|
9787
9832
|
}
|
|
9788
9833
|
|
|
9834
|
+
/**
|
|
9835
|
+
* RecognizeThaiPinkCard response structure.
|
|
9836
|
+
* @class
|
|
9837
|
+
*/
|
|
9838
|
+
class RecognizeThaiPinkCardResponse extends AbstractModel {
|
|
9839
|
+
constructor(){
|
|
9840
|
+
super();
|
|
9841
|
+
|
|
9842
|
+
/**
|
|
9843
|
+
* Country
|
|
9844
|
+
* @type {string || null}
|
|
9845
|
+
*/
|
|
9846
|
+
this.Country = null;
|
|
9847
|
+
|
|
9848
|
+
/**
|
|
9849
|
+
* ID number
|
|
9850
|
+
* @type {string || null}
|
|
9851
|
+
*/
|
|
9852
|
+
this.IDNumber = null;
|
|
9853
|
+
|
|
9854
|
+
/**
|
|
9855
|
+
* Name in Thai
|
|
9856
|
+
* @type {string || null}
|
|
9857
|
+
*/
|
|
9858
|
+
this.ThaiName = null;
|
|
9859
|
+
|
|
9860
|
+
/**
|
|
9861
|
+
* Name in English
|
|
9862
|
+
* @type {string || null}
|
|
9863
|
+
*/
|
|
9864
|
+
this.EnName = null;
|
|
9865
|
+
|
|
9866
|
+
/**
|
|
9867
|
+
* Date of birth in Thai
|
|
9868
|
+
* @type {string || null}
|
|
9869
|
+
*/
|
|
9870
|
+
this.ThaiDOB = null;
|
|
9871
|
+
|
|
9872
|
+
/**
|
|
9873
|
+
* Date of birth in English
|
|
9874
|
+
* @type {string || null}
|
|
9875
|
+
*/
|
|
9876
|
+
this.EnDOB = null;
|
|
9877
|
+
|
|
9878
|
+
/**
|
|
9879
|
+
* Photo number
|
|
9880
|
+
* @type {string || null}
|
|
9881
|
+
*/
|
|
9882
|
+
this.PhotoNumber = null;
|
|
9883
|
+
|
|
9884
|
+
/**
|
|
9885
|
+
* Address in Thai
|
|
9886
|
+
* @type {string || null}
|
|
9887
|
+
*/
|
|
9888
|
+
this.ThaiAddress = null;
|
|
9889
|
+
|
|
9890
|
+
/**
|
|
9891
|
+
* Date of issue in Thai
|
|
9892
|
+
* @type {string || null}
|
|
9893
|
+
*/
|
|
9894
|
+
this.ThaiDateOfIssue = null;
|
|
9895
|
+
|
|
9896
|
+
/**
|
|
9897
|
+
* Date of issue in English
|
|
9898
|
+
* @type {string || null}
|
|
9899
|
+
*/
|
|
9900
|
+
this.DateOfIssue = null;
|
|
9901
|
+
|
|
9902
|
+
/**
|
|
9903
|
+
* Expiration date in Thai
|
|
9904
|
+
* @type {string || null}
|
|
9905
|
+
*/
|
|
9906
|
+
this.ThaiDateOfExpiry = null;
|
|
9907
|
+
|
|
9908
|
+
/**
|
|
9909
|
+
* Expiration date in English
|
|
9910
|
+
* @type {string || null}
|
|
9911
|
+
*/
|
|
9912
|
+
this.DateOfExpiry = null;
|
|
9913
|
+
|
|
9914
|
+
/**
|
|
9915
|
+
* Issuing agency
|
|
9916
|
+
* @type {string || null}
|
|
9917
|
+
*/
|
|
9918
|
+
this.IssuingAgency = null;
|
|
9919
|
+
|
|
9920
|
+
/**
|
|
9921
|
+
* Ref number
|
|
9922
|
+
* @type {string || null}
|
|
9923
|
+
*/
|
|
9924
|
+
this.RefNumber = null;
|
|
9925
|
+
|
|
9926
|
+
/**
|
|
9927
|
+
* Field confidence:
|
|
9928
|
+
{ "ID": { "Confidence": 0.9999 }, "ThaiName": { "Confidence": 0.9996 } }
|
|
9929
|
+
* @type {string || null}
|
|
9930
|
+
*/
|
|
9931
|
+
this.AdvancedInfo = null;
|
|
9932
|
+
|
|
9933
|
+
/**
|
|
9934
|
+
* Identity photo
|
|
9935
|
+
* @type {string || null}
|
|
9936
|
+
*/
|
|
9937
|
+
this.PortraitImage = null;
|
|
9938
|
+
|
|
9939
|
+
/**
|
|
9940
|
+
* 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.
|
|
9941
|
+
* @type {string || null}
|
|
9942
|
+
*/
|
|
9943
|
+
this.RequestId = null;
|
|
9944
|
+
|
|
9945
|
+
}
|
|
9946
|
+
|
|
9947
|
+
/**
|
|
9948
|
+
* @private
|
|
9949
|
+
*/
|
|
9950
|
+
deserialize(params) {
|
|
9951
|
+
if (!params) {
|
|
9952
|
+
return;
|
|
9953
|
+
}
|
|
9954
|
+
this.Country = 'Country' in params ? params.Country : null;
|
|
9955
|
+
this.IDNumber = 'IDNumber' in params ? params.IDNumber : null;
|
|
9956
|
+
this.ThaiName = 'ThaiName' in params ? params.ThaiName : null;
|
|
9957
|
+
this.EnName = 'EnName' in params ? params.EnName : null;
|
|
9958
|
+
this.ThaiDOB = 'ThaiDOB' in params ? params.ThaiDOB : null;
|
|
9959
|
+
this.EnDOB = 'EnDOB' in params ? params.EnDOB : null;
|
|
9960
|
+
this.PhotoNumber = 'PhotoNumber' in params ? params.PhotoNumber : null;
|
|
9961
|
+
this.ThaiAddress = 'ThaiAddress' in params ? params.ThaiAddress : null;
|
|
9962
|
+
this.ThaiDateOfIssue = 'ThaiDateOfIssue' in params ? params.ThaiDateOfIssue : null;
|
|
9963
|
+
this.DateOfIssue = 'DateOfIssue' in params ? params.DateOfIssue : null;
|
|
9964
|
+
this.ThaiDateOfExpiry = 'ThaiDateOfExpiry' in params ? params.ThaiDateOfExpiry : null;
|
|
9965
|
+
this.DateOfExpiry = 'DateOfExpiry' in params ? params.DateOfExpiry : null;
|
|
9966
|
+
this.IssuingAgency = 'IssuingAgency' in params ? params.IssuingAgency : null;
|
|
9967
|
+
this.RefNumber = 'RefNumber' in params ? params.RefNumber : null;
|
|
9968
|
+
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
9969
|
+
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
9970
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
9971
|
+
|
|
9972
|
+
}
|
|
9973
|
+
}
|
|
9974
|
+
|
|
9789
9975
|
/**
|
|
9790
9976
|
* RecognizePhilippinesUMIDOCR request structure.
|
|
9791
9977
|
* @class
|
|
@@ -9940,7 +10126,9 @@ module.exports = {
|
|
|
9940
10126
|
VinOCRRequest: VinOCRRequest,
|
|
9941
10127
|
MLIDCardOCRResponse: MLIDCardOCRResponse,
|
|
9942
10128
|
RecognizePhilippinesTinIDOCRRequest: RecognizePhilippinesTinIDOCRRequest,
|
|
10129
|
+
RecognizeThaiPinkCardRequest: RecognizeThaiPinkCardRequest,
|
|
9943
10130
|
BankCardOCRResponse: BankCardOCRResponse,
|
|
10131
|
+
RecognizeThaiPinkCardResponse: RecognizeThaiPinkCardResponse,
|
|
9944
10132
|
RecognizePhilippinesUMIDOCRRequest: RecognizePhilippinesUMIDOCRRequest,
|
|
9945
10133
|
|
|
9946
10134
|
}
|
|
@@ -120,7 +120,9 @@ const RecognizeIndonesiaIDCardOCRRequest = models.RecognizeIndonesiaIDCardOCRReq
|
|
|
120
120
|
const VinOCRRequest = models.VinOCRRequest;
|
|
121
121
|
const MLIDCardOCRResponse = models.MLIDCardOCRResponse;
|
|
122
122
|
const RecognizePhilippinesTinIDOCRRequest = models.RecognizePhilippinesTinIDOCRRequest;
|
|
123
|
+
const RecognizeThaiPinkCardRequest = models.RecognizeThaiPinkCardRequest;
|
|
123
124
|
const BankCardOCRResponse = models.BankCardOCRResponse;
|
|
125
|
+
const RecognizeThaiPinkCardResponse = models.RecognizeThaiPinkCardResponse;
|
|
124
126
|
const RecognizePhilippinesUMIDOCRRequest = models.RecognizePhilippinesUMIDOCRRequest;
|
|
125
127
|
|
|
126
128
|
|
|
@@ -134,6 +136,20 @@ class OcrClient extends AbstractClient {
|
|
|
134
136
|
super("ocr.tencentcloudapi.com", "2018-11-19", credential, region, profile);
|
|
135
137
|
}
|
|
136
138
|
|
|
139
|
+
/**
|
|
140
|
+
* 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.
|
|
141
|
+
Currently, this API is not generally available. For more information, please [contact your sales rep](https://intl.cloud.tencent.com/about/connect?from_cn_redirect=1).
|
|
142
|
+
|
|
143
|
+
A maximum of 5 requests can be initiated per second for this API.
|
|
144
|
+
* @param {RecognizeThaiPinkCardRequest} req
|
|
145
|
+
* @param {function(string, RecognizeThaiPinkCardResponse):void} cb
|
|
146
|
+
* @public
|
|
147
|
+
*/
|
|
148
|
+
RecognizeThaiPinkCard(req, cb) {
|
|
149
|
+
let resp = new RecognizeThaiPinkCardResponse();
|
|
150
|
+
this.request("RecognizeThaiPinkCard", req, resp, cb);
|
|
151
|
+
}
|
|
152
|
+
|
|
137
153
|
/**
|
|
138
154
|
* 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%.
|
|
139
155
|
|