Skip to content

jhen0409/node-kairos-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kairos face recognition API for Node.js

NPM version

Installation

npm install kairos-api

Usage

var Kairos = require('kairos-api');
var client = new Kairos('app_id', 'app_key');

var params = {
  image: 'http://media.kairos.com/kairos-elizabeth.jpg',
  subject_id: 'subtest1',
  gallery_name: 'gallerytest1',
  selector: 'SETPOSE'
};

client.enroll(params)   // return Promise
  //  result: {
  //    status: <http status code>,
  //    body: <data>
  //  }
  .then(function(result) { ... })
  // err -> array: jsonschema validate errors
  //        or throw Error
  .catch(function(err) { ... });

For more params pattern, see offical doc.

Functions

  • client.enroll(params)
  • client.recognize(params)
  • client.detect(params)
  • client.galleryListAll()
  • client.galleryView(params)
  • client.galleryRemove(params)
  • client.galleryRemoveSubject(params)

LICENSE

MIT

Test on RapidAPI

About

The Node.js client for the Kairos face recognition API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published