GithubHelp home page GithubHelp logo

richarddushime / sams Goto Github PK

View Code? Open in Web Editor NEW

This project forked from saket13/sams

0.0 0.0 0.0 8.55 MB

A πŸ–₯ Desktop GUI for πŸ€–Face Recognition Based πŸ™‹πŸ»β€β™‚οΈAttendance Management System

Home Page: https://saket13.github.io/sams-page/

License: MIT License

Python 51.19% HTML 26.15% JavaScript 0.01% CSS 22.66%

sams's Introduction

SAMS

Python 3.6 Py2app made-with-python Generic badge GitHub license PRs Welcome

A Desktop GUI for Smart Attendance Management System Using Realtime Face Recognition System

Screenshots

GUI:

Adding New Student:

Add-1 ADD-2
ADD-1 ADD-2
Add-3 ADD-4
ADD-3 ADD-4

Updating Student's Attendance :

LIVE-STREAM EXCEL
TAKE-ATTENDANCE EXCEL SHEET

Design

This project has 2 modules:

First One, 'Add Student' module which adds a new student to the system. The image is taken through the WebCam. Image's Binary Data is sent from the GUI FrontEnd architecture through the local server to the BackEnd architecture which is responsible for saving the file in the β€˜.jpeg’ format in the local directory (assets) where the application is residing. Then all the images are loaded one by one from the assets folder and then their 128-d face encodings are determined through the OpenCV library of Python.

Second One, 'Take Attendance' module is mainly responsible for fulfilling the objectives of the project i.e it receives the images from the webcam’s live server and then faces are detected using the different inbuilt algorithms of OpenCV and their 128-d encodings are then computed and the computed face encodings are then compared to the encodings stored in the Data Base which yields the student who- se face is obtained. And then the excel sheet is updated accordingly to the required Roll Number of the Identified Face.

Finally, both these modules have been merged together and and packages into an executable application using the Python’s Eel Library which is executable cross-platform i.e UNIX, LINUX and WINDOWS if the requirements are installed correctly and their paths are specified correctly. This final system can also be used in the web browsers.

Package Structure

SAMS App                  # Root Package (ZIP Format)
.
β”œβ”€β”€ Contains              
β”‚   β”œβ”€β”€ Assets            # Images of the new students a/c to roll no captured for training
β”‚   β”œβ”€β”€ Web               # All the front end files
β”‚   └── attendance.py     # Python code for establishing server and doing OpenCV work
|   └── requirements.txt  # Requirements file
|______________________   

Installation

Clone the repo and install Requirements :

git clone https://github.com/saket13/SAMS
cd path_to_SAMS
pip3 install requirements.txt

Modify attendance.py File and put your Project File's path:

DIRECTORY_PATH = '/Users/saket/Downloads/SAMS/'                             # Put here the PROJECT DIRECTORY PATH
IMAGE_DIRECTORY_PATH = '/Users/saket/Downloads/SAMS/assets/'                # Put here the ASSESTS FOLDER PATH

Usage

Run code in root mode(OpenCV requires it):

python3 attendance.py (In Web Browser Mode)

After registering new students

Press CTRL + C to stop and 
run python3 attendance.py again to train new faces

For taking attendance

Run code in root mode and
Click On 'Take Attendance' Button 

Future Ideas and TODOs

  • Deploy it on Cloud completely - AWS, Azure or GCP

  • The images must be upright and single face only. Add Options for sideways too.

  • Make a dashboard for admin

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Contact

If you need any help, you can connect with me.

Visit:- saketsaumya.info

License

MIT License

Copyright (c) 2020 Saket Saumya

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

sams's People

Contributors

saket13 avatar

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.