Skip to content

An amazing experience of trying to get the computer to recognize me! Face Recognition from WebCam and Video Sources using Javascript, NodeJS and face-api.js which is a wrapper around TensorFlowJS

Notifications You must be signed in to change notification settings

maggike/Face-recognition-through-web-cam-or-video-sources

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face-recognition-from-webcam-and-video-sources

Face Recognition from WebCam and Video Sources using Javascript, NodeJS and face-api.js which is a wrapper around TensorFlowJS.

Some of the Major technologies used:

  1. NodeJS
  2. ExpressJS
  3. JavaScript

Prerequisites to run the app in local environment

  1. Installed NodeJS

Step 1: Run the command npm run dev on terminal, making sure you are in the face_recognition_video directory. The code will run on http://localhost:3000. On my local computer, the final output is like this:

my web cam image

The code is set to image recognition through web-cam. Change it following the instructions below to recognize images through video. A sample video of the Avengers and their images have been uploaded just to represent how the code would work. But it can be used for recognizing any person's face through web-cam or video once their images (3-5) have been added to the public/labeled_images directory.

Congratulations! You are good to GO now.

For WebCam: Just comment out line number 16 and 56 inside public/js/script.js and uncomment from line 10 to 15 and 57.

For Video Source: Just uncomment line number 16 and 56 inside public/js/script.js and comment out line 10 to 15 and 57.

Note: For best performance, if you have a dedicated graphic card on your system enable that to be used by your browser. By defualt browser uses the internal graphic of the system which might not work best for this app.

About

An amazing experience of trying to get the computer to recognize me! Face Recognition from WebCam and Video Sources using Javascript, NodeJS and face-api.js which is a wrapper around TensorFlowJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published