GitHunt
OM

omatheusribeiro/facial-recognition

The Facial Recognition project is a powerful system designed to detect facial expressions, recognize faces, and estimate age using the face-api library.

๐Ÿค– Facial Recognition System

๐Ÿ“Œ Overview

The Facial Recognition project is a powerful system designed to detect facial expressions, recognize faces, and estimate age using the face-api library. ๐Ÿš€

This repository contains an implementation of:

โœ… Facial Expression Recognition ๐Ÿ˜Š๐Ÿ˜ก๐Ÿ˜ข
โœ… Facial Recognition ๐Ÿง‘๐Ÿ”
โœ… Age Estimation ๐ŸŽฏ

๐Ÿ“ Description

The aim of this project is to demonstrate the usage of the face-api library to perform facial expression recognition, facial recognition, and age estimation in images or videos. face-api is an open-source JavaScript library that enables real-time face detection and analysis.

๐Ÿ—๏ธ Project Structure

facial-recognition
โ”œโ”€โ”€ assets/             # Assets such as images or models
โ”œโ”€โ”€ css/
โ”‚   โ””โ”€โ”€ styles.css      # CSS for styling the interface
โ”œโ”€โ”€ js/
โ”‚   โ””โ”€โ”€ app.js          # JavaScript logic for face detection and analysis
โ”œโ”€โ”€ lib/
โ”‚   โ””โ”€โ”€ face-api/       # face-api library files
โ””โ”€โ”€ index.html          # Main HTML file

๐Ÿš€ Getting Started

๐Ÿ“‹ Prerequisites

Ensure you have the following installed:

  • Node.js (optional, for local server setup)
  • Modern web browser (Chrome, Firefox, etc.)
  • Live Server Extension for VS Code (recommended) โšก

๐Ÿ”ง Installation

# Clone the repository
git clone https://github.com/omatheusribeiro/facial-recognition.git
cd facial-recognition

โ–ถ๏ธ Running the Project

  1. Install the Live Server extension in VS Code:
    • Open VS Code.
    • Go to the Extensions tab (Ctrl+Shift+X or Cmd+Shift+X on Mac).
    • Search for "Live Server" and install it.
  2. Open the project folder in VS Code.
  3. Right-click on index.html and select 'Open with Live Server'.
  4. The project will open automatically in your browser at http://127.0.0.1:5500/index.html ๐Ÿš€

Alternative Methods

If you prefer using a simple local server:

# Using a simple Python server
python -m http.server

# Or using Node.js
npx http-server

Then go to: http://127.0.0.1:8000/index.html (or the displayed port).

โš™๏ธ How It Works

  1. Upload an image or enable your webcam.
  2. The system detects faces in real-time.
  3. It analyzes facial features to identify expressions, recognize identities, and estimate age.

๐Ÿ› ๏ธ Technologies Used

  • HTML & CSS
  • JavaScript & TypeScript
  • face-api.js (for facial recognition and analysis)

๐Ÿ“œ License

This project is licensed under the BSD 3-Clause License.

omatheusribeiro/facial-recognition | GitHunt