https://github.com/luarvic/face-api-example
Face detection and recognition from a webcam in a web browser
https://github.com/luarvic/face-api-example
face-api-js face-detection face-recognition
Last synced: 3 months ago
JSON representation
Face detection and recognition from a webcam in a web browser
- Host: GitHub
- URL: https://github.com/luarvic/face-api-example
- Owner: luarvic
- Created: 2025-01-09T15:56:16.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-02-16T18:50:06.000Z (3 months ago)
- Last Synced: 2025-02-16T19:31:29.460Z (3 months ago)
- Topics: face-api-js, face-detection, face-recognition
- Language: JavaScript
- Homepage:
- Size: 14.2 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/justadudewhohacks/face-api.js) JavaScript library.
## How to run it locally
1. Clone the repo.
1. Open it in _Visual Studio Code_ with _Live Server_ extension installed.
1. 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.
1. Add the image name (without extension) to `labels` array in `.\js\face-detection.js`.
1. Refresh `index.html` page in a web browser.