tencentcloud-sdk-nodejs-intl-en 3.0.616 → 3.0.618
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/iai/v20200303/iai_client.js +27 -23
- package/tencentcloud/iai/v20200303/models.js +173 -149
- package/tencentcloud/monitor/v20180724/models.js +360 -75
- package/tencentcloud/monitor/v20180724/monitor_client.js +16 -1
- package/tencentcloud/tke/v20180525/models.js +1149 -228
- package/tencentcloud/tke/v20180525/tke_client.js +130 -23
package/package.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.618";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -26,7 +26,7 @@ const DetectLiveFaceResponse = models.DetectLiveFaceResponse;
|
|
|
26
26
|
const SearchPersonsReturnsByGroupResponse = models.SearchPersonsReturnsByGroupResponse;
|
|
27
27
|
const DeleteFaceRequest = models.DeleteFaceRequest;
|
|
28
28
|
const HeadPose = models.HeadPose;
|
|
29
|
-
const
|
|
29
|
+
const ModifyPersonGroupInfoRequest = models.ModifyPersonGroupInfoRequest;
|
|
30
30
|
const GetGroupListResponse = models.GetGroupListResponse;
|
|
31
31
|
const GroupInfo = models.GroupInfo;
|
|
32
32
|
const GetPersonListResponse = models.GetPersonListResponse;
|
|
@@ -39,11 +39,10 @@ const CreatePersonRequest = models.CreatePersonRequest;
|
|
|
39
39
|
const GetGroupListRequest = models.GetGroupListRequest;
|
|
40
40
|
const DeleteGroupRequest = models.DeleteGroupRequest;
|
|
41
41
|
const CreateFaceResponse = models.CreateFaceResponse;
|
|
42
|
-
const ModifyPersonBaseInfoRequest = models.ModifyPersonBaseInfoRequest;
|
|
43
42
|
const DetectFaceAttributesResponse = models.DetectFaceAttributesResponse;
|
|
44
43
|
const GroupCandidate = models.GroupCandidate;
|
|
45
44
|
const SearchPersonsResponse = models.SearchPersonsResponse;
|
|
46
|
-
const
|
|
45
|
+
const DetectLiveFaceAccurateRequest = models.DetectLiveFaceAccurateRequest;
|
|
47
46
|
const CompareFaceResponse = models.CompareFaceResponse;
|
|
48
47
|
const PersonExDescriptionInfo = models.PersonExDescriptionInfo;
|
|
49
48
|
const DetectLiveFaceRequest = models.DetectLiveFaceRequest;
|
|
@@ -54,7 +53,6 @@ const CreateFaceRequest = models.CreateFaceRequest;
|
|
|
54
53
|
const Mouth = models.Mouth;
|
|
55
54
|
const CreateGroupRequest = models.CreateGroupRequest;
|
|
56
55
|
const PersonGroupInfo = models.PersonGroupInfo;
|
|
57
|
-
const ModifyPersonGroupInfoRequest = models.ModifyPersonGroupInfoRequest;
|
|
58
56
|
const GetPersonGroupInfoRequest = models.GetPersonGroupInfoRequest;
|
|
59
57
|
const Result = models.Result;
|
|
60
58
|
const SearchFacesReturnsByGroupResponse = models.SearchFacesReturnsByGroupResponse;
|
|
@@ -77,6 +75,8 @@ const AnalyzeFaceResponse = models.AnalyzeFaceResponse;
|
|
|
77
75
|
const GetGroupInfoRequest = models.GetGroupInfoRequest;
|
|
78
76
|
const FaceDetailInfo = models.FaceDetailInfo;
|
|
79
77
|
const FaceHairAttributesInfo = models.FaceHairAttributesInfo;
|
|
78
|
+
const VerifyPersonRequest = models.VerifyPersonRequest;
|
|
79
|
+
const DetectLiveFaceAccurateResponse = models.DetectLiveFaceAccurateResponse;
|
|
80
80
|
const AnalyzeFaceRequest = models.AnalyzeFaceRequest;
|
|
81
81
|
const Point = models.Point;
|
|
82
82
|
const DetectFaceRequest = models.DetectFaceRequest;
|
|
@@ -246,17 +246,6 @@ Image-based liveness detection is suitable for scenarios where the image is a se
|
|
|
246
246
|
this.request("AnalyzeFace", req, resp, cb);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
/**
|
|
250
|
-
* This API is used to modify the information of a person, including name, gender, etc. The changes of person name and gender will be synced to all the groups that contain the person.
|
|
251
|
-
* @param {ModifyPersonBaseInfoRequest} req
|
|
252
|
-
* @param {function(string, ModifyPersonBaseInfoResponse):void} cb
|
|
253
|
-
* @public
|
|
254
|
-
*/
|
|
255
|
-
ModifyPersonBaseInfo(req, cb) {
|
|
256
|
-
let resp = new ModifyPersonBaseInfoResponse();
|
|
257
|
-
this.request("ModifyPersonBaseInfo", req, resp, cb);
|
|
258
|
-
}
|
|
259
|
-
|
|
260
249
|
/**
|
|
261
250
|
* This API is used to recognize top K persons in one or more groups who are similar to the person in a given image and rank the similarity in descending order.
|
|
262
251
|
|
|
@@ -434,24 +423,24 @@ This API fuses the features of all face images of a person; for example, if a pe
|
|
|
434
423
|
* This API is used to detect the position, attributes, and quality information of a face in the given image. The position information includes (x, y, w, h); the face attributes include gender, age, expression, beauty, glass, hair, mask, and pose (pitch, roll, yaw); and the face quality information includes the overall quality score, sharpness, brightness, and completeness.
|
|
435
424
|
|
|
436
425
|
|
|
437
|
-
The face quality information is mainly used to evaluate the quality of the input face image. When using the Face Recognition service, we
|
|
426
|
+
The face quality information is mainly used to evaluate the quality of the input face image. When using the Face Recognition service, we recommend evaluating the quality of the input face image first to improve the effects of subsequent processing. Application scenarios of this feature include:
|
|
438
427
|
|
|
439
|
-
1. [Creating](https://intl.cloud.tencent.com/document/
|
|
428
|
+
1. [Creating](https://intl.cloud.tencent.com/document/api/1059/36964)/[Adding](https://intl.cloud.tencent.com/document/api/1059/36966) a person in a group: This is to ensure the quality of the face information to facilitate subsequent processing.
|
|
440
429
|
|
|
441
|
-
2. [Face search](https://intl.cloud.tencent.com/document/
|
|
430
|
+
2. [Face search](https://intl.cloud.tencent.com/document/api/1059/36977): This is to ensure the quality of the input image to quickly find the corresponding person.
|
|
442
431
|
|
|
443
|
-
3. [Face verification](https://intl.cloud.tencent.com/document/
|
|
432
|
+
3. [Face verification](https://intl.cloud.tencent.com/document/api/1059/36972): This is to ensure the quality of the face information to avoid cases where the verification fails unexpectedly.
|
|
444
433
|
|
|
445
|
-
4.
|
|
434
|
+
4. Face fusion: This is to ensure the quality of the uploaded face images to improve the fusion effect.
|
|
446
435
|
|
|
447
436
|
>
|
|
448
|
-
- This API is an upgrade of [DetectFace](https://intl.cloud.tencent.com/document/
|
|
437
|
+
- This API is an upgrade of [DetectFace](https://intl.cloud.tencent.com/document/api/1059/36979); specifically:
|
|
449
438
|
1. This API can be used to specify the face attributes that need to be computed and returned, which avoids ineffective computation and reduces time consumption.
|
|
450
439
|
2. This API supports more detailed attribute items and will continue providing new features in the future.
|
|
451
|
-
|
|
440
|
+
Use this API for corresponding face detection and attribute analysis.
|
|
452
441
|
|
|
453
442
|
>
|
|
454
|
-
-
|
|
443
|
+
- Use the signature algorithm v3 to calculate the signature in the common parameters, that is, set the parameter `SignatureMethod` to `TC3-HMAC-SHA256`.
|
|
455
444
|
* @param {DetectFaceAttributesRequest} req
|
|
456
445
|
* @param {function(string, DetectFaceAttributesResponse):void} cb
|
|
457
446
|
* @public
|
|
@@ -461,6 +450,21 @@ Please use this API for corresponding face detection and attribute analysis.
|
|
|
461
450
|
this.request("DetectFaceAttributes", req, resp, cb);
|
|
462
451
|
}
|
|
463
452
|
|
|
453
|
+
/**
|
|
454
|
+
* This API is used to detect the liveness of faces in images uploaded by users and determine whether these images are photographed.
|
|
455
|
+
|
|
456
|
+
Compared with normal Image-based Liveness Detection services, this API enhances the defense capability against attacks from HD screens, printed photos, and 3D masks, as well as improves attack blocking four to five times the competing products, while maintaining high accuracy. It also supports face verification in different use cases, and satisfies the image-based liveness detection needs on mobile or PCs, making it ideal for liveness detection applications in various industries.
|
|
457
|
+
|
|
458
|
+
Pay-as-you-go billing officially started for this API at 00:00, August 1, 2022. For more information, see [Billing Overview](https://intl.cloud.tencent.com/document/product/867/17640?from_cn_redirect=1).
|
|
459
|
+
* @param {DetectLiveFaceAccurateRequest} req
|
|
460
|
+
* @param {function(string, DetectLiveFaceAccurateResponse):void} cb
|
|
461
|
+
* @public
|
|
462
|
+
*/
|
|
463
|
+
DetectLiveFaceAccurate(req, cb) {
|
|
464
|
+
let resp = new DetectLiveFaceAccurateResponse();
|
|
465
|
+
this.request("DetectLiveFaceAccurate", req, resp, cb);
|
|
466
|
+
}
|
|
467
|
+
|
|
464
468
|
/**
|
|
465
469
|
* This API is used to modify the description of a specified person in a group.
|
|
466
470
|
* @param {ModifyPersonGroupInfoRequest} req
|
|
@@ -163,7 +163,7 @@ class Candidate extends AbstractModel {
|
|
|
163
163
|
this.PersonId = null;
|
|
164
164
|
|
|
165
165
|
/**
|
|
166
|
-
* Face ID
|
|
166
|
+
* Face ID, which is valid only when returned by the `SearchFaces` or `SearchFacesReturnsByGroup` API. User search APIs use facial feature fusion to search for users, for which this field is meaningless.
|
|
167
167
|
* @type {string || null}
|
|
168
168
|
*/
|
|
169
169
|
this.FaceId = null;
|
|
@@ -540,18 +540,30 @@ class HeadPose extends AbstractModel {
|
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
/**
|
|
543
|
-
*
|
|
543
|
+
* ModifyPersonGroupInfo request structure.
|
|
544
544
|
* @class
|
|
545
545
|
*/
|
|
546
|
-
class
|
|
546
|
+
class ModifyPersonGroupInfoRequest extends AbstractModel {
|
|
547
547
|
constructor(){
|
|
548
548
|
super();
|
|
549
549
|
|
|
550
550
|
/**
|
|
551
|
-
*
|
|
551
|
+
* Group ID, which is the `GroupId` in the `CreateGroup` API.
|
|
552
552
|
* @type {string || null}
|
|
553
553
|
*/
|
|
554
|
-
this.
|
|
554
|
+
this.GroupId = null;
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* Person ID, which is the `PersonId` in the `CreatePerson` API.
|
|
558
|
+
* @type {string || null}
|
|
559
|
+
*/
|
|
560
|
+
this.PersonId = null;
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Custom description field of the person to be modified, which is a `key-value` pair.
|
|
564
|
+
* @type {Array.<PersonExDescriptionInfo> || null}
|
|
565
|
+
*/
|
|
566
|
+
this.PersonExDescriptionInfos = null;
|
|
555
567
|
|
|
556
568
|
}
|
|
557
569
|
|
|
@@ -562,7 +574,17 @@ class ModifyPersonBaseInfoResponse extends AbstractModel {
|
|
|
562
574
|
if (!params) {
|
|
563
575
|
return;
|
|
564
576
|
}
|
|
565
|
-
this.
|
|
577
|
+
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
578
|
+
this.PersonId = 'PersonId' in params ? params.PersonId : null;
|
|
579
|
+
|
|
580
|
+
if (params.PersonExDescriptionInfos) {
|
|
581
|
+
this.PersonExDescriptionInfos = new Array();
|
|
582
|
+
for (let z in params.PersonExDescriptionInfos) {
|
|
583
|
+
let obj = new PersonExDescriptionInfo();
|
|
584
|
+
obj.deserialize(params.PersonExDescriptionInfos[z]);
|
|
585
|
+
this.PersonExDescriptionInfos.push(obj);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
566
588
|
|
|
567
589
|
}
|
|
568
590
|
}
|
|
@@ -1031,11 +1053,11 @@ PNG, JPG, JPEG, and BMP images are supported, while GIF images are not.
|
|
|
1031
1053
|
|
|
1032
1054
|
/**
|
|
1033
1055
|
* Whether to return attributes such as age, gender, and emotion.
|
|
1034
|
-
Valid values (case-insensitive): None, Age, Beauty, Emotion, Eye, Eyebrow,
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
You need to combine the attributes into a string and separate them
|
|
1038
|
-
For more information on the attributes,
|
|
1056
|
+
Valid values (case-insensitive): None, Age, Beauty, Emotion, Eye, Eyebrow, Gender, Hair, Hat, Headpose, Mask, Mouth, Moustache, Nose, Shape, Skin, Smile.
|
|
1057
|
+
|
|
1058
|
+
`None` indicates that no attributes need to be returned, which is the default value; that is, if the `FaceAttributesType` attribute is empty, the values of all attributes will be `0`.
|
|
1059
|
+
You need to combine the attributes into a string and separate them by comma. The sequence of the attributes is not limited.
|
|
1060
|
+
For more information on the attributes, see the output parameters as described below.
|
|
1039
1061
|
The face attribute information of up to 5 largest faces in the image will be returned, and `AttributesInfo` of the 6th and rest faces is meaningless.
|
|
1040
1062
|
* @type {string || null}
|
|
1041
1063
|
*/
|
|
@@ -1396,48 +1418,6 @@ For example, if there are 3 URLs in `Urls`, and the second URL fails, then the v
|
|
|
1396
1418
|
}
|
|
1397
1419
|
}
|
|
1398
1420
|
|
|
1399
|
-
/**
|
|
1400
|
-
* ModifyPersonBaseInfo request structure.
|
|
1401
|
-
* @class
|
|
1402
|
-
*/
|
|
1403
|
-
class ModifyPersonBaseInfoRequest extends AbstractModel {
|
|
1404
|
-
constructor(){
|
|
1405
|
-
super();
|
|
1406
|
-
|
|
1407
|
-
/**
|
|
1408
|
-
* Person ID, which is the `PersonId` in the `CreatePerson` API.
|
|
1409
|
-
* @type {string || null}
|
|
1410
|
-
*/
|
|
1411
|
-
this.PersonId = null;
|
|
1412
|
-
|
|
1413
|
-
/**
|
|
1414
|
-
* Name of the person to be modified
|
|
1415
|
-
* @type {string || null}
|
|
1416
|
-
*/
|
|
1417
|
-
this.PersonName = null;
|
|
1418
|
-
|
|
1419
|
-
/**
|
|
1420
|
-
* Gender of the person to be modified. 1: male; 2: female.
|
|
1421
|
-
* @type {number || null}
|
|
1422
|
-
*/
|
|
1423
|
-
this.Gender = null;
|
|
1424
|
-
|
|
1425
|
-
}
|
|
1426
|
-
|
|
1427
|
-
/**
|
|
1428
|
-
* @private
|
|
1429
|
-
*/
|
|
1430
|
-
deserialize(params) {
|
|
1431
|
-
if (!params) {
|
|
1432
|
-
return;
|
|
1433
|
-
}
|
|
1434
|
-
this.PersonId = 'PersonId' in params ? params.PersonId : null;
|
|
1435
|
-
this.PersonName = 'PersonName' in params ? params.PersonName : null;
|
|
1436
|
-
this.Gender = 'Gender' in params ? params.Gender : null;
|
|
1437
|
-
|
|
1438
|
-
}
|
|
1439
|
-
}
|
|
1440
|
-
|
|
1441
1421
|
/**
|
|
1442
1422
|
* DetectFaceAttributes response structure.
|
|
1443
1423
|
* @class
|
|
@@ -1604,58 +1584,40 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1604
1584
|
}
|
|
1605
1585
|
|
|
1606
1586
|
/**
|
|
1607
|
-
*
|
|
1587
|
+
* DetectLiveFaceAccurate request structure.
|
|
1608
1588
|
* @class
|
|
1609
1589
|
*/
|
|
1610
|
-
class
|
|
1590
|
+
class DetectLiveFaceAccurateRequest extends AbstractModel {
|
|
1611
1591
|
constructor(){
|
|
1612
1592
|
super();
|
|
1613
1593
|
|
|
1614
1594
|
/**
|
|
1615
|
-
*
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
/**
|
|
1621
|
-
* Base64-encoded data of the image.
|
|
1622
|
-
The long side cannot exceed 4,000 px for images in JPG format or 2,000 px for images in other formats.
|
|
1623
|
-
If there are multiple faces in the image, only the face with the largest size will be selected.
|
|
1624
|
-
PNG, JPG, JPEG, and BMP images are supported, while GIF images are not.
|
|
1595
|
+
* Base64-encoded image data, which cannot exceed 5 MB.
|
|
1596
|
+
The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats.
|
|
1597
|
+
The recommended image aspect ratio is 3:4 (generally, the aspect ratio of images taken by mobile phones).
|
|
1598
|
+
The face must be greater than 100*100 px in size.
|
|
1599
|
+
Supported image formats are PNG, JPG, JPEG, and BMP. GIF is currently not supported.
|
|
1625
1600
|
* @type {string || null}
|
|
1626
1601
|
*/
|
|
1627
1602
|
this.Image = null;
|
|
1628
1603
|
|
|
1629
1604
|
/**
|
|
1630
|
-
* Image URL
|
|
1631
|
-
The long side cannot exceed 4,000 px for images in
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
The
|
|
1635
|
-
|
|
1636
|
-
PNG, JPG, JPEG, and BMP
|
|
1605
|
+
* Image URL. The image cannot exceed 5 MB in size after being Base64-encoded.
|
|
1606
|
+
The long side cannot exceed 4,000 px for images in .jpg format or 2,000 px for images in other formats.
|
|
1607
|
+
Either `Url` or `Image` must be provided; if both are provided, only `Url` will be used.
|
|
1608
|
+
The recommended image aspect ratio is 3:4 (generally, the aspect ratio of images taken by mobile phones).
|
|
1609
|
+
The face must be greater than 100*100 px in size.
|
|
1610
|
+
We recommend you store the image in Tencent Cloud, as a Tencent Cloud URL can guarantee higher download speed and stability. The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
1611
|
+
Supported image formats are PNG, JPG, JPEG, and BMP. GIF is currently not supported.
|
|
1637
1612
|
* @type {string || null}
|
|
1638
1613
|
*/
|
|
1639
1614
|
this.Url = null;
|
|
1640
1615
|
|
|
1641
1616
|
/**
|
|
1642
|
-
*
|
|
1643
|
-
|
|
1644
|
-
1: low quality requirement. The image has one or more of the following problems: extreme blurriness, covered eyes, covered nose, and covered mouth.
|
|
1645
|
-
2: average quality requirement. The image has at least three of the following problems: excessive brightness, excessive dimness, blurriness or average blurriness, covered eyebrows, covered cheeks, and covered chin.
|
|
1646
|
-
3: high-quality requirement. The image has one to two of the following problems: excessive brightness, excessive dimness, average blurriness, covered eyebrows, covered cheeks, and covered chin.
|
|
1647
|
-
4: very high-quality requirement. The image is optimal in all dimensions or only has a slight problem in one dimension.
|
|
1648
|
-
Default value: 0.
|
|
1649
|
-
If the image quality does not meet the requirement, the returned result will prompt that the detected image quality is unsatisfactory.
|
|
1650
|
-
* @type {number || null}
|
|
1651
|
-
*/
|
|
1652
|
-
this.QualityControl = null;
|
|
1653
|
-
|
|
1654
|
-
/**
|
|
1655
|
-
* Whether to enable the support for rotated image recognition. 0: no; 1: yes. Default value: 0. When the face in the image is rotated and the image has no EXIF information, if this parameter is not enabled, the face in the image cannot be correctly detected and recognized. If you are sure that the input image contains EXIF information or the face in the image will not be rotated, do not enable this parameter, as the overall time consumption may increase by hundreds of milliseconds after it is enabled.
|
|
1656
|
-
* @type {number || null}
|
|
1617
|
+
* Algorithm model version used for face recognition. Valid value: `3.0`.
|
|
1618
|
+
* @type {string || null}
|
|
1657
1619
|
*/
|
|
1658
|
-
this.
|
|
1620
|
+
this.FaceModelVersion = null;
|
|
1659
1621
|
|
|
1660
1622
|
}
|
|
1661
1623
|
|
|
@@ -1666,11 +1628,9 @@ If the image quality does not meet the requirement, the returned result will pro
|
|
|
1666
1628
|
if (!params) {
|
|
1667
1629
|
return;
|
|
1668
1630
|
}
|
|
1669
|
-
this.PersonId = 'PersonId' in params ? params.PersonId : null;
|
|
1670
1631
|
this.Image = 'Image' in params ? params.Image : null;
|
|
1671
1632
|
this.Url = 'Url' in params ? params.Url : null;
|
|
1672
|
-
this.
|
|
1673
|
-
this.NeedRotateDetection = 'NeedRotateDetection' in params ? params.NeedRotateDetection : null;
|
|
1633
|
+
this.FaceModelVersion = 'FaceModelVersion' in params ? params.FaceModelVersion : null;
|
|
1674
1634
|
|
|
1675
1635
|
}
|
|
1676
1636
|
}
|
|
@@ -1834,13 +1794,13 @@ The 0.1%, 0.01%, and 0.001% FARs on v2.0 correspond to scores of 70, 80, and 90,
|
|
|
1834
1794
|
this.Score = null;
|
|
1835
1795
|
|
|
1836
1796
|
/**
|
|
1837
|
-
* Whether the person in the image
|
|
1797
|
+
* Whether the person is the one in the image. The fixed threshold score is 60. If you want to adjust the threshold more flexibly, you can take the returned `Score` parameter value for judgment.
|
|
1838
1798
|
* @type {boolean || null}
|
|
1839
1799
|
*/
|
|
1840
1800
|
this.IsMatch = null;
|
|
1841
1801
|
|
|
1842
1802
|
/**
|
|
1843
|
-
* Algorithm model version used for face recognition in the group where the `Person` is, which is set when the group is created.
|
|
1803
|
+
* Algorithm model version used for face recognition in the group where the `Person` is, which is set when the group is created.
|
|
1844
1804
|
* @type {string || null}
|
|
1845
1805
|
*/
|
|
1846
1806
|
this.FaceModelVersion = null;
|
|
@@ -2195,56 +2155,6 @@ class PersonGroupInfo extends AbstractModel {
|
|
|
2195
2155
|
}
|
|
2196
2156
|
}
|
|
2197
2157
|
|
|
2198
|
-
/**
|
|
2199
|
-
* ModifyPersonGroupInfo request structure.
|
|
2200
|
-
* @class
|
|
2201
|
-
*/
|
|
2202
|
-
class ModifyPersonGroupInfoRequest extends AbstractModel {
|
|
2203
|
-
constructor(){
|
|
2204
|
-
super();
|
|
2205
|
-
|
|
2206
|
-
/**
|
|
2207
|
-
* Group ID, which is the `GroupId` in the `CreateGroup` API.
|
|
2208
|
-
* @type {string || null}
|
|
2209
|
-
*/
|
|
2210
|
-
this.GroupId = null;
|
|
2211
|
-
|
|
2212
|
-
/**
|
|
2213
|
-
* Person ID, which is the `PersonId` in the `CreatePerson` API.
|
|
2214
|
-
* @type {string || null}
|
|
2215
|
-
*/
|
|
2216
|
-
this.PersonId = null;
|
|
2217
|
-
|
|
2218
|
-
/**
|
|
2219
|
-
* Custom description field of the person to be modified, which is a `key-value` pair.
|
|
2220
|
-
* @type {Array.<PersonExDescriptionInfo> || null}
|
|
2221
|
-
*/
|
|
2222
|
-
this.PersonExDescriptionInfos = null;
|
|
2223
|
-
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
/**
|
|
2227
|
-
* @private
|
|
2228
|
-
*/
|
|
2229
|
-
deserialize(params) {
|
|
2230
|
-
if (!params) {
|
|
2231
|
-
return;
|
|
2232
|
-
}
|
|
2233
|
-
this.GroupId = 'GroupId' in params ? params.GroupId : null;
|
|
2234
|
-
this.PersonId = 'PersonId' in params ? params.PersonId : null;
|
|
2235
|
-
|
|
2236
|
-
if (params.PersonExDescriptionInfos) {
|
|
2237
|
-
this.PersonExDescriptionInfos = new Array();
|
|
2238
|
-
for (let z in params.PersonExDescriptionInfos) {
|
|
2239
|
-
let obj = new PersonExDescriptionInfo();
|
|
2240
|
-
obj.deserialize(params.PersonExDescriptionInfos[z]);
|
|
2241
|
-
this.PersonExDescriptionInfos.push(obj);
|
|
2242
|
-
}
|
|
2243
|
-
}
|
|
2244
|
-
|
|
2245
|
-
}
|
|
2246
|
-
}
|
|
2247
|
-
|
|
2248
2158
|
/**
|
|
2249
2159
|
* GetPersonGroupInfo request structure.
|
|
2250
2160
|
* @class
|
|
@@ -2667,7 +2577,7 @@ For example, if the input image in `Image` or `Url` contains multiple faces and
|
|
|
2667
2577
|
|
|
2668
2578
|
/**
|
|
2669
2579
|
* Detected faces, which is corresponding to the maximum number of returned most matching persons. Default value: 5. Maximum value: 10.
|
|
2670
|
-
For example, if `MaxFaceNum` is 3 and `
|
|
2580
|
+
For example, if `MaxFaceNum` is 3, `MaxPersonNumPerGroup` is 5, and the `GroupIds` length is 3, up to 45 (3 * 5 * 3) persons will be returned.
|
|
2671
2581
|
* @type {number || null}
|
|
2672
2582
|
*/
|
|
2673
2583
|
this.MaxPersonNumPerGroup = null;
|
|
@@ -3460,7 +3370,7 @@ class VerifyPersonResponse extends AbstractModel {
|
|
|
3460
3370
|
this.IsMatch = null;
|
|
3461
3371
|
|
|
3462
3372
|
/**
|
|
3463
|
-
* Algorithm model version used for face recognition in the group where the `Person` is, which is set when the group is created.
|
|
3373
|
+
* Algorithm model version used for face recognition in the group where the `Person` is, which is set when the group is created.
|
|
3464
3374
|
* @type {string || null}
|
|
3465
3375
|
*/
|
|
3466
3376
|
this.FaceModelVersion = null;
|
|
@@ -3674,6 +3584,120 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
3674
3584
|
}
|
|
3675
3585
|
}
|
|
3676
3586
|
|
|
3587
|
+
/**
|
|
3588
|
+
* VerifyPerson request structure.
|
|
3589
|
+
* @class
|
|
3590
|
+
*/
|
|
3591
|
+
class VerifyPersonRequest extends AbstractModel {
|
|
3592
|
+
constructor(){
|
|
3593
|
+
super();
|
|
3594
|
+
|
|
3595
|
+
/**
|
|
3596
|
+
* ID of the person to be verified. For more information on `PersonId`, please see the group management APIs.
|
|
3597
|
+
* @type {string || null}
|
|
3598
|
+
*/
|
|
3599
|
+
this.PersonId = null;
|
|
3600
|
+
|
|
3601
|
+
/**
|
|
3602
|
+
* Base64-encoded data of the image.
|
|
3603
|
+
The long side cannot exceed 4,000 px for images in JPG format or 2,000 px for images in other formats.
|
|
3604
|
+
If there are multiple faces in the image, only the face with the largest size will be selected.
|
|
3605
|
+
PNG, JPG, JPEG, and BMP images are supported, while GIF images are not.
|
|
3606
|
+
* @type {string || null}
|
|
3607
|
+
*/
|
|
3608
|
+
this.Image = null;
|
|
3609
|
+
|
|
3610
|
+
/**
|
|
3611
|
+
* Image URL
|
|
3612
|
+
The long side cannot exceed 4,000 px for images in JPG format or 2,000 px for images in other formats.
|
|
3613
|
+
Either `Url` or `Image` must be provided; if both are provided, only `Url` will be used.
|
|
3614
|
+
We recommend storing the image in Tencent Cloud, as a Tencent Cloud URL can guarantee higher download speed and stability.
|
|
3615
|
+
The download speed and stability of non-Tencent Cloud URLs may be low.
|
|
3616
|
+
If there are multiple faces in the image, only the face with the largest size will be selected.
|
|
3617
|
+
PNG, JPG, JPEG, and BMP images are supported, while GIF images are not.
|
|
3618
|
+
* @type {string || null}
|
|
3619
|
+
*/
|
|
3620
|
+
this.Url = null;
|
|
3621
|
+
|
|
3622
|
+
/**
|
|
3623
|
+
* Image quality control.
|
|
3624
|
+
0: no control.
|
|
3625
|
+
1: low quality requirement. The image has one or more of the following problems: extreme blurriness, covered eyes, covered nose, and covered mouth.
|
|
3626
|
+
2: average quality requirement. The image has at least three of the following problems: excessive brightness, excessive dimness, blurriness or average blurriness, covered eyebrows, covered cheeks, and covered chin.
|
|
3627
|
+
3: high-quality requirement. The image has one to two of the following problems: excessive brightness, excessive dimness, average blurriness, covered eyebrows, covered cheeks, and covered chin.
|
|
3628
|
+
4: very high-quality requirement. The image is optimal in all dimensions or only has a slight problem in one dimension.
|
|
3629
|
+
Default value: 0.
|
|
3630
|
+
If the image quality does not meet the requirement, the returned result will prompt that the detected image quality is unsatisfactory.
|
|
3631
|
+
* @type {number || null}
|
|
3632
|
+
*/
|
|
3633
|
+
this.QualityControl = null;
|
|
3634
|
+
|
|
3635
|
+
/**
|
|
3636
|
+
* Whether to enable the support for rotated image recognition. 0: no; 1: yes. Default value: 0. When the face in the image is rotated and the image has no EXIF information, if this parameter is not enabled, the face in the image cannot be correctly detected and recognized. If you are sure that the input image contains EXIF information or the face in the image will not be rotated, do not enable this parameter, as the overall time consumption may increase by hundreds of milliseconds after it is enabled.
|
|
3637
|
+
* @type {number || null}
|
|
3638
|
+
*/
|
|
3639
|
+
this.NeedRotateDetection = null;
|
|
3640
|
+
|
|
3641
|
+
}
|
|
3642
|
+
|
|
3643
|
+
/**
|
|
3644
|
+
* @private
|
|
3645
|
+
*/
|
|
3646
|
+
deserialize(params) {
|
|
3647
|
+
if (!params) {
|
|
3648
|
+
return;
|
|
3649
|
+
}
|
|
3650
|
+
this.PersonId = 'PersonId' in params ? params.PersonId : null;
|
|
3651
|
+
this.Image = 'Image' in params ? params.Image : null;
|
|
3652
|
+
this.Url = 'Url' in params ? params.Url : null;
|
|
3653
|
+
this.QualityControl = 'QualityControl' in params ? params.QualityControl : null;
|
|
3654
|
+
this.NeedRotateDetection = 'NeedRotateDetection' in params ? params.NeedRotateDetection : null;
|
|
3655
|
+
|
|
3656
|
+
}
|
|
3657
|
+
}
|
|
3658
|
+
|
|
3659
|
+
/**
|
|
3660
|
+
* DetectLiveFaceAccurate response structure.
|
|
3661
|
+
* @class
|
|
3662
|
+
*/
|
|
3663
|
+
class DetectLiveFaceAccurateResponse extends AbstractModel {
|
|
3664
|
+
constructor(){
|
|
3665
|
+
super();
|
|
3666
|
+
|
|
3667
|
+
/**
|
|
3668
|
+
* Liveness score. Value range: [0, 100]. You can set several thresholds such as 5, 10, 40, 70 and 90 to determine whether the image is photographed. We recommend you use the threshold of 40.
|
|
3669
|
+
* @type {number || null}
|
|
3670
|
+
*/
|
|
3671
|
+
this.Score = null;
|
|
3672
|
+
|
|
3673
|
+
/**
|
|
3674
|
+
* Algorithm model version used for face recognition.
|
|
3675
|
+
* @type {string || null}
|
|
3676
|
+
*/
|
|
3677
|
+
this.FaceModelVersion = null;
|
|
3678
|
+
|
|
3679
|
+
/**
|
|
3680
|
+
* The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
3681
|
+
* @type {string || null}
|
|
3682
|
+
*/
|
|
3683
|
+
this.RequestId = null;
|
|
3684
|
+
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
/**
|
|
3688
|
+
* @private
|
|
3689
|
+
*/
|
|
3690
|
+
deserialize(params) {
|
|
3691
|
+
if (!params) {
|
|
3692
|
+
return;
|
|
3693
|
+
}
|
|
3694
|
+
this.Score = 'Score' in params ? params.Score : null;
|
|
3695
|
+
this.FaceModelVersion = 'FaceModelVersion' in params ? params.FaceModelVersion : null;
|
|
3696
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
3697
|
+
|
|
3698
|
+
}
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3677
3701
|
/**
|
|
3678
3702
|
* AnalyzeFace request structure.
|
|
3679
3703
|
* @class
|
|
@@ -4925,7 +4949,7 @@ module.exports = {
|
|
|
4925
4949
|
SearchPersonsReturnsByGroupResponse: SearchPersonsReturnsByGroupResponse,
|
|
4926
4950
|
DeleteFaceRequest: DeleteFaceRequest,
|
|
4927
4951
|
HeadPose: HeadPose,
|
|
4928
|
-
|
|
4952
|
+
ModifyPersonGroupInfoRequest: ModifyPersonGroupInfoRequest,
|
|
4929
4953
|
GetGroupListResponse: GetGroupListResponse,
|
|
4930
4954
|
GroupInfo: GroupInfo,
|
|
4931
4955
|
GetPersonListResponse: GetPersonListResponse,
|
|
@@ -4938,11 +4962,10 @@ module.exports = {
|
|
|
4938
4962
|
GetGroupListRequest: GetGroupListRequest,
|
|
4939
4963
|
DeleteGroupRequest: DeleteGroupRequest,
|
|
4940
4964
|
CreateFaceResponse: CreateFaceResponse,
|
|
4941
|
-
ModifyPersonBaseInfoRequest: ModifyPersonBaseInfoRequest,
|
|
4942
4965
|
DetectFaceAttributesResponse: DetectFaceAttributesResponse,
|
|
4943
4966
|
GroupCandidate: GroupCandidate,
|
|
4944
4967
|
SearchPersonsResponse: SearchPersonsResponse,
|
|
4945
|
-
|
|
4968
|
+
DetectLiveFaceAccurateRequest: DetectLiveFaceAccurateRequest,
|
|
4946
4969
|
CompareFaceResponse: CompareFaceResponse,
|
|
4947
4970
|
PersonExDescriptionInfo: PersonExDescriptionInfo,
|
|
4948
4971
|
DetectLiveFaceRequest: DetectLiveFaceRequest,
|
|
@@ -4953,7 +4976,6 @@ module.exports = {
|
|
|
4953
4976
|
Mouth: Mouth,
|
|
4954
4977
|
CreateGroupRequest: CreateGroupRequest,
|
|
4955
4978
|
PersonGroupInfo: PersonGroupInfo,
|
|
4956
|
-
ModifyPersonGroupInfoRequest: ModifyPersonGroupInfoRequest,
|
|
4957
4979
|
GetPersonGroupInfoRequest: GetPersonGroupInfoRequest,
|
|
4958
4980
|
Result: Result,
|
|
4959
4981
|
SearchFacesReturnsByGroupResponse: SearchFacesReturnsByGroupResponse,
|
|
@@ -4976,6 +4998,8 @@ module.exports = {
|
|
|
4976
4998
|
GetGroupInfoRequest: GetGroupInfoRequest,
|
|
4977
4999
|
FaceDetailInfo: FaceDetailInfo,
|
|
4978
5000
|
FaceHairAttributesInfo: FaceHairAttributesInfo,
|
|
5001
|
+
VerifyPersonRequest: VerifyPersonRequest,
|
|
5002
|
+
DetectLiveFaceAccurateResponse: DetectLiveFaceAccurateResponse,
|
|
4979
5003
|
AnalyzeFaceRequest: AnalyzeFaceRequest,
|
|
4980
5004
|
Point: Point,
|
|
4981
5005
|
DetectFaceRequest: DetectFaceRequest,
|