Skip to content
This repository was archived by the owner on Jul 8, 2024. It is now read-only.

Commit 52a27a7

Browse files
yuanyaoqipeze
authored andcommitted
update product
1 parent 24b21ed commit 52a27a7

File tree

26 files changed

+989
-7
lines changed

26 files changed

+989
-7
lines changed

facebody-2019-12-30/lib/client.js

Lines changed: 261 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,45 @@ class Client extends RPCClient {
1313
super(config);
1414
}
1515

16+
/**
17+
* @param {String} DbName - dbName. required.
18+
* @param {String} FaceId - faceId. required.
19+
* @param {String} ImageUrl - imageUrl. required.
20+
* @param {String} EntityId - entityId. required.
21+
* @param {String} ExtraData - extraData. optional.
22+
*/
23+
addFace(params = {}, options = {}) {
24+
if (!hasOwnProperty(params, 'DbName')) {
25+
throw new TypeError('parameter "DbName" is required');
26+
}
27+
28+
if (!hasOwnProperty(params, 'FaceId')) {
29+
throw new TypeError('parameter "FaceId" is required');
30+
}
31+
32+
if (!hasOwnProperty(params, 'ImageUrl')) {
33+
throw new TypeError('parameter "ImageUrl" is required');
34+
}
35+
36+
if (!hasOwnProperty(params, 'EntityId')) {
37+
throw new TypeError('parameter "EntityId" is required');
38+
}
39+
40+
return this.request('AddFace', params, options);
41+
}
42+
43+
/**
44+
* @param {String} ImageURL - imageUrl. required.
45+
*/
46+
bodyPosture(params = {}, options = {}) {
47+
if (!hasOwnProperty(params, 'ImageURL')) {
48+
throw new TypeError('parameter "ImageURL" is required');
49+
}
50+
51+
options.method = 'POST';
52+
return this.request('BodyPosture', params, options);
53+
}
54+
1655
/**
1756
* @param {Integer} ImageType - imageType. optional. default: 0.
1857
* @param {String} ImageURLA - imageUrlA. required.
@@ -31,6 +70,44 @@ class Client extends RPCClient {
3170
return this.request('CompareFace', params, options);
3271
}
3372

73+
/**
74+
* @param {String} Name - name. required.
75+
*/
76+
createFaceDb(params = {}, options = {}) {
77+
if (!hasOwnProperty(params, 'Name')) {
78+
throw new TypeError('parameter "Name" is required');
79+
}
80+
81+
return this.request('CreateFaceDb', params, options);
82+
}
83+
84+
/**
85+
* @param {String} DbName - dbName. required.
86+
* @param {String} FaceId - faceId. required.
87+
*/
88+
deleteFace(params = {}, options = {}) {
89+
if (!hasOwnProperty(params, 'DbName')) {
90+
throw new TypeError('parameter "DbName" is required');
91+
}
92+
93+
if (!hasOwnProperty(params, 'FaceId')) {
94+
throw new TypeError('parameter "FaceId" is required');
95+
}
96+
97+
return this.request('DeleteFace', params, options);
98+
}
99+
100+
/**
101+
* @param {String} Name - name. required.
102+
*/
103+
deleteFaceDb(params = {}, options = {}) {
104+
if (!hasOwnProperty(params, 'Name')) {
105+
throw new TypeError('parameter "Name" is required');
106+
}
107+
108+
return this.request('DeleteFaceDb', params, options);
109+
}
110+
34111
/**
35112
* @param {String} ImageURL - imageUrl. required.
36113
*/
@@ -80,6 +157,169 @@ class Client extends RPCClient {
80157
return this.request('DetectMask', params, options);
81158
}
82159

