Last active
December 15, 2018 06:19
-
-
Save Visrozar/7ce462332b174af84a5ae47b35e76da2 to your computer and use it in GitHub Desktop.
Clarifai API - Search by Image
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.inputs.search({ input: { url: 'http://healthypets.royalcanin.com.au/assets/Uploads/_resampled/ScaleWidthWyI2MDAiXQ/golden-retriever-getting-to-know.jpg' } }).then( | |
function (response) { | |
response.hits.forEach(hit => { | |
console.log(hit.score); | |
console.log(hit.input.data.image); | |
}); | |
}, | |
function (err) { | |
console.log(err); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment