tencentcloud-sdk-nodejs-intl-en 3.0.1218 → 3.0.1220
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/as/v20180419/as_client.js +0 -2
- package/tencentcloud/as/v20180419/models.js +6 -8
- package/tencentcloud/billing/v20180709/billing_client.js +13 -0
- package/tencentcloud/billing/v20180709/models.js +114 -0
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/cynosdb/v20190107/cynosdb_client.js +13 -0
- package/tencentcloud/cynosdb/v20190107/models.js +115 -0
- package/tencentcloud/faceid/v20180301/models.js +17 -18
- package/tencentcloud/ims/v20201229/ims_client.js +1 -1
- package/tencentcloud/ims/v20201229/models.js +7 -0
- package/tencentcloud/mps/v20190612/models.js +333 -150
- package/tencentcloud/ocr/v20181119/models.js +435 -146
- package/tencentcloud/ocr/v20181119/ocr_client.js +21 -2
- package/tencentcloud/tms/v20201229/models.js +7 -0
- package/tencentcloud/tms/v20201229/tms_client.js +1 -1
- package/tencentcloud/trtc/v20190722/models.js +493 -112
- package/tencentcloud/trtc/v20190722/trtc_client.js +44 -3
|
@@ -316,6 +316,129 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
/**
|
|
320
|
+
* ExtractDocMulti request structure.
|
|
321
|
+
* @class
|
|
322
|
+
*/
|
|
323
|
+
class ExtractDocMultiRequest extends AbstractModel {
|
|
324
|
+
constructor(){
|
|
325
|
+
super();
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* The Url address of the image. supported image formats: PNG, JPG, JPEG, WORD, EXCEL. GIF format is not currently supported. supported image size: no more than 10M after Base64 encoding. image download time should not exceed 3 seconds. supported image pixels: between 20-10000px. images stored in tencent cloud's Url ensure higher download speed and stability. it is recommended to store images in tencent cloud. the speed and stability of non-tencent cloud storage urls may be impacted.
|
|
329
|
+
* @type {string || null}
|
|
330
|
+
*/
|
|
331
|
+
this.ImageUrl = null;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* The Base64 value of the image. supported image formats: PNG, JPG, JPEG, WORD, EXCEL. GIF format is not currently supported. supported image size: no more than 10M after encoding the downloaded image with Base64. image download time: no more than 3 seconds. supported image pixels: between 20-10000px. either ImageUrl or ImageBase64 must be provided. if both are provided, only use ImageUrl.
|
|
335
|
+
* @type {string || null}
|
|
336
|
+
*/
|
|
337
|
+
this.ImageBase64 = null;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Specifies the page number of the PDF to be recognized. only single page recognition is supported. valid when uploading a PDF file with the IsPdf parameter set to true. default value is the first 3 pages.
|
|
341
|
+
* @type {number || null}
|
|
342
|
+
*/
|
|
343
|
+
this.PdfPageNumber = null;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Specifies the field names to be returned by the customized structuring feature. for example, if the customer wants to add the recognition result of two fields, name and gender, manually input ItemNames=["name","gender"].
|
|
347
|
+
* @type {Array.<string> || null}
|
|
348
|
+
*/
|
|
349
|
+
this.ItemNames = null;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* true: only custom field.
|
|
353
|
+
False: default value field + custom field.
|
|
354
|
+
Default true.
|
|
355
|
+
* @type {boolean || null}
|
|
356
|
+
*/
|
|
357
|
+
this.ItemNamesShowMode = null;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Whether the full-text field recognition is enabled.
|
|
361
|
+
* @type {boolean || null}
|
|
362
|
+
*/
|
|
363
|
+
this.ReturnFullText = null;
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Configuration ID support:
|
|
367
|
+
-- General
|
|
368
|
+
-- InvoiceEng
|
|
369
|
+
-- WayBillEng
|
|
370
|
+
-- CustomsDeclaration
|
|
371
|
+
-- WeightNote
|
|
372
|
+
-- MedicalMeter
|
|
373
|
+
-- BillOfLading
|
|
374
|
+
-- EntrustmentBook
|
|
375
|
+
-- Statement
|
|
376
|
+
-- BookingConfirmation
|
|
377
|
+
-- AirWayBill
|
|
378
|
+
-- Table
|
|
379
|
+
-- SteelLabel
|
|
380
|
+
-- CarInsurance
|
|
381
|
+
-- MultiRealEstateCertificate
|
|
382
|
+
-- MultiRealEstateMaterial
|
|
383
|
+
-- HongKongUtilityBill
|
|
384
|
+
* @type {string || null}
|
|
385
|
+
*/
|
|
386
|
+
this.ConfigId = null;
|
|
387
|
+
|
|
388
|
+
/**
|
|
389
|
+
* Whether the full-text field coordinate value recognition is enabled.
|
|
390
|
+
* @type {boolean || null}
|
|
391
|
+
*/
|
|
392
|
+
this.EnableCoord = null;
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* Whether parent-child key recognition is enabled. the option is selected by default.
|
|
396
|
+
* @type {boolean || null}
|
|
397
|
+
*/
|
|
398
|
+
this.OutputParentKey = null;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* Single attribute configuration of a template.
|
|
402
|
+
* @type {ConfigAdvanced || null}
|
|
403
|
+
*/
|
|
404
|
+
this.ConfigAdvanced = null;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* When cn, the added key is chinese.
|
|
408
|
+
When set to en, the added key is english.
|
|
409
|
+
* @type {string || null}
|
|
410
|
+
*/
|
|
411
|
+
this.OutputLanguage = null;
|
|
412
|
+
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* @private
|
|
417
|
+
*/
|
|
418
|
+
deserialize(params) {
|
|
419
|
+
if (!params) {
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
423
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
424
|
+
this.PdfPageNumber = 'PdfPageNumber' in params ? params.PdfPageNumber : null;
|
|
425
|
+
this.ItemNames = 'ItemNames' in params ? params.ItemNames : null;
|
|
426
|
+
this.ItemNamesShowMode = 'ItemNamesShowMode' in params ? params.ItemNamesShowMode : null;
|
|
427
|
+
this.ReturnFullText = 'ReturnFullText' in params ? params.ReturnFullText : null;
|
|
428
|
+
this.ConfigId = 'ConfigId' in params ? params.ConfigId : null;
|
|
429
|
+
this.EnableCoord = 'EnableCoord' in params ? params.EnableCoord : null;
|
|
430
|
+
this.OutputParentKey = 'OutputParentKey' in params ? params.OutputParentKey : null;
|
|
431
|
+
|
|
432
|
+
if (params.ConfigAdvanced) {
|
|
433
|
+
let obj = new ConfigAdvanced();
|
|
434
|
+
obj.deserialize(params.ConfigAdvanced)
|
|
435
|
+
this.ConfigAdvanced = obj;
|
|
436
|
+
}
|
|
437
|
+
this.OutputLanguage = 'OutputLanguage' in params ? params.OutputLanguage : null;
|
|
438
|
+
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
|
|
319
442
|
/**
|
|
320
443
|
* RecognizeBrazilIDCardOCR request structure.
|
|
321
444
|
* @class
|
|
@@ -441,6 +564,18 @@ class WordItem extends AbstractModel {
|
|
|
441
564
|
*/
|
|
442
565
|
this.Coord = null;
|
|
443
566
|
|
|
567
|
+
/**
|
|
568
|
+
* Description.
|
|
569
|
+
* @type {string || null}
|
|
570
|
+
*/
|
|
571
|
+
this.AdvancedInfo = null;
|
|
572
|
+
|
|
573
|
+
/**
|
|
574
|
+
* Specifies the four-point coordinate of the word.
|
|
575
|
+
* @type {Array.<WordPolygon> || null}
|
|
576
|
+
*/
|
|
577
|
+
this.WordCoord = null;
|
|
578
|
+
|
|
444
579
|
}
|
|
445
580
|
|
|
446
581
|
/**
|
|
@@ -457,6 +592,16 @@ class WordItem extends AbstractModel {
|
|
|
457
592
|
obj.deserialize(params.Coord)
|
|
458
593
|
this.Coord = obj;
|
|
459
594
|
}
|
|
595
|
+
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
596
|
+
|
|
597
|
+
if (params.WordCoord) {
|
|
598
|
+
this.WordCoord = new Array();
|
|
599
|
+
for (let z in params.WordCoord) {
|
|
600
|
+
let obj = new WordPolygon();
|
|
601
|
+
obj.deserialize(params.WordCoord[z]);
|
|
602
|
+
this.WordCoord.push(obj);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
460
605
|
|
|
461
606
|
}
|
|
462
607
|
}
|
|
@@ -1230,6 +1375,46 @@ class HmtResidentPermitOCRResponse extends AbstractModel {
|
|
|
1230
1375
|
}
|
|
1231
1376
|
}
|
|
1232
1377
|
|
|
1378
|
+
/**
|
|
1379
|
+
* Word coordinates info.
|
|
1380
|
+
* @class
|
|
1381
|
+
*/
|
|
1382
|
+
class WordPolygon extends AbstractModel {
|
|
1383
|
+
constructor(){
|
|
1384
|
+
super();
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* The text content.
|
|
1388
|
+
* @type {string || null}
|
|
1389
|
+
*/
|
|
1390
|
+
this.DetectedText = null;
|
|
1391
|
+
|
|
1392
|
+
/**
|
|
1393
|
+
* The coordinates of the four vertices.
|
|
1394
|
+
* @type {Polygon || null}
|
|
1395
|
+
*/
|
|
1396
|
+
this.Coord = null;
|
|
1397
|
+
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
/**
|
|
1401
|
+
* @private
|
|
1402
|
+
*/
|
|
1403
|
+
deserialize(params) {
|
|
1404
|
+
if (!params) {
|
|
1405
|
+
return;
|
|
1406
|
+
}
|
|
1407
|
+
this.DetectedText = 'DetectedText' in params ? params.DetectedText : null;
|
|
1408
|
+
|
|
1409
|
+
if (params.Coord) {
|
|
1410
|
+
let obj = new Polygon();
|
|
1411
|
+
obj.deserialize(params.Coord)
|
|
1412
|
+
this.Coord = obj;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1233
1418
|
/**
|
|
1234
1419
|
* Flight items
|
|
1235
1420
|
* @class
|
|
@@ -2791,37 +2976,128 @@ class GeneralBasicOCRResponse extends AbstractModel {
|
|
|
2791
2976
|
}
|
|
2792
2977
|
|
|
2793
2978
|
/**
|
|
2794
|
-
*
|
|
2979
|
+
* RecognizeThaiIDCardOCR response structure.
|
|
2795
2980
|
* @class
|
|
2796
2981
|
*/
|
|
2797
|
-
class
|
|
2982
|
+
class RecognizeThaiIDCardOCRResponse extends AbstractModel {
|
|
2798
2983
|
constructor(){
|
|
2799
2984
|
super();
|
|
2800
2985
|
|
|
2801
2986
|
/**
|
|
2802
|
-
*
|
|
2803
|
-
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
2804
|
-
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
2805
|
-
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
2987
|
+
* ID card number
|
|
2806
2988
|
* @type {string || null}
|
|
2807
2989
|
*/
|
|
2808
|
-
this.
|
|
2990
|
+
this.ID = null;
|
|
2809
2991
|
|
|
2810
2992
|
/**
|
|
2811
|
-
*
|
|
2812
|
-
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
2813
|
-
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
2814
|
-
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
2815
|
-
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
2993
|
+
* Name in Thai
|
|
2816
2994
|
* @type {string || null}
|
|
2817
2995
|
*/
|
|
2818
|
-
this.
|
|
2996
|
+
this.ThaiName = null;
|
|
2819
2997
|
|
|
2820
2998
|
/**
|
|
2821
|
-
*
|
|
2822
|
-
* @type {
|
|
2999
|
+
* Name in English
|
|
3000
|
+
* @type {string || null}
|
|
2823
3001
|
*/
|
|
2824
|
-
this.
|
|
3002
|
+
this.EnFirstName = null;
|
|
3003
|
+
|
|
3004
|
+
/**
|
|
3005
|
+
* Name in English
|
|
3006
|
+
* @type {string || null}
|
|
3007
|
+
*/
|
|
3008
|
+
this.EnLastName = null;
|
|
3009
|
+
|
|
3010
|
+
/**
|
|
3011
|
+
* Date of issue in Thai
|
|
3012
|
+
* @type {string || null}
|
|
3013
|
+
*/
|
|
3014
|
+
this.IssueDate = null;
|
|
3015
|
+
|
|
3016
|
+
/**
|
|
3017
|
+
* Expiration date in Thai
|
|
3018
|
+
* @type {string || null}
|
|
3019
|
+
*/
|
|
3020
|
+
this.ExpirationDate = null;
|
|
3021
|
+
|
|
3022
|
+
/**
|
|
3023
|
+
* Date of issue in English
|
|
3024
|
+
* @type {string || null}
|
|
3025
|
+
*/
|
|
3026
|
+
this.EnIssueDate = null;
|
|
3027
|
+
|
|
3028
|
+
/**
|
|
3029
|
+
* Expiration date in English
|
|
3030
|
+
* @type {string || null}
|
|
3031
|
+
*/
|
|
3032
|
+
this.EnExpirationDate = null;
|
|
3033
|
+
|
|
3034
|
+
/**
|
|
3035
|
+
* Date of birth in Thai
|
|
3036
|
+
* @type {string || null}
|
|
3037
|
+
*/
|
|
3038
|
+
this.Birthday = null;
|
|
3039
|
+
|
|
3040
|
+
/**
|
|
3041
|
+
* Date of birth in English
|
|
3042
|
+
* @type {string || null}
|
|
3043
|
+
*/
|
|
3044
|
+
this.EnBirthday = null;
|
|
3045
|
+
|
|
3046
|
+
/**
|
|
3047
|
+
* Religion
|
|
3048
|
+
* @type {string || null}
|
|
3049
|
+
*/
|
|
3050
|
+
this.Religion = null;
|
|
3051
|
+
|
|
3052
|
+
/**
|
|
3053
|
+
* Serial number
|
|
3054
|
+
* @type {string || null}
|
|
3055
|
+
*/
|
|
3056
|
+
this.SerialNumber = null;
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
* Address
|
|
3060
|
+
* @type {string || null}
|
|
3061
|
+
*/
|
|
3062
|
+
this.Address = null;
|
|
3063
|
+
|
|
3064
|
+
/**
|
|
3065
|
+
* LaserID in the back of the card.
|
|
3066
|
+
* @type {string || null}
|
|
3067
|
+
*/
|
|
3068
|
+
this.LaserID = null;
|
|
3069
|
+
|
|
3070
|
+
/**
|
|
3071
|
+
* Identity photo
|
|
3072
|
+
* @type {string || null}
|
|
3073
|
+
*/
|
|
3074
|
+
this.PortraitImage = null;
|
|
3075
|
+
|
|
3076
|
+
/**
|
|
3077
|
+
* Card Warning Information
|
|
3078
|
+
|
|
3079
|
+
-9101 Alarm for covered certificate,
|
|
3080
|
+
-9102 Alarm for photocopied certificate,
|
|
3081
|
+
-9103 Alarm for photographed certificate,
|
|
3082
|
+
-9107 Alarm for reflective certificate,
|
|
3083
|
+
-9108 Alarm for blurry image,
|
|
3084
|
+
-9109 This capability is not enabled.
|
|
3085
|
+
* @type {Array.<number> || null}
|
|
3086
|
+
*/
|
|
3087
|
+
this.WarnCardInfos = null;
|
|
3088
|
+
|
|
3089
|
+
/**
|
|
3090
|
+
* Field confidence:
|
|
3091
|
+
{ "ID": { "Confidence": 0.9999 }, "ThaiName": { "Confidence": 0.9996 } }
|
|
3092
|
+
* @type {string || null}
|
|
3093
|
+
*/
|
|
3094
|
+
this.AdvancedInfo = null;
|
|
3095
|
+
|
|
3096
|
+
/**
|
|
3097
|
+
* 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.
|
|
3098
|
+
* @type {string || null}
|
|
3099
|
+
*/
|
|
3100
|
+
this.RequestId = null;
|
|
2825
3101
|
|
|
2826
3102
|
}
|
|
2827
3103
|
|
|
@@ -2832,9 +3108,24 @@ The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
|
2832
3108
|
if (!params) {
|
|
2833
3109
|
return;
|
|
2834
3110
|
}
|
|
2835
|
-
this.
|
|
2836
|
-
this.
|
|
2837
|
-
this.
|
|
3111
|
+
this.ID = 'ID' in params ? params.ID : null;
|
|
3112
|
+
this.ThaiName = 'ThaiName' in params ? params.ThaiName : null;
|
|
3113
|
+
this.EnFirstName = 'EnFirstName' in params ? params.EnFirstName : null;
|
|
3114
|
+
this.EnLastName = 'EnLastName' in params ? params.EnLastName : null;
|
|
3115
|
+
this.IssueDate = 'IssueDate' in params ? params.IssueDate : null;
|
|
3116
|
+
this.ExpirationDate = 'ExpirationDate' in params ? params.ExpirationDate : null;
|
|
3117
|
+
this.EnIssueDate = 'EnIssueDate' in params ? params.EnIssueDate : null;
|
|
3118
|
+
this.EnExpirationDate = 'EnExpirationDate' in params ? params.EnExpirationDate : null;
|
|
3119
|
+
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
3120
|
+
this.EnBirthday = 'EnBirthday' in params ? params.EnBirthday : null;
|
|
3121
|
+
this.Religion = 'Religion' in params ? params.Religion : null;
|
|
3122
|
+
this.SerialNumber = 'SerialNumber' in params ? params.SerialNumber : null;
|
|
3123
|
+
this.Address = 'Address' in params ? params.Address : null;
|
|
3124
|
+
this.LaserID = 'LaserID' in params ? params.LaserID : null;
|
|
3125
|
+
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
3126
|
+
this.WarnCardInfos = 'WarnCardInfos' in params ? params.WarnCardInfos : null;
|
|
3127
|
+
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
3128
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
2838
3129
|
|
|
2839
3130
|
}
|
|
2840
3131
|
}
|
|
@@ -3636,128 +3927,37 @@ class QuotaInvoice extends AbstractModel {
|
|
|
3636
3927
|
}
|
|
3637
3928
|
|
|
3638
3929
|
/**
|
|
3639
|
-
*
|
|
3930
|
+
* PermitOCR request structure.
|
|
3640
3931
|
* @class
|
|
3641
3932
|
*/
|
|
3642
|
-
class
|
|
3933
|
+
class PermitOCRRequest extends AbstractModel {
|
|
3643
3934
|
constructor(){
|
|
3644
3935
|
super();
|
|
3645
3936
|
|
|
3646
3937
|
/**
|
|
3647
|
-
*
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
/**
|
|
3653
|
-
* Name in Thai
|
|
3654
|
-
* @type {string || null}
|
|
3655
|
-
*/
|
|
3656
|
-
this.ThaiName = null;
|
|
3657
|
-
|
|
3658
|
-
/**
|
|
3659
|
-
* Name in English
|
|
3660
|
-
* @type {string || null}
|
|
3661
|
-
*/
|
|
3662
|
-
this.EnFirstName = null;
|
|
3663
|
-
|
|
3664
|
-
/**
|
|
3665
|
-
* Name in English
|
|
3666
|
-
* @type {string || null}
|
|
3667
|
-
*/
|
|
3668
|
-
this.EnLastName = null;
|
|
3669
|
-
|
|
3670
|
-
/**
|
|
3671
|
-
* Date of issue in Thai
|
|
3672
|
-
* @type {string || null}
|
|
3673
|
-
*/
|
|
3674
|
-
this.IssueDate = null;
|
|
3675
|
-
|
|
3676
|
-
/**
|
|
3677
|
-
* Expiration date in Thai
|
|
3678
|
-
* @type {string || null}
|
|
3679
|
-
*/
|
|
3680
|
-
this.ExpirationDate = null;
|
|
3681
|
-
|
|
3682
|
-
/**
|
|
3683
|
-
* Date of issue in English
|
|
3684
|
-
* @type {string || null}
|
|
3685
|
-
*/
|
|
3686
|
-
this.EnIssueDate = null;
|
|
3687
|
-
|
|
3688
|
-
/**
|
|
3689
|
-
* Expiration date in English
|
|
3690
|
-
* @type {string || null}
|
|
3691
|
-
*/
|
|
3692
|
-
this.EnExpirationDate = null;
|
|
3693
|
-
|
|
3694
|
-
/**
|
|
3695
|
-
* Date of birth in Thai
|
|
3696
|
-
* @type {string || null}
|
|
3697
|
-
*/
|
|
3698
|
-
this.Birthday = null;
|
|
3699
|
-
|
|
3700
|
-
/**
|
|
3701
|
-
* Date of birth in English
|
|
3702
|
-
* @type {string || null}
|
|
3703
|
-
*/
|
|
3704
|
-
this.EnBirthday = null;
|
|
3705
|
-
|
|
3706
|
-
/**
|
|
3707
|
-
* Religion
|
|
3708
|
-
* @type {string || null}
|
|
3709
|
-
*/
|
|
3710
|
-
this.Religion = null;
|
|
3711
|
-
|
|
3712
|
-
/**
|
|
3713
|
-
* Serial number
|
|
3714
|
-
* @type {string || null}
|
|
3715
|
-
*/
|
|
3716
|
-
this.SerialNumber = null;
|
|
3717
|
-
|
|
3718
|
-
/**
|
|
3719
|
-
* Address
|
|
3720
|
-
* @type {string || null}
|
|
3721
|
-
*/
|
|
3722
|
-
this.Address = null;
|
|
3723
|
-
|
|
3724
|
-
/**
|
|
3725
|
-
* LaserID in the back of the card.
|
|
3726
|
-
* @type {string || null}
|
|
3727
|
-
*/
|
|
3728
|
-
this.LaserID = null;
|
|
3729
|
-
|
|
3730
|
-
/**
|
|
3731
|
-
* Identity photo
|
|
3938
|
+
* The Base64-encoded value of the image.
|
|
3939
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
3940
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
3941
|
+
Either `ImageUrl` or `ImageBase64` of the image must be provided. If both are provided, only `ImageUrl` is used.
|
|
3732
3942
|
* @type {string || null}
|
|
3733
3943
|
*/
|
|
3734
|
-
this.
|
|
3735
|
-
|
|
3736
|
-
/**
|
|
3737
|
-
* Card Warning Information
|
|
3738
|
-
|
|
3739
|
-
-9101 Alarm for covered certificate,
|
|
3740
|
-
-9102 Alarm for photocopied certificate,
|
|
3741
|
-
-9103 Alarm for photographed certificate,
|
|
3742
|
-
-9107 Alarm for reflective certificate,
|
|
3743
|
-
-9108 Alarm for blurry image,
|
|
3744
|
-
-9109 This capability is not enabled.
|
|
3745
|
-
* @type {Array.<number> || null}
|
|
3746
|
-
*/
|
|
3747
|
-
this.WarnCardInfos = null;
|
|
3944
|
+
this.ImageBase64 = null;
|
|
3748
3945
|
|
|
3749
3946
|
/**
|
|
3750
|
-
*
|
|
3751
|
-
|
|
3947
|
+
* The URL of the image.
|
|
3948
|
+
Supported image formats: PNG, JPG, and JPEG. GIF is currently not supported.
|
|
3949
|
+
Supported image size: The downloaded image after Base64 encoding can be up to 7 MB. The download time of the image cannot exceed 3s.
|
|
3950
|
+
We recommend that you store the image in Tencent Cloud for higher download speed and stability.
|
|
3951
|
+
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
3752
3952
|
* @type {string || null}
|
|
3753
3953
|
*/
|
|
3754
|
-
this.
|
|
3954
|
+
this.ImageUrl = null;
|
|
3755
3955
|
|
|
3756
3956
|
/**
|
|
3757
|
-
*
|
|
3758
|
-
* @type {
|
|
3957
|
+
* Whether to return the profile photo, default is false.
|
|
3958
|
+
* @type {boolean || null}
|
|
3759
3959
|
*/
|
|
3760
|
-
this.
|
|
3960
|
+
this.CropPortrait = null;
|
|
3761
3961
|
|
|
3762
3962
|
}
|
|
3763
3963
|
|
|
@@ -3768,24 +3968,9 @@ class RecognizeThaiIDCardOCRResponse extends AbstractModel {
|
|
|
3768
3968
|
if (!params) {
|
|
3769
3969
|
return;
|
|
3770
3970
|
}
|
|
3771
|
-
this.
|
|
3772
|
-
this.
|
|
3773
|
-
this.
|
|
3774
|
-
this.EnLastName = 'EnLastName' in params ? params.EnLastName : null;
|
|
3775
|
-
this.IssueDate = 'IssueDate' in params ? params.IssueDate : null;
|
|
3776
|
-
this.ExpirationDate = 'ExpirationDate' in params ? params.ExpirationDate : null;
|
|
3777
|
-
this.EnIssueDate = 'EnIssueDate' in params ? params.EnIssueDate : null;
|
|
3778
|
-
this.EnExpirationDate = 'EnExpirationDate' in params ? params.EnExpirationDate : null;
|
|
3779
|
-
this.Birthday = 'Birthday' in params ? params.Birthday : null;
|
|
3780
|
-
this.EnBirthday = 'EnBirthday' in params ? params.EnBirthday : null;
|
|
3781
|
-
this.Religion = 'Religion' in params ? params.Religion : null;
|
|
3782
|
-
this.SerialNumber = 'SerialNumber' in params ? params.SerialNumber : null;
|
|
3783
|
-
this.Address = 'Address' in params ? params.Address : null;
|
|
3784
|
-
this.LaserID = 'LaserID' in params ? params.LaserID : null;
|
|
3785
|
-
this.PortraitImage = 'PortraitImage' in params ? params.PortraitImage : null;
|
|
3786
|
-
this.WarnCardInfos = 'WarnCardInfos' in params ? params.WarnCardInfos : null;
|
|
3787
|
-
this.AdvancedInfo = 'AdvancedInfo' in params ? params.AdvancedInfo : null;
|
|
3788
|
-
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3971
|
+
this.ImageBase64 = 'ImageBase64' in params ? params.ImageBase64 : null;
|
|
3972
|
+
this.ImageUrl = 'ImageUrl' in params ? params.ImageUrl : null;
|
|
3973
|
+
this.CropPortrait = 'CropPortrait' in params ? params.CropPortrait : null;
|
|
3789
3974
|
|
|
3790
3975
|
}
|
|
3791
3976
|
}
|
|
@@ -4444,6 +4629,78 @@ class VatInvoiceInfo extends AbstractModel {
|
|
|
4444
4629
|
}
|
|
4445
4630
|
}
|
|
4446
4631
|
|
|
4632
|
+
/**
|
|
4633
|
+
* ExtractDocMulti response structure.
|
|
4634
|
+
* @class
|
|
4635
|
+
*/
|
|
4636
|
+
class ExtractDocMultiResponse extends AbstractModel {
|
|
4637
|
+
constructor(){
|
|
4638
|
+
super();
|
|
4639
|
+
|
|
4640
|
+
/**
|
|
4641
|
+
* Image rotation angle (angle system). the text's horizontal direction is 0. clockwise is positive; counterclockwise is negative.
|
|
4642
|
+
* @type {number || null}
|
|
4643
|
+
*/
|
|
4644
|
+
this.Angle = null;
|
|
4645
|
+
|
|
4646
|
+
/**
|
|
4647
|
+
* Configures the structured text info.
|
|
4648
|
+
* @type {Array.<GroupInfo> || null}
|
|
4649
|
+
*/
|
|
4650
|
+
this.StructuralList = null;
|
|
4651
|
+
|
|
4652
|
+
/**
|
|
4653
|
+
* Restore text information.
|
|
4654
|
+
* @type {Array.<WordItem> || null}
|
|
4655
|
+
*/
|
|
4656
|
+
this.WordList = null;
|
|
4657
|
+
|
|
4658
|
+
/**
|
|
4659
|
+
* Number of sample identification fields.
|
|
4660
|
+
* @type {number || null}
|
|
4661
|
+
*/
|
|
4662
|
+
this.TokenNum = null;
|
|
4663
|
+
|
|
4664
|
+
/**
|
|
4665
|
+
* 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.
|
|
4666
|
+
* @type {string || null}
|
|
4667
|
+
*/
|
|
4668
|
+
this.RequestId = null;
|
|
4669
|
+
|
|
4670
|
+
}
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* @private
|
|
4674
|
+
*/
|
|
4675
|
+
deserialize(params) {
|
|
4676
|
+
if (!params) {
|
|
4677
|
+
return;
|
|
4678
|
+
}
|
|
4679
|
+
this.Angle = 'Angle' in params ? params.Angle : null;
|
|
4680
|
+
|
|
4681
|
+
if (params.StructuralList) {
|
|
4682
|
+
this.StructuralList = new Array();
|
|
4683
|
+
for (let z in params.StructuralList) {
|
|
4684
|
+
let obj = new GroupInfo();
|
|
4685
|
+
obj.deserialize(params.StructuralList[z]);
|
|
4686
|
+
this.StructuralList.push(obj);
|
|
4687
|
+
}
|
|
4688
|
+
}
|
|
4689
|
+
|
|
4690
|
+
if (params.WordList) {
|
|
4691
|
+
this.WordList = new Array();
|
|
4692
|
+
for (let z in params.WordList) {
|
|
4693
|
+
let obj = new WordItem();
|
|
4694
|
+
obj.deserialize(params.WordList[z]);
|
|
4695
|
+
this.WordList.push(obj);
|
|
4696
|
+
}
|
|
4697
|
+
}
|
|
4698
|
+
this.TokenNum = 'TokenNum' in params ? params.TokenNum : null;
|
|
4699
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
4700
|
+
|
|
4701
|
+
}
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4447
4704
|
/**
|
|
4448
4705
|
* RecognizePhilippinesSssIDOCR response structure.
|
|
4449
4706
|
* @class
|
|
@@ -8456,6 +8713,34 @@ class VatElectronicItemInfo extends AbstractModel {
|
|
|
8456
8713
|
}
|
|
8457
8714
|
}
|
|
8458
8715
|
|
|
8716
|
+
/**
|
|
8717
|
+
* Supports single attribute configuration for templates.
|
|
8718
|
+
* @class
|
|
8719
|
+
*/
|
|
8720
|
+
class ConfigAdvanced extends AbstractModel {
|
|
8721
|
+
constructor(){
|
|
8722
|
+
super();
|
|
8723
|
+
|
|
8724
|
+
/**
|
|
8725
|
+
* Single attribute configuration of a template.
|
|
8726
|
+
* @type {string || null}
|
|
8727
|
+
*/
|
|
8728
|
+
this.Scene = null;
|
|
8729
|
+
|
|
8730
|
+
}
|
|
8731
|
+
|
|
8732
|
+
/**
|
|
8733
|
+
* @private
|
|
8734
|
+
*/
|
|
8735
|
+
deserialize(params) {
|
|
8736
|
+
if (!params) {
|
|
8737
|
+
return;
|
|
8738
|
+
}
|
|
8739
|
+
this.Scene = 'Scene' in params ? params.Scene : null;
|
|
8740
|
+
|
|
8741
|
+
}
|
|
8742
|
+
}
|
|
8743
|
+
|
|
8459
8744
|
/**
|
|
8460
8745
|
* RecognizePhilippinesVoteIDOCR response structure.
|
|
8461
8746
|
* @class
|
|
@@ -10998,6 +11283,7 @@ module.exports = {
|
|
|
10998
11283
|
InvoiceItem: InvoiceItem,
|
|
10999
11284
|
RecognizeMexicoVTIDResponse: RecognizeMexicoVTIDResponse,
|
|
11000
11285
|
HKIDCardOCRRequest: HKIDCardOCRRequest,
|
|
11286
|
+
ExtractDocMultiRequest: ExtractDocMultiRequest,
|
|
11001
11287
|
RecognizeBrazilIDCardOCRRequest: RecognizeBrazilIDCardOCRRequest,
|
|
11002
11288
|
RecognizePhilippinesDrivingLicenseOCRRequest: RecognizePhilippinesDrivingLicenseOCRRequest,
|
|
11003
11289
|
WordItem: WordItem,
|
|
@@ -11012,6 +11298,7 @@ module.exports = {
|
|
|
11012
11298
|
LicensePlateInfo: LicensePlateInfo,
|
|
11013
11299
|
VatRollItem: VatRollItem,
|
|
11014
11300
|
HmtResidentPermitOCRResponse: HmtResidentPermitOCRResponse,
|
|
11301
|
+
WordPolygon: WordPolygon,
|
|
11015
11302
|
FlightItem: FlightItem,
|
|
11016
11303
|
Value: Value,
|
|
11017
11304
|
SealInfo: SealInfo,
|
|
@@ -11033,7 +11320,7 @@ module.exports = {
|
|
|
11033
11320
|
BusInvoice: BusInvoice,
|
|
11034
11321
|
RecognizeGeneralInvoiceRequest: RecognizeGeneralInvoiceRequest,
|
|
11035
11322
|
GeneralBasicOCRResponse: GeneralBasicOCRResponse,
|
|
11036
|
-
|
|
11323
|
+
RecognizeThaiIDCardOCRResponse: RecognizeThaiIDCardOCRResponse,
|
|
11037
11324
|
OtherInvoice: OtherInvoice,
|
|
11038
11325
|
RecognizePhilippinesUMIDOCRRequest: RecognizePhilippinesUMIDOCRRequest,
|
|
11039
11326
|
BankCardOCRRequest: BankCardOCRRequest,
|
|
@@ -11045,9 +11332,10 @@ module.exports = {
|
|
|
11045
11332
|
HKIDCardOCRResponse: HKIDCardOCRResponse,
|
|
11046
11333
|
GroupInfo: GroupInfo,
|
|
11047
11334
|
QuotaInvoice: QuotaInvoice,
|
|
11048
|
-
|
|
11335
|
+
PermitOCRRequest: PermitOCRRequest,
|
|
11049
11336
|
SingleInvoiceItem: SingleInvoiceItem,
|
|
11050
11337
|
VatInvoiceInfo: VatInvoiceInfo,
|
|
11338
|
+
ExtractDocMultiResponse: ExtractDocMultiResponse,
|
|
11051
11339
|
RecognizePhilippinesSssIDOCRResponse: RecognizePhilippinesSssIDOCRResponse,
|
|
11052
11340
|
MachinePrintedInvoice: MachinePrintedInvoice,
|
|
11053
11341
|
RecognizeKoreanIDCardOCRResponse: RecognizeKoreanIDCardOCRResponse,
|
|
@@ -11083,6 +11371,7 @@ module.exports = {
|
|
|
11083
11371
|
VinOCRResponse: VinOCRResponse,
|
|
11084
11372
|
RecognizeKoreanDrivingLicenseOCRResponse: RecognizeKoreanDrivingLicenseOCRResponse,
|
|
11085
11373
|
VatElectronicItemInfo: VatElectronicItemInfo,
|
|
11374
|
+
ConfigAdvanced: ConfigAdvanced,
|
|
11086
11375
|
RecognizePhilippinesVoteIDOCRResponse: RecognizePhilippinesVoteIDOCRResponse,
|
|
11087
11376
|
ItemCoord: ItemCoord,
|
|
11088
11377
|
RecognizeMainlandIDCardOCRRequest: RecognizeMainlandIDCardOCRRequest,
|