Skip to content

brookesey/node-faceplusplus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-faceplusplus

NPM version Build Status

a node client of face++

Usage

initialize

var FacePlusPlus = require('faceplusplus');
var config = {
	api_key : '{{api_key}}',
	api_secret : '{{api_secret}}',
	region : '{{region}}' // us or cn - defaults to cn
}
var client = new FacePlusPlus(config);

basic get/post method

client.post('person/create', {person_name : 'Somebody'}, function(err, response, body){
  console.log(body);
});

multipart post method

var data = {
  img : {
    value: fs.readFileSync('./a.jpg'), 
    meta: {filename:'a.jpg'}
  }
};
client.postMulti('detection/detect', data, function(err, response, body){
  console.log(body);
});

About

a node client of faceplusplus.com

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%