πŸ§‘β€πŸ’Ό Face Attendance Maker using Streamlit and OpenCV 😎

πŸ§‘β€πŸ’Ό Face Attendance Maker using Streamlit and OpenCV 😎


πŸ“Œ Published by @anurag_panda

πŸš€ GitHub Repo: Face Attendance Maker

  • πŸ‘‹ Introduction
    Attendance tracking is a crucial part of any educational institution or organization, but the traditional method of calling names or marking attendance manually is outdated and error-prone.

So I built Face Attendance Maker β€” a modern solution that uses face recognition to automate attendance using Streamlit for the UI and OpenCV for the camera and image processing.

  • 🧠 Features
    βœ… Real-time face detection using OpenCV
    βœ… Attendance tracking with time stamps
    βœ… Streamlit-based UI for ease of use
    βœ… CSV export of attendance records
    βœ… Simple, clean, and fast

  • 🧰 Tech Stack
    Python

Streamlit – for the front-end UI

OpenCV – for face detection and camera access

face_recognition – for comparing and identifying faces

NumPy & Pandas – for data handling

CSV – for storing attendance records

  • 🚦 How It Works
    Upload or register known faces in a folder (ImagesAttendance/)

Launch the Streamlit app

Camera opens and starts detecting faces

If a known face is found:

Name and timestamp are recorded

Data is saved into Attendance.csv

  • πŸ–₯️ Getting Started
    Clone the repo:
git clone https://github.com/anurag-panda-nshm/face-attendance-maker
cd face-attendance-maker
Enter fullscreen mode

Exit fullscreen mode

Install dependencies:

pip install -r requirements.txt
Enter fullscreen mode

Exit fullscreen mode

Run the app:

streamlit run app.py
Enter fullscreen mode

Exit fullscreen mode

πŸ“Έ Make sure your webcam is enabled.

πŸ“ face-attendance-maker/
β”œβ”€β”€ app.py
β”œβ”€β”€ Attendance.csv
β”œβ”€β”€ ImagesAttendance/
β”‚   └── anurag.jpg
β”œβ”€β”€ requirements.txt
└── ...
Enter fullscreen mode

Exit fullscreen mode

Add more images to ImagesAttendance/ with filenames as the person’s name.

  • πŸ” Use Cases
    Classroom attendance

Workplace check-ins

Event registrations

Lab/Library access tracking

  • βš™οΈ Future Improvements
    Face registration through the UI

Multi-user support and login system

Dashboard with analytics

Integration with cloud databases like Supabase or Firebase

πŸ™Œ Let’s Collaborate!
Feel free to fork, contribute, or open issues!
⭐ Star the repo if you like the project!

GitHub: https://github.com/anurag-panda-nshm/face-attendance-maker

  • πŸ’¬ Final Thoughts
    Building this project taught me how powerful and fun real-time computer vision can be. With Streamlit, it’s easier than ever to turn Python scripts into beautiful web apps.

Let me know your thoughts or improvements!

πŸ“§ Reach out on LinkedIn or drop a comment below πŸ‘‡



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *