Microsoft Cognitive Services Face API
In order to use this you need to have Node.js installed on your machine and Microsoft Cognitive Services Face API Key.
In order to install this module you need to do the following:
npm install mscs-face-api --save
First you need to require the module:
const MSCSFACEAPI = require("mscs-face-api");
After you have to create an instance of the module. You will have to specify the key and the server that you want to use. The options for the server are the following:
- WUS (westus)
- EUS2 (eastus2)
- WCUS (westcentralus)
- WE (westeurope)
- SA (southeastasia).
var mscsfa = new MSCSFACEAPI(key,"WCUS");
In order to have a better understanding of the methods I advise you to see the documentation.
- createPersonGroup(personGroupId, name, userData) → {Promise}
- deletePersonGroup(personGroupId) → {Promise}
- getPersonGroup(personGroupId) → {Promise}
- getPersonGroupTrainingStatus(personGroupId) → {Promise}
- listPersonGroups(start, top) → {Promise}
- trainPersonGroup(personGroupId) → {Promise}
- updatePersonGroup(personGroupId, name, userData) → {Promise}
- addPersonFace(personGroupId, personId, userData, image) → {Promise}
- createPerson(personGroupId, name, userData) → {Promise}
- listPersonsInPersonGroup(personGroupId, start, top) → {Promise}
- detectFace(image) → {Promise}
- identifyFace(faceIds, personGroupId, confidenceThreshold) → {Promise}
- Node.js - Open source server framework.
- axios - Promise based HTTP client for the browser and node.js.
- Daniel Matos
This project is licensed under the MIT License - see the LICENSE.md file for details