Simply JavaScript real-time face expression & landmark detector using FaceAPI.js library
You can run this project on your local machine. Just pull it down and do the following:
- Clone or download repository.
or
git clone https://github.com/larry-noriega/JS-Face_And_Mood_Detection.git
- Open folder with vscode IDE.
- Install & activate recommended extensions
- Open index.html & Go live on http://127.0.0.1:5500/
navigator.getUserMedia
is now deprecated.
Replaced navigator.getUserMedia
with navigator.mediaDevices.getUserMedia
Video eventListener for play
fires up too early before the video is fully loaded, which causes errors to pop up from the Face API and ends in the script death.
(tested on Debian [Firefox] and Windows [Chrome, Firefox]). Replaced by playing
event, which fires up when the media has enough data to start playing.
- 06/11/2021: Updates:
- Old browsers compatibility.
- Minify version added.
- 14/08/2021: Modern browsers compatibility.
- 12/07/2020: Bug Fixes:
navigator.getUserMedia
deprecated in modern browsers.play
event: Low-ending devices bug.
- 07/07/2020: Instructions & VScode extensions recommendations.
- 09/04/2019: Innitial Commit.
Right clicking the file and opening in Chrome will not work.
Many people are running into is a 404 error when loading the models folder. & is caused when you the code is not running inside a server that loads the models folder.
Use Live Server like VSCode integrated to get the most of this project.