faceppsdk

face++ node.js sdk.

Usage no npm install needed!

<script type="module">
  import faceppsdk from 'https://cdn.skypack.dev/faceppsdk';
</script>

README

Face++ node.js sdk.

Based on the face++ official API build.

Install

npm

    npm install faceppsdk

github

    $ git clone https://github.com/nicky9112/faceppsdk.git
    $ cd faceppsdk
    $ npm install .

Usage


    var facePP = require('faceppsdk'),
        detectParams = {
            url : 'http://faceplusplus.com/static/img/demo/1.jpg';
            mode: 'normal'
        }
        verifyParams = {
            person_id : 'person_id'
        };
    
    facePP.api_key = '<YOUR_API_KEY_HERE>';
    facePP.api_secret = '<YOUR_API_SECRET_HERE>';
    
    facePP.detection.detect(detectParams, function (err, res) {
        // to do something
        console.log(res.face[0].attribute.age);    
    });
    
    facePP.train.verify(verifyParams, function (err, res) {
        // to do something
        
    }

Face++ API overview

http://www.faceplusplus.com/api-overview/