tencentcloud-sdk-nodejs-intl-en 3.0.1284 → 3.0.1286

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.
@@ -1021,6 +1021,84 @@ class RecognizeMacaoIDCardOCRResponse extends AbstractModel {
1021
1021
  }
1022
1022
  }
1023
1023
 
1024
+ /**
1025
+ * GetCardVerificationExternalResult response structure.
1026
+ * @class
1027
+ */
1028
+ class GetCardVerificationExternalResultResponse extends AbstractModel {
1029
+ constructor(){
1030
+ super();
1031
+
1032
+ /**
1033
+ * Indicates the status. valid values:
1034
+ PASSED
1035
+ WARNING
1036
+ * @type {string || null}
1037
+ */
1038
+ this.Status = null;
1039
+
1040
+ /**
1041
+ * Indicates the anti-counterfeiting information.
1042
+ -ScreenshotSuspected: The image is a screenshot.
1043
+ -RetakeSuspected: The image is taken from another screen.
1044
+ -PaperCopy: The image is a black and white, or color photocopy.
1045
+ -FakeSuspected: The image of the card, or the information on the card has been edited or altered.
1046
+ -OtherWarning: Document's authenticity is not verified for various reasons.
1047
+ Note: This field may return null, indicating that no valid values can be obtained.
1048
+ * @type {Array.<string> || null}
1049
+ */
1050
+ this.WarnInfo = null;
1051
+
1052
+ /**
1053
+ * Country Code.
1054
+ Note: This field may return null, indicating that no valid values can be obtained.
1055
+ * @type {string || null}
1056
+ */
1057
+ this.Nationality = null;
1058
+
1059
+ /**
1060
+ * Recognition result of the text in the id photo.
1061
+ Note: This field may return null, indicating that no valid values can be obtained.
1062
+ * @type {GeneralCard || null}
1063
+ */
1064
+ this.CardInfo = null;
1065
+
1066
+ /**
1067
+ * Specifies the token in the request parameters.
1068
+ * @type {string || null}
1069
+ */
1070
+ this.CardVerificationToken = null;
1071
+
1072
+ /**
1073
+ * 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.
1074
+ * @type {string || null}
1075
+ */
1076
+ this.RequestId = null;
1077
+
1078
+ }
1079
+
1080
+ /**
1081
+ * @private
1082
+ */
1083
+ deserialize(params) {
1084
+ if (!params) {
1085
+ return;
1086
+ }
1087
+ this.Status = 'Status' in params ? params.Status : null;
1088
+ this.WarnInfo = 'WarnInfo' in params ? params.WarnInfo : null;
1089
+ this.Nationality = 'Nationality' in params ? params.Nationality : null;
1090
+
1091
+ if (params.CardInfo) {
1092
+ let obj = new GeneralCard();
1093
+ obj.deserialize(params.CardInfo)
1094
+ this.CardInfo = obj;
1095
+ }
1096
+ this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
1097
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
1098
+
1099
+ }
1100
+ }
1101
+
1024
1102
  /**
1025
1103
  * PermitOCR response structure.
1026
1104
  * @class
@@ -1225,36 +1303,42 @@ class Rect extends AbstractModel {
1225
1303
  }
1226
1304
 
1227
1305
  /**
1228
- * Vehicle license plate information
1306
+ * RecognizeMainlandIDCardOCR request structure.
1229
1307
  * @class
1230
1308
  */
