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

Commit 9c795f9

Browse files
authored
Merge pull request #29 from wenzuochao/updateProduct
update Product
2 parents e49ea4c + acf1e7a commit 9c795f9

File tree

6 files changed

+36
-23
lines changed

6 files changed

+36
-23
lines changed

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,12 @@ class Client extends RPCClient {
1919
* @param {String} ImageContentA - imageContentA. optional.
2020
* @param {String} ImageURLB - imageUrlB. optional.
2121
* @param {String} ImageContentB - imageContentB. optional.
22-
* @param {Integer} Mode - mode. required.
2322
*/
2423
compareFace(params = {}, options = {}) {
2524
if (!hasOwnProperty(params, 'ImageType')) {
2625
throw new TypeError('parameter "ImageType" is required');
2726
}
2827

29-
if (!hasOwnProperty(params, 'Mode')) {
30-
throw new TypeError('parameter "Mode" is required');
31-
}
32-
3328
options.method = 'POST';
3429
return this.request('CompareFace', params, options);
3530
}
@@ -52,17 +47,12 @@ class Client extends RPCClient {
5247
* @param {Integer} ImageType - imageType. required.
5348
* @param {String} ImageURL - imageUrl. optional.
5449
* @param {String} ImageContent - imageContent. optional.
55-
* @param {Integer} Mode - mode. required.
5650
*/
5751
recognizeFace(params = {}, options = {}) {
5852
if (!hasOwnProperty(params, 'ImageType')) {
5953
throw new TypeError('parameter "ImageType" is required');
6054
}
6155

62-
if (!hasOwnProperty(params, 'Mode')) {
63-
throw new TypeError('parameter "Mode" is required');
64-
}
65-
6656
options.method = 'POST';
6757
return this.request('RecognizeFace', params, options);
6858
}

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

imagerecog-2019-09-30/lib/client.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,34 @@ class Client extends RPCClient {
5050
return this.request('RecognizeImageStyle', params, options);
5151
}
5252

53+
/**
54+
* @param {Integer} ImageType - imageType. required.
55+
* @param {String} ImageURL - imageUrl. optional.
56+
* @param {String} ImageContent - imageContent. optional.
57+
*/
58+
recognizeScene(params = {}, options = {}) {
59+
if (!hasOwnProperty(params, 'ImageType')) {
60+
throw new TypeError('parameter "ImageType" is required');
61+
}
62+
63+
options.method = 'POST';
64+
return this.request('RecognizeScene', params, options);
65+
}
66+
67+
/**
68+
* @param {Integer} ImageType - imageType. required.
69+
* @param {String} ImageURL - imageUrl. optional.
70+
* @param {String} ImageContent - imageContent. optional.
71+
*/
72+
taggingImage(params = {}, options = {}) {
73+
if (!hasOwnProperty(params, 'ImageType')) {
74+
throw new TypeError('parameter "ImageType" is required');
75+
}
76+
77+
options.method = 'POST';
78+
return this.request('TaggingImage', params, options);
79+
}
80+
5381
}
5482

5583
module.exports = Client;

imagerecog-2019-09-30/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@alicloud/imagerecog-2019-09-30",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"description": "imagerecog 2019-09-30 Node.js SDK",
55
"main": "lib/client.js",
66
"scripts": {},
@@ -9,4 +9,4 @@
99
"dependencies": {
1010
"@alicloud/pop-core": "^1.7.1"
1111
}
12-
}
12+
}

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,9 @@ class Client extends RPCClient {
7272
/**
7373
* @param {Integer} ImageType - imageType. required.
7474
* @param {String} ImageURL - imageUrl. optional.
75-
* @param {String} ImageContent - ImageContent. optional.
75+
* @param {String} ImageContent - imageContent. optional.
7676
* @param {Integer} MinHeight - minHeight. required.
7777
* @param {Boolean} OutputProbability - outputProbability. required.
78-
* @param {Boolean} OutputKeyPoints - outputKeyPoints. required.
7978
*/
8079
recognizeCharacter(params = {}, options = {}) {
8180
if (!hasOwnProperty(params, 'ImageType')) {
@@ -90,10 +89,6 @@ class Client extends RPCClient {
9089
throw new TypeError('parameter "OutputProbability" is required');
9190
}
9291

93-
if (!hasOwnProperty(params, 'OutputKeyPoints')) {
94-
throw new TypeError('parameter "OutputKeyPoints" is required');
95-
}
96-
9792
options.method = 'POST';
9893
return this.request('RecognizeCharacter', params, options);
9994
}
@@ -187,7 +182,7 @@ class Client extends RPCClient {
187182
* @param {Integer} ImageType - imageType. required.
188183
* @param {String} ImageURL - imageUrl. optional.
189184
* @param {String} ImageContent - imageContent. optional.
190-
* @param {String} Format - format. required.
185+
* @param {String} OutputFormat - outputFormat. required.
191186
* @param {Boolean} UseFinanceModel - useFinanceModel. required.
192187
* @param {Boolean} AssureDirection - assureDirection. required.
193188
* @param {Boolean} HasLine - hasLine. required.
@@ -198,8 +193,8 @@ class Client extends RPCClient {
198193
throw new TypeError('parameter "ImageType" is required');
199194
}
200195

201-
if (!hasOwnProperty(params, 'Format')) {
202-
throw new TypeError('parameter "Format" is required');
196+
if (!hasOwnProperty(params, 'OutputFormat')) {
197+
throw new TypeError('parameter "OutputFormat" is required');
203198
}
204199

205200
if (!hasOwnProperty(params, 'UseFinanceModel')) {

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

0 commit comments

Comments
 (0)