face-analytics

0.1.0 • Public • Published

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

/face-analytics/

    Package Sidebar

    Install

    npm i face-analytics

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • matrixone
    • maciekrb
    • brianofadmobilize
    • eighteyes