tencentcloud-sdk-nodejs-intl-en 3.0.1137 → 3.0.1138
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.1138";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -190,6 +190,62 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
|
|
193
|
+
/**
|
|
194
|
+
* RecognizeBrazilIDCardOCR request structure.
|
|
195
|
+
* @class
|
|
196
|
+
*/
|
|
197
|
+
class RecognizeBrazilIDCardOCRRequest extends AbstractModel {
|
|
198
|
+
constructor(){
|
|
199
|
+
super();
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Base64 value of the image. 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. Image download time does not exceed 3 seconds.
|
|
203
|
+
* @type {string || null}
|
|
204
|
+
*/
|
|
205
|
+
this.ImageBase64 = null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* URL address of the image. Supported image formats: PNG, JPG, JPEG, GIF format is not supported yet. Supported image size: The downloaded image should not exceed 7M after Base64 encoding. Image download time should not exceed 3 seconds. URLs of images stored in Tencent Cloud can guarantee higher download speed and stability. It is recommended that images be stored in Tencent Cloud. The speed and stability of URLs not stored in Tencent Cloud may be affected to a certain extent.
|
|
209
|
+
* @type {string || null}
|
|
210
|
+
*/
|
|
211
|
+
this.ImageUrl = null;
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Base64 value 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 should not exceed 7M after Base64 encoding. Image download time should not exceed 3 seconds. An ImageUrl and ImageBase64 must be provided. If both are provided, only ImageUrl will be used.
|
|
215
|
+
* @type {string || null}
|
|
216
|
+
*/
|
|
217
|
+
this.BackImageBase64 = null;
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* 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 time does not exceed 3 seconds. The URL of the image stored in Tencent Cloud can ensure higher download speed and stability. It is recommended to store the image in Tencent Cloud. The speed and stability of the URL stored outside Tencent Cloud may be affected to a certain extent.
|
|
221
|
+
* @type {string || null}
|
|
222
|
+
*/
|
|
223
|
+
this.BackImageUrl = null;
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* Whether to return portrait photos.
|
|
227
|
+
* @type {boolean || null}
|
|
228
|
+
*/
|
|
229
|
+
this.ReturnHeadImage = null;
|
|
230
|
+
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* @private
|
|
235
|
+
*/
|
|
236
|
+
deserialize(params) {
|
|
237
|
+
if (!params) {
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
241
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
242
|
+
this.BackImageBase64 = 'BackImageBase64' in params ? params.BackImageBase64 : null;
|
|
243
|
+
this.BackImageUrl = 'BackImageUrl' in params ? params.BackImageUrl : null;
|
|
244
|
+
this.ReturnHeadImage = 'ReturnHeadImage' in params ? params.ReturnHeadImage : null;
|
|
245
|
+
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
193
249
|
/**
|
|
194
250
|
* RecognizePhilippinesDrivingLicenseOCR request structure.
|
|
195
251
|
* @class
|
|
@@ -6024,6 +6080,132 @@ Valid values:
|
|
|
6024
6080
|
}
|
|
6025
6081
|
}
|
|
6026
6082
|
|
|
6083
|
+
/**
|
|
6084
|
+
* RecognizeBrazilIDCardOCR response structure.
|
|
6085
|
+
* @class
|
|
6086
|
+
*/
|
|
6087
|
+
class RecognizeBrazilIDCardOCRResponse extends AbstractModel {
|
|
6088
|
+
constructor(){
|
|
6089
|
+
super();
|
|
6090
|
+
|
|
6091
|
+
/**
|
|
6092
|
+
* Name
|
|
6093
|
+
* @type {string || null}
|
|
6094
|
+
*/
|
|
6095
|
+
this.Nome = null;
|
|
6096
|
+
|
|
6097
|
+
/**
|
|
6098
|
+
* Family information
|
|
6099
|
+
* @type {string || null}
|
|
6100
|
+
*/
|
|
6101
|
+
this.MemberShip = null;
|
|
6102
|
+
|
|
6103
|
+
/**
|
|
6104
|
+
* Birthday
|
|
6105
|
+
* @type {string || null}
|
|
6106
|
+
*/
|
|
6107
|
+
this.DataNascimento = null;
|
|
6108
|
+
|
|
6109
|
+
/**
|
|
6110
|
+
* Issuing agency
|
|
6111
|
+
* @type {string || null}
|
|
6112
|
+
*/
|
|
6113
|
+
this.IssuingAgency = null;
|
|
6114
|
+
|
|
6115
|
+
/**
|
|
6116
|
+
* blood type
|
|
6117
|
+
* @type {string || null}
|
|
6118
|
+
*/
|
|
6119
|
+
this.Fatorrh = null;
|
|
6120
|
+
|
|
6121
|
+
/**
|
|
6122
|
+
* Birth place
|
|
6123
|
+
* @type {string || null}
|
|
6124
|
+
*/
|
|
6125
|
+
this.NaturalIDade = null;
|
|
6126
|
+
|
|
6127
|
+
/**
|
|
6128
|
+
* Additional information
|
|
6129
|
+
* @type {string || null}
|
|
6130
|
+
*/
|
|
6131
|
+
this.Observations = null;
|
|
6132
|
+
|
|
6133
|
+
/**
|
|
6134
|
+
* CPF
|
|
6135
|
+
* @type {string || null}
|
|
6136
|
+
*/
|
|
6137
|
+
this.CPF = null;
|
|
6138
|
+
|
|
6139
|
+
/**
|
|
6140
|
+
* DNI
|
|
6141
|
+
* @type {string || null}
|
|
6142
|
+
*/
|
|
6143
|
+
this.DNI = null;
|
|
6144
|
+
|
|
6145
|
+
/**
|
|
6146
|
+
* universal registration
|
|
6147
|
+
* @type {string || null}
|
|
6148
|
+
*/
|
|
6149
|
+
this.RegistroGeral = null;
|
|
6150
|
+
|
|
6151
|
+
/**
|
|
6152
|
+
* Issue date
|
|
6153
|
+
* @type {string || null}
|
|
6154
|
+
*/
|
|
6155
|
+
this.DispatchDate = null;
|
|
6156
|
+
|
|
6157
|
+
/**
|
|
6158
|
+
* address
|
|
6159
|
+
* @type {string || null}
|
|
6160
|
+
*/
|
|
6161
|
+
this.Registro = null;
|
|
6162
|
+
|
|
6163
|
+
/**
|
|
6164
|
+
* Portrait image
|
|
6165
|
+
* @type {string || null}
|
|
6166
|
+
*/
|
|
6167
|
+
this.PortraitImage = null;
|
|
6168
|
+
|
|
6169
|
+
/**
|
|
6170
|
+
* Original identity information
|
|
6171
|
+
* @type {string || null}
|
|
6172
|
+
*/
|
|
6173
|
+
this.DocOrigem = null;
|
|
6174
|
+
|
|
6175
|
+
/**
|
|
6176
|
+
* 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.
|
|
6177
|
+
* @type {string || null}
|
|
6178
|
+
*/
|
|
6179
|
+
this.RequestId = null;
|
|
6180
|
+
|
|
6181
|
+
}
|
|
6182
|
+
|
|
6183
|
+
/**
|
|
6184
|
+
* @private
|
|
6185
|
+
*/
|
|
6186
|
+
deserialize(params) {
|
|
6187
|
+
if (!params) {
|
|
6188
|
+
return;
|
|
6189
|
+
}
|
|
6190
|
+
this.Nome = 'Nome' in params ? params.Nome : null;
|
|
6191
|
+
this.MemberShip = 'MemberShip' in params ? params.MemberShip : null;
|
|
6192
|
+
this.DataNascimento = 'DataNascimento' in params ? params.DataNascimento : null;
|
|
6193
|
+
this.IssuingAgency = 'IssuingAgency' in params ? params.IssuingAgency : null;
|
|
6194
|
+
this.Fatorrh = 'Fatorrh' in params ? params.Fatorrh : null;
|
|
6195
|
+
this.NaturalIDade = 'NaturalIDade' in params ? params.NaturalIDade : null;
|
|
6196
|
+
this.Observations = 'Observations' in params ? params.Observations : null;
|
|
6197
|
+
this.CPF = 'CPF' in params ? params.CPF : null;
|
|
6198
|
+
this.DNI = 'DNI' in params ? params.DNI : null;
|
|
6199
|
+
this.RegistroGeral = 'RegistroGeral' in params ? params.RegistroGeral : null;
|
|
6200
|
+
this.DispatchDate = 'DispatchDate' in params ? params.DispatchDate : null;
|
|
6201
|
+
this.Registro = 'Registro' in params ? params.Registro : null;
|
|
6202
|
+
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
6203
|
+
this.DocOrigem = 'DocOrigem' in params ? params.DocOrigem : null;
|
|
6204
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
6205
|
+
|
|
6206
|
+
}
|
|
6207
|
+
}
|
|
6208
|
+
|
|
6027
6209
|
/**
|
|
6028
6210
|
* Return values for an electronic invoice
|
|
6029
6211
|
* @class
|
|
@@ -10241,6 +10423,7 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
|
10241
10423
|
module.exports = {
|
|
10242
10424
|
InvoiceItem: InvoiceItem,
|
|
10243
10425
|
HKIDCardOCRRequest: HKIDCardOCRRequest,
|
|
10426
|
+
RecognizeBrazilIDCardOCRRequest: RecognizeBrazilIDCardOCRRequest,
|
|
10244
10427
|
RecognizePhilippinesDrivingLicenseOCRRequest: RecognizePhilippinesDrivingLicenseOCRRequest,
|
|
10245
10428
|
WordItem: WordItem,
|
|
10246
10429
|
MLIDPassportOCRRequest: MLIDPassportOCRRequest,
|
|
@@ -10304,6 +10487,7 @@ module.exports = {
|
|
|
10304
10487
|
TaxiTicket: TaxiTicket,
|
|
10305
10488
|
LicensePlateOCRRequest: LicensePlateOCRRequest,
|
|
10306
10489
|
GeneralBasicOCRRequest: GeneralBasicOCRRequest,
|
|
10490
|
+
RecognizeBrazilIDCardOCRResponse: RecognizeBrazilIDCardOCRResponse,
|
|
10307
10491
|
VatElectronicInfo: VatElectronicInfo,
|
|
10308
10492
|
IDCardOCRRequest: IDCardOCRRequest,
|
|
10309
10493
|
GeneralAccurateOCRRequest: GeneralAccurateOCRRequest,
|
|
@@ -18,6 +18,7 @@ const models = require("./models");
|
|
|
18
18
|
const AbstractClient = require('../../common/abstract_client')
|
|
19
19
|
const InvoiceItem = models.InvoiceItem;
|
|
20
20
|
const HKIDCardOCRRequest = models.HKIDCardOCRRequest;
|
|
21
|
+
const RecognizeBrazilIDCardOCRRequest = models.RecognizeBrazilIDCardOCRRequest;
|
|
21
22
|
const RecognizePhilippinesDrivingLicenseOCRRequest = models.RecognizePhilippinesDrivingLicenseOCRRequest;
|
|
22
23
|
const WordItem = models.WordItem;
|
|
23
24
|
const MLIDPassportOCRRequest = models.MLIDPassportOCRRequest;
|
|
@@ -81,6 +82,7 @@ const RecognizeSingaporeIDCardOCRRequest = models.RecognizeSingaporeIDCardOCRReq
|
|
|
81
82
|
const TaxiTicket = models.TaxiTicket;
|
|
82
83
|
const LicensePlateOCRRequest = models.LicensePlateOCRRequest;
|
|
83
84
|
const GeneralBasicOCRRequest = models.GeneralBasicOCRRequest;
|
|
85
|
+
const RecognizeBrazilIDCardOCRResponse = models.RecognizeBrazilIDCardOCRResponse;
|
|
84
86
|
const VatElectronicInfo = models.VatElectronicInfo;
|
|
85
87
|
const IDCardOCRRequest = models.IDCardOCRRequest;
|
|
86
88
|
const GeneralAccurateOCRRequest = models.GeneralAccurateOCRRequest;
|
|
@@ -458,6 +460,17 @@ The API request rate is limited to 20 requests/sec by default.
|
|
|
458
460
|
this.request("RecognizePhilippinesVoteIDOCR", req, resp, cb);
|
|
459
461
|
}
|
|
460
462
|
|
|
463
|
+
/**
|
|
464
|
+
* 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.
|
|
465
|
+
* @param {RecognizeBrazilIDCardOCRRequest} req
|
|
466
|
+
* @param {function(string, RecognizeBrazilIDCardOCRResponse):void} cb
|
|
467
|
+
* @public
|
|
468
|
+
*/
|
|
469
|
+
RecognizeBrazilIDCardOCR(req, cb) {
|
|
470
|
+
let resp = new RecognizeBrazilIDCardOCRResponse();
|
|
471
|
+
this.request("RecognizeBrazilIDCardOCR", req, resp, cb);
|
|
472
|
+
}
|
|
473
|
+
|
|
461
474
|
/**
|
|
462
475
|
* This API is used to recognize a Philippine Unified Multi-Purpose ID (UMID) card.
|
|
463
476
|
* @param {RecognizePhilippinesUMIDOCRRequest} req
|