This project is a Face Recognition Attendance System using Python, OpenCV, and face_recognition library. It captures video from the default camera, detects faces, and recognizes them using pre-trained face encodings. It maintains attendance records in a CSV file for recognized faces.
Upon Running a Model a CSV file will be created automatically filename as Today’s Date(YYYY-MM-DD) format & will store Name of Student as well as Reporting Time.
The project consists of the following main components:
- face_recognition for face recognition tasks.
- cv2 for video capture and image processing.
- numpy for numerical operations.
- csv for working with CSV files.
- os for interacting with the operating system.
- datetime for handling date and time.
➢Images of known faces are loaded and their encodings are computed using face_recognition.face_encodings.
➢The video feed is captured using OpenCV.
➢Face locations and encodings are computed for each frame.
➢The computed encodings are compared with the known encodings to recognize the faces.
➢If a recognized face is found, attendance is marked and recorded in a CSV file.
➢Attendance records, including the name and timestamp, are logged in a CSV file for the current date.
➢Install the required libraries
➢Run the provided Python script AttendanceMain.ipynb
➢The system will open a window showing the camera feed with recognized faces and their attendance status.
➢Press 'q' to exit the program and save the attendance records for the day.
1.Face Recognition by pip install face-recognition
2.OpenCV by pip install opencv-python
3.NumPy by pip install numpy
4.CSV : This is a built-in library in Python, so there is no need to install it separately.
5.OS : OS is a built-in library in Python, so we do not need to install it separately.
6.datetime : Datetime is also a built-in library in Python.
To deploy the project on Streamlit:
➢Run the provided Python script streamlit_app.py using: streamlit run streamlit_app.py
➢Open the provided URL in your web browser to use the face recognition attendance system through the Streamlit interface.
➢The project is accessible through Streamlit Share, offering a web-based interface for face recognition and attendance at: https://jhajibhaskar2.streamlit.app