Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 783 Bytes

File metadata and controls

19 lines (12 loc) · 783 Bytes

Face detection and recognition from a webcam in a web browser

This app detects and recognizes individuals listed under .\labeled_images from a webcam in a web browser using face-api.js JavaScript library.

How to run it locally

  1. Clone the repo.
  2. Open it in Visual Studio Code with Live Server extension installed.
  3. Right click index.html and then click Open with Live Service.

How to add more individuals that can be recognized

  1. Copy a new person image to .\labeled_images directory. Make sure the image has .jpg extension.
  2. Add the image name (without extension) to labels array in .\js\face-detection.js.
  3. Refresh index.html page in a web browser.

Demo

Demo