face-analytics
v0.1.0
Published
A face detection cloud API for Node.js for the MATRIX OS, and MATRIX Platform.
Downloads
6
Readme
Face Analytics
Face detection cloud API in Node.js (e.g. Age, Gender, Emotions), generate full analytics for photographs (Popular Gender, Popular Emotion, etc...), for MATRIX OS, MATRIX Platform, and standalone deployments.
Get your FREE API Key at mashape.com
Installation
Install with npm.
npm install face-analytics
Module initialization
Initialize the module, and pass the key either by environment variable or directly.
var face = require('face-analytics').key(process.env.API_KEY);
Detect Faces
Detect faces and return analytics based on the image provided.
var img = "https://storage.googleapis.com/detection-server-tests/characters.jpg";
face.detect(img)
.then(function(response) {
//throw responses
console.log(response);
},function(error){
//throw errors
console.log(error);
}
);