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
  • Mark attendance of a valid person when detected
  • Generating a csv file with attendance for a particalar date or a particular employee

Todo

  • Further improve the face recognition model

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

  • Import the create_database() function from create_database module
    from faceattend.create_datebase import create_database

  • Then just use the create_database() function to create the database create_database()

  • When database is successfully created it displays
    Database created!

Add valid faces in database

  • Import the Face class from face module
    from faceattend.face import Face

  • Now use the Face class's add_face method to add face data and name of the person
    Face.add_face("Person's Name","Path to the Person's image file")

  • If the face was added successfully it displays
    Face Added

Generating CSV file

For a particular date

  • Import the Attendance class from attendance module
    from faceattend.attendance import Attendance
  • Now use Attendance class's generate_csv_date() function
    Attendance.generate_csv_date("sample_date")

For a particular employee

  • Use Attendance class's generate_csv_emp() function
    Attendance.generate_csv_emp("emp_id")

If CSV file was generated it displays

CSV file generated!

How to run?

  • Import the detect_face() function from the detect module
    from faceattend.detect import detect_face
  • Then just call the detect_face() function
    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.6.tar.gz (6.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: faceattend-0.0.6.tar.gz
  • Upload date:
  • Size: 6.7 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.6.tar.gz
Algorithm Hash digest
SHA256 0af66cd16f72e3247a2bcd7efb1aabf4c26738250609c8778b90296d371e126a
MD5 272b3d7618d12fb785d8ce067b127440
BLAKE2b-256 761fe922ab9c23e3d2d53a53ba6f0e04eac64fce0c5281b76a1d24ab47b471e8

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