Skip to content

Instantly share code, notes, and snippets.

@Visrozar

Visrozar/index.js

Last active Dec 15, 2018
Embed
What would you like to do?
Clarifai API - Search by Image
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
You can’t perform that action at this time.