1231
- class LicensePlateInfo extends AbstractModel {
1309
+ class RecognizeMainlandIDCardOCRRequest extends AbstractModel {
1232
1310
  constructor(){
1233
1311
  super();
1234
1312
 
1235
1313
  /**
1236
- * The recognized license plate number.
1314
+ * The Base64 value of the image. The image is required to be no larger than 7M after Base64 encoding, and the resolution is recommended to be 500*800 or above. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupies at least 2/3 of the picture. One of ImageUrl and ImageBase64 of the image must be provided. If both are provided, only ImageUrl will be used.
1237
1315
  * @type {string || null}
1238
1316
  */
1239
- this.Number = null;
1317
+ this.ImageBase64 = null;
1240
1318
 
1241
1319
  /**
1242
- * The confidence score (0–100).
1243
- * @type {number || null}
1320
+ * The URL address of the image. The image is required to be no larger than 7M after Base64 encoding, and the resolution is recommended to be 500*800 or above. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupies at least 2/3 of the picture. It is recommended that images be stored in Tencent Cloud to ensure higher download speed and stability.
1321
+ * @type {string || null}
1244
1322
  */
1245
- this.Confidence = null;
1323
+ this.ImageUrl = null;
1246
1324
 
1247
1325
  /**
1248
- * The bounding box coordinates of the text line in the original image.
1249
- * @type {Rect || null}
1326
+ * FRONT: The side of the ID card with the photo (portrait side), BACK: The side of the ID card with the national emblem (national emblem side). If this parameter is not filled in, the front and back of the ID card will be automatically determined for you.
1327
+ * @type {string || null}
1250
1328
  */
1251
- this.Rect = null;
1329
+ this.CardSide = null;
1252
1330
 
1253
1331
  /**
1254
- * The recognized license plate color, which currently includes "white", "black", "blue", "green", "yellow", "yellow-green", and "temporary plate".
1255
- * @type {string || null}
1332
+ * Whether to return the ID card portrait, the default is false
1333
+ * @type {boolean || null}
1256
1334
  */
1257
- this.Color = null;
1335
+ this.CropPortrait = null;
1336
+
1337
+ /**
1338
+ * Whether to enable ID card photo cropping (removing excess edges outside the ID, automatically correcting the shooting angle), the default value is false
1339
+ * @type {boolean || null}
1340
+ */
1341
+ this.CropIdCard = null;
1258
1342
 
1259
1343
  }
1260
1344
 
@@ -1265,15 +1349,11 @@ class LicensePlateInfo extends AbstractModel {
1265
1349
  if (!params) {
1266
1350
  return;
1267
1351
  }
1268
- this.Number = 'Number' in params ? params.Number : null;
1269
- this.Confidence = 'Confidence' in params ? params.Confidence : null;
1270
-
1271
- if (params.Rect) {
1272
- let obj = new Rect();
1273
- obj.deserialize(params.Rect)
1274
- this.Rect = obj;
1275
- }
1276
- this.Color = 'Color' in params ? params.Color : null;
1352
+ this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
1353
+ this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
1354
+ this.CardSide = 'CardSide' in params ? params.CardSide : null;
1355
+ this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
1356
+ this.CropIdCard = 'CropIdCard' in params ? params.CropIdCard : null;
1277
1357
 
1278
1358
  }
1279
1359
  }
@@ -2274,6 +2354,211 @@ class VatInvoiceItemInfo extends AbstractModel {
2274
2354
  }
2275
2355
  }
2276
2356
 
2357
+ /**
2358
+ * General card certificate information.
2359
+ * @class
2360
+ */
2361
+ class GeneralCard extends AbstractModel {
2362
+ constructor(){
2363
+ super();
2364
+
2365
+ /**
2366
+ * ID number.
2367
+ Note: This field may return null, indicating that no valid values can be obtained.
2368
+ * @type {string || null}
2369
+ */
2370
+ this.LicenseNumber = null;
2371
+
2372
+ /**
2373
+ * Personal number. returned when the identity document type is passport.
2374
+ Note: This field may return null, indicating that no valid values can be obtained.
2375
+ * @type {string || null}
2376
+ */
2377
+ this.PersonalNumber = null;
2378
+
2379
+ /**
2380
+ * Passport mrz line 1.
2381
+ Note: This field may return null, indicating that no valid values can be obtained.
2382
+ * @type {string || null}
2383
+ */
2384
+ this.PassportCodeFirst = null;
2385
+
2386
+ /**
2387
+ * Passport mrz line 2.
2388
+ Note: This field may return null, indicating that no valid values can be obtained.
2389
+ * @type {string || null}
2390
+ */
2391
+ this.PassportCodeSecond = null;
2392
+
2393
+ /**
2394
+ * Expiration date, in YYYY-MM-DD format.
2395
+ Note: This field may return null, indicating that no valid values can be obtained.
2396
+ * @type {string || null}
2397
+ */
2398
+ this.ExpirationDate = null;
2399
+
2400
+ /**
2401
+ * Expiration date in YYYY-MM-DD format.
2402
+ Note: This field may return null, indicating that no valid values can be obtained.
2403
+ * @type {string || null}
2404
+ */
2405
+ this.DueDate = null;
2406
+
2407
+ /**
2408
+ * Issue date, in YYYY-MM-DD format.
2409
+ Note: This field may return null, indicating that no valid values can be obtained.
2410
+ * @type {string || null}
2411
+ */
2412
+ this.IssuedDate = null;
2413
+
2414
+ /**
2415
+ * Issuing authority.
2416
+ Note: This field may return null, indicating that no valid values can be obtained.
2417
+ * @type {string || null}
2418
+ */
2419
+ this.IssuedAuthority = null;
2420
+
2421
+ /**
2422
+ * Issuing country, following the ISO 3166 country coding specification.
2423
+ Note: This field may return null, indicating that no valid values can be obtained.
2424
+ * @type {string || null}
2425
+ */
2426
+ this.IssuedCountry = null;
2427
+
2428
+ /**
2429
+ * Specifies the name.
2430
+ Note: This field may return null, indicating that no valid values can be obtained.
2431
+ * @type {string || null}
2432
+ */
2433
+ this.FullName = null;
2434
+
2435
+ /**
2436
+ * Name.
2437
+ Note: This field may return null, indicating that no valid values can be obtained.
2438
+ * @type {string || null}
2439
+ */
2440
+ this.FirstName = null;
2441
+
2442
+ /**
2443
+ * Name.
2444
+ Note: This field may return null, indicating that no valid values can be obtained.
2445
+ * @type {string || null}
2446
+ */
2447
+ this.LastName = null;
2448
+
2449
+ /**
2450
+ * Gender on the document.
2451
+ -M: man.
2452
+ -F: woman.
2453
+ -X: other gender identity.
2454
+ Note: This field may return null, indicating that no valid values can be obtained.
2455
+ * @type {string || null}
2456
+ */
2457
+ this.Sex = null;
2458
+
2459
+ /**
2460
+ * Age. 0 means no valid info.
2461
+ Note: This field may return null, indicating that no valid values can be obtained.
2462
+ * @type {string || null}
2463
+ */
2464
+ this.Age = null;
2465
+
2466
+ /**
2467
+ * Date of birth.
2468
+ Note: This field may return null, indicating that no valid values can be obtained.
2469
+ * @type {string || null}
2470
+ */
2471
+ this.Birthday = null;
2472
+
2473
+ /**
2474
+ * Birth place.
2475
+ Note: This field may return null, indicating that no valid values can be obtained.
2476
+ * @type {string || null}
2477
+ */
2478
+ this.BirthPlace = null;
2479
+
2480
+ /**
2481
+ * Document nationality, following ISO 3166 country coding specification.
2482
+ Note: This field may return null, indicating that no valid values can be obtained.
2483
+ * @type {string || null}
2484
+ */
2485
+ this.Nationality = null;
2486
+
2487
+ /**
2488
+ * Registration number.
2489
+ Note: This field may return null, indicating that no valid values can be obtained.
2490
+ * @type {string || null}
2491
+ */
2492
+ this.RegistrationNumber = null;
2493
+
2494
+ /**
2495
+ * Specifies the address information of the document.
2496
+ Note: This field may return null, indicating that no valid values can be obtained.
2497
+ * @type {AddressInfo || null}
2498
+ */
2499
+ this.Address = null;
2500
+
2501
+ /**
2502
+ * Localized name.
2503
+ Note: This field may return null, indicating that no valid values can be obtained.
2504
+ * @type {string || null}
2505
+ */
2506
+ this.FullNameLocal = null;
2507
+
2508
+ /**
2509
+ * Localization name.
2510
+ Note: This field may return null, indicating that no valid values can be obtained.
2511
+ * @type {string || null}
2512
+ */
2513
+ this.FirstNameLocal = null;
2514
+
2515
+ /**
2516
+ * Localized surname.
2517
+ Note: This field may return null, indicating that no valid values can be obtained.
2518
+ * @type {string || null}
2519
+ */
2520
+ this.LastNameLocal = null;
2521
+
2522
+ }
2523
+
2524
+ /**
2525
+ * @private
2526
+ */
2527
+ deserialize(params) {
2528
+ if (!params) {
2529
+ return;
2530
+ }
2531
+ this.LicenseNumber = 'LicenseNumber' in params ? params.LicenseNumber : null;
2532
+ this.PersonalNumber = 'PersonalNumber' in params ? params.PersonalNumber : null;
2533
+ this.PassportCodeFirst = 'PassportCodeFirst' in params ? params.PassportCodeFirst : null;
2534
+ this.PassportCodeSecond = 'PassportCodeSecond' in params ? params.PassportCodeSecond : null;
2535
+ this.ExpirationDate = 'ExpirationDate' in params ? params.ExpirationDate : null;
2536
+ this.DueDate = 'DueDate' in params ? params.DueDate : null;
2537
+ this.IssuedDate = 'IssuedDate' in params ? params.IssuedDate : null;
2538
+ this.IssuedAuthority = 'IssuedAuthority' in params ? params.IssuedAuthority : null;
2539
+ this.IssuedCountry = 'IssuedCountry' in params ? params.IssuedCountry : null;
2540
+ this.FullName = 'FullName' in params ? params.FullName : null;
2541
+ this.FirstName = 'FirstName' in params ? params.FirstName : null;
2542
+ this.LastName = 'LastName' in params ? params.LastName : null;
2543
+ this.Sex = 'Sex' in params ? params.Sex : null;
2544
+ this.Age = 'Age' in params ? params.Age : null;
2545
+ this.Birthday = 'Birthday' in params ? params.Birthday : null;
2546
+ this.BirthPlace = 'BirthPlace' in params ? params.BirthPlace : null;
2547
+ this.Nationality = 'Nationality' in params ? params.Nationality : null;
2548
+ this.RegistrationNumber = 'RegistrationNumber' in params ? params.RegistrationNumber : null;
2549
+
2550
+ if (params.Address) {
2551
+ let obj = new AddressInfo();
2552
+ obj.deserialize(params.Address)
2553
+ this.Address = obj;
2554
+ }
2555
+ this.FullNameLocal = 'FullNameLocal' in params ? params.FullNameLocal : null;
2556
+ this.FirstNameLocal = 'FirstNameLocal' in params ? params.FirstNameLocal : null;
2557
+ this.LastNameLocal = 'LastNameLocal' in params ? params.LastNameLocal : null;
2558
+
2559
+ }
2560
+ }
2561
+
2277
2562
  /**
2278
2563
  * MainlandPermitOCR request structure.
2279
2564
  * @class
@@ -6262,45 +6547,89 @@ class TrainTicket extends AbstractModel {
6262
6547
  }
6263
6548
 
6264
6549
  /**
6265
- * RecognizeThaiIDCardOCR request structure.
6550
+ * ApplyCardVerificationExternal request structure.
6266
6551
  * @class
6267
6552
  */
