Classify the emotion in real time and play music according to the emotion
This is a real-time Emotion detection using TensorFlow.js to load a pretrained model into the browser .
-
We use two methods to detect faces:
- We combine two datasets:
- Use TensorFlow.js converter convert Keras model to .json file for loading and running Javascript inference.
-
For MobileNetWebcam.html:
Chrome Shape Detection API : FaceDetector: Chrome on Android, macOS, Windows 10 platfrom. Go to chrome browser
chrome://flags/#enable-experimental-web-platform-features
and enable the feature