Code Monkey home page Code Monkey logo

js-face_and_mood_detection's Introduction

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.

js-face_and_mood_detection's People

Contributors

larry-noriega avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.