160+
/**
161+
* @param {String} ImageURL - imageUrl. required.
162+
*/
163+
detectPedestrian(params = {}, options = {}) {
164+
if (!hasOwnProperty(params, 'ImageURL')) {
165+
throw new TypeError('parameter "ImageURL" is required');
166+
}
167+
168+
options.method = 'POST';
169+
return this.request('DetectPedestrian', params, options);
170+
}
171+
172+
/**
173+
* @param {String} ImageURL - imageUrl. required.
174+
*/
175+
enhanceFace(params = {}, options = {}) {
176+
if (!hasOwnProperty(params, 'ImageURL')) {
177+
throw new TypeError('parameter "ImageURL" is required');
178+
}
179+
180+
options.method = 'POST';
181+
return this.request('EnhanceFace', params, options);
182+
}
183+
184+
/**
185+
* @param {String} ImageUrl - imageUrl. required.
186+
*/
187+
extractFaceFeature(params = {}, options = {}) {
188+
if (!hasOwnProperty(params, 'ImageUrl')) {
189+
throw new TypeError('parameter "ImageUrl" is required');
190+
}
191+
192+
return this.request('ExtractFaceFeature', params, options);
193+
}
194+
195+
/**
196+
* @param {String} ImageURL - imageUrl. required.
197+
* @param {Float} Sharp - sharp. required.
198+
* @param {Float} Smooth - smooth. required.
199+
* @param {Float} White - white. required.
200+
*/
201+
faceBeauty(params = {}, options = {}) {
202+
if (!hasOwnProperty(params, 'ImageURL')) {
203+
throw new TypeError('parameter "ImageURL" is required');
204+
}
205+
206+
if (!hasOwnProperty(params, 'Sharp')) {
207+
throw new TypeError('parameter "Sharp" is required');
208+
}
209+
210+
if (!hasOwnProperty(params, 'Smooth')) {
211+
throw new TypeError('parameter "Smooth" is required');
212+
}
213+
214+
if (!hasOwnProperty(params, 'White')) {
215+
throw new TypeError('parameter "White" is required');
216+
}
217+
218+
options.method = 'POST';
219+
return this.request('FaceBeauty', params, options);
220+
}
221+
222+
/**
223+
* @param {String} ImageURL - imageUrl. required.
224+
* @param {String} ResourceType - resourceType. required.
225+
* @param {Float} Strength - strength. required.
226+
*/
227+
faceFilter(params = {}, options = {}) {
228+
if (!hasOwnProperty(params, 'ImageURL')) {
229+
throw new TypeError('parameter "ImageURL" is required');
230+
}
231+
232+
if (!hasOwnProperty(params, 'ResourceType')) {
233+
throw new TypeError('parameter "ResourceType" is required');
234+
}
235+
236+
if (!hasOwnProperty(params, 'Strength')) {
237+
throw new TypeError('parameter "Strength" is required');
238+
}
239+
240+
options.method = 'POST';
241+
return this.request('FaceFilter', params, options);
242+
}
243+
244+
/**
245+
* @param {String} ImageURL - imageUrl. required.
246+
* @param {String} MakeupType - makeupType. required.
247+
* @param {String} ResourceType - resourceType. required.
248+
* @param {Float} Strength - strength. required.
249+
*/
250+
faceMakeup(params = {}, options = {}) {
251+
if (!hasOwnProperty(params, 'ImageURL')) {
252+
throw new TypeError('parameter "ImageURL" is required');
253+
}
254+
255+
if (!hasOwnProperty(params, 'MakeupType')) {
256+
throw new TypeError('parameter "MakeupType" is required');
257+
}
258+
259+
if (!hasOwnProperty(params, 'ResourceType')) {
260+
throw new TypeError('parameter "ResourceType" is required');
261+
}
262+
263+
if (!hasOwnProperty(params, 'Strength')) {
264+
throw new TypeError('parameter "Strength" is required');
265+
}
266+
267+
options.method = 'POST';
268+
return this.request('FaceMakeup', params, options);
269+
}
270+
271+
/**
272+
* @param {String} ImageURL - imageUrl. required.
273+
* @param {Integer} ShapeType - shapeType. required.
274+
* @param {Float} Strength - strength. required.
275+
*/
276+
faceTidyup(params = {}, options = {}) {
277+
if (!hasOwnProperty(params, 'ImageURL')) {
278+
throw new TypeError('parameter "ImageURL" is required');
279+
}
280+
281+
if (!hasOwnProperty(params, 'ShapeType')) {
282+
throw new TypeError('parameter "ShapeType" is required');
283+
}
284+
285+
if (!hasOwnProperty(params, 'Strength')) {
286+
throw new TypeError('parameter "Strength" is required');
287+
}
288+
289+
options.method = 'POST';
290+
return this.request('FaceTidyup', params, options);
291+
}
292+
293+
/**
294+
* @param {String} ImageURL - imageUrl. required.
295+
*/
296+
handPosture(params = {}, options = {}) {
297+
if (!hasOwnProperty(params, 'ImageURL')) {
298+
throw new TypeError('parameter "ImageURL" is required');
299+
}
300+
301+
options.method = 'POST';
302+
return this.request('HandPosture', params, options);
303+
}
304+
305+
/**
306+
*/
307+
listFaceDbs(params = {}, options = {}) {
308+
return this.request('ListFaceDbs', params, options);
309+
}
310+
311+
/**
312+
* @param {String} DbName - dbName. required.
313+
* @param {String} FromScrollId - fromScrollId. optional.
314+
*/
315+
listFaces(params = {}, options = {}) {
316+
if (!hasOwnProperty(params, 'DbName')) {
317+
throw new TypeError('parameter "DbName" is required');
318+
}
319+
320+
return this.request('ListFaces', params, options);
321+
}
322+
83323
/**
84324
* @param {String} ImageURL - imageUrl. required.
85325
*/
@@ -117,6 +357,27 @@ class Client extends RPCClient {
117357
return this.request('RecognizePublicFace', params, options);
118358
}
119359

