Skip to content

Face detection and recognition from a webcam in a web browser

Notifications You must be signed in to change notification settings

luarvic/face-api-example

Repository files navigation

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.

About

Face detection and recognition from a webcam in a web browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published