Employee Management System with Face Recognition

📸 Built a Streamlit-based application for managing employee registration and automating attendance marking using face recognition. This system uses an IP Webcam for real-time face detection and records attendance in an Excel file.

Features

  • Employee Registration: Register employees by providing their ID, name, and photo.
  • Face Recognition: Automatically detect and recognize faces using uploaded photos.
  • Attendance Tracking: Mark attendance in real-time using an IP Webcam and save records in an Excel file.
  • Duplicate Prevention: Prevent duplicate attendance entries for the same day.

Directory Structure

            employee-management-system/
            ├── app.py                  # Main application code
            ├── employees.csv           # Stores employee details
            ├── attendance.xlsx         # Stores attendance records
            ├── employee_faces/         # Folder to store employee photos
            ├── requirements.txt        # List of dependencies
            └── README.md               # Project documentation
        

Installation

Prerequisites

  • Python 3.8 or higher
  • A working IP Webcam (e.g., Android app like IP Webcam)

Steps to Install

  1. Clone the Repository:
    git clone https://github.com/Devmbm2/employee-management-system.git
    cd employee-management-system
  2. Set Up a Virtual Environment (Optional but Recommended):
    python -m venv venv
    source venv/bin/activate (On Windows: venv\\Scripts\\activate)
  3. Install Dependencies:
    pip install -r requirements.txt
  4. Run the Application:
    streamlit run main.py

How to Use This Tool

Employee Registration:

  • Navigate to the "Register Employee" tab.
  • Input the Employee ID and Name.
  • Upload a clear photo of the employee.
  • Click "Register Employee" to save the details and photo.

Marking Attendance:

  • Navigate to the "Mark Attendance" tab.
  • Enter the IP Webcam URL (e.g., http://192.168.1.100:8080/video).
  • The system will start detecting faces and marking attendance automatically.
  • Attendance records are saved in attendance.xlsx.

Viewing Attendance:

  • Open the attendance.xlsx file to view the attendance records.

Images and Videos from the Project



View the Code