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 do 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.5.tar.gz (6.6 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: faceattend-0.0.5.tar.gz
  • Upload date:
  • Size: 6.6 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.5.tar.gz
Algorithm Hash digest
SHA256 54acdbf5490bdb53ba7b6523a203d34b8ec618b08048a3b91f8db5f7c3b6e5f6
MD5 51d5b7e779c21824a5e22a4d5dad8ab9
BLAKE2b-256 64fad13f9dfce6cb2e6ec92e010b5d7e54b2069eed6ad46c5e1bb7ae6d596f1a

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