lloydwatkin / face-analytics

Detect faces and other objects using our REST API.

Home Page:https://market.mashape.com/matrixone/face-analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Detect faces and other objects using our REST API.

https://market.mashape.com/matrixone/face-analytics

License:MIT License


Languages

Language:JavaScript 100.0%