0.0.1 • Published 8 years ago

facepp-node-sdk v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

FacePlusPlus node.js sdk.

Install

npm

    npm install facepp-node-sdk

Usage

FacePlusPlus API

    var Fpp = require('face-node-sdk');
    var detectParams = {
            url : 'http://faceplusplus.com/static/img/demo/1.jpg';
            mode: 'normal'
        };

    Fpp.api_key = '<YOUR_API_KEY_HERE>';
    Fpp.api_secret = '<YOUR_API_SECRET_HERE>';

    Fpp.detection.detect(detectParams, function (err, res) {
        // to do something
        console.log(res.face[0].attribute.age);    
    });

    Fpp.train.verify(verifyParams, function (err, res) {
        // to do something

    }