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

Commit 94aa90d

Browse files
committed
new product
1 parent 8a1946a commit 94aa90d

File tree

18 files changed

+607
-0
lines changed

18 files changed

+607
-0
lines changed

facebody-2019-12-30/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
example
3+
.DS_Store
4+
coverage
5+
.nyc_output
6+
output

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

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
2+
'use strict';
3+
4+
const { RPCClient } = require('@alicloud/pop-core');
5+
6+
function hasOwnProperty(obj, key) {
7+
return Object.prototype.hasOwnProperty.call(obj, key);
8+
}
9+
10+
class Client extends RPCClient {
11+
constructor(config) {
12+
config.apiVersion = '2019-12-30';
13+
super(config);
14+
}
15+
16+
/**
17+
* @param {Integer} ImageType - imageType. required.
18+
* @param {String} ImageURLA - imageUrlA. optional.
19+
* @param {String} ImageContentA - imageContentA. optional.
20+
* @param {String} ImageURLB - imageUrlB. optional.
21+
* @param {String} ImageContentB - imageContentB. optional.
22+
* @param {Integer} Mode - mode. required.
23+
*/
24+
compareFace(params = {}, options = {}) {
25+
if (!hasOwnProperty(params, 'ImageType')) {
26+
throw new TypeError('parameter "ImageType" is required');
27+
}
28+
29+
if (!hasOwnProperty(params, 'Mode')) {
30+
throw new TypeError('parameter "Mode" is required');
31+
}
32+
33+
options.method = 'POST';
34+
return this.request('CompareFace', params, options);
35+
}
36+
37+
/**
38+
* @param {Integer} ImageType - imageType. required.
39+
* @param {String} ImageURL - imageUrl. optional.
40+
* @param {String} ImageContent - imageContent. optional.
41+
*/
42+
detectFace(params = {}, options = {}) {
43+
if (!hasOwnProperty(params, 'ImageType')) {
44+
throw new TypeError('parameter "ImageType" is required');
45+
}
46+
47+
options.method = 'POST';
48+
return this.request('DetectFace', params, options);
49+
}
50+
51+
/**
52+
* @param {Integer} ImageType - imageType. required.
53+
* @param {String} ImageURL - imageUrl. optional.
54+
* @param {String} ImageContent - imageContent. optional.
55+
* @param {Integer} Mode - mode. required.
56+
*/
57+
recognizeFace(params = {}, options = {}) {
58+
if (!hasOwnProperty(params, 'ImageType')) {
59+
throw new TypeError('parameter "ImageType" is required');
60+
}
61+
62+
if (!hasOwnProperty(params, 'Mode')) {
63+
throw new TypeError('parameter "Mode" is required');
64+
}
65+
66+
options.method = 'POST';
67+
return this.request('RecognizeFace', params, options);
68+
}
69+
70+
}
71+
72+
module.exports = Client;

facebody-2019-12-30/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@alicloud/facebody-2019-12-30",
3+
"version": "1.0.0",
4+
"description": "facebody 2019-12-30 Node.js SDK",
5+
"main": "lib/client.js",
6+
"scripts": {},
7+
"author": "Jackson Tian",
8+
"license": "MIT",
9+
"dependencies": {
10+
"@alicloud/pop-core": "^1.7.1"
11+
}
12+
}

goodstech-2019-12-30/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
example
3+
.DS_Store
4+
coverage
5+
.nyc_output
6+
output

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
2+
'use strict';
3+
4+
const { RPCClient } = require('@alicloud/pop-core');
5+
6+
function hasOwnProperty(obj, key) {
7+
return Object.prototype.hasOwnProperty.call(obj, key);
8+
}
9+
10+
class Client extends RPCClient {
11+
constructor(config) {
12+
config.apiVersion = '2019-12-30';
13+
super(config);
14+
}
15+
16+
/**
17+
* @param {String} ImageURL - imageUrl. required.
18+
*/
19+
classifyCommodity(params = {}, options = {}) {
20+
if (!hasOwnProperty(params, 'ImageURL')) {
21+
throw new TypeError('parameter "ImageURL" is required');
22+
}
23+
24+
return this.request('ClassifyCommodity', params, options);
25+
}
26+
27+
}
28+
29+
module.exports = Client;

goodstech-2019-12-30/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@alicloud/goodstech-2019-12-30",
3+
"version": "1.0.0",
4+
"description": "goodstech 2019-12-30 Node.js SDK",
5+
"main": "lib/client.js",
6+
"scripts": {},
7+
"author": "Jackson Tian",
8+
"license": "MIT",
9+
"dependencies": {
10+
"@alicloud/pop-core": "^1.7.1"
11+
}
12+
}

imageaudit-2019-12-30/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
example
3+
.DS_Store
4+
coverage
5+
.nyc_output
6+
output

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

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
2+
'use strict';
3+
4+
const { RPCClient } = require('@alicloud/pop-core');
5+
6+
function hasOwnProperty(obj, key) {
7+
return Object.prototype.hasOwnProperty.call(obj, key);
8+
}
9+
10+
class Client extends RPCClient {
11+
constructor(config) {
12+
config.apiVersion = '2019-12-30';
13+
super(config);
14+
}
15+
16+
/**
17+
* @param {RepeatList} Task - tasks. required.
18+
* @param {RepeatList} Scene - scenes. required.
19+
*/
20+
scanImage(params = {}, options = {}) {
21+
if (!hasOwnProperty(params, 'Task')) {
22+
throw new TypeError('parameter "Task" is required');
23+
}
24+
25+
if (!hasOwnProperty(params, 'Scene')) {
26+
throw new TypeError('parameter "Scene" is required');
27+
}
28+
29+
options.method = 'POST';
30+
return this.request('ScanImage', params, options);
31+
}
32+
33+
}
34+
35+
module.exports = Client;

imageaudit-2019-12-30/package.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"name": "@alicloud/imageaudit-2019-12-30",
3+
"version": "1.0.0",
4+
"description": "imageaudit 2019-12-30 Node.js SDK",
5+
"main": "lib/client.js",
6+
"scripts": {},
7+
"author": "Jackson Tian",
8+
"license": "MIT",
9+
"dependencies": {
10+
"@alicloud/pop-core": "^1.7.1"
11+
}
12+
}

imageseg-2019-12-30/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
example
3+
.DS_Store
4+
coverage
5+
.nyc_output
6+
output

0 commit comments

Comments
 (0)