Skip to content

Commit 0aa452c

Browse files
Include optional parameters in AlchemyVision examples #141
1 parent 7d9f131 commit 0aa452c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

examples/alchemy_vision.v1.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ var alchemy_vision = watson.alchemy_vision({
1010
// Image keywords
1111
var params = {
1212
image: fs.createReadStream('resources/car.png')
13+
forceShowAll: 1 // Includes lower confidence tags
1314
};
1415

1516
alchemy_vision.getImageKeywords(params, function (err, keywords) {
@@ -32,6 +33,7 @@ alchemy_vision.getImageKeywords(params, function (err, keywords) {
3233

3334
// Face recognize
3435
var params = {
36+
knowledgeGraph: 1 // Include knowledge graph information in the the results.
3537
url: 'https://upload.wikimedia.org/wikipedia/commons/0/00/Scarlett_Johansson_-_Captain_America_2_press_conference_%28retouched%29_2.jpg'
3638
};
3739

0 commit comments

Comments
 (0)