tencentcloud-sdk-nodejs-iai 4.0.388 → 4.0.431
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/CHANGELOG.md +6462 -0
- package/README.md +3 -3
- package/SERVICE_CHANGELOG.md +4451 -124
- package/package.json +1 -1
- package/products.md +104 -100
- package/src/services/iai/index.ts +9 -6
- package/src/services/iai/v20180301/iai_client.ts +278 -373
- package/src/services/iai/v20180301/iai_models.ts +1628 -1533
- package/src/services/iai/v20180301/index.ts +3 -3
- package/src/services/iai/v20200303/iai_client.ts +293 -394
- package/src/services/iai/v20200303/iai_models.ts +1685 -1586
- package/src/services/iai/v20200303/index.ts +3 -3
- package/tencentcloud/services/iai/index.d.ts +4 -4
- package/tencentcloud/services/iai/index.js +2 -2
- package/tencentcloud/services/iai/v20180301/iai_client.d.ts +186 -186
- package/tencentcloud/services/iai/v20180301/iai_client.js +186 -186
- package/tencentcloud/services/iai/v20180301/iai_models.d.ts +1174 -1174
- package/tencentcloud/services/iai/v20180301/index.js +1 -1
- package/tencentcloud/services/iai/v20200303/iai_client.d.ts +189 -189
- package/tencentcloud/services/iai/v20200303/iai_client.js +189 -189
- package/tencentcloud/services/iai/v20200303/iai_models.d.ts +1270 -1270
- package/tencentcloud/services/iai/v20200303/index.js +1 -1
|
@@ -17,100 +17,101 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
20
|
+
Eye,
|
|
21
|
+
Candidate,
|
|
22
|
+
DetectFaceAttributesResponse,
|
|
23
|
+
SearchPersonsReturnsByGroupResponse,
|
|
24
|
+
PersonGroupInfo,
|
|
25
|
+
Hat,
|
|
26
|
+
CreatePersonRequest,
|
|
27
|
+
CreateFaceResponse,
|
|
28
|
+
FaceHairAttributesInfo,
|
|
29
|
+
CreateFaceRequest,
|
|
30
|
+
CreateGroupRequest,
|
|
31
|
+
GetPersonGroupInfoRequest,
|
|
32
|
+
FaceInfo,
|
|
33
|
+
Eyebrow,
|
|
34
|
+
AnalyzeDenseLandmarksRequest,
|
|
35
|
+
GetGroupListRequest,
|
|
36
|
+
GetUpgradeGroupFaceModelVersionJobListRequest,
|
|
37
|
+
GetUpgradeGroupFaceModelVersionResultResponse,
|
|
38
|
+
AnalyzeFaceRequest,
|
|
39
|
+
CreatePersonResponse,
|
|
40
|
+
SearchFacesResponse,
|
|
41
|
+
CopyPersonResponse,
|
|
42
|
+
GroupCandidate,
|
|
43
|
+
DeleteFaceResponse,
|
|
44
|
+
DeletePersonRequest,
|
|
45
|
+
DetectLiveFaceResponse,
|
|
46
|
+
DeleteFaceRequest,
|
|
47
|
+
ModifyGroupRequest,
|
|
48
|
+
DeleteGroupRequest,
|
|
49
|
+
UpgradeGroupFaceModelVersionRequest,
|
|
50
|
+
DetectLiveFaceRequest,
|
|
51
|
+
GetPersonBaseInfoResponse,
|
|
52
|
+
SearchPersonsResponse,
|
|
53
|
+
GetUpgradeGroupFaceModelVersionResultRequest,
|
|
54
|
+
GroupInfo,
|
|
55
|
+
FaceQualityInfo,
|
|
56
|
+
SearchFacesReturnsByGroupResponse,
|
|
57
|
+
CopyPersonRequest,
|
|
58
|
+
SearchPersonsReturnsByGroupRequest,
|
|
59
|
+
DeletePersonFromGroupResponse,
|
|
60
|
+
DenseFaceShape,
|
|
61
|
+
ResultsReturnsByGroup,
|
|
62
|
+
Point,
|
|
63
|
+
GetPersonListNumResponse,
|
|
64
|
+
DeletePersonFromGroupRequest,
|
|
65
|
+
VerifyFaceRequest,
|
|
66
|
+
GetPersonListResponse,
|
|
67
|
+
Hair,
|
|
68
|
+
Result,
|
|
69
|
+
GetPersonGroupInfoResponse,
|
|
70
|
+
UpgradeGroupFaceModelVersionResponse,
|
|
71
|
+
SearchFacesReturnsByGroupRequest,
|
|
72
|
+
AnalyzeDenseLandmarksResponse,
|
|
73
|
+
ModifyPersonBaseInfoResponse,
|
|
74
|
+
ModifyPersonGroupInfoRequest,
|
|
75
|
+
RevertGroupFaceModelVersionRequest,
|
|
76
|
+
FaceQualityCompleteness,
|
|
77
|
+
FaceAttributesInfo,
|
|
78
|
+
VerifyPersonRequest,
|
|
79
|
+
ModifyPersonBaseInfoRequest,
|
|
80
|
+
VerifyFaceResponse,
|
|
81
|
+
FaceDetailInfo,
|
|
82
|
+
SearchFacesRequest,
|
|
83
|
+
SearchPersonsRequest,
|
|
84
|
+
PersonInfo,
|
|
85
|
+
GroupExDescriptionInfo,
|
|
86
|
+
AnalyzeFaceResponse,
|
|
87
|
+
DetectFaceRequest,
|
|
88
|
+
GetPersonBaseInfoRequest,
|
|
89
|
+
DeletePersonResponse,
|
|
90
|
+
PersonExDescriptionInfo,
|
|
91
|
+
GetUpgradeGroupFaceModelVersionJobListResponse,
|
|
92
|
+
HeadPose,
|
|
93
|
+
GetGroupListResponse,
|
|
94
|
+
DetectFaceAttributesRequest,
|
|
95
|
+
GetGroupInfoResponse,
|
|
96
|
+
CompareFaceResponse,
|
|
97
|
+
Mouth,
|
|
98
|
+
RevertGroupFaceModelVersionResponse,
|
|
99
|
+
DeleteGroupResponse,
|
|
100
|
+
FaceShape,
|
|
101
|
+
CompareFaceRequest,
|
|
102
|
+
VerifyPersonResponse,
|
|
103
|
+
DetectFaceResponse,
|
|
104
|
+
GetPersonListNumRequest,
|
|
105
|
+
GetGroupInfoRequest,
|
|
106
|
+
UpgradeJobInfo,
|
|
107
|
+
ModifyGroupResponse,
|
|
108
|
+
GetPersonListRequest,
|
|
109
|
+
FaceDetailAttributesInfo,
|
|
110
|
+
AttributeItem,
|
|
111
|
+
FaceRect,
|
|
112
|
+
ModifyPersonGroupInfoResponse,
|
|
113
|
+
CreateGroupResponse,
|
|
114
|
+
|
|
114
115
|
} from "./iai_models"
|
|
115
116
|
|
|
116
117
|
/**
|
|
@@ -118,21 +119,19 @@ import {
|
|
|
118
119
|
* @class
|
|
119
120
|
*/
|
|
120
121
|
export class Client extends TencentCloudCommon.AbstractClient {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
req: DeletePersonFromGroupRequest,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
/**
|
|
122
|
+
|
|
123
|
+
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
124
|
+
super("iai.tencentcloudapi.com", "2018-03-01", clientConfig);
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* 从某人员库中删除人员,此操作仅影响该人员库。若该人员仅存在于指定的人员库中,该人员将被删除,其所有的人脸信息也将被删除。
|
|
129
|
+
*/
|
|
130
|
+
async DeletePersonFromGroup(req: DeletePersonFromGroupRequest, cb?: (error: string, rep: DeletePersonFromGroupResponse) => void): Promise<DeletePersonFromGroupResponse> {
|
|
131
|
+
return this.request("DeletePersonFromGroup", req, cb);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/**
|
|
136
135
|
* 用于对一张待识别的人脸图片,在一个或多个人员库中识别出最相似的 TopK 人员,按照**人员库的维度**以人员相似度从大到小顺序排列。
|
|
137
136
|
|
|
138
137
|
支持一次性识别图片中的最多 10 张人脸,支持跨人员库(Group)搜索。
|
|
@@ -148,14 +147,11 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
148
147
|
|
|
149
148
|
|
|
150
149
|
*/
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
): Promise<SearchFacesReturnsByGroupResponse> {
|
|
155
|
-
return this.request("SearchFacesReturnsByGroup", req, cb)
|
|
156
|
-
}
|
|
150
|
+
async SearchFacesReturnsByGroup(req: SearchFacesReturnsByGroupRequest, cb?: (error: string, rep: SearchFacesReturnsByGroupResponse) => void): Promise<SearchFacesReturnsByGroupResponse> {
|
|
151
|
+
return this.request("SearchFacesReturnsByGroup", req, cb);
|
|
152
|
+
}
|
|
157
153
|
|
|
158
|
-
|
|
154
|
+
/**
|
|
159
155
|
* 用于创建一个空的人员库,如果人员库已存在返回错误。
|
|
160
156
|
可根据需要创建自定义描述字段,用于辅助描述该人员库下的人员信息。
|
|
161
157
|
|
|
@@ -163,24 +159,18 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
163
159
|
|
|
164
160
|
不同算法模型版本(FaceModelVersion)的人员库(Group)最多可包含人脸(Face)数不同。算法模型版本为2.0的人员库最多包含100万张人脸,算法模型版本为3.0的人员库最多可包含300万张人脸。
|
|
165
161
|
*/
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
cb?: (error: string, rep: GetPersonBaseInfoResponse) => void
|
|
179
|
-
): Promise<GetPersonBaseInfoResponse> {
|
|
180
|
-
return this.request("GetPersonBaseInfo", req, cb)
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
/**
|
|
162
|
+
async CreateGroup(req: CreateGroupRequest, cb?: (error: string, rep: CreateGroupResponse) => void): Promise<CreateGroupResponse> {
|
|
163
|
+
return this.request("CreateGroup", req, cb);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* 获取指定人员的信息,包括姓名、性别、人脸等。
|
|
168
|
+
*/
|
|
169
|
+
async GetPersonBaseInfo(req: GetPersonBaseInfoRequest, cb?: (error: string, rep: GetPersonBaseInfoResponse) => void): Promise<GetPersonBaseInfoResponse> {
|
|
170
|
+
return this.request("GetPersonBaseInfo", req, cb);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
184
174
|
* 用于对用户上传的静态图片进行人脸活体检测。与动态活体检测的区别是:静态活体检测中,用户不需要通过唇语或摇头眨眼等动作来识别。
|
|
185
175
|
|
|
186
176
|
静态活体检测适用于手机自拍的场景,或对防攻击要求不高的场景。如果对活体检测有更高安全性要求,请使用[人脸核身·云智慧眼](https://cloud.tencent.com/product/faceid)产品。
|
|
@@ -204,81 +194,60 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
204
194
|
|-|-|-|-|
|
|
205
195
|
|人脸静态活体检测|0.0019元/次|0.0017元/次|0.0013元/次|
|
|
206
196
|
*/
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
): Promise<DetectLiveFaceResponse> {
|
|
211
|
-
return this.request("DetectLiveFace", req, cb)
|
|
212
|
-
}
|
|
197
|
+
async DetectLiveFace(req: DetectLiveFaceRequest, cb?: (error: string, rep: DetectLiveFaceResponse) => void): Promise<DetectLiveFaceResponse> {
|
|
198
|
+
return this.request("DetectLiveFace", req, cb);
|
|
199
|
+
}
|
|
213
200
|
|
|
214
|
-
|
|
201
|
+
/**
|
|
215
202
|
* 将一组人脸图片添加到一个人员中。一个人员最多允许包含 5 张图片。若该人员存在多个人员库中,所有人员库中该人员图片均会增加。
|
|
216
203
|
|
|
217
204
|
>
|
|
218
205
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
219
206
|
*/
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
): Promise<CreateFaceResponse> {
|
|
224
|
-
return this.request("CreateFace", req, cb)
|
|
225
|
-
}
|
|
207
|
+
async CreateFace(req: CreateFaceRequest, cb?: (error: string, rep: CreateFaceResponse) => void): Promise<CreateFaceResponse> {
|
|
208
|
+
return this.request("CreateFace", req, cb);
|
|
209
|
+
}
|
|
226
210
|
|
|
227
|
-
|
|
211
|
+
/**
|
|
228
212
|
* 删除该人员库及包含的所有的人员。同时,人员对应的所有人脸信息将被删除。若某人员同时存在多个人员库中,该人员不会被删除,但属于该人员库中的自定义描述字段信息会被删除,属于其他人员库的自定义描述字段信息不受影响。
|
|
229
213
|
|
|
230
214
|
*/
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
*/
|
|
251
|
-
async GetPersonGroupInfo(
|
|
252
|
-
req: GetPersonGroupInfoRequest,
|
|
253
|
-
cb?: (error: string, rep: GetPersonGroupInfoResponse) => void
|
|
254
|
-
): Promise<GetPersonGroupInfoResponse> {
|
|
255
|
-
return this.request("GetPersonGroupInfo", req, cb)
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
/**
|
|
215
|
+
async DeleteGroup(req: DeleteGroupRequest, cb?: (error: string, rep: DeleteGroupResponse) => void): Promise<DeleteGroupResponse> {
|
|
216
|
+
return this.request("DeleteGroup", req, cb);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* 获取指定人员库中人员数量。
|
|
221
|
+
*/
|
|
222
|
+
async GetPersonListNum(req: GetPersonListNumRequest, cb?: (error: string, rep: GetPersonListNumResponse) => void): Promise<GetPersonListNumResponse> {
|
|
223
|
+
return this.request("GetPersonListNum", req, cb);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* 获取指定人员的信息,包括加入的人员库、描述内容等。
|
|
228
|
+
*/
|
|
229
|
+
async GetPersonGroupInfo(req: GetPersonGroupInfoRequest, cb?: (error: string, rep: GetPersonGroupInfoResponse) => void): Promise<GetPersonGroupInfoResponse> {
|
|
230
|
+
return this.request("GetPersonGroupInfo", req, cb);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
259
234
|
* 对请求图片进行五官定位(也称人脸关键点定位),计算构成人脸轮廓的 90 个点,包括眉毛(左右各 8 点)、眼睛(左右各 8 点)、鼻子(13 点)、嘴巴(22 点)、脸型轮廓(21 点)、眼珠[或瞳孔](2点)。
|
|
260
235
|
|
|
261
236
|
>
|
|
262
237
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
263
238
|
*/
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
cb?: (error: string, rep: ModifyPersonBaseInfoResponse) => void
|
|
277
|
-
): Promise<ModifyPersonBaseInfoResponse> {
|
|
278
|
-
return this.request("ModifyPersonBaseInfo", req, cb)
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
239
|
+
async AnalyzeFace(req: AnalyzeFaceRequest, cb?: (error: string, rep: AnalyzeFaceResponse) => void): Promise<AnalyzeFaceResponse> {
|
|
240
|
+
return this.request("AnalyzeFace", req, cb);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* 修改人员信息,包括名称、性别等。人员名称和性别修改会同步到包含该人员的所有人员库。
|
|
245
|
+
*/
|
|
246
|
+
async ModifyPersonBaseInfo(req: ModifyPersonBaseInfoRequest, cb?: (error: string, rep: ModifyPersonBaseInfoResponse) => void): Promise<ModifyPersonBaseInfoResponse> {
|
|
247
|
+
return this.request("ModifyPersonBaseInfo", req, cb);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
/**
|
|
282
251
|
* 用于对一张待识别的人脸图片,在一个或多个人员库中识别出最相似的 TopK 人员,识别结果按照相似度从大到小排序。
|
|
283
252
|
|
|
284
253
|
支持一次性识别图片中的最多 10 张人脸,支持一次性跨 100 个人员库(Group)搜索。
|
|
@@ -293,26 +262,20 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
293
262
|
>
|
|
294
263
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
295
264
|
*/
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
): Promise<SearchFacesResponse> {
|
|
300
|
-
return this.request("SearchFaces", req, cb)
|
|
301
|
-
}
|
|
265
|
+
async SearchFaces(req: SearchFacesRequest, cb?: (error: string, rep: SearchFacesResponse) => void): Promise<SearchFacesResponse> {
|
|
266
|
+
return this.request("SearchFaces", req, cb);
|
|
267
|
+
}
|
|
302
268
|
|
|
303
|
-
|
|
269
|
+
/**
|
|
304
270
|
* 将已存在于某人员库的人员复制到其他人员库,该人员的描述信息不会被复制。单个人员最多只能同时存在100个人员库中。
|
|
305
271
|
>
|
|
306
272
|
- 注:若该人员创建时算法模型版本为2.0,复制到非2.0算法模型版本的Group中时,复制操作将会失败。
|
|
307
273
|
*/
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
): Promise<CopyPersonResponse> {
|
|
312
|
-
return this.request("CopyPerson", req, cb)
|
|
313
|
-
}
|
|
274
|
+
async CopyPerson(req: CopyPersonRequest, cb?: (error: string, rep: CopyPersonResponse) => void): Promise<CopyPersonResponse> {
|
|
275
|
+
return this.request("CopyPerson", req, cb);
|
|
276
|
+
}
|
|
314
277
|
|
|
315
|
-
|
|
278
|
+
/**
|
|
316
279
|
* 给定一张人脸图片和一个 PersonId,判断图片中的人和 PersonId 对应的人是否为同一人。PersonId 请参考[人员库管理相关接口](https://cloud.tencent.com/document/product/867/32794)。
|
|
317
280
|
|
|
318
281
|
与[人脸比对](https://cloud.tencent.com/document/product/867/32802)接口不同的是,人脸验证用于判断 “此人是否是此人”,“此人”的信息已存于人员库中,“此人”可能存在多张人脸图片;而[人脸比对](https://cloud.tencent.com/document/product/867/32802)用于判断两张人脸的相似度。
|
|
@@ -322,102 +285,75 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
322
285
|
>
|
|
323
286
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
324
287
|
*/
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
req:
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
* 修改人员库名称、备注、自定义描述字段名称。
|
|
354
|
-
*/
|
|
355
|
-
async ModifyGroup(
|
|
356
|
-
req: ModifyGroupRequest,
|
|
357
|
-
cb?: (error: string, rep: ModifyGroupResponse) => void
|
|
358
|
-
): Promise<ModifyGroupResponse> {
|
|
359
|
-
return this.request("ModifyGroup", req, cb)
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
/**
|
|
288
|
+
async VerifyFace(req: VerifyFaceRequest, cb?: (error: string, rep: VerifyFaceResponse) => void): Promise<VerifyFaceResponse> {
|
|
289
|
+
return this.request("VerifyFace", req, cb);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* 对请求图片进行五官定位(也称人脸关键点定位),获得人脸的精准信息,返回多达888点关键信息,对五官和脸部轮廓进行精确定位。
|
|
294
|
+
*/
|
|
295
|
+
async AnalyzeDenseLandmarks(req: AnalyzeDenseLandmarksRequest, cb?: (error: string, rep: AnalyzeDenseLandmarksResponse) => void): Promise<AnalyzeDenseLandmarksResponse> {
|
|
296
|
+
return this.request("AnalyzeDenseLandmarks", req, cb);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* 删除该人员信息,此操作会导致所有人员库均删除此人员。同时,该人员的所有人脸信息将被删除。
|
|
301
|
+
*/
|
|
302
|
+
async DeletePerson(req: DeletePersonRequest, cb?: (error: string, rep: DeletePersonResponse) => void): Promise<DeletePersonResponse> {
|
|
303
|
+
return this.request("DeletePerson", req, cb);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* 修改人员库名称、备注、自定义描述字段名称。
|
|
308
|
+
*/
|
|
309
|
+
async ModifyGroup(req: ModifyGroupRequest, cb?: (error: string, rep: ModifyGroupResponse) => void): Promise<ModifyGroupResponse> {
|
|
310
|
+
return this.request("ModifyGroup", req, cb);
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
/**
|
|
363
314
|
* 升级人员库。升级过程中,人员库仍然为原算法版本,人员库相关操作仍然支持。升级完成后,人员库为新算法版本。
|
|
364
315
|
单个人员库有且仅支持一次回滚操作。
|
|
365
316
|
注:此处QPS限制为10。
|
|
366
317
|
*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
): Promise<UpgradeGroupFaceModelVersionResponse> {
|
|
371
|
-
return this.request("UpgradeGroupFaceModelVersion", req, cb)
|
|
372
|
-
}
|
|
318
|
+
async UpgradeGroupFaceModelVersion(req: UpgradeGroupFaceModelVersionRequest, cb?: (error: string, rep: UpgradeGroupFaceModelVersionResponse) => void): Promise<UpgradeGroupFaceModelVersionResponse> {
|
|
319
|
+
return this.request("UpgradeGroupFaceModelVersion", req, cb);
|
|
320
|
+
}
|
|
373
321
|
|
|
374
|
-
|
|
322
|
+
/**
|
|
375
323
|
* 本接口用于回滚人员库的人脸识别算法模型版本。单个人员库有且仅有一次回滚机会。
|
|
376
324
|
|
|
377
325
|
回滚操作会在10s内生效,回滚操作中,您对人员库的操作可能会失效。
|
|
378
326
|
*/
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
): Promise<RevertGroupFaceModelVersionResponse> {
|
|
383
|
-
return this.request("RevertGroupFaceModelVersion", req, cb)
|
|
384
|
-
}
|
|
327
|
+
async RevertGroupFaceModelVersion(req: RevertGroupFaceModelVersionRequest, cb?: (error: string, rep: RevertGroupFaceModelVersionResponse) => void): Promise<RevertGroupFaceModelVersionResponse> {
|
|
328
|
+
return this.request("RevertGroupFaceModelVersion", req, cb);
|
|
329
|
+
}
|
|
385
330
|
|
|
386
|
-
|
|
331
|
+
/**
|
|
387
332
|
* 创建人员,添加人脸、姓名、性别及其他相关信息。
|
|
388
333
|
|
|
389
334
|
>
|
|
390
335
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
391
336
|
*/
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
): Promise<CreatePersonResponse> {
|
|
396
|
-
return this.request("CreatePerson", req, cb)
|
|
397
|
-
}
|
|
337
|
+
async CreatePerson(req: CreatePersonRequest, cb?: (error: string, rep: CreatePersonResponse) => void): Promise<CreatePersonResponse> {
|
|
338
|
+
return this.request("CreatePerson", req, cb);
|
|
339
|
+
}
|
|
398
340
|
|
|
399
|
-
|
|
341
|
+
/**
|
|
400
342
|
* 获取人员库升级任务列表
|
|
401
343
|
|
|
402
344
|
*/
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
cb?: (error: string, rep: GetGroupInfoResponse) => void
|
|
416
|
-
): Promise<GetGroupInfoResponse> {
|
|
417
|
-
return this.request("GetGroupInfo", req, cb)
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
/**
|
|
345
|
+
async GetUpgradeGroupFaceModelVersionJobList(req: GetUpgradeGroupFaceModelVersionJobListRequest, cb?: (error: string, rep: GetUpgradeGroupFaceModelVersionJobListResponse) => void): Promise<GetUpgradeGroupFaceModelVersionJobListResponse> {
|
|
346
|
+
return this.request("GetUpgradeGroupFaceModelVersionJobList", req, cb);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* 获取人员库信息。
|
|
351
|
+
*/
|
|
352
|
+
async GetGroupInfo(req: GetGroupInfoRequest, cb?: (error: string, rep: GetGroupInfoResponse) => void): Promise<GetGroupInfoResponse> {
|
|
353
|
+
return this.request("GetGroupInfo", req, cb);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
/**
|
|
421
357
|
* 检测给定图片中的人脸(Face)的位置、相应的面部属性和人脸质量信息,位置包括 (x,y,w,h),面部属性包括性别(gender)、年龄(age)、表情(expression)、魅力(beauty)、眼镜(glass)、发型(hair)、口罩(mask)和姿态 (pitch,roll,yaw),人脸质量信息包括整体质量分(score)、模糊分(sharpness)、光照分(brightness)和五官遮挡分(completeness)。
|
|
422
358
|
|
|
423
359
|
|
|
@@ -436,24 +372,18 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
436
372
|
|
|
437
373
|
|
|
438
374
|
*/
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
): Promise<DetectFaceResponse> {
|
|
443
|
-
return this.request("DetectFace", req, cb)
|
|
444
|
-
}
|
|
375
|
+
async DetectFace(req: DetectFaceRequest, cb?: (error: string, rep: DetectFaceResponse) => void): Promise<DetectFaceResponse> {
|
|
376
|
+
return this.request("DetectFace", req, cb);
|
|
377
|
+
}
|
|
445
378
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
): Promise<GetPersonListResponse> {
|
|
453
|
-
return this.request("GetPersonList", req, cb)
|
|
454
|
-
}
|
|
379
|
+
/**
|
|
380
|
+
* 获取指定人员库中的人员列表。
|
|
381
|
+
*/
|
|
382
|
+
async GetPersonList(req: GetPersonListRequest, cb?: (error: string, rep: GetPersonListResponse) => void): Promise<GetPersonListResponse> {
|
|
383
|
+
return this.request("GetPersonList", req, cb);
|
|
384
|
+
}
|
|
455
385
|
|
|
456
|
-
|
|
386
|
+
/**
|
|
457
387
|
* 给定一张人脸图片和一个 PersonId,判断图片中的人和 PersonId 对应的人是否为同一人。PersonId 请参考[人员库管理相关接口](https://cloud.tencent.com/document/product/867/32794)。
|
|
458
388
|
本接口会将该人员(Person)下的所有人脸(Face)进行融合特征处理,即若某个Person下有4张 Face,本接口会将4张 Face 的特征进行融合处理,生成对应这个 Person 的特征,使人员验证(确定待识别的人脸图片是某人员)更加准确。
|
|
459
389
|
|
|
@@ -464,14 +394,11 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
464
394
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
465
395
|
- 仅支持算法模型版本(FaceModelVersion)为3.0的人员库。
|
|
466
396
|
*/
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
): Promise<VerifyPersonResponse> {
|
|
471
|
-
return this.request("VerifyPerson", req, cb)
|
|
472
|
-
}
|
|
397
|
+
async VerifyPerson(req: VerifyPersonRequest, cb?: (error: string, rep: VerifyPersonResponse) => void): Promise<VerifyPersonResponse> {
|
|
398
|
+
return this.request("VerifyPerson", req, cb);
|
|
399
|
+
}
|
|
473
400
|
|
|
474
|
-
|
|
401
|
+
/**
|
|
475
402
|
* 检测给定图片中的人脸(Face)的位置、相应的面部属性和人脸质量信息,位置包括 (x,y,w,h),面部属性包括性别(gender)、年龄(age)、表情(expression)、魅力(beauty)、眼镜(glass)、发型(hair)、口罩(mask)和姿态 (pitch,roll,yaw),人脸质量信息包括整体质量分(score)、模糊分(sharpness)、光照分(brightness)和五官遮挡分(completeness)。
|
|
476
403
|
|
|
477
404
|
|
|
@@ -496,35 +423,26 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
496
423
|
|
|
497
424
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
498
425
|
*/
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
): Promise<DetectFaceAttributesResponse> {
|
|
503
|
-
return this.request("DetectFaceAttributes", req, cb)
|
|
504
|
-
}
|
|
426
|
+
async DetectFaceAttributes(req: DetectFaceAttributesRequest, cb?: (error: string, rep: DetectFaceAttributesResponse) => void): Promise<DetectFaceAttributesResponse> {
|
|
427
|
+
return this.request("DetectFaceAttributes", req, cb);
|
|
428
|
+
}
|
|
505
429
|
|
|
506
|
-
|
|
430
|
+
/**
|
|
507
431
|
* 人员库升级结果查询
|
|
508
432
|
|
|
509
433
|
*/
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
cb?: (error: string, rep: ModifyPersonGroupInfoResponse) => void
|
|
523
|
-
): Promise<ModifyPersonGroupInfoResponse> {
|
|
524
|
-
return this.request("ModifyPersonGroupInfo", req, cb)
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
/**
|
|
434
|
+
async GetUpgradeGroupFaceModelVersionResult(req: GetUpgradeGroupFaceModelVersionResultRequest, cb?: (error: string, rep: GetUpgradeGroupFaceModelVersionResultResponse) => void): Promise<GetUpgradeGroupFaceModelVersionResultResponse> {
|
|
435
|
+
return this.request("GetUpgradeGroupFaceModelVersionResult", req, cb);
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* 修改指定人员库人员描述内容。
|
|
440
|
+
*/
|
|
441
|
+
async ModifyPersonGroupInfo(req: ModifyPersonGroupInfoRequest, cb?: (error: string, rep: ModifyPersonGroupInfoResponse) => void): Promise<ModifyPersonGroupInfoResponse> {
|
|
442
|
+
return this.request("ModifyPersonGroupInfo", req, cb);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
/**
|
|
528
446
|
* 用于对一张待识别的人脸图片,在一个或多个人员库中识别出最相似的 TopK 人员,按照相似度从大到小排列。
|
|
529
447
|
|
|
530
448
|
支持一次性识别图片中的最多 10 张人脸,支持一次性跨 100 个人员库(Group)搜索。
|
|
@@ -537,14 +455,11 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
537
455
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
538
456
|
- 仅支持算法模型版本(FaceModelVersion)为3.0的人员库。
|
|
539
457
|
*/
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
): Promise<SearchPersonsResponse> {
|
|
544
|
-
return this.request("SearchPersons", req, cb)
|
|
545
|
-
}
|
|
458
|
+
async SearchPersons(req: SearchPersonsRequest, cb?: (error: string, rep: SearchPersonsResponse) => void): Promise<SearchPersonsResponse> {
|
|
459
|
+
return this.request("SearchPersons", req, cb);
|
|
460
|
+
}
|
|
546
461
|
|
|
547
|
-
|
|
462
|
+
/**
|
|
548
463
|
* 对两张图片中的人脸进行相似度比对,返回人脸相似度分数。
|
|
549
464
|
|
|
550
465
|
若您需要判断 “此人是否是某人”,即验证某张图片中的人是否是已知身份的某人,如常见的人脸登录场景,建议使用[人脸验证](https://cloud.tencent.com/document/product/867/32806)或[人员验证](https://cloud.tencent.com/document/product/867/38879)接口。
|
|
@@ -552,14 +467,11 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
552
467
|
>
|
|
553
468
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
554
469
|
*/
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
): Promise<CompareFaceResponse> {
|
|
559
|
-
return this.request("CompareFace", req, cb)
|
|
560
|
-
}
|
|
470
|
+
async CompareFace(req: CompareFaceRequest, cb?: (error: string, rep: CompareFaceResponse) => void): Promise<CompareFaceResponse> {
|
|
471
|
+
return this.request("CompareFace", req, cb);
|
|
472
|
+
}
|
|
561
473
|
|
|
562
|
-
|
|
474
|
+
/**
|
|
563
475
|
* 用于对一张待识别的人脸图片,在一个或多个人员库中识别出最相似的 TopK 人员,按照**人员库的维度**以人员相似度从大到小顺序排列。
|
|
564
476
|
|
|
565
477
|
支持一次性识别图片中的最多 10 张人脸,支持跨人员库(Group)搜索。
|
|
@@ -571,30 +483,23 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
571
483
|
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
|
572
484
|
- 仅支持算法模型版本(FaceModelVersion)为3.0的人员库。
|
|
573
485
|
*/
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
*/
|
|
594
|
-
async DeleteFace(
|
|
595
|
-
req: DeleteFaceRequest,
|
|
596
|
-
cb?: (error: string, rep: DeleteFaceResponse) => void
|
|
597
|
-
): Promise<DeleteFaceResponse> {
|
|
598
|
-
return this.request("DeleteFace", req, cb)
|
|
599
|
-
}
|
|
486
|
+
async SearchPersonsReturnsByGroup(req: SearchPersonsReturnsByGroupRequest, cb?: (error: string, rep: SearchPersonsReturnsByGroupResponse) => void): Promise<SearchPersonsReturnsByGroupResponse> {
|
|
487
|
+
return this.request("SearchPersonsReturnsByGroup", req, cb);
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* 获取人员库列表。
|
|
492
|
+
*/
|
|
493
|
+
async GetGroupList(req: GetGroupListRequest, cb?: (error: string, rep: GetGroupListResponse) => void): Promise<GetGroupListResponse> {
|
|
494
|
+
return this.request("GetGroupList", req, cb);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* 删除一个人员下的人脸图片。如果该人员只有一张人脸图片,则返回错误。
|
|
499
|
+
*/
|
|
500
|
+
async DeleteFace(req: DeleteFaceRequest, cb?: (error: string, rep: DeleteFaceResponse) => void): Promise<DeleteFaceResponse> {
|
|
501
|
+
return this.request("DeleteFace", req, cb);
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
|
|
600
505
|
}
|