Skip to main content

An attendance system using face recognition

Project description

Face Attend

An attendance system using face detection

Features

  • 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

Instructions 📝

  • Create a virtual environment: python3 -m venv .venv
  • Activate the virtual environment: source .venv/bin/activate
  • Install the package: pip install faceattend

[!NOTE] The above instructions are specific to macOS and Linux.

Windows specific instructions

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

Database setup 🛢

Create the database

  • Open the python interactive console
    python3 or python

  • 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

  • Open the python interactive console
    python3 or python

  • 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_date("emp_id")

If CSV file was generated it displays

CSV file generated!

How to run?

python3 detect.py or python detect.py

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.2.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

faceattend-0.0.2-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: faceattend-0.0.2.tar.gz
  • Upload date:
  • Size: 5.5 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.2.tar.gz
Algorithm Hash digest
SHA256 b0397b50bbcf930f2808a9ab94a7ec10bbf6ba41a5e9ba2c86e893d1006c5bcf
MD5 040a2fbfa488b8d30e9d9daff6c2525a
BLAKE2b-256 2ab710e4ed0316aaff8afac11652e156c12d95257f919bd671485688402c7817

See more details on using hashes here.

File details

Details for the file faceattend-0.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for faceattend-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9e8a467494fd33cb8f3a30ac80314f5f81f162731db9bcc0439562af97b28ee8
MD5 d1103068ec72844b75a02b2729f6eb36
BLAKE2b-256 39f102f98146b611f56ed99898783f2cd24adceaf1dad613b1aaeb7aaab1e60f

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