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

Commit 2003ca4

Browse files
wenzuochaopeze
authored andcommitted
update facebody
1 parent 533a3d1 commit 2003ca4

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ class Client extends RPCClient {
4444
return this.request('DetectFace', params, options);
4545
}
4646

47+
/**
48+
* @param {String} ImageURL - imageUrl. required.
49+
*/
50+
detectMask(params = {}, options = {}) {
51+
if (!hasOwnProperty(params, 'ImageURL')) {
52+
throw new TypeError('parameter "ImageURL" is required');
53+
}
54+
55+
return this.request('DetectMask', params, options);
56+
}
57+
4758
/**
4859
* @param {Integer} ImageType - imageType. optional. default: 0.
4960
* @param {String} ImageURL - imageUrl. required.

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.2.0",
3+
"version": "1.3.0",
44
"description": "facebody 2019-12-30 Node.js SDK",
55
"main": "lib/client.js",
66
"scripts": {},

0 commit comments

Comments
 (0)