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 MobileNetImage.html and 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
- For TinyFaceDetectWebcam.html you can run on Chrome, Safari and Firefox.
Note, that wearing glasses might decrease the accuracy of the prediction results.
All demos are on our LAB server
- MobileNetImage.html ( face detection via Chrome Shape Detection API )
- TinyFaceDetectWebcam.html ( face detection via face-api tiny-face-detector )
- MobileNetWebcam.html ( face detection via Chrome Shape Detection API )