In order to detect the different faces on the image we used a trained model provided in a JavaScript API called face-api.js.
For emotional detection we trained a model based on an existing classification project. We train our model with the FER2018 dataset and tensorflow.
For the detection we used a node module called Parcel for packaging the app and loading our different libraries:
- Tensorflow.js for the prediction
- face-api.js for face detection
For running the project run the following command in the folder app/web/ :
$ npm run start
For building the project run the following command in the folder app/web/ :
$ npm run build