Skip to content

Simply JavaScript real-time face expression & landmark detector using FaceAPI.js library

License

Notifications You must be signed in to change notification settings

larry-noriega/JS-Face_And_Mood_Detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JS-Face_Detection

Simply JavaScript real-time face expression & landmark detector using FaceAPI.js library

faceapi

To run these project

You can run this project on your local machine. Just pull it down and do the following:

  1. Clone or download repository.

cloneimage

or

git clone https://github.com/larry-noriega/JS-Face_And_Mood_Detection.git

Start the Project

  1. Open folder with vscode IDE.

vscode

  1. Install & activate recommended extensions

recomended_extensions

Run live server

  1. Open index.html & Go live on http://127.0.0.1:5500/

live_server

IMPORTANT: Bug Fixes

navigator.getUserMedia

navigator.getUserMedia is now deprecated.

Replaced navigator.getUserMedia with navigator.mediaDevices.getUserMedia

Low-end Devices Bug

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.

Log

  • 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.

Disclaimer

Common issue:

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.

About

Simply JavaScript real-time face expression & landmark detector using FaceAPI.js library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published