Skip to main content

An attendance system using face recognition

Project description

Face Attend

Whats working?

  • Adding face data of a person to the database
  • Detect face of known person using video feed
  • Provide audio feedback when attendance marked successfully
  • Mark attendance of a valid person when detected
  • Generating a csv file with attendance for a particular date or a particular employee

Todo

  • Further improve the face recognition model

Built with

Instructions 📝

  • Create a virtual environment:
    python3 -m venv .venv

  • Activate the virtual environment:
    source .venv/bin/activate or .\.venv\Scripts\Activate.ps1

  • On Windows make sure to set this environment variable using powershell [Environment]::SetEnvironmentVariable("PYTHONUTF8", "1", "User")

  • Install the package:
    pip install faceattend

Windows specific issues

  • Creating virtual environments see here
  • For issues with installation of the face-recognition package see here

Database setup 🛢

Create the database

>>> from faceattend.create_database import create_database
>>> create_database()
'Database created!'

Add valid faces in database

>>> from faceattend.face import Face
>>> Face.add_face("Akash","Akash.jpg")
'Face added for Akash with employee id 7277962575'

Remove face data from database

>>> from faceattend.face import Face
>>> Face.delete_face("1894559876")
'Person with emp_id 1894559876 has been removed!'

Generating CSV file

For a particular date

>>> from faceattend.attendance import Attendance
>>> Attendance.generate_csv_date("2024-03-04")
'CSV file generated!'

For a particular employee

>>> from faceattend.attendance import Attendance
>>> Attendance.generate_csv_emp("7277962575")
'CSV file generated!'

Employee list

>> from faceattend.face import Face
>>> Face.generate_emp_list()
'CSV file generated!'

How to run?

>>> from faceattend.detect import detect_face
>>> detect_face()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

faceattend-0.0.8.tar.gz (7.2 kB view details)

Uploaded Source

File details

Details for the file faceattend-0.0.8.tar.gz.

File metadata

  • Download URL: faceattend-0.0.8.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.6

File hashes

Hashes for faceattend-0.0.8.tar.gz
Algorithm Hash digest
SHA256 9bdfd6ea007e8cb2e7d69cb9760be8202a7efbe0bf753c43e627f62aa2d371fd
MD5 b1b266887df7aba0d52b27a83043e759
BLAKE2b-256 8ef6c6eae01279b5b1d363080ff97ebbb9ecf257d3dc984d2873ec744ec13ec8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page