1.0.1 • Published 4 years ago
anndb-imagesearch-js v1.0.1
AnnDB ImageSearch.js
ImageSearch.js is a Javascript client library for AnnDB's image search API.
Install
npm i anndb-imagesearch-js
CDN
https://unpkg.com/anndb-imagesearch-js/build/imagesearch-min.js
Example 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);
})