Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Face Recognition System

This project demonstrates a simple face recognition system using AI and machine learning libraries in Python.

Features

  • Train on a dataset of labeled face images
  • Real-time detection and recognition via webcam
  • Utilizes OpenCV (Haar cascade & LBPH recognizer) for detection and recognition

Setup

  1. Create a Python virtual environment:

    python -m venv venv
    venv\Scripts\activate
  2. Install dependencies (make sure you get the contrib package):

    pip install -r requirements.txt
    # if you still have errors with cv2.face module:
    python -m pip install opencv-contrib-python
  3. Prepare the dataset

    • Create a directory named dataset at the project root
    • Inside dataset, create one folder per person using their name
    • Put sample face images (JPEG/PNG) in each person's folder
  4. Run the application:

    python src/main.py

Notes

  • Press q to quit the video window
  • Ensure a webcam is connected and accessible
  • You can extend this by saving encodings and using a database

Running on Google Colab

A companion notebook face_recognition_colab.ipynb is provided for users who prefer to run the project in a browser. It contains step-by-step instructions for mounting Google Drive, uploading the dataset, training the model, and testing on images. Open the notebook in Colab and follow the cells.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages