anndb-imagesearch-js
v1.0.1
Published
AnnDB image search client
Readme
AnnDB ImageSearch.js
ImageSearch.js is a Javascript client library for AnnDB's image search API.
Install
npm i anndb-imagesearch-jsCDN
https://unpkg.com/anndb-imagesearch-js/build/imagesearch-min.jsExample usage
var is = new ImageSearch('<YOUR_API_KEY>')
var file = document.getElementById('file_input').files[0];
is.search('dataset-name', file, 20).then(function(result) {
// Display items
console.log(result.items);
}).catch(function(error) {
// Handle error
console.log(error);
})