6268
- class RecognizeThaiIDCardOCRRequest extends AbstractModel {
6553
+ class ApplyCardVerificationExternalRequest extends AbstractModel {
6269
6554
  constructor(){
6270
6555
  super();
6271
6556
 
6272
6557
  /**
6273
- * 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.
6274
- Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, `ImageUrl` is used.
6558
+ * Specifies the country of the document.
6559
+ ARG:Argentina
6560
+ AUS:Australia
6561
+ KHM:Cambodia
6562
+ CAN:Canada
6563
+ SGP:Singapore
6564
+ CHL:Chile
6565
+ DEU:Germany
6566
+ MEX:Mexico
6567
+ MMR:Myanmar
6568
+ NZL:New Zealand
6569
+ BGD:Bangladesh
6570
+ NGA:Nigeria
6571
+ PAK:Pakistan
6572
+ RUS:Russia
6573
+ IDN:Indonesia
6574
+ HKG:Hong Kong, China
6575
+ THA:Thailand
6576
+ MYS:Malaysia
6577
+ JPN:Japan
6578
+ PHL:Philippines
6579
+ MAC:Macao, China
6580
+ CHN:ChinaPermit
6581
+ TWN:Taiwan, China
6582
+ BGD:Bangladesh
6583
+ NGA:Nigeria
6584
+ PAK:Pakistan
6585
+
6586
+ AUTO: supports cards and documents from 200+ countries
6275
6587
  * @type {string || null}
6276
6588
  */
6277
- this.ImageBase64 = null;
6589
+ this.Nationality = null;
6278
6590
 
6279
6591
  /**
6280
- * 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 does not exceed 7M after Base64 encoding. The image download takes no more than 3 seconds. One of ImageUrl and ImageBase64 of the image must be provided. If both are provided, only ImageUrl will be used.
6592
+ * Document type.
6593
+ ID_CARD
6594
+ PASSPORT
6595
+ DRIVING_LICENSE
6596
+ RESIDENCE_PERMIT (Supported in certain countries/regions, including Australia, Canada, Germany, New Zealand, Nigeria, Singapore).
6597
+ * @type {string || null}
6598
+ */
6599
+ this.CardType = null;
6600
+
6601
+ /**
6602
+ * The Base64 value of the document Front. supported image formats: PNG, JPG/JPEG.
6603
+ Supported image size: the downloaded image after Base64 encoding must be no more than 2M. image download time must be no more than 5 seconds.
6604
+ Supported image resolution: between 256 \* 256 and 4096 \* 4096. For some documents, either ImageUrlBack or ImageBase64Back must be provided. If both are provided, only ImageUrlFront will be used.
6281
6605
  * @type {string || null}
6282
6606
  */
6283
- this.BackImageBase64 = null;
6607
+ this.ImageBase64Front = null;
6284
6608
 
6285
6609
  /**
6286
- * 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.
6287
- We recommend that you store the image in Tencent Cloud for higher download speed and stability.
6610
+ * The Base64 value of the reverse side of the document. Supported image formats: PNG, JPG/JPEG.
6611
+ Supported image size: the downloaded image after Base64 encoding must be no more than 2M. image download time must be no more than 5 seconds.
6612
+ Supported image resolution: between 256 \* 256 and 4096 \* 4096. For some documents, either ImageUrlBack or ImageBase64Back must be provided. If both are provided, only ImageUrlBack is used.
6288
6613
  * @type {string || null}
6289
6614
  */
6290
- this.ImageUrl = null;
6615
+ this.ImageBase64Back = null;
6291
6616
 
6292
6617
  /**
6293
- * 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.
6618
+ * Url of the document Front. supported image formats: PNG, JPG/JPEG.
6619
+ Supported image size: the downloaded image after Base64 encoding must be no more than 2M. image download time must be no more than 5 seconds.
6620
+ Supported image resolution: between 256 \* 256 and 4096 \* 4096. For some documents, either ImageUrlBack or ImageBase64Back must be provided. If both are provided, only ImageUrlFront will be used.
6294
6621
  * @type {string || null}
6295
6622
  */
6296
- this.BackImageUrl = null;
6623
+ this.ImageUrlFront = null;
6297
6624
 
6298
6625
  /**
6299
- * 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.
6300
- 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.
6301
- * @type {boolean || null}
6626
+ * Specifies the Url of the document Back. supported image formats: PNG, JPG/JPEG
6627
+ Supported image size: no more than 2M after Base64 encoding. image download time should not exceed 5 seconds.
6628
+ Supported image resolution: between 256 \* 256 and 4096 \* 4096. For some documents, either ImageUrlBack or ImageBase64Back must be provided. If both are provided, only use ImageUrlBack.
6629
+
6630
+ * @type {string || null}
6302
6631
  */
6303
- this.CropPortrait = null;
6632
+ this.ImageUrlBack = null;
6304
6633
 
6305
6634
  }
6306
6635
 
@@ -6311,11 +6640,12 @@ When this parameter is set to `true`, the Base64-encoded value of the profile ph
6311
6640
  if (!params) {
6312
6641
  return;
6313
6642
  }
6314
- this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
6315
- this.BackImageBase64 = 'BackImageBase64' in params ? params.BackImageBase64 : null;
6316
- this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
6317
- this.BackImageUrl = 'BackImageUrl' in params ? params.BackImageUrl : null;
6318
- this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
6643
+ this.Nationality = 'Nationality' in params ? params.Nationality : null;
6644
+ this.CardType = 'CardType' in params ? params.CardType : null;
6645
+ this.ImageBase64Front = 'ImageBase64Front' in params ? params.ImageBase64Front : null;
6646
+ this.ImageBase64Back = 'ImageBase64Back' in params ? params.ImageBase64Back : null;
6647
+ this.ImageUrlFront = 'ImageUrlFront' in params ? params.ImageUrlFront : null;
6648
+ this.ImageUrlBack = 'ImageUrlBack' in params ? params.ImageUrlBack : null;
6319
6649
 
6320
6650
  }
6321
6651
  }
@@ -7174,6 +7504,65 @@ class RecognizeBrazilRNMOCRResponse extends AbstractModel {
7174
7504
  }
7175
7505
  }
7176
7506
 
7507
+ /**
7508
+ * RecognizeThaiIDCardOCR request structure.
7509
+ * @class
7510
+ */
7511
+ class RecognizeThaiIDCardOCRRequest extends AbstractModel {
7512
+ constructor(){
7513
+ super();
7514
+
7515
+ /**
7516
+ * 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.
7517
+ Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, `ImageUrl` is used.
7518
+ * @type {string || null}
7519
+ */
7520
+ this.ImageBase64 = null;
7521
+
7522
+ /**
7523
+ * 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 does not exceed 7M after Base64 encoding. The image download takes no more than 3 seconds. One of ImageUrl and ImageBase64 of the image must be provided. If both are provided, only ImageUrl will be used.
7524
+ * @type {string || null}
7525
+ */
7526
+ this.BackImageBase64 = null;
7527
+
7528
+ /**
7529
+ * 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.
7530
+ We recommend that you store the image in Tencent Cloud for higher download speed and stability.
7531
+ * @type {string || null}
7532
+ */
7533
+ this.ImageUrl = null;
7534
+
7535
+ /**
7536
+ * 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.
7537
+ * @type {string || null}
7538
+ */
7539
+ this.BackImageUrl = null;
7540
+
7541
+ /**
7542
+ * 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.
7543
+ 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.
7544
+ * @type {boolean || null}
7545
+ */
7546
+ this.CropPortrait = null;
7547
+
7548
+ }
7549
+
7550
+ /**
7551
+ * @private
7552
+ */
7553
+ deserialize(params) {
7554
+ if (!params) {
7555
+ return;
7556
+ }
7557
+ this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
7558
+ this.BackImageBase64 = 'BackImageBase64' in params ? params.BackImageBase64 : null;
7559
+ this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
7560
+ this.BackImageUrl = 'BackImageUrl' in params ? params.BackImageUrl : null;
7561
+ this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
7562
+
7563
+ }
7564
+ }
7565
+
7177
7566
  /**
7178
7567
  * LicensePlateOCR request structure.
7179
7568
  * @class
@@ -8712,6 +9101,34 @@ class AirTransport extends AbstractModel {
8712
9101
  }
8713
9102
  }
8714
9103
 
9104
+ /**
9105
+ * GetCardVerificationExternalResult request structure.
9106
+ * @class
9107
+ */
9108
+ class GetCardVerificationExternalResultRequest extends AbstractModel {
9109
+ constructor(){
9110
+ super();
9111
+
9112
+ /**
9113
+ * Initiates the recognition interface and returns a unique token.
9114
+ * @type {string || null}
9115
+ */
9116
+ this.CardVerificationToken = null;
9117
+
9118
+ }
9119
+
9120
+ /**
9121
+ * @private
9122
+ */
9123
+ deserialize(params) {
9124
+ if (!params) {
9125
+ return;
9126
+ }
9127
+ this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
9128
+
9129
+ }
9130
+ }
9131
+
8715
9132
  /**
8716
9133
  * RecognizeTableAccurateOCR request structure.
8717
9134
  * @class
@@ -9636,42 +10053,36 @@ class ItemCoord extends AbstractModel {
9636
10053
  }
9637
10054
 
9638
10055
  /**
9639
- * RecognizeMainlandIDCardOCR request structure.
10056
+ * Vehicle license plate information
9640
10057
  * @class
9641
10058
  */
