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