Face Attendance Maker using Streamlit & OpenCV

Anurag PandaAnurag Panda
2 min read

#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

0
Subscribe to my newsletter

Read articles from Anurag Panda directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Anurag Panda
Anurag Panda