Giter Site home page Giter Site logo

yuhengkit / facerecognitionattendancesystem Goto Github PK

View Code? Open in Web Editor NEW
28.0 3.0 11.0 2.66 MB

Python Django

Python 18.18% CSS 23.35% JavaScript 45.01% PLpgSQL 0.28% HTML 13.18%
attendence face-recognition attendence-records raspberry-pi django python

facerecognitionattendancesystem's Introduction

Face Recognition Attendance System

alt homepage

Team HKL

Members :

1. HAU ZHE XUAN

2. KIT YU HENG

3. LIM JUN SHIUN

Overview

A face recognition based attendance system with Raspberry Pi. (Note: At least Raspberry Pi 3 to run smoothly.)

Funtions of the system:

  • Photos Management
  • User Management
  • Recognizer Training
  • Email Notification for Latecomers (Using yagmail library)
  • Attendance Record

System Architecture

Domain Model

Entity-Relationship Diagram

Class Diagram

Database Table

Normalized Table

Initial Sketching of System

Recognition Module

__init__.py contains the face_cascade object, a common resource used in face detection.

trainer.py is responsible of feeding the dataset to different models for training.

  1. Three models are available but unused: LBPH, FisherFace and EigenFace. The recognizer will compares three results from each model and get the most frequenct result.

  2. The system was upgraded with model using face_recognition library to recognize the face. Only One input image of each user is needed for training purpose. The algorithm of this recognizer is Histogram of Gradient (HOG).

recognizer.py uses pretrained models to make predictions.

capture.py adds photos to user profile.

The Django Web Interface

  • Login Page

  • Homepage: showing last stats of the system

  • Add user: to add new user

  • Capture page: to take faces photos from a local or remote device

  • Train page: to train models
  • Attendance page: shows attendance records

  • A RESTful API interface to send image and attendance records (from the raspberry pi in the prototype device)

Environment

Python: > 3.6

Install libraries: pip3 install -r requirements.txt

Running / Way to Execute

Please create photos , temp and profile folder in static folder. Please install postgreSQL and change the details in setting.py. Initialize the database from django:

  • python3 manage.py makemigrations
  • python3 manage.py migrate
  • python3 manage.py createsuperuser

Start the server: python3 manage.py runserver

Register email: open a python script in server and run import yagmail yagmail.register('mygmailusername', 'mygmailpassword') Please change the email address in emailalert() that can be found in views.py

Reset database: python manage.py flush

facerecognitionattendancesystem's People

Contributors

dixonhau avatar junshiun avatar yuhengkit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

facerecognitionattendancesystem's Issues

help

I want to run the project for a school assignment. Can you help on how to run?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.