Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

anndb-imagesearch-js

anndb-com6Apache 21.0.1

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-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);
})