Skip to main content

Command Palette

Search for a command to run...

Face Attendance Maker using Streamlit & OpenCV

Revolutionize Attendance Tracking with AI-Powered Face Recognition

Published
β€’2 min read
Face Attendance Maker using Streamlit & OpenCV

#python , #streamlit , #opencv , #machine-learning , #attendance-system

  • πŸ” Attendance tracking made smarter and seamless with Face Recognition using Streamlit and OpenCV.

πŸ‘‹ Introduction

Traditional attendance systems often rely on manual input, signatures, or swipe cards β€” all of which are prone to manipulation or inefficiencies.

With the rise of AI and computer vision, we can now automate this process using face recognition technology. This project demonstrates how to build a Face Attendance System using Python, Streamlit, and OpenCV, offering a sleek and interactive interface.

🧠 Core Technologies Used

  • Python – The programming backbone of the project.

  • OpenCV – For face detection and recognition.

  • Streamlit – For creating a fast and beautiful web app.

  • NumPy / Pandas – For managing facial embeddings and logs.

  • Face Recognition Library – Built on dlib, used for accurate face matching.

πŸš€ Key Features

  • πŸ“Έ Real-time webcam feed with live face recognition

  • 🧠 Auto-mark attendance with name and timestamp

  • πŸ“‚ Save and manage data in CSV

  • πŸ›  Easy-to-use Streamlit UI

  • πŸ“¦ Option to add new faces to the database

πŸ›  How It Works

  1. Face Registration

    • Capture and encode the face of each person

    • Save the encoding (vector data) with their name

  2. Face Detection & Matching

    • The webcam feed is continuously monitored

    • Faces in the frame are matched with the registered ones

    • If a match is found, attendance is marked with time

οΏ½οΏ½ Project Structure

face-attendance-maker/
β”œβ”€β”€ app.py
β”œβ”€β”€ encode_faces.py
β”œβ”€β”€ attendance.csv
β”œβ”€β”€ images/
β”‚   └── known_faces/
β”œβ”€β”€ utils.py
└── requirements.txt
#Clone the Repo:

git clone https://github.com/anurag-panda-nshm/face-attendance-maker.git
cd face-attendance-maker

#Install Dependencies:

pip install -r requirements.txt

#Run the App:

streamlit run app.py

πŸ”— Resources

πŸ™Œ Final Thoughts

This project is a great entry point into AI-powered automation using Python. With a simple UI and powerful backend logic, this face recognition attendance system can be extended into schools, offices, or events.

If you found this helpful, leave a ⭐ on GitHub and feel free to fork it for your own needs!

πŸ’¬ Connect with Me