Skip to content

A simple and effective attendance system using real-time face recognition. Detects faces with Haar cascades, recognizes them using the face_recognition library, and classifies with a KNN model. Includes a web interface for face registration and attendance logging.

Notifications You must be signed in to change notification settings

rishav-dahal/Face-Recognition-Based-Attendance-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face_Recognition_Attendance_system

This model uses a combination of Haar cascade for face detection, Face Recognition API for face recognition, and KNN (K-Nearest Neighbor) for classification.

Dependencies

  • Python 3
  • Haar cascade
  • Face Recognition API
  • KNN (K-Nearest Neighbor)
  • numpy
  • opencv

Model Training

  1. Preprocess the input data using Haar cascade and Face Recognition API.
  2. Train the KNN (K-Nearest Neighbor) model using the preprocessed data.

Installation

For Linux/MacOS/Windows:

  • Clone the repo: git clone https://github.com/rishav-dahal/Attendance_system_KNN.git
  • Make a virtual environment inside server dir. Eg: python -m venv venv
  • Activate the virtual environment. Eg: source ./venv/bin/activate
  • Install the dependencies from the repo's requirements.txt file. pip install -r requirements.txt
  • Run the following code: python train.py to train
  • Run the server. python app.py
  • Go to the url localhost:8000 on your browser.

About

A simple and effective attendance system using real-time face recognition. Detects faces with Haar cascades, recognizes them using the face_recognition library, and classifies with a KNN model. Includes a web interface for face registration and attendance logging.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published