Emoji Face Tracking Example
Using the Microsoft Face API
A couple of things to keep in mind:
This was intended as an experiment only, to test how performant a realtime face tracking app would work with the Face API on slow hotel wifi. It stood up pretty well in the end! The simplicity of this demo is nice because it works with regular HTML elements and a repeated API call.
The Face API totally has a free tier to play with. However, this demo requires the S0 paid tier of the Face API in order to support the high amount of requests per second needed. Therefore this app can cost a chunk of money if you leave this running in a tab! Please be careful if you test this out with your own API key. I can't take responsibility for your wallet 🙏🏻
There are alternative solutions for this sort of use which work offline and run locally on your machine. Their performance and accuracy might vary, and the code needed can be a little more involved. A couple to look at:
How to run this example
- Clone this repo
- With NodeJS installed, run
npm installin the cloned directory
- Create a new Face API key on the S0 tier (caution: costs money) and paste the key into the source code in client.js
npm startin your terminal and open a browser tab pointed at your localhost on port 3000.