Giter Site home page Giter Site logo

spidy20 / attendace_management_system Goto Github PK

View Code? Open in Web Editor NEW
262.0 14.0 132.0 6.55 MB

In this system we can fill attendance by face recognition

License: MIT License

Python 100.00%
attendance-management-system attendance-management-system-opencv opencv attendance-system gui tkinter face-recognition attendance-using-face-recognition

attendace_management_system's Introduction

Attendance Management system using Face👦🏻👧 Recognition

forthebadge made-with-python
Python 3.6

Sourcerer

Code Requirements

  • Opencv(pip install opencv-python)
  • Tkinter(Available in python)
  • PIL (pip install Pillow)
  • Pandas(pip install pandas)

What steps you have to follow??

  • Download my Repository
  • Create a TrainingImage folder in a project.
  • Open a AMS_Run.py and change the all paths with your system path
  • Run AMS_Run.py.

Project Structure

  • After run you need to give your face data to system so enter your ID and name in box than click on Take Images button.
  • It will collect 200 images of your faces, it save a images in TrainingImage folder
  • After that we need to train a model(for train a model click on Train Image button.
  • It will take 5-10 minutes for training(for 10 person data).
  • After training click on Automatic Attendance ,it can fill attendace by your face using our trained model (model will save in TrainingImageLabel )
  • it will create .csv file of attendance according to time & subject.
  • You can store data in database (install wampserver),change the DB name according to your in AMS_Run.py.
  • Manually Fill Attendace Button in UI is for fill a manually attendance (without facce recognition),it's also create a .csv and store in a database.

Screenshots

Basic UI

When it's Recognise me

When it's fill a attendace

Manually attendance filling UI

How it works? See:)

Video demo

Youtube

Notes

  • It will require high processing power(I have 8 GB RAM & 2 GB GC)
  • If you think it will recognise person just like humans,than leave it ,its not possible.
  • Noisy image can reduce your accuracy so quality of images matter.

Just follow☝️ me and Star⭐ my repository

Read our Machine learning & Data science related blogs:- Here

Buy more projects at very low price:- STORE

attendace_management_system's People

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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

attendace_management_system's Issues

Not able to find _tkinter module anywhere for python3

➜ Attendace_management_system git:(master) ✗ python3 AMS_Run.py
Traceback (most recent call last):
File "/Users/vivekanand.gaikwad/Documents/GitHub/Attendace_management_system/AMS_Run.py", line 8, in
from PIL import Image,ImageTk
File "/usr/local/lib/python3.9/site-packages/PIL/ImageTk.py", line 28, in
import tkinter
File "/usr/local/Cellar/[email protected]/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/tkinter/init.py", line 37, in
import _tkinter # If this fails your Python may not be configured for Tk
ModuleNotFoundError: No module named '_tkinter'

Need quick help @Spidy20

download of my repository

As it is mentioned in the steps that how to download my repository and after taking images where are they stored.

How to read and convert the image to match the one on database to mark the attendance

Now I have this specific error at which the image from the cam can’t be converted to gray image so it brings this error

File "AMS_Run.py", line 347, in Fillattendances
gray = cv2.cvtColor(im, cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.2.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
Please help

Pls Help me out with this error

Hey Spidy,
Your project is very nice. I just wann see it running but when I tried I'm getting some errror I don't know what this error is about.
Can you help me out from this.

following is the screenshot of error I'm getting.

image

error when mark attendance

D:\code\attendance test\Attendace_management_system-master>python AMS_Run.py
OpenCV Error: Bad argument (This LBPH model is not computed yet. Did you call the train method?) in cv::face::LBPH::predict, file C:\projects\opencv-python\opencv_contrib\modules\face\src\l
bph_faces.cpp, line 396
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Personal\AppData\Local\Programs\Python\Python36\lib\tkinter_init_.py", line 1699, in call
return self.func(*args)
File "AMS_Run.py", line 349, in Fillattendances
Id, conf = recognizer.predict(gray[y:y + h, x:x + w])
cv2.error: C:\projects\opencv-python\opencv_contrib\modules\face\src\lbph_faces.cpp:396: error: (-5) This LBPH model is not computed yet. Did you call the train method? in function cv::face
::LBPH::predict

automatic attendance not workinh

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python36\lib\tkinter_init_.py", line 1699, in call
return self.func(*args)
File "E:\juju\JTtech\STAR\Attendace_management_system\AMS_Run.py", line 329, in Fillattendances
recognizer = cv2.face.LBPHFaceRecognizer_create() # cv2.createLBPHFaceRecognizer()
AttributeError: module 'cv2.cv2' has no attribute 'face'

getting this error kindly help

drop duplicates

while registering a student, repeated registration of a particular student is possible .
duplicates are being added in the csv file

Manually and Automatically fill Attendance Issue

I am getting this Issue while clicking in Manually & Automatically fill Attendance
->Manually fill attendance -> subject name -> Name & Number
no csv file is generated and no data entered.
-> Automatic Attendance -> Subject Name -> nothing occure

1

KeyError: 'Enrollment'

Kamakshis-MacBook-Pro-8:p1 kamakshi$ python3 AMS_Run.py
31.00870159238623
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2897, in get_loc
return self._engine.get_loc(key)
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'Enrollment'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/tkinter/init.py", line 1705, in call
return self.func(*args)
File "AMS_Run.py", line 359, in Fillattendances
aa = df.loc[df['Enrollment'] == Id]['Name'.values]
File "/usr/local/lib/python3.7/site-packages/pandas/core/frame.py", line 2995, in getitem
indexer = self.columns.get_loc(key)
File "/usr/local/lib/python3.7/site-packages/pandas/core/indexes/base.py", line 2899, in get_loc
return self._engine.get_loc(self._maybe_cast_indexer(key))
File "pandas/_libs/index.pyx", line 107, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 131, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 1607, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 1614, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'Enrollment'

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.