9642
- class RecognizeMainlandIDCardOCRRequest extends AbstractModel {
10059
+ class LicensePlateInfo extends AbstractModel {
9643
10060
  constructor(){
9644
10061
  super();
9645
10062
 
9646
10063
  /**
9647
- * The Base64 value of the image. The image is required to be no larger than 7M after Base64 encoding, and the resolution is recommended to be 500*800 or above. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupies at least 2/3 of the picture. One of ImageUrl and ImageBase64 of the image must be provided. If both are provided, only ImageUrl will be used.
9648
- * @type {string || null}
9649
- */
9650
- this.ImageBase64 = null;
9651
-
9652
- /**
9653
- * The URL address of the image. The image is required to be no larger than 7M after Base64 encoding, and the resolution is recommended to be 500*800 or above. PNG, JPG, JPEG, and BMP formats are supported. It is recommended that the card part occupies at least 2/3 of the picture. It is recommended that images be stored in Tencent Cloud to ensure higher download speed and stability.
10064
+ * The recognized license plate number.
9654
10065
  * @type {string || null}
9655
10066
  */
9656
- this.ImageUrl = null;
10067
+ this.Number = null;
9657
10068
 
9658
10069
  /**
9659
- * FRONT: The side of the ID card with the photo (portrait side), BACK: The side of the ID card with the national emblem (national emblem side). If this parameter is not filled in, the front and back of the ID card will be automatically determined for you.
9660
- * @type {string || null}
10070
+ * The confidence score (0–100).
10071
+ * @type {number || null}
9661
10072
  */
9662
- this.CardSide = null;
10073
+ this.Confidence = null;
9663
10074
 
9664
10075
  /**
9665
- * Whether to return the ID card portrait, the default is false
9666
- * @type {boolean || null}
10076
+ * The bounding box coordinates of the text line in the original image.
10077
+ * @type {Rect || null}
9667
10078
  */
9668
- this.CropPortrait = null;
10079
+ this.Rect = null;
9669
10080
 
9670
10081
  /**
9671
- * Whether to enable ID card photo cropping (removing excess edges outside the ID, automatically correcting the shooting angle), the default value is false
9672
- * @type {boolean || null}
10082
+ * The recognized license plate color, which currently includes "white", "black", "blue", "green", "yellow", "yellow-green", and "temporary plate".
10083
+ * @type {string || null}
9673
10084
  */
9674
- this.CropIdCard = null;
10085
+ this.Color = null;
9675
10086
 
9676
10087
  }
9677
10088
 
@@ -9682,11 +10093,15 @@ class RecognizeMainlandIDCardOCRRequest extends AbstractModel {
9682
10093
  if (!params) {
9683
10094
  return;
9684
10095
  }
9685
- this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
9686
- this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
9687
- this.CardSide = 'CardSide' in params ? params.CardSide : null;
9688
- this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
9689
- this.CropIdCard = 'CropIdCard' in params ? params.CropIdCard : null;
10096
+ this.Number = 'Number' in params ? params.Number : null;
10097
+ this.Confidence = 'Confidence' in params ? params.Confidence : null;
10098
+
10099
+ if (params.Rect) {
10100
+ let obj = new Rect();
10101
+ obj.deserialize(params.Rect)
10102
+ this.Rect = obj;
10103
+ }
10104
+ this.Color = 'Color' in params ? params.Color : null;
9690
10105
 
9691
10106
  }
9692
10107
  }
@@ -9874,6 +10289,41 @@ class VatInvoiceRoll extends AbstractModel {
9874
10289
  }
9875
10290
  }
9876
10291
 