360+
/**
361+
* @param {String} DbName - dbName. required.
362+
* @param {String} ImageUrl - imageUrl. required.
363+
* @param {Integer} Limit - limit. required.
364+
*/
365+
searchFace(params = {}, options = {}) {
366+
if (!hasOwnProperty(params, 'DbName')) {
367+
throw new TypeError('parameter "DbName" is required');
368+
}
369+
370+
if (!hasOwnProperty(params, 'ImageUrl')) {
371+
throw new TypeError('parameter "ImageUrl" is required');
372+
}
373+
374+
if (!hasOwnProperty(params, 'Limit')) {
375+
throw new TypeError('parameter "Limit" is required');
376+
}
377+
378+
return this.request('SearchFace', params, options);
379+
}
380+
120381
}
121382

122383
module.exports = Client;

facebody-2019-12-30/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/facebody-2019-12-30",
3-
"version": "1.3.1",
3+
"version": "1.3.2",
44
"description": "facebody 2019-12-30 Node.js SDK",
55
"main": "lib/client.js",
66
"scripts": {},

goodstech-2019-12-30/lib/client.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,45 @@ class Client extends RPCClient {
2424
return this.request('ClassifyCommodity', params, options);
2525
}
2626

27+
/**
28+
* @param {String} ImageURL - imageUrl. required.
29+
*/
30+
recognizeFurnitureAttribute(params = {}, options = {}) {
31+
if (!hasOwnProperty(params, 'ImageURL')) {
32+
throw new TypeError('parameter "ImageURL" is required');
33+
}
34+
35+
options.method = 'POST';
36+
return this.request('RecognizeFurnitureAttribute', params, options);
37+
}
38+
39+
/**
40+
* @param {String} ImageURL - imageUrl. required.
41+
* @param {Float} XLength - xLength. required.
42+
* @param {Float} YLength - yLength. required.
43+
* @param {Float} ZLength - zLength. required.
44+
*/
45+
recognizeFurnitureSpu(params = {}, options = {}) {
46+
if (!hasOwnProperty(params, 'ImageURL')) {
47+
throw new TypeError('parameter "ImageURL" is required');
48+
}
49+
50+
if (!hasOwnProperty(params, 'XLength')) {
51+
throw new TypeError('parameter "XLength" is required');
52+
}
53+
54+
if (!hasOwnProperty(params, 'YLength')) {
55+
throw new TypeError('parameter "YLength" is required');
56+
}
57+
58+
if (!hasOwnProperty(params, 'ZLength')) {
59+
throw new TypeError('parameter "ZLength" is required');
60+
}
61+
62+
options.method = 'POST';
63+
return this.request('RecognizeFurnitureSpu', params, options);
64+
}
65+
2766
}
2867

2968
module.exports = Client;

goodstech-2019-12-30/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/goodstech-2019-12-30",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "goodstech 2019-12-30 Node.js SDK",
55
"main": "lib/client.js",
66
"scripts": {},

0 commit comments

Comments
 (0)