IBM internship project Face-Recognition System # Face Recognition Attendance System
A Python-based face recognition system that marks attendance using webcam input. This project uses opencv
, face_recognition
, and numpy
libraries for detecting and recognizing faces.
This project captures images from a webcam, processes them to recognize faces, and logs the recognized faces' attendance in a CSV file. It uses the face_recognition
library to detect and encode faces and opencv
for image processing.
- Real-time face recognition using a webcam
- Attendance marking with timestamp
- Easy to add new faces for recognition
- CSV logging for attendance records
To get a local copy up and running, follow these steps:
-
Clone the repository
git clone https://github.com/your-username/face-recognition-attendance-system.git
-
Navigate to the project directory
cd face-recognition-attendance-system
-
Create a virtual environment (optional but recommended)
python -m venv myenv myenv\Scripts\activate # On Windows source myenv/bin/activate # On macOS/Linux
-
Install the required packages
pip install -r requirements.txt
Ensure you have the following packages:
opencv-python
numpy
face_recognition
-
Install CMake (required for dlib)
choco install cmake # On Windows using Chocolatey brew install cmake # On macOS using Homebrew sudo apt-get install cmake # On Linux using APT
-
Add images to the
ImagesAttendance
folder
Place the images of people you want to recognize in theImagesAttendance
folder. The file names (without extension) will be used as the names for attendance. -
Run the script
python attendanceProject.py
-
View attendance log Attendance records will be saved in
Attendance.csv
.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - [email protected]
Project Link: https://github.com/your-username/face-recognition-attendance-system