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

Commit 0fcc574

Browse files
committed
update facebody,imagerecog, objectdet, ocr
1 parent 9c795f9 commit 0fcc574

File tree

8 files changed

+89
-106
lines changed

8 files changed

+89
-106
lines changed

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -14,43 +14,43 @@ class Client extends RPCClient {
1414
}
1515

1616
/**
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.
17+
* @param {Integer} ImageType - imageType. optional. default: 0.
18+
* @param {String} ImageURLA - imageUrlA. required.
19+
* @param {String} ImageURLB - imageUrlB. required.
2220
*/
2321
compareFace(params = {}, options = {}) {
24-
if (!hasOwnProperty(params, 'ImageType')) {
25-
throw new TypeError('parameter "ImageType" is required');
22+
if (!hasOwnProperty(params, 'ImageURLA')) {
23+
throw new TypeError('parameter "ImageURLA" is required');
24+
}
25+
26+
if (!hasOwnProperty(params, 'ImageURLB')) {
27+
throw new TypeError('parameter "ImageURLB" is required');
2628
}
2729

2830
options.method = 'POST';
2931
return this.request('CompareFace', params, options);
3032
}
3133

3234
/**
33-
* @param {Integer} ImageType - imageType. required.
34-
* @param {String} ImageURL - imageUrl. optional.
35-
* @param {String} ImageContent - imageContent. optional.
35+
* @param {Integer} ImageType - imageType. optional. default: 0.
36+
* @param {String} ImageURL - imageUrl. required.
3637
*/
3738
detectFace(params = {}, options = {}) {
38-
if (!hasOwnProperty(params, 'ImageType')) {
39-
throw new TypeError('parameter "ImageType" is required');
39+
if (!hasOwnProperty(params, 'ImageURL')) {
40+
throw new TypeError('parameter "ImageURL" is required');
4041
}
4142

4243
options.method = 'POST';
4344
return this.request('DetectFace', params, options);
4445
}
4546

4647
/**
47-
* @param {Integer} ImageType - imageType. required.
48-
* @param {String} ImageURL - imageUrl. optional.
49-
* @param {String} ImageContent - imageContent. optional.
48+
* @param {Integer} ImageType - imageType. optional. default: 0.
49+
* @param {String} ImageURL - imageUrl. required.
5050
*/
5151
recognizeFace(params = {}, options = {}) {
52-
if (!hasOwnProperty(params, 'ImageType')) {
53-
throw new TypeError('parameter "ImageType" is required');
52+
if (!hasOwnProperty(params, 'ImageURL')) {
53+
throw new TypeError('parameter "ImageURL" is required');
5454
}
5555

5656
options.method = 'POST';

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.1.0",
3+
"version": "1.2.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: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,27 +51,25 @@ class Client extends RPCClient {
5151
}
5252

5353
/**
54-
* @param {Integer} ImageType - imageType. required.
55-
* @param {String} ImageURL - imageUrl. optional.
56-
* @param {String} ImageContent - imageContent. optional.
54+
* @param {Integer} ImageType - imageType. optional. default: 0.
55+
* @param {String} ImageURL - imageUrl. required.
5756
*/
5857
recognizeScene(params = {}, options = {}) {
59-
if (!hasOwnProperty(params, 'ImageType')) {
60-
throw new TypeError('parameter "ImageType" is required');
58+
if (!hasOwnProperty(params, 'ImageURL')) {
59+
throw new TypeError('parameter "ImageURL" is required');
6160
}
6261

6362
options.method = 'POST';
6463
return this.request('RecognizeScene', params, options);
6564
}
6665

6766
/**
68-
* @param {Integer} ImageType - imageType. required.
69-
* @param {String} ImageURL - imageUrl. optional.
70-
* @param {String} ImageContent - imageContent. optional.
67+
* @param {Integer} ImageType - imageType. optional. default: 0.
68+
* @param {String} ImageURL - imageUrl. required.
7169
*/
7270
taggingImage(params = {}, options = {}) {
73-
if (!hasOwnProperty(params, 'ImageType')) {
74-
throw new TypeError('parameter "ImageType" is required');
71+
if (!hasOwnProperty(params, 'ImageURL')) {
72+
throw new TypeError('parameter "ImageURL" is required');
7573
}
7674

7775
options.method = 'POST';

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

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,12 @@ class Client extends RPCClient {
2525
}
2626

2727
/**
28-
* @param {Integer} ImageType - imageType. required.
29-
* @param {String} ImageURL - imageUrl. optional.
30-
* @param {String} ImageContent - imageContent. optional.
28+
* @param {Integer} ImageType - imageType. optional. default: 0.
29+
* @param {String} ImageURL - imageUrl. required.
3130
*/
3231
detectVehicle(params = {}, options = {}) {
33-
if (!hasOwnProperty(params, 'ImageType')) {
34-
throw new TypeError('parameter "ImageType" is required');
32+
if (!hasOwnProperty(params, 'ImageURL')) {
33+
throw new TypeError('parameter "ImageURL" is required');
3534
}
3635

3736
options.method = 'POST';

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

0 commit comments

Comments
 (0)