a node client of face++
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);
client.post('person/create', {person_name : 'Somebody'}, function(err, response, body){
console.log(body);
});
var data = {
img : {
value: fs.readFileSync('./a.jpg'),
meta: {filename:'a.jpg'}
}
};
client.postMulti('detection/detect', data, function(err, response, body){
console.log(body);
});