10292
+ /**
10293
+ * ApplyCardVerificationExternal response structure.
10294
+ * @class
10295
+ */
10296
+ class ApplyCardVerificationExternalResponse extends AbstractModel {
10297
+ constructor(){
10298
+ super();
10299
+
10300
+ /**
10301
+ * Process token, which is used to obtain the result.
10302
+ * @type {string || null}
10303
+ */
10304
+ this.CardVerificationToken = null;
10305
+
10306
+ /**
10307
+ * 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.
10308
+ * @type {string || null}
10309
+ */
10310
+ this.RequestId = null;
10311
+
10312
+ }
10313
+
10314
+ /**
10315
+ * @private
10316
+ */
10317
+ deserialize(params) {
10318
+ if (!params) {
10319
+ return;
10320
+ }
10321
+ this.CardVerificationToken = 'CardVerificationToken' in params ? params.CardVerificationToken : null;
10322
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
10323
+
10324
+ }
10325
+ }
10326
+
9877
10327
  /**
9878
10328
  * The coordinates of the four vertices of the text
9879
10329
  Note: This field may return null, indicating that no valid values can be obtained.
@@ -12109,6 +12559,107 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
12109
12559
  }
12110
12560
  }
12111
12561
 
12562
+ /**
12563
+ * Overseas document recognition address information.
12564
+ * @class
12565
+ */
12566
+ class AddressInfo extends AbstractModel {
12567
+ constructor(){
12568
+ super();
12569
+
12570
+ /**
12571
+ * Country.
12572
+ Note: This field may return null, indicating that no valid values can be obtained.
12573
+ * @type {string || null}
12574
+ */
12575
+ this.Country = null;
12576
+
12577
+ /**
12578
+ * Postal code.
12579
+ Note: This field may return null, indicating that no valid values can be obtained.
12580
+ * @type {string || null}
12581
+ */
12582
+ this.PostalCode = null;
12583
+
12584
+ /**
12585
+ * Specifies the sub-region.
12586
+ Note: This field may return null, indicating that no valid values can be obtained.
12587
+ * @type {string || null}
12588
+ */
12589
+ this.Subdivision = null;
12590
+
12591
+ /**
12592
+ * Specifies the city.
12593
+ Note: This field may return null, indicating that no valid values can be obtained.
12594
+ * @type {string || null}
12595
+ */
12596
+ this.City = null;
12597
+
12598
+ /**
12599
+ * Complete address.
12600
+ Note: This field may return null, indicating that no valid values can be obtained.
12601
+ * @type {string || null}
12602
+ */
12603
+ this.FormattedAddress = null;
12604
+
12605
+ /**
12606
+ * First line of the address bar.
12607
+ Note: This field may return null, indicating that no valid values can be obtained.
12608
+ * @type {string || null}
12609
+ */
12610
+ this.LineOne = null;
12611
+
12612
+ /**
12613
+ * Second line of the address bar.
12614
+ Note: This field may return null, indicating that no valid values can be obtained.
12615
+ * @type {string || null}
12616
+ */
12617
+ this.LineTwo = null;
12618
+
12619
+ /**
12620
+ * Specifies the third line of the address bar.
12621
+ Note: This field may return null, indicating that no valid values can be obtained.
12622
+ * @type {string || null}
12623
+ */
12624
+ this.LineThree = null;
12625
+
12626
+ /**
12627
+ * Specifies the fourth line of the address bar.
12628
+ Note: This field may return null, indicating that no valid values can be obtained.
12629
+ * @type {string || null}
12630
+ */
12631
+ this.LineFour = null;
12632
+
12633
+ /**
12634
+ * Specifies the fifth line in the address bar.
12635
+ Note: This field may return null, indicating that no valid values can be obtained.
12636
+ * @type {string || null}
12637
+ */
12638
+ this.LineFive = null;
12639
+
12640
+ }
12641
+
12642
+ /**
12643
+ * @private
12644
+ */
12645
+ deserialize(params) {
12646
+ if (!params) {
12647
+ return;
12648
+ }
12649
+ this.Country = 'Country' in params ? params.Country : null;
12650
+ this.PostalCode = 'PostalCode' in params ? params.PostalCode : null;
12651
+ this.Subdivision = 'Subdivision' in params ? params.Subdivision : null;
12652
+ this.City = 'City' in params ? params.City : null;
12653
+ this.FormattedAddress = 'FormattedAddress' in params ? params.FormattedAddress : null;
12654
+ this.LineOne = 'LineOne' in params ? params.LineOne : null;
12655
+ this.LineTwo = 'LineTwo' in params ? params.LineTwo : null;
12656
+ this.LineThree = 'LineThree' in params ? params.LineThree : null;
12657
+ this.LineFour = 'LineFour' in params ? params.LineFour : null;
12658
+ this.LineFive = 'LineFive' in params ? params.LineFive : null;
12659
+
12660
+ }
12661
+ }
12662
+
12112
12663
  module.exports = {
12113
12664
  InvoiceItem: InvoiceItem,
12114
12665
  RecognizeMexicoVTIDResponse: RecognizeMexicoVTIDResponse,
@@ -12123,10 +12674,11 @@ module.exports = {
12123
12674
  OtherInvoiceList: OtherInvoiceList,
12124
12675
  RecognizeBrazilCommonOCRResponse: RecognizeBrazilCommonOCRResponse,
12125
12676
  RecognizeMacaoIDCardOCRResponse: RecognizeMacaoIDCardOCRResponse,
12677
+ GetCardVerificationExternalResultResponse: GetCardVerificationExternalResultResponse,
12126
12678
  PermitOCRResponse: PermitOCRResponse,
12127
12679
  RecognizeBrazilDriverLicenseOCRRequest: RecognizeBrazilDriverLicenseOCRRequest,
12128
12680
  Rect: Rect,
12129
- LicensePlateInfo: LicensePlateInfo,
12681
+ RecognizeMainlandIDCardOCRRequest: RecognizeMainlandIDCardOCRRequest,
12130
12682
  VatRollItem: VatRollItem,
12131
12683
  HmtResidentPermitOCRResponse: HmtResidentPermitOCRResponse,
12132
12684
  WordPolygon: WordPolygon,
@@ -12142,6 +12694,7 @@ module.exports = {
12142
12694
  LicensePlateOCRResponse: LicensePlateOCRResponse,
12143
12695
  RecognizeDetectCardCoordsRequest: RecognizeDetectCardCoordsRequest,
12144
12696
  VatInvoiceItemInfo: VatInvoiceItemInfo,
12697
+ GeneralCard: GeneralCard,
12145
12698
  MainlandPermitOCRRequest: MainlandPermitOCRRequest,
12146
12699
  RecognizeBrazilCommonOCRRequest: RecognizeBrazilCommonOCRRequest,
12147
12700
  TextDetection: TextDetection,
@@ -12178,7 +12731,7 @@ module.exports = {
12178
12731
  RecognizeKoreanIDCardOCRResponse: RecognizeKoreanIDCardOCRResponse,
12179
12732
  RecognizePhilippinesUMIDOCRResponse: RecognizePhilippinesUMIDOCRResponse,
12180
12733
  TrainTicket: TrainTicket,
12181
- RecognizeThaiIDCardOCRRequest: RecognizeThaiIDCardOCRRequest,
12734
+ ApplyCardVerificationExternalRequest: ApplyCardVerificationExternalRequest,
12182
12735
  MotorVehicleSaleInvoice: MotorVehicleSaleInvoice,
12183
12736
  RecognizeKoreanIDCardOCRRequest: RecognizeKoreanIDCardOCRRequest,
12184
12737
  TableOCRRequest: TableOCRRequest,
@@ -12186,6 +12739,7 @@ module.exports = {
12186
12739
  RecognizeSingaporeIDCardOCRRequest: RecognizeSingaporeIDCardOCRRequest,
12187
12740
  TaxiTicket: TaxiTicket,
12188
12741
  RecognizeBrazilRNMOCRResponse: RecognizeBrazilRNMOCRResponse,
12742
+ RecognizeThaiIDCardOCRRequest: RecognizeThaiIDCardOCRRequest,
12189
12743
  LicensePlateOCRRequest: LicensePlateOCRRequest,
12190
12744
  GeneralBasicOCRRequest: GeneralBasicOCRRequest,
12191
12745
  RecognizeBrazilRNMOCRRequest: RecognizeBrazilRNMOCRRequest,
@@ -12199,6 +12753,7 @@ module.exports = {
12199
12753
  NonTaxIncomeBill: NonTaxIncomeBill,
12200
12754
  MLIDPassportOCRResponse: MLIDPassportOCRResponse,
12201
12755
  AirTransport: AirTransport,
12756
+ GetCardVerificationExternalResultRequest: GetCardVerificationExternalResultRequest,
12202
12757
  RecognizeTableAccurateOCRRequest: RecognizeTableAccurateOCRRequest,
12203
12758
  Coord: Coord,
12204
12759
  SealOCRResponse: SealOCRResponse,
@@ -12211,8 +12766,9 @@ module.exports = {
12211
12766
  ConfigAdvanced: ConfigAdvanced,
12212
12767
  LineInfo: LineInfo,
12213
12768
  ItemCoord: ItemCoord,
12214
- RecognizeMainlandIDCardOCRRequest: RecognizeMainlandIDCardOCRRequest,
12769
+ LicensePlateInfo: LicensePlateInfo,
12215
12770
  VatInvoiceRoll: VatInvoiceRoll,
12771
+ ApplyCardVerificationExternalResponse: ApplyCardVerificationExternalResponse,
12216
12772
  Polygon: Polygon,
12217
12773
  TextDetectionResult: TextDetectionResult,
12218
12774
  RecognizeGeneralInvoiceResponse: RecognizeGeneralInvoiceResponse,
@@ -12242,5 +12798,6 @@ module.exports = {
12242
12798
  BankCardOCRResponse: BankCardOCRResponse,
12243
12799
  RecognizeThaiPinkCardResponse: RecognizeThaiPinkCardResponse,
12244
12800
  RecognizePhilippinesUMIDOCRRequest: RecognizePhilippinesUMIDOCRRequest,
12801
+ AddressInfo: AddressInfo,
12245
12802
 
12246
12803
  }