Skip to main content

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()

Metadata

Release files for faceattend 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for faceattend 0.0.8
File Size Uploaded
faceattend-0.0.8.tar.gz 7.2 kB Details

Release files / faceattend-0.0.8.tar.gz

Download URL faceattend-0.0.8.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9bdfd6ea007e8cb2e7d69cb9760be8202a7efbe0bf753c43e627f62aa2d371fd
BLAKE2b-256 checksum
How to use checksums
8ef6c6eae01279b5b1d363080ff97ebbb9ecf257d3dc984d2873ec744ec13ec8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.8 This release

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page