This project is a facial recognition-based attendance system built using Flask, OpenCV, and the face_recognition library.
app.py: The main Flask application file.attendance/attendance.py: Contains the function to mark attendance.recognition/recognition.py: Contains the function to recognize faces using the webcam.requirements.txt: Lists the dependencies required for the project.templates/index.html: The HTML template for the home page.
-
Clone the repository:
git clone <repository-url> cd facial_recognition_attendance
-
Create a virtual environment and activate it:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Start the Flask application:
python app.py
-
Open your web browser and go to
http://127.0.0.1:5000/to access the application.
- The home page (
/) provides a welcome message and instructions. - The
/mark_attendanceendpoint is used to mark attendance using facial recognition.
- Flask
- OpenCV (
opencv-python) face_recognition
This project is licensed under the MIT License.# Face